hfs 0.50.4 → 0.51.0-beta4

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 (44) hide show
  1. package/README.md +2 -0
  2. package/admin/assets/index-101ecc9e.js +808 -0
  3. package/admin/assets/{index-bb75b3fc.css → index-65d16f45.css} +1 -1
  4. package/{frontend/assets/sha512-e82b909a.js → admin/assets/sha512-a1b6cce6.js} +1 -1
  5. package/admin/index.html +2 -2
  6. package/frontend/assets/index-a452a199.css +1 -0
  7. package/frontend/assets/index-dea364e7.js +95 -0
  8. package/{admin/assets/sha512-1694c0eb.js → frontend/assets/sha512-6365fe60.js} +1 -1
  9. package/frontend/fontello.css +4 -1
  10. package/frontend/fontello.woff2 +0 -0
  11. package/frontend/index.html +2 -2
  12. package/package.json +3 -2
  13. package/src/adminApis.js +3 -1
  14. package/src/api.auth.js +6 -1
  15. package/src/{api.file_list.js → api.get_file_list.js} +11 -7
  16. package/src/api.monitor.js +1 -34
  17. package/src/api.vfs.js +2 -5
  18. package/src/apiMiddleware.js +1 -1
  19. package/src/comments.js +1 -1
  20. package/src/const.js +5 -2
  21. package/src/cross-const.js +3 -4
  22. package/src/cross.js +56 -7
  23. package/src/debounceAsync.js +3 -3
  24. package/src/errorPages.js +1 -1
  25. package/src/frontEndApis.js +21 -2
  26. package/src/index.js +2 -0
  27. package/src/lang.js +10 -2
  28. package/src/langs/hfs-lang-it.json +10 -6
  29. package/src/listen.js +1 -2
  30. package/src/log.js +20 -5
  31. package/src/middlewares.js +12 -6
  32. package/src/misc.js +4 -14
  33. package/src/roots.js +47 -0
  34. package/src/serveFile.js +40 -4
  35. package/src/serveGuiFiles.js +2 -2
  36. package/src/update.js +7 -6
  37. package/src/upload.js +10 -5
  38. package/src/util-files.js +7 -6
  39. package/src/vfs.js +38 -28
  40. package/src/zip.js +2 -2
  41. package/admin/assets/index-a24642bd.js +0 -807
  42. package/frontend/assets/index-b90320b6.css +0 -1
  43. package/frontend/assets/index-e6ecc47c.js +0 -94
  44. package/plugins/vhosting/plugin.js +0 -62
@@ -0,0 +1,808 @@
1
+ var _U=Object.defineProperty,TU=Object.defineProperties;var $U=Object.getOwnPropertyDescriptors;var Hm=Object.getOwnPropertySymbols;var F_=Object.prototype.hasOwnProperty,N_=Object.prototype.propertyIsEnumerable;var Y1=(e,t)=>{if(t=Symbol[e])return t;throw Error("Symbol."+e+" is not defined")},ys=Math.pow,Q1=(e,t,n)=>t in e?_U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xe=(e,t)=>{for(var n in t||(t={}))F_.call(t,n)&&Q1(e,n,t[n]);if(Hm)for(var n of Hm(t))N_.call(t,n)&&Q1(e,n,t[n]);return e},st=(e,t)=>TU(e,$U(t));var Ft=(e,t)=>{var n={};for(var r in e)F_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Hm)for(var r of Hm(e))t.indexOf(r)<0&&N_.call(e,r)&&(n[r]=e[r]);return n};var yi=(e,t,n)=>(Q1(e,typeof t!="symbol"?t+"":t,n),n);var ot=(e,t,n)=>new Promise((r,o)=>{var s=a=>{try{l(n.next(a))}catch(u){o(u)}},i=a=>{try{l(n.throw(a))}catch(u){o(u)}},l=a=>a.done?r(a.value):Promise.resolve(a.value).then(s,i);l((n=n.apply(e,t)).next())}),RU=function(e,t){this[0]=e,this[1]=t};var Ae=e=>{var t=e[Y1("asyncIterator")],n=!1,r,o={};return t==null?(t=e[Y1("iterator")](),r=s=>o[s]=i=>t[s](i)):(t=t.call(e),r=s=>o[s]=i=>{if(n){if(n=!1,s==="throw")throw i;return i}return n=!0,{done:!1,value:new RU(new Promise(l=>{var a=t[s](i);if(!(a instanceof Object))throw TypeError("Object expected");l(a)}),1)}}),o[Y1("iterator")]=()=>o,r("next"),"throw"in t?r("throw"):o.throw=s=>{throw s},"return"in t&&r("return"),o};function OU(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var sn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function di(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cA(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var uA={exports:{}},Ut={};/**
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 Eh=Symbol.for("react.element"),DU=Symbol.for("react.portal"),AU=Symbol.for("react.fragment"),LU=Symbol.for("react.strict_mode"),FU=Symbol.for("react.profiler"),NU=Symbol.for("react.provider"),BU=Symbol.for("react.context"),zU=Symbol.for("react.forward_ref"),VU=Symbol.for("react.suspense"),jU=Symbol.for("react.memo"),HU=Symbol.for("react.lazy"),B_=Symbol.iterator;function UU(e){return e===null||typeof e!="object"?null:(e=B_&&e[B_]||e["@@iterator"],typeof e=="function"?e:null)}var dA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fA=Object.assign,pA={};function Fd(e,t,n){this.props=e,this.context=t,this.refs=pA,this.updater=n||dA}Fd.prototype.isReactComponent={};Fd.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")};Fd.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function hA(){}hA.prototype=Fd.prototype;function AS(e,t,n){this.props=e,this.context=t,this.refs=pA,this.updater=n||dA}var LS=AS.prototype=new hA;LS.constructor=AS;fA(LS,Fd.prototype);LS.isPureReactComponent=!0;var z_=Array.isArray,mA=Object.prototype.hasOwnProperty,FS={current:null},gA={key:!0,ref:!0,__self:!0,__source:!0};function vA(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)mA.call(t,r)&&!gA.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];o.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Eh,type:e,key:s,ref:i,props:o,_owner:FS.current}}function WU(e,t){return{$$typeof:Eh,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function NS(e){return typeof e=="object"&&e!==null&&e.$$typeof===Eh}function GU(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var V_=/\/+/g;function X1(e,t){return typeof e=="object"&&e!==null&&e.key!=null?GU(""+e.key):t.toString(36)}function $g(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Eh:case DU:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+X1(i,0):r,z_(o)?(n="",e!=null&&(n=e.replace(V_,"$&/")+"/"),$g(o,t,n,"",function(u){return u})):o!=null&&(NS(o)&&(o=WU(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(V_,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",z_(e))for(var l=0;l<e.length;l++){s=e[l];var a=r+X1(s,l);i+=$g(s,t,n,a,o)}else if(a=UU(e),typeof a=="function")for(e=a.call(e),l=0;!(s=e.next()).done;)s=s.value,a=r+X1(s,l++),i+=$g(s,t,n,a,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Um(e,t,n){if(e==null)return e;var r=[],o=0;return $g(e,r,"","",function(s){return t.call(n,s,o++)}),r}function KU(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 fo={current:null},Rg={transition:null},qU={ReactCurrentDispatcher:fo,ReactCurrentBatchConfig:Rg,ReactCurrentOwner:FS};Ut.Children={map:Um,forEach:function(e,t,n){Um(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Um(e,function(){t++}),t},toArray:function(e){return Um(e,function(t){return t})||[]},only:function(e){if(!NS(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ut.Component=Fd;Ut.Fragment=AU;Ut.Profiler=FU;Ut.PureComponent=AS;Ut.StrictMode=LU;Ut.Suspense=VU;Ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qU;Ut.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=fA({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=FS.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)mA.call(t,a)&&!gA.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Eh,type:e.type,key:o,ref:s,props:r,_owner:i}};Ut.createContext=function(e){return e={$$typeof:BU,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:NU,_context:e},e.Consumer=e};Ut.createElement=vA;Ut.createFactory=function(e){var t=vA.bind(null,e);return t.type=e,t};Ut.createRef=function(){return{current:null}};Ut.forwardRef=function(e){return{$$typeof:zU,render:e}};Ut.isValidElement=NS;Ut.lazy=function(e){return{$$typeof:HU,_payload:{_status:-1,_result:e},_init:KU}};Ut.memo=function(e,t){return{$$typeof:jU,type:e,compare:t===void 0?null:t}};Ut.startTransition=function(e){var t=Rg.transition;Rg.transition={};try{e()}finally{Rg.transition=t}};Ut.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Ut.useCallback=function(e,t){return fo.current.useCallback(e,t)};Ut.useContext=function(e){return fo.current.useContext(e)};Ut.useDebugValue=function(){};Ut.useDeferredValue=function(e){return fo.current.useDeferredValue(e)};Ut.useEffect=function(e,t){return fo.current.useEffect(e,t)};Ut.useId=function(){return fo.current.useId()};Ut.useImperativeHandle=function(e,t,n){return fo.current.useImperativeHandle(e,t,n)};Ut.useInsertionEffect=function(e,t){return fo.current.useInsertionEffect(e,t)};Ut.useLayoutEffect=function(e,t){return fo.current.useLayoutEffect(e,t)};Ut.useMemo=function(e,t){return fo.current.useMemo(e,t)};Ut.useReducer=function(e,t,n){return fo.current.useReducer(e,t,n)};Ut.useRef=function(e){return fo.current.useRef(e)};Ut.useState=function(e){return fo.current.useState(e)};Ut.useSyncExternalStore=function(e,t,n){return fo.current.useSyncExternalStore(e,t,n)};Ut.useTransition=function(){return fo.current.useTransition()};Ut.version="18.2.0";uA.exports=Ut;var c=uA.exports;const co=di(c),wc=OU({__proto__:null,default:co},[c]);var yA={exports:{}},os={},bA={exports:{}},wA={};/**
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(O,N){var H=O.length;O.push(N);e:for(;0<H;){var K=H-1>>>1,Q=O[K];if(0<o(Q,N))O[K]=N,O[H]=Q,H=K;else break e}}function n(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var N=O[0],H=O.pop();if(H!==N){O[0]=H;e:for(var K=0,Q=O.length,J=Q>>>1;K<J;){var Y=2*(K+1)-1,X=O[Y],ee=Y+1,se=O[ee];if(0>o(X,H))ee<Q&&0>o(se,X)?(O[K]=se,O[ee]=H,K=ee):(O[K]=X,O[Y]=H,K=Y);else if(ee<Q&&0>o(se,H))O[K]=se,O[ee]=H,K=ee;else break e}}return N}function o(O,N){var H=O.sortIndex-N.sortIndex;return H!==0?H:O.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var a=[],u=[],f=1,p=null,m=3,v=!1,y=!1,g=!1,C=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(O){for(var N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=O)r(u),N.sortIndex=N.expirationTime,t(a,N);else break;N=n(u)}}function k(O){if(g=!1,S(O),!y)if(n(a)!==null)y=!0,F(M);else{var N=n(u);N!==null&&B(k,N.startTime-O)}}function M(O,N){y=!1,g&&(g=!1,b(R),R=-1),v=!0;var H=m;try{for(S(N),p=n(a);p!==null&&(!(p.expirationTime>N)||O&&!L());){var K=p.callback;if(typeof K=="function"){p.callback=null,m=p.priorityLevel;var Q=K(p.expirationTime<=N);N=e.unstable_now(),typeof Q=="function"?p.callback=Q:p===n(a)&&r(a),S(N)}else r(a);p=n(a)}if(p!==null)var J=!0;else{var Y=n(u);Y!==null&&B(k,Y.startTime-N),J=!1}return J}finally{p=null,m=H,v=!1}}var E=!1,I=null,R=-1,A=5,$=-1;function L(){return!(e.unstable_now()-$<A)}function V(){if(I!==null){var O=e.unstable_now();$=O;var N=!0;try{N=I(!0,O)}finally{N?j():(E=!1,I=null)}}else E=!1}var j;if(typeof w=="function")j=function(){w(V)};else if(typeof MessageChannel!="undefined"){var _=new MessageChannel,T=_.port2;_.port1.onmessage=V,j=function(){T.postMessage(null)}}else j=function(){C(V,0)};function F(O){I=O,E||(E=!0,j())}function B(O,N){R=C(function(){O(e.unstable_now())},N)}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(O){O.callback=null},e.unstable_continueExecution=function(){y||v||(y=!0,F(M))},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(O){switch(m){case 1:case 2:case 3:var N=3;break;default:N=m}var H=m;m=N;try{return O()}finally{m=H}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(O,N){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var H=m;m=O;try{return N()}finally{m=H}},e.unstable_scheduleCallback=function(O,N,H){var K=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?K+H:K):H=K,O){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=H+Q,O={id:f++,callback:N,priorityLevel:O,startTime:H,expirationTime:Q,sortIndex:-1},H>K?(O.sortIndex=H,t(u,O),n(a)===null&&O===n(u)&&(g?(b(R),R=-1):g=!0,B(k,H-K))):(O.sortIndex=Q,t(a,O),y||v||(y=!0,F(M))),O},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(O){var N=m;return function(){var H=m;m=N;try{return O.apply(this,arguments)}finally{m=H}}}})(wA);bA.exports=wA;var YU=bA.exports;/**
18
+ * @license React
19
+ * react-dom.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var CA=c,Zo=YU;function He(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var xA=new Set,Lp={};function Nc(e,t){dd(e,t),dd(e+"Capture",t)}function dd(e,t){for(Lp[e]=t,e=0;e<t.length;e++)xA.add(t[e])}var gl=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),EC=Object.prototype.hasOwnProperty,QU=/^[: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]*$/,j_={},H_={};function XU(e){return EC.call(H_,e)?!0:EC.call(j_,e)?!1:QU.test(e)?H_[e]=!0:(j_[e]=!0,!1)}function ZU(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 JU(e,t,n,r){if(t===null||typeof t=="undefined"||ZU(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 po(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var Fr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Fr[e]=new po(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Fr[t]=new po(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Fr[e]=new po(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Fr[e]=new po(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){Fr[e]=new po(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Fr[e]=new po(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Fr[e]=new po(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Fr[e]=new po(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Fr[e]=new po(e,5,!1,e.toLowerCase(),null,!1,!1)});var BS=/[\-:]([a-z])/g;function zS(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(BS,zS);Fr[t]=new po(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(BS,zS);Fr[t]=new po(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(BS,zS);Fr[t]=new po(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Fr[e]=new po(e,1,!1,e.toLowerCase(),null,!1,!1)});Fr.xlinkHref=new po("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Fr[e]=new po(e,1,!1,e.toLowerCase(),null,!0,!0)});function VS(e,t,n,r){var o=Fr.hasOwnProperty(t)?Fr[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(JU(t,n,o,r)&&(n=null),r||o===null?XU(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 kl=CA.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Wm=Symbol.for("react.element"),Tu=Symbol.for("react.portal"),$u=Symbol.for("react.fragment"),jS=Symbol.for("react.strict_mode"),IC=Symbol.for("react.profiler"),SA=Symbol.for("react.provider"),PA=Symbol.for("react.context"),HS=Symbol.for("react.forward_ref"),MC=Symbol.for("react.suspense"),_C=Symbol.for("react.suspense_list"),US=Symbol.for("react.memo"),Ql=Symbol.for("react.lazy"),kA=Symbol.for("react.offscreen"),U_=Symbol.iterator;function _f(e){return e===null||typeof e!="object"?null:(e=U_&&e[U_]||e["@@iterator"],typeof e=="function"?e:null)}var Hn=Object.assign,Z1;function Jf(e){if(Z1===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Z1=t&&t[1]||""}return`
26
+ `+Z1+e}var J1=!1;function ew(e,t){if(!e||J1)return"";J1=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
27
+ `),s=r.stack.split(`
28
+ `),i=o.length-1,l=s.length-1;1<=i&&0<=l&&o[i]!==s[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==s[l]){if(i!==1||l!==1)do if(i--,l--,0>l||o[i]!==s[l]){var a=`
29
+ `+o[i].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=i&&0<=l);break}}}finally{J1=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Jf(e):""}function eW(e){switch(e.tag){case 5:return Jf(e.type);case 16:return Jf("Lazy");case 13:return Jf("Suspense");case 19:return Jf("SuspenseList");case 0:case 2:case 15:return e=ew(e.type,!1),e;case 11:return e=ew(e.type.render,!1),e;case 1:return e=ew(e.type,!0),e;default:return""}}function TC(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 $u:return"Fragment";case Tu:return"Portal";case IC:return"Profiler";case jS:return"StrictMode";case MC:return"Suspense";case _C:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case PA:return(e.displayName||"Context")+".Consumer";case SA:return(e._context.displayName||"Context")+".Provider";case HS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case US:return t=e.displayName||null,t!==null?t:TC(e.type)||"Memo";case Ql:t=e._payload,e=e._init;try{return TC(e(t))}catch(n){}}return null}function tW(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 TC(t);case 8:return t===jS?"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 Sa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function EA(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nW(e){var t=EA(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Gm(e){e._valueTracker||(e._valueTracker=nW(e))}function IA(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=EA(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function iv(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 $C(e,t){var n=t.checked;return Hn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function W_(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Sa(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 MA(e,t){t=t.checked,t!=null&&VS(e,"checked",t,!1)}function RC(e,t){MA(e,t);var n=Sa(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")?OC(e,t.type,n):t.hasOwnProperty("defaultValue")&&OC(e,t.type,Sa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function G_(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 OC(e,t,n){(t!=="number"||iv(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ep=Array.isArray;function Yu(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=""+Sa(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 DC(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(He(91));return Hn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function K_(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(He(92));if(ep(n)){if(1<n.length)throw Error(He(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Sa(n)}}function _A(e,t){var n=Sa(t.value),r=Sa(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 q_(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function TA(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 AC(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?TA(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Km,$A=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(Km=Km||document.createElement("div"),Km.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Km.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fp(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hp={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},rW=["Webkit","ms","Moz","O"];Object.keys(hp).forEach(function(e){rW.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hp[t]=hp[e]})});function RA(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||hp.hasOwnProperty(e)&&hp[e]?(""+t).trim():t+"px"}function OA(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=RA(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var oW=Hn({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 LC(e,t){if(t){if(oW[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(He(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(He(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(He(61))}if(t.style!=null&&typeof t.style!="object")throw Error(He(62))}}function FC(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 NC=null;function WS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var BC=null,Qu=null,Xu=null;function Y_(e){if(e=_h(e)){if(typeof BC!="function")throw Error(He(280));var t=e.stateNode;t&&(t=ky(t),BC(e.stateNode,e.type,t))}}function DA(e){Qu?Xu?Xu.push(e):Xu=[e]:Qu=e}function AA(){if(Qu){var e=Qu,t=Xu;if(Xu=Qu=null,Y_(e),t)for(e=0;e<t.length;e++)Y_(t[e])}}function LA(e,t){return e(t)}function FA(){}var tw=!1;function NA(e,t,n){if(tw)return e(t,n);tw=!0;try{return LA(e,t,n)}finally{tw=!1,(Qu!==null||Xu!==null)&&(FA(),AA())}}function Np(e,t){var n=e.stateNode;if(n===null)return null;var r=ky(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(He(231,t,typeof n));return n}var zC=!1;if(gl)try{var Tf={};Object.defineProperty(Tf,"passive",{get:function(){zC=!0}}),window.addEventListener("test",Tf,Tf),window.removeEventListener("test",Tf,Tf)}catch(e){zC=!1}function sW(e,t,n,r,o,s,i,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var mp=!1,lv=null,av=!1,VC=null,iW={onError:function(e){mp=!0,lv=e}};function lW(e,t,n,r,o,s,i,l,a){mp=!1,lv=null,sW.apply(iW,arguments)}function aW(e,t,n,r,o,s,i,l,a){if(lW.apply(this,arguments),mp){if(mp){var u=lv;mp=!1,lv=null}else throw Error(He(198));av||(av=!0,VC=u)}}function Bc(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 BA(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 Q_(e){if(Bc(e)!==e)throw Error(He(188))}function cW(e){var t=e.alternate;if(!t){if(t=Bc(e),t===null)throw Error(He(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return Q_(o),e;if(s===r)return Q_(o),t;s=s.sibling}throw Error(He(188))}if(n.return!==r.return)n=o,r=s;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=s;break}if(l===r){i=!0,r=o,n=s;break}l=l.sibling}if(!i){for(l=s.child;l;){if(l===n){i=!0,n=s,r=o;break}if(l===r){i=!0,r=s,n=o;break}l=l.sibling}if(!i)throw Error(He(189))}}if(n.alternate!==r)throw Error(He(190))}if(n.tag!==3)throw Error(He(188));return n.stateNode.current===n?e:t}function zA(e){return e=cW(e),e!==null?VA(e):null}function VA(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=VA(e);if(t!==null)return t;e=e.sibling}return null}var jA=Zo.unstable_scheduleCallback,X_=Zo.unstable_cancelCallback,uW=Zo.unstable_shouldYield,dW=Zo.unstable_requestPaint,tr=Zo.unstable_now,fW=Zo.unstable_getCurrentPriorityLevel,GS=Zo.unstable_ImmediatePriority,HA=Zo.unstable_UserBlockingPriority,cv=Zo.unstable_NormalPriority,pW=Zo.unstable_LowPriority,UA=Zo.unstable_IdlePriority,Cy=null,Mi=null;function hW(e){if(Mi&&typeof Mi.onCommitFiberRoot=="function")try{Mi.onCommitFiberRoot(Cy,e,void 0,(e.current.flags&128)===128)}catch(t){}}var si=Math.clz32?Math.clz32:vW,mW=Math.log,gW=Math.LN2;function vW(e){return e>>>=0,e===0?32:31-(mW(e)/gW|0)|0}var qm=64,Ym=4194304;function tp(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 uv(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~o;l!==0?r=tp(l):(s&=i,s!==0&&(r=tp(s)))}else i=n&~o,i!==0?r=tp(i):s!==0&&(r=tp(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-si(t),o=1<<n,r|=e[n],t&=~o;return r}function yW(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 bW(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-si(s),l=1<<i,a=o[i];a===-1?(!(l&n)||l&r)&&(o[i]=yW(l,t)):a<=t&&(e.expiredLanes|=l),s&=~l}}function jC(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function WA(){var e=qm;return qm<<=1,!(qm&4194240)&&(qm=64),e}function nw(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ih(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-si(t),e[t]=n}function wW(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-si(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function KS(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-si(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var dn=0;function GA(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var KA,qS,qA,YA,QA,HC=!1,Qm=[],da=null,fa=null,pa=null,Bp=new Map,zp=new Map,ta=[],CW="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 Z_(e,t){switch(e){case"focusin":case"focusout":da=null;break;case"dragenter":case"dragleave":fa=null;break;case"mouseover":case"mouseout":pa=null;break;case"pointerover":case"pointerout":Bp.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zp.delete(t.pointerId)}}function $f(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=_h(t),t!==null&&qS(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function xW(e,t,n,r,o){switch(t){case"focusin":return da=$f(da,e,t,n,r,o),!0;case"dragenter":return fa=$f(fa,e,t,n,r,o),!0;case"mouseover":return pa=$f(pa,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return Bp.set(s,$f(Bp.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,zp.set(s,$f(zp.get(s)||null,e,t,n,r,o)),!0}return!1}function XA(e){var t=sc(e.target);if(t!==null){var n=Bc(t);if(n!==null){if(t=n.tag,t===13){if(t=BA(n),t!==null){e.blockedOn=t,QA(e.priority,function(){qA(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 Og(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=UC(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);NC=r,n.target.dispatchEvent(r),NC=null}else return t=_h(n),t!==null&&qS(t),e.blockedOn=n,!1;t.shift()}return!0}function J_(e,t,n){Og(e)&&n.delete(t)}function SW(){HC=!1,da!==null&&Og(da)&&(da=null),fa!==null&&Og(fa)&&(fa=null),pa!==null&&Og(pa)&&(pa=null),Bp.forEach(J_),zp.forEach(J_)}function Rf(e,t){e.blockedOn===t&&(e.blockedOn=null,HC||(HC=!0,Zo.unstable_scheduleCallback(Zo.unstable_NormalPriority,SW)))}function Vp(e){function t(o){return Rf(o,e)}if(0<Qm.length){Rf(Qm[0],e);for(var n=1;n<Qm.length;n++){var r=Qm[n];r.blockedOn===e&&(r.blockedOn=null)}}for(da!==null&&Rf(da,e),fa!==null&&Rf(fa,e),pa!==null&&Rf(pa,e),Bp.forEach(t),zp.forEach(t),n=0;n<ta.length;n++)r=ta[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ta.length&&(n=ta[0],n.blockedOn===null);)XA(n),n.blockedOn===null&&ta.shift()}var Zu=kl.ReactCurrentBatchConfig,dv=!0;function PW(e,t,n,r){var o=dn,s=Zu.transition;Zu.transition=null;try{dn=1,YS(e,t,n,r)}finally{dn=o,Zu.transition=s}}function kW(e,t,n,r){var o=dn,s=Zu.transition;Zu.transition=null;try{dn=4,YS(e,t,n,r)}finally{dn=o,Zu.transition=s}}function YS(e,t,n,r){if(dv){var o=UC(e,t,n,r);if(o===null)fw(e,t,r,fv,n),Z_(e,r);else if(xW(o,e,t,n,r))r.stopPropagation();else if(Z_(e,r),t&4&&-1<CW.indexOf(e)){for(;o!==null;){var s=_h(o);if(s!==null&&KA(s),s=UC(e,t,n,r),s===null&&fw(e,t,r,fv,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else fw(e,t,r,null,n)}}var fv=null;function UC(e,t,n,r){if(fv=null,e=WS(r),e=sc(e),e!==null)if(t=Bc(e),t===null)e=null;else if(n=t.tag,n===13){if(e=BA(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 fv=e,null}function ZA(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(fW()){case GS:return 1;case HA:return 4;case cv:case pW:return 16;case UA:return 536870912;default:return 16}default:return 16}}var oa=null,QS=null,Dg=null;function JA(){if(Dg)return Dg;var e,t=QS,n=t.length,r,o="value"in oa?oa.value:oa.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[s-r];r++);return Dg=o.slice(e,1<r?1-r:void 0)}function Ag(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 Xm(){return!0}function eT(){return!1}function ss(e){function t(n,r,o,s,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Xm:eT,this.isPropagationStopped=eT,this}return Hn(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=Xm)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Xm)},persist:function(){},isPersistent:Xm}),t}var Nd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},XS=ss(Nd),Mh=Hn({},Nd,{view:0,detail:0}),EW=ss(Mh),rw,ow,Of,xy=Hn({},Mh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ZS,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!==Of&&(Of&&e.type==="mousemove"?(rw=e.screenX-Of.screenX,ow=e.screenY-Of.screenY):ow=rw=0,Of=e),rw)},movementY:function(e){return"movementY"in e?e.movementY:ow}}),tT=ss(xy),IW=Hn({},xy,{dataTransfer:0}),MW=ss(IW),_W=Hn({},Mh,{relatedTarget:0}),sw=ss(_W),TW=Hn({},Nd,{animationName:0,elapsedTime:0,pseudoElement:0}),$W=ss(TW),RW=Hn({},Nd,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),OW=ss(RW),DW=Hn({},Nd,{data:0}),nT=ss(DW),AW={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},LW={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"},FW={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function NW(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=FW[e])?!!t[e]:!1}function ZS(){return NW}var BW=Hn({},Mh,{key:function(e){if(e.key){var t=AW[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ag(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?LW[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ZS,charCode:function(e){return e.type==="keypress"?Ag(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ag(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),zW=ss(BW),VW=Hn({},xy,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rT=ss(VW),jW=Hn({},Mh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ZS}),HW=ss(jW),UW=Hn({},Nd,{propertyName:0,elapsedTime:0,pseudoElement:0}),WW=ss(UW),GW=Hn({},xy,{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}),KW=ss(GW),qW=[9,13,27,32],JS=gl&&"CompositionEvent"in window,gp=null;gl&&"documentMode"in document&&(gp=document.documentMode);var YW=gl&&"TextEvent"in window&&!gp,eL=gl&&(!JS||gp&&8<gp&&11>=gp),oT=String.fromCharCode(32),sT=!1;function tL(e,t){switch(e){case"keyup":return qW.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nL(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ru=!1;function QW(e,t){switch(e){case"compositionend":return nL(t);case"keypress":return t.which!==32?null:(sT=!0,oT);case"textInput":return e=t.data,e===oT&&sT?null:e;default:return null}}function XW(e,t){if(Ru)return e==="compositionend"||!JS&&tL(e,t)?(e=JA(),Dg=QS=oa=null,Ru=!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 eL&&t.locale!=="ko"?null:t.data;default:return null}}var ZW={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 iT(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ZW[e.type]:t==="textarea"}function rL(e,t,n,r){DA(r),t=pv(t,"onChange"),0<t.length&&(n=new XS("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var vp=null,jp=null;function JW(e){hL(e,0)}function Sy(e){var t=Au(e);if(IA(t))return e}function eG(e,t){if(e==="change")return t}var oL=!1;if(gl){var iw;if(gl){var lw="oninput"in document;if(!lw){var lT=document.createElement("div");lT.setAttribute("oninput","return;"),lw=typeof lT.oninput=="function"}iw=lw}else iw=!1;oL=iw&&(!document.documentMode||9<document.documentMode)}function aT(){vp&&(vp.detachEvent("onpropertychange",sL),jp=vp=null)}function sL(e){if(e.propertyName==="value"&&Sy(jp)){var t=[];rL(t,jp,e,WS(e)),NA(JW,t)}}function tG(e,t,n){e==="focusin"?(aT(),vp=t,jp=n,vp.attachEvent("onpropertychange",sL)):e==="focusout"&&aT()}function nG(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Sy(jp)}function rG(e,t){if(e==="click")return Sy(t)}function oG(e,t){if(e==="input"||e==="change")return Sy(t)}function sG(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ci=typeof Object.is=="function"?Object.is:sG;function Hp(e,t){if(ci(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(!EC.call(t,o)||!ci(e[o],t[o]))return!1}return!0}function cT(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function uT(e,t){var n=cT(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=cT(n)}}function iL(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?iL(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lL(){for(var e=window,t=iv();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=iv(e.document)}return t}function eP(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 iG(e){var t=lL(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&iL(n.ownerDocument.documentElement,n)){if(r!==null&&eP(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=uT(n,s);var i=uT(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var lG=gl&&"documentMode"in document&&11>=document.documentMode,Ou=null,WC=null,yp=null,GC=!1;function dT(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;GC||Ou==null||Ou!==iv(r)||(r=Ou,"selectionStart"in r&&eP(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}),yp&&Hp(yp,r)||(yp=r,r=pv(WC,"onSelect"),0<r.length&&(t=new XS("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ou)))}function Zm(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Du={animationend:Zm("Animation","AnimationEnd"),animationiteration:Zm("Animation","AnimationIteration"),animationstart:Zm("Animation","AnimationStart"),transitionend:Zm("Transition","TransitionEnd")},aw={},aL={};gl&&(aL=document.createElement("div").style,"AnimationEvent"in window||(delete Du.animationend.animation,delete Du.animationiteration.animation,delete Du.animationstart.animation),"TransitionEvent"in window||delete Du.transitionend.transition);function Py(e){if(aw[e])return aw[e];if(!Du[e])return e;var t=Du[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in aL)return aw[e]=t[n];return e}var cL=Py("animationend"),uL=Py("animationiteration"),dL=Py("animationstart"),fL=Py("transitionend"),pL=new Map,fT="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 Ra(e,t){pL.set(e,t),Nc(t,[e])}for(var cw=0;cw<fT.length;cw++){var uw=fT[cw],aG=uw.toLowerCase(),cG=uw[0].toUpperCase()+uw.slice(1);Ra(aG,"on"+cG)}Ra(cL,"onAnimationEnd");Ra(uL,"onAnimationIteration");Ra(dL,"onAnimationStart");Ra("dblclick","onDoubleClick");Ra("focusin","onFocus");Ra("focusout","onBlur");Ra(fL,"onTransitionEnd");dd("onMouseEnter",["mouseout","mouseover"]);dd("onMouseLeave",["mouseout","mouseover"]);dd("onPointerEnter",["pointerout","pointerover"]);dd("onPointerLeave",["pointerout","pointerover"]);Nc("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Nc("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Nc("onBeforeInput",["compositionend","keypress","textInput","paste"]);Nc("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Nc("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Nc("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var np="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(" "),uG=new Set("cancel close invalid load scroll toggle".split(" ").concat(np));function pT(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,aW(r,t,void 0,e),e.currentTarget=null}function hL(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==s&&o.isPropagationStopped())break e;pT(o,l,u),s=a}else for(i=0;i<r.length;i++){if(l=r[i],a=l.instance,u=l.currentTarget,l=l.listener,a!==s&&o.isPropagationStopped())break e;pT(o,l,u),s=a}}}if(av)throw e=VC,av=!1,VC=null,e}function En(e,t){var n=t[XC];n===void 0&&(n=t[XC]=new Set);var r=e+"__bubble";n.has(r)||(mL(t,e,2,!1),n.add(r))}function dw(e,t,n){var r=0;t&&(r|=4),mL(n,e,r,t)}var Jm="_reactListening"+Math.random().toString(36).slice(2);function Up(e){if(!e[Jm]){e[Jm]=!0,xA.forEach(function(n){n!=="selectionchange"&&(uG.has(n)||dw(n,!1,e),dw(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Jm]||(t[Jm]=!0,dw("selectionchange",!1,t))}}function mL(e,t,n,r){switch(ZA(t)){case 1:var o=PW;break;case 4:o=kW;break;default:o=YS}n=o.bind(null,t,n,e),o=void 0,!zC||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 fw(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var a=i.tag;if((a===3||a===4)&&(a=i.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;i=i.return}for(;l!==null;){if(i=sc(l),i===null)return;if(a=i.tag,a===5||a===6){r=s=i;continue e}l=l.parentNode}}r=r.return}NA(function(){var u=s,f=WS(n),p=[];e:{var m=pL.get(e);if(m!==void 0){var v=XS,y=e;switch(e){case"keypress":if(Ag(n)===0)break e;case"keydown":case"keyup":v=zW;break;case"focusin":y="focus",v=sw;break;case"focusout":y="blur",v=sw;break;case"beforeblur":case"afterblur":v=sw;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=tT;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=MW;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=HW;break;case cL:case uL:case dL:v=$W;break;case fL:v=WW;break;case"scroll":v=EW;break;case"wheel":v=KW;break;case"copy":case"cut":case"paste":v=OW;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=rT}var g=(t&4)!==0,C=!g&&e==="scroll",b=g?m!==null?m+"Capture":null:m;g=[];for(var w=u,S;w!==null;){S=w;var k=S.stateNode;if(S.tag===5&&k!==null&&(S=k,b!==null&&(k=Np(w,b),k!=null&&g.push(Wp(w,k,S)))),C)break;w=w.return}0<g.length&&(m=new v(m,y,null,n,f),p.push({event:m,listeners:g}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",m&&n!==NC&&(y=n.relatedTarget||n.fromElement)&&(sc(y)||y[vl]))break e;if((v||m)&&(m=f.window===f?f:(m=f.ownerDocument)?m.defaultView||m.parentWindow:window,v?(y=n.relatedTarget||n.toElement,v=u,y=y?sc(y):null,y!==null&&(C=Bc(y),y!==C||y.tag!==5&&y.tag!==6)&&(y=null)):(v=null,y=u),v!==y)){if(g=tT,k="onMouseLeave",b="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(g=rT,k="onPointerLeave",b="onPointerEnter",w="pointer"),C=v==null?m:Au(v),S=y==null?m:Au(y),m=new g(k,w+"leave",v,n,f),m.target=C,m.relatedTarget=S,k=null,sc(f)===u&&(g=new g(b,w+"enter",y,n,f),g.target=S,g.relatedTarget=C,k=g),C=k,v&&y)t:{for(g=v,b=y,w=0,S=g;S;S=lu(S))w++;for(S=0,k=b;k;k=lu(k))S++;for(;0<w-S;)g=lu(g),w--;for(;0<S-w;)b=lu(b),S--;for(;w--;){if(g===b||b!==null&&g===b.alternate)break t;g=lu(g),b=lu(b)}g=null}else g=null;v!==null&&hT(p,m,v,g,!1),y!==null&&C!==null&&hT(p,C,y,g,!0)}}e:{if(m=u?Au(u):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var M=eG;else if(iT(m))if(oL)M=oG;else{M=nG;var E=tG}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(M=rG);if(M&&(M=M(e,u))){rL(p,M,n,f);break e}E&&E(e,m,u),e==="focusout"&&(E=m._wrapperState)&&E.controlled&&m.type==="number"&&OC(m,"number",m.value)}switch(E=u?Au(u):window,e){case"focusin":(iT(E)||E.contentEditable==="true")&&(Ou=E,WC=u,yp=null);break;case"focusout":yp=WC=Ou=null;break;case"mousedown":GC=!0;break;case"contextmenu":case"mouseup":case"dragend":GC=!1,dT(p,n,f);break;case"selectionchange":if(lG)break;case"keydown":case"keyup":dT(p,n,f)}var I;if(JS)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Ru?tL(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(eL&&n.locale!=="ko"&&(Ru||R!=="onCompositionStart"?R==="onCompositionEnd"&&Ru&&(I=JA()):(oa=f,QS="value"in oa?oa.value:oa.textContent,Ru=!0)),E=pv(u,R),0<E.length&&(R=new nT(R,e,null,n,f),p.push({event:R,listeners:E}),I?R.data=I:(I=nL(n),I!==null&&(R.data=I)))),(I=YW?QW(e,n):XW(e,n))&&(u=pv(u,"onBeforeInput"),0<u.length&&(f=new nT("onBeforeInput","beforeinput",null,n,f),p.push({event:f,listeners:u}),f.data=I))}hL(p,t)})}function Wp(e,t,n){return{instance:e,listener:t,currentTarget:n}}function pv(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=Np(e,n),s!=null&&r.unshift(Wp(e,s,o)),s=Np(e,t),s!=null&&r.push(Wp(e,s,o))),e=e.return}return r}function lu(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function hT(e,t,n,r,o){for(var s=t._reactName,i=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,o?(a=Np(n,s),a!=null&&i.unshift(Wp(n,a,l))):o||(a=Np(n,s),a!=null&&i.push(Wp(n,a,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var dG=/\r\n?/g,fG=/\u0000|\uFFFD/g;function mT(e){return(typeof e=="string"?e:""+e).replace(dG,`
30
+ `).replace(fG,"")}function eg(e,t,n){if(t=mT(t),mT(e)!==t&&n)throw Error(He(425))}function hv(){}var KC=null,qC=null;function YC(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 QC=typeof setTimeout=="function"?setTimeout:void 0,pG=typeof clearTimeout=="function"?clearTimeout:void 0,gT=typeof Promise=="function"?Promise:void 0,hG=typeof queueMicrotask=="function"?queueMicrotask:typeof gT!="undefined"?function(e){return gT.resolve(null).then(e).catch(mG)}:QC;function mG(e){setTimeout(function(){throw e})}function pw(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),Vp(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Vp(t)}function ha(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 vT(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 Bd=Math.random().toString(36).slice(2),Ei="__reactFiber$"+Bd,Gp="__reactProps$"+Bd,vl="__reactContainer$"+Bd,XC="__reactEvents$"+Bd,gG="__reactListeners$"+Bd,vG="__reactHandles$"+Bd;function sc(e){var t=e[Ei];if(t)return t;for(var n=e.parentNode;n;){if(t=n[vl]||n[Ei]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vT(e);e!==null;){if(n=e[Ei])return n;e=vT(e)}return t}e=n,n=e.parentNode}return null}function _h(e){return e=e[Ei]||e[vl],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Au(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(He(33))}function ky(e){return e[Gp]||null}var ZC=[],Lu=-1;function Oa(e){return{current:e}}function Mn(e){0>Lu||(e.current=ZC[Lu],ZC[Lu]=null,Lu--)}function xn(e,t){Lu++,ZC[Lu]=e.current,e.current=t}var Pa={},Zr=Oa(Pa),ko=Oa(!1),Cc=Pa;function fd(e,t){var n=e.type.contextTypes;if(!n)return Pa;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Eo(e){return e=e.childContextTypes,e!=null}function mv(){Mn(ko),Mn(Zr)}function yT(e,t,n){if(Zr.current!==Pa)throw Error(He(168));xn(Zr,t),xn(ko,n)}function gL(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(He(108,tW(e)||"Unknown",o));return Hn({},n,r)}function gv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pa,Cc=Zr.current,xn(Zr,e),xn(ko,ko.current),!0}function bT(e,t,n){var r=e.stateNode;if(!r)throw Error(He(169));n?(e=gL(e,t,Cc),r.__reactInternalMemoizedMergedChildContext=e,Mn(ko),Mn(Zr),xn(Zr,e)):Mn(ko),xn(ko,n)}var sl=null,Ey=!1,hw=!1;function vL(e){sl===null?sl=[e]:sl.push(e)}function yG(e){Ey=!0,vL(e)}function Da(){if(!hw&&sl!==null){hw=!0;var e=0,t=dn;try{var n=sl;for(dn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}sl=null,Ey=!1}catch(o){throw sl!==null&&(sl=sl.slice(e+1)),jA(GS,Da),o}finally{dn=t,hw=!1}}return null}var Fu=[],Nu=0,vv=null,yv=0,ks=[],Es=0,xc=null,cl=1,ul="";function ec(e,t){Fu[Nu++]=yv,Fu[Nu++]=vv,vv=e,yv=t}function yL(e,t,n){ks[Es++]=cl,ks[Es++]=ul,ks[Es++]=xc,xc=e;var r=cl;e=ul;var o=32-si(r)-1;r&=~(1<<o),n+=1;var s=32-si(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,cl=1<<32-si(t)+o|n<<o|r,ul=s+e}else cl=1<<s|n<<o|r,ul=e}function tP(e){e.return!==null&&(ec(e,1),yL(e,1,0))}function nP(e){for(;e===vv;)vv=Fu[--Nu],Fu[Nu]=null,yv=Fu[--Nu],Fu[Nu]=null;for(;e===xc;)xc=ks[--Es],ks[Es]=null,ul=ks[--Es],ks[Es]=null,cl=ks[--Es],ks[Es]=null}var qo=null,Ko=null,An=!1,Js=null;function bL(e,t){var n=Ms(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 wT(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,qo=e,Ko=ha(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,qo=e,Ko=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=xc!==null?{id:cl,overflow:ul}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ms(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,qo=e,Ko=null,!0):!1;default:return!1}}function JC(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ex(e){if(An){var t=Ko;if(t){var n=t;if(!wT(e,t)){if(JC(e))throw Error(He(418));t=ha(n.nextSibling);var r=qo;t&&wT(e,t)?bL(r,n):(e.flags=e.flags&-4097|2,An=!1,qo=e)}}else{if(JC(e))throw Error(He(418));e.flags=e.flags&-4097|2,An=!1,qo=e}}}function CT(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;qo=e}function tg(e){if(e!==qo)return!1;if(!An)return CT(e),An=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!YC(e.type,e.memoizedProps)),t&&(t=Ko)){if(JC(e))throw wL(),Error(He(418));for(;t;)bL(e,t),t=ha(t.nextSibling)}if(CT(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(He(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ko=ha(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ko=null}}else Ko=qo?ha(e.stateNode.nextSibling):null;return!0}function wL(){for(var e=Ko;e;)e=ha(e.nextSibling)}function pd(){Ko=qo=null,An=!1}function rP(e){Js===null?Js=[e]:Js.push(e)}var bG=kl.ReactCurrentBatchConfig;function Qs(e,t){if(e&&e.defaultProps){t=Hn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var bv=Oa(null),wv=null,Bu=null,oP=null;function sP(){oP=Bu=wv=null}function iP(e){var t=bv.current;Mn(bv),e._currentValue=t}function tx(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 Ju(e,t){wv=e,oP=Bu=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Po=!0),e.firstContext=null)}function Rs(e){var t=e._currentValue;if(oP!==e)if(e={context:e,memoizedValue:t,next:null},Bu===null){if(wv===null)throw Error(He(308));Bu=e,wv.dependencies={lanes:0,firstContext:e}}else Bu=Bu.next=e;return t}var ic=null;function lP(e){ic===null?ic=[e]:ic.push(e)}function CL(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,lP(t)):(n.next=o.next,o.next=n),t.interleaved=n,yl(e,r)}function yl(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 Xl=!1;function aP(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xL(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 pl(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ma(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Xt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,yl(e,n)}return o=r.interleaved,o===null?(t.next=t,lP(r)):(t.next=o.next,o.next=t),r.interleaved=t,yl(e,n)}function Lg(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,KS(e,n)}}function xT(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Cv(e,t,n,r){var o=e.updateQueue;Xl=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,i===null?s=u:i.next=u,i=a;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==i&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=a))}if(s!==null){var p=o.baseState;i=0,f=u=a=null,l=s;do{var m=l.lane,v=l.eventTime;if((r&m)===m){f!==null&&(f=f.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,g=l;switch(m=t,v=n,g.tag){case 1:if(y=g.payload,typeof y=="function"){p=y.call(v,p,m);break e}p=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=g.payload,m=typeof y=="function"?y.call(v,p,m):y,m==null)break e;p=Hn({},p,m);break e;case 2:Xl=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[l]:m.push(l))}else v={eventTime:v,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=v,a=p):f=f.next=v,i|=m;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;m=l,l=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(1);if(f===null&&(a=p),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Pc|=i,e.lanes=i,e.memoizedState=p}}function ST(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(He(191,o));o.call(r)}}}var SL=new CA.Component().refs;function nx(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Hn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Iy={isMounted:function(e){return(e=e._reactInternals)?Bc(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=uo(),o=va(e),s=pl(r,o);s.payload=t,n!=null&&(s.callback=n),t=ma(e,s,o),t!==null&&(ii(t,e,o,r),Lg(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=uo(),o=va(e),s=pl(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=ma(e,s,o),t!==null&&(ii(t,e,o,r),Lg(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=uo(),r=va(e),o=pl(n,r);o.tag=2,t!=null&&(o.callback=t),t=ma(e,o,r),t!==null&&(ii(t,e,r,n),Lg(t,e,r))}};function PT(e,t,n,r,o,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,i):t.prototype&&t.prototype.isPureReactComponent?!Hp(n,r)||!Hp(o,s):!0}function PL(e,t,n){var r=!1,o=Pa,s=t.contextType;return typeof s=="object"&&s!==null?s=Rs(s):(o=Eo(t)?Cc:Zr.current,r=t.contextTypes,s=(r=r!=null)?fd(e,o):Pa),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Iy,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function kT(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&&Iy.enqueueReplaceState(t,t.state,null)}function rx(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=SL,aP(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=Rs(s):(s=Eo(t)?Cc:Zr.current,o.context=fd(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(nx(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Iy.enqueueReplaceState(o,o.state,null),Cv(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Df(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(He(309));var r=n.stateNode}if(!r)throw Error(He(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var l=o.refs;l===SL&&(l=o.refs={}),i===null?delete l[s]:l[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(He(284));if(!n._owner)throw Error(He(290,e))}return e}function ng(e,t){throw e=Object.prototype.toString.call(t),Error(He(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ET(e){var t=e._init;return t(e._payload)}function kL(e){function t(b,w){if(e){var S=b.deletions;S===null?(b.deletions=[w],b.flags|=16):S.push(w)}}function n(b,w){if(!e)return null;for(;w!==null;)t(b,w),w=w.sibling;return null}function r(b,w){for(b=new Map;w!==null;)w.key!==null?b.set(w.key,w):b.set(w.index,w),w=w.sibling;return b}function o(b,w){return b=ya(b,w),b.index=0,b.sibling=null,b}function s(b,w,S){return b.index=S,e?(S=b.alternate,S!==null?(S=S.index,S<w?(b.flags|=2,w):S):(b.flags|=2,w)):(b.flags|=1048576,w)}function i(b){return e&&b.alternate===null&&(b.flags|=2),b}function l(b,w,S,k){return w===null||w.tag!==6?(w=Cw(S,b.mode,k),w.return=b,w):(w=o(w,S),w.return=b,w)}function a(b,w,S,k){var M=S.type;return M===$u?f(b,w,S.props.children,k,S.key):w!==null&&(w.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===Ql&&ET(M)===w.type)?(k=o(w,S.props),k.ref=Df(b,w,S),k.return=b,k):(k=jg(S.type,S.key,S.props,null,b.mode,k),k.ref=Df(b,w,S),k.return=b,k)}function u(b,w,S,k){return w===null||w.tag!==4||w.stateNode.containerInfo!==S.containerInfo||w.stateNode.implementation!==S.implementation?(w=xw(S,b.mode,k),w.return=b,w):(w=o(w,S.children||[]),w.return=b,w)}function f(b,w,S,k,M){return w===null||w.tag!==7?(w=fc(S,b.mode,k,M),w.return=b,w):(w=o(w,S),w.return=b,w)}function p(b,w,S){if(typeof w=="string"&&w!==""||typeof w=="number")return w=Cw(""+w,b.mode,S),w.return=b,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Wm:return S=jg(w.type,w.key,w.props,null,b.mode,S),S.ref=Df(b,null,w),S.return=b,S;case Tu:return w=xw(w,b.mode,S),w.return=b,w;case Ql:var k=w._init;return p(b,k(w._payload),S)}if(ep(w)||_f(w))return w=fc(w,b.mode,S,null),w.return=b,w;ng(b,w)}return null}function m(b,w,S,k){var M=w!==null?w.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return M!==null?null:l(b,w,""+S,k);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Wm:return S.key===M?a(b,w,S,k):null;case Tu:return S.key===M?u(b,w,S,k):null;case Ql:return M=S._init,m(b,w,M(S._payload),k)}if(ep(S)||_f(S))return M!==null?null:f(b,w,S,k,null);ng(b,S)}return null}function v(b,w,S,k,M){if(typeof k=="string"&&k!==""||typeof k=="number")return b=b.get(S)||null,l(w,b,""+k,M);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Wm:return b=b.get(k.key===null?S:k.key)||null,a(w,b,k,M);case Tu:return b=b.get(k.key===null?S:k.key)||null,u(w,b,k,M);case Ql:var E=k._init;return v(b,w,S,E(k._payload),M)}if(ep(k)||_f(k))return b=b.get(S)||null,f(w,b,k,M,null);ng(w,k)}return null}function y(b,w,S,k){for(var M=null,E=null,I=w,R=w=0,A=null;I!==null&&R<S.length;R++){I.index>R?(A=I,I=null):A=I.sibling;var $=m(b,I,S[R],k);if($===null){I===null&&(I=A);break}e&&I&&$.alternate===null&&t(b,I),w=s($,w,R),E===null?M=$:E.sibling=$,E=$,I=A}if(R===S.length)return n(b,I),An&&ec(b,R),M;if(I===null){for(;R<S.length;R++)I=p(b,S[R],k),I!==null&&(w=s(I,w,R),E===null?M=I:E.sibling=I,E=I);return An&&ec(b,R),M}for(I=r(b,I);R<S.length;R++)A=v(I,b,R,S[R],k),A!==null&&(e&&A.alternate!==null&&I.delete(A.key===null?R:A.key),w=s(A,w,R),E===null?M=A:E.sibling=A,E=A);return e&&I.forEach(function(L){return t(b,L)}),An&&ec(b,R),M}function g(b,w,S,k){var M=_f(S);if(typeof M!="function")throw Error(He(150));if(S=M.call(S),S==null)throw Error(He(151));for(var E=M=null,I=w,R=w=0,A=null,$=S.next();I!==null&&!$.done;R++,$=S.next()){I.index>R?(A=I,I=null):A=I.sibling;var L=m(b,I,$.value,k);if(L===null){I===null&&(I=A);break}e&&I&&L.alternate===null&&t(b,I),w=s(L,w,R),E===null?M=L:E.sibling=L,E=L,I=A}if($.done)return n(b,I),An&&ec(b,R),M;if(I===null){for(;!$.done;R++,$=S.next())$=p(b,$.value,k),$!==null&&(w=s($,w,R),E===null?M=$:E.sibling=$,E=$);return An&&ec(b,R),M}for(I=r(b,I);!$.done;R++,$=S.next())$=v(I,b,R,$.value,k),$!==null&&(e&&$.alternate!==null&&I.delete($.key===null?R:$.key),w=s($,w,R),E===null?M=$:E.sibling=$,E=$);return e&&I.forEach(function(V){return t(b,V)}),An&&ec(b,R),M}function C(b,w,S,k){if(typeof S=="object"&&S!==null&&S.type===$u&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Wm:e:{for(var M=S.key,E=w;E!==null;){if(E.key===M){if(M=S.type,M===$u){if(E.tag===7){n(b,E.sibling),w=o(E,S.props.children),w.return=b,b=w;break e}}else if(E.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===Ql&&ET(M)===E.type){n(b,E.sibling),w=o(E,S.props),w.ref=Df(b,E,S),w.return=b,b=w;break e}n(b,E);break}else t(b,E);E=E.sibling}S.type===$u?(w=fc(S.props.children,b.mode,k,S.key),w.return=b,b=w):(k=jg(S.type,S.key,S.props,null,b.mode,k),k.ref=Df(b,w,S),k.return=b,b=k)}return i(b);case Tu:e:{for(E=S.key;w!==null;){if(w.key===E)if(w.tag===4&&w.stateNode.containerInfo===S.containerInfo&&w.stateNode.implementation===S.implementation){n(b,w.sibling),w=o(w,S.children||[]),w.return=b,b=w;break e}else{n(b,w);break}else t(b,w);w=w.sibling}w=xw(S,b.mode,k),w.return=b,b=w}return i(b);case Ql:return E=S._init,C(b,w,E(S._payload),k)}if(ep(S))return y(b,w,S,k);if(_f(S))return g(b,w,S,k);ng(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(n(b,w.sibling),w=o(w,S),w.return=b,b=w):(n(b,w),w=Cw(S,b.mode,k),w.return=b,b=w),i(b)):n(b,w)}return C}var hd=kL(!0),EL=kL(!1),Th={},_i=Oa(Th),Kp=Oa(Th),qp=Oa(Th);function lc(e){if(e===Th)throw Error(He(174));return e}function cP(e,t){switch(xn(qp,t),xn(Kp,e),xn(_i,Th),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:AC(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=AC(t,e)}Mn(_i),xn(_i,t)}function md(){Mn(_i),Mn(Kp),Mn(qp)}function IL(e){lc(qp.current);var t=lc(_i.current),n=AC(t,e.type);t!==n&&(xn(Kp,e),xn(_i,n))}function uP(e){Kp.current===e&&(Mn(_i),Mn(Kp))}var zn=Oa(0);function xv(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 mw=[];function dP(){for(var e=0;e<mw.length;e++)mw[e]._workInProgressVersionPrimary=null;mw.length=0}var Fg=kl.ReactCurrentDispatcher,gw=kl.ReactCurrentBatchConfig,Sc=0,jn=null,fr=null,Cr=null,Sv=!1,bp=!1,Yp=0,wG=0;function Vr(){throw Error(He(321))}function fP(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ci(e[n],t[n]))return!1;return!0}function pP(e,t,n,r,o,s){if(Sc=s,jn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Fg.current=e===null||e.memoizedState===null?PG:kG,e=n(r,o),bp){s=0;do{if(bp=!1,Yp=0,25<=s)throw Error(He(301));s+=1,Cr=fr=null,t.updateQueue=null,Fg.current=EG,e=n(r,o)}while(bp)}if(Fg.current=Pv,t=fr!==null&&fr.next!==null,Sc=0,Cr=fr=jn=null,Sv=!1,t)throw Error(He(300));return e}function hP(){var e=Yp!==0;return Yp=0,e}function Ci(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Cr===null?jn.memoizedState=Cr=e:Cr=Cr.next=e,Cr}function Os(){if(fr===null){var e=jn.alternate;e=e!==null?e.memoizedState:null}else e=fr.next;var t=Cr===null?jn.memoizedState:Cr.next;if(t!==null)Cr=t,fr=e;else{if(e===null)throw Error(He(310));fr=e,e={memoizedState:fr.memoizedState,baseState:fr.baseState,baseQueue:fr.baseQueue,queue:fr.queue,next:null},Cr===null?jn.memoizedState=Cr=e:Cr=Cr.next=e}return Cr}function Qp(e,t){return typeof t=="function"?t(e):t}function vw(e){var t=Os(),n=t.queue;if(n===null)throw Error(He(311));n.lastRenderedReducer=e;var r=fr,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var i=o.next;o.next=s.next,s.next=i}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var l=i=null,a=null,u=s;do{var f=u.lane;if((Sc&f)===f)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=p,i=r):a=a.next=p,jn.lanes|=f,Pc|=f}u=u.next}while(u!==null&&u!==s);a===null?i=r:a.next=l,ci(r,t.memoizedState)||(Po=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,jn.lanes|=s,Pc|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function yw(e){var t=Os(),n=t.queue;if(n===null)throw Error(He(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do s=e(s,i.action),i=i.next;while(i!==o);ci(s,t.memoizedState)||(Po=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function ML(){}function _L(e,t){var n=jn,r=Os(),o=t(),s=!ci(r.memoizedState,o);if(s&&(r.memoizedState=o,Po=!0),r=r.queue,mP(RL.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Cr!==null&&Cr.memoizedState.tag&1){if(n.flags|=2048,Xp(9,$L.bind(null,n,r,o,t),void 0,null),Sr===null)throw Error(He(349));Sc&30||TL(n,t,o)}return o}function TL(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=jn.updateQueue,t===null?(t={lastEffect:null,stores:null},jn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function $L(e,t,n,r){t.value=n,t.getSnapshot=r,OL(t)&&DL(e)}function RL(e,t,n){return n(function(){OL(t)&&DL(e)})}function OL(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ci(e,n)}catch(r){return!0}}function DL(e){var t=yl(e,1);t!==null&&ii(t,e,1,-1)}function IT(e){var t=Ci();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Qp,lastRenderedState:e},t.queue=e,e=e.dispatch=SG.bind(null,jn,e),[t.memoizedState,e]}function Xp(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=jn.updateQueue,t===null?(t={lastEffect:null,stores:null},jn.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 AL(){return Os().memoizedState}function Ng(e,t,n,r){var o=Ci();jn.flags|=e,o.memoizedState=Xp(1|t,n,void 0,r===void 0?null:r)}function My(e,t,n,r){var o=Os();r=r===void 0?null:r;var s=void 0;if(fr!==null){var i=fr.memoizedState;if(s=i.destroy,r!==null&&fP(r,i.deps)){o.memoizedState=Xp(t,n,s,r);return}}jn.flags|=e,o.memoizedState=Xp(1|t,n,s,r)}function MT(e,t){return Ng(8390656,8,e,t)}function mP(e,t){return My(2048,8,e,t)}function LL(e,t){return My(4,2,e,t)}function FL(e,t){return My(4,4,e,t)}function NL(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 BL(e,t,n){return n=n!=null?n.concat([e]):null,My(4,4,NL.bind(null,t,e),n)}function gP(){}function zL(e,t){var n=Os();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fP(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function VL(e,t){var n=Os();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fP(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function jL(e,t,n){return Sc&21?(ci(n,t)||(n=WA(),jn.lanes|=n,Pc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Po=!0),e.memoizedState=n)}function CG(e,t){var n=dn;dn=n!==0&&4>n?n:4,e(!0);var r=gw.transition;gw.transition={};try{e(!1),t()}finally{dn=n,gw.transition=r}}function HL(){return Os().memoizedState}function xG(e,t,n){var r=va(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},UL(e))WL(t,n);else if(n=CL(e,t,n,r),n!==null){var o=uo();ii(n,e,r,o),GL(n,t,r)}}function SG(e,t,n){var r=va(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(UL(e))WL(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,l=s(i,n);if(o.hasEagerState=!0,o.eagerState=l,ci(l,i)){var a=t.interleaved;a===null?(o.next=o,lP(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch(u){}finally{}n=CL(e,t,o,r),n!==null&&(o=uo(),ii(n,e,r,o),GL(n,t,r))}}function UL(e){var t=e.alternate;return e===jn||t!==null&&t===jn}function WL(e,t){bp=Sv=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function GL(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,KS(e,n)}}var Pv={readContext:Rs,useCallback:Vr,useContext:Vr,useEffect:Vr,useImperativeHandle:Vr,useInsertionEffect:Vr,useLayoutEffect:Vr,useMemo:Vr,useReducer:Vr,useRef:Vr,useState:Vr,useDebugValue:Vr,useDeferredValue:Vr,useTransition:Vr,useMutableSource:Vr,useSyncExternalStore:Vr,useId:Vr,unstable_isNewReconciler:!1},PG={readContext:Rs,useCallback:function(e,t){return Ci().memoizedState=[e,t===void 0?null:t],e},useContext:Rs,useEffect:MT,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ng(4194308,4,NL.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ng(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ng(4,2,e,t)},useMemo:function(e,t){var n=Ci();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ci();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=xG.bind(null,jn,e),[r.memoizedState,e]},useRef:function(e){var t=Ci();return e={current:e},t.memoizedState=e},useState:IT,useDebugValue:gP,useDeferredValue:function(e){return Ci().memoizedState=e},useTransition:function(){var e=IT(!1),t=e[0];return e=CG.bind(null,e[1]),Ci().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=jn,o=Ci();if(An){if(n===void 0)throw Error(He(407));n=n()}else{if(n=t(),Sr===null)throw Error(He(349));Sc&30||TL(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,MT(RL.bind(null,r,s,e),[e]),r.flags|=2048,Xp(9,$L.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Ci(),t=Sr.identifierPrefix;if(An){var n=ul,r=cl;n=(r&~(1<<32-si(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yp++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=wG++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},kG={readContext:Rs,useCallback:zL,useContext:Rs,useEffect:mP,useImperativeHandle:BL,useInsertionEffect:LL,useLayoutEffect:FL,useMemo:VL,useReducer:vw,useRef:AL,useState:function(){return vw(Qp)},useDebugValue:gP,useDeferredValue:function(e){var t=Os();return jL(t,fr.memoizedState,e)},useTransition:function(){var e=vw(Qp)[0],t=Os().memoizedState;return[e,t]},useMutableSource:ML,useSyncExternalStore:_L,useId:HL,unstable_isNewReconciler:!1},EG={readContext:Rs,useCallback:zL,useContext:Rs,useEffect:mP,useImperativeHandle:BL,useInsertionEffect:LL,useLayoutEffect:FL,useMemo:VL,useReducer:yw,useRef:AL,useState:function(){return yw(Qp)},useDebugValue:gP,useDeferredValue:function(e){var t=Os();return fr===null?t.memoizedState=e:jL(t,fr.memoizedState,e)},useTransition:function(){var e=yw(Qp)[0],t=Os().memoizedState;return[e,t]},useMutableSource:ML,useSyncExternalStore:_L,useId:HL,unstable_isNewReconciler:!1};function gd(e,t){try{var n="",r=t;do n+=eW(r),r=r.return;while(r);var o=n}catch(s){o=`
31
+ Error generating stack: `+s.message+`
32
+ `+s.stack}return{value:e,source:t,stack:o,digest:null}}function bw(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function ox(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var IG=typeof WeakMap=="function"?WeakMap:Map;function KL(e,t,n){n=pl(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ev||(Ev=!0,hx=r),ox(e,t)},n}function qL(e,t,n){n=pl(-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(){ox(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){ox(e,t),typeof r!="function"&&(ga===null?ga=new Set([this]):ga.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function _T(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new IG;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=VG.bind(null,e,t,n),t.then(e,e))}function TT(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 $T(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=pl(-1,1),t.tag=2,ma(n,t,1))),n.lanes|=1),e)}var MG=kl.ReactCurrentOwner,Po=!1;function so(e,t,n,r){t.child=e===null?EL(t,null,n,r):hd(t,e.child,n,r)}function RT(e,t,n,r,o){n=n.render;var s=t.ref;return Ju(t,o),r=pP(e,t,n,r,s,o),n=hP(),e!==null&&!Po?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,bl(e,t,o)):(An&&n&&tP(t),t.flags|=1,so(e,t,r,o),t.child)}function OT(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!PP(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,YL(e,t,s,r,o)):(e=jg(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:Hp,n(i,r)&&e.ref===t.ref)return bl(e,t,o)}return t.flags|=1,e=ya(s,r),e.ref=t.ref,e.return=t,t.child=e}function YL(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(Hp(s,r)&&e.ref===t.ref)if(Po=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(Po=!0);else return t.lanes=e.lanes,bl(e,t,o)}return sx(e,t,n,r,o)}function QL(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},xn(Vu,zo),zo|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,xn(Vu,zo),zo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,xn(Vu,zo),zo|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,xn(Vu,zo),zo|=r;return so(e,t,o,n),t.child}function XL(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function sx(e,t,n,r,o){var s=Eo(n)?Cc:Zr.current;return s=fd(t,s),Ju(t,o),n=pP(e,t,n,r,s,o),r=hP(),e!==null&&!Po?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,bl(e,t,o)):(An&&r&&tP(t),t.flags|=1,so(e,t,n,o),t.child)}function DT(e,t,n,r,o){if(Eo(n)){var s=!0;gv(t)}else s=!1;if(Ju(t,o),t.stateNode===null)Bg(e,t),PL(t,n,r),rx(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var a=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Rs(u):(u=Eo(n)?Cc:Zr.current,u=fd(t,u));var f=n.getDerivedStateFromProps,p=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";p||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||a!==u)&&kT(t,i,r,u),Xl=!1;var m=t.memoizedState;i.state=m,Cv(t,r,i,o),a=t.memoizedState,l!==r||m!==a||ko.current||Xl?(typeof f=="function"&&(nx(t,n,f,r),a=t.memoizedState),(l=Xl||PT(t,n,l,r,m,a,u))?(p||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),i.props=r,i.state=a,i.context=u,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,xL(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Qs(t.type,l),i.props=u,p=t.pendingProps,m=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=Rs(a):(a=Eo(n)?Cc:Zr.current,a=fd(t,a));var v=n.getDerivedStateFromProps;(f=typeof v=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==p||m!==a)&&kT(t,i,r,a),Xl=!1,m=t.memoizedState,i.state=m,Cv(t,r,i,o);var y=t.memoizedState;l!==p||m!==y||ko.current||Xl?(typeof v=="function"&&(nx(t,n,v,r),y=t.memoizedState),(u=Xl||PT(t,n,u,r,m,y,a)||!1)?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,y,a),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,y,a)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),i.props=r,i.state=y,i.context=a,r=u):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return ix(e,t,n,r,s,o)}function ix(e,t,n,r,o,s){XL(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&bT(t,n,!1),bl(e,t,s);r=t.stateNode,MG.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=hd(t,e.child,null,s),t.child=hd(t,null,l,s)):so(e,t,l,s),t.memoizedState=r.state,o&&bT(t,n,!0),t.child}function ZL(e){var t=e.stateNode;t.pendingContext?yT(e,t.pendingContext,t.pendingContext!==t.context):t.context&&yT(e,t.context,!1),cP(e,t.containerInfo)}function AT(e,t,n,r,o){return pd(),rP(o),t.flags|=256,so(e,t,n,r),t.child}var lx={dehydrated:null,treeContext:null,retryLane:0};function ax(e){return{baseLanes:e,cachePool:null,transitions:null}}function JL(e,t,n){var r=t.pendingProps,o=zn.current,s=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),xn(zn,o&1),e===null)return ex(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=$y(i,r,0,null),e=fc(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=ax(n),t.memoizedState=lx,e):vP(t,i));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return _G(e,t,i,r,l,o,n);if(s){s=r.fallback,i=t.mode,o=e.child,l=o.sibling;var a={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=ya(o,a),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?s=ya(l,s):(s=fc(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,i=e.child.memoizedState,i=i===null?ax(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=lx,r}return s=e.child,e=s.sibling,r=ya(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function vP(e,t){return t=$y({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function rg(e,t,n,r){return r!==null&&rP(r),hd(t,e.child,null,n),e=vP(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _G(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=bw(Error(He(422))),rg(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=$y({mode:"visible",children:r.children},o,0,null),s=fc(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&hd(t,e.child,null,i),t.child.memoizedState=ax(i),t.memoizedState=lx,s);if(!(t.mode&1))return rg(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(He(419)),r=bw(s,r,void 0),rg(e,t,i,r)}if(l=(i&e.childLanes)!==0,Po||l){if(r=Sr,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,yl(e,o),ii(r,e,o,-1))}return SP(),r=bw(Error(He(421))),rg(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=jG.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,Ko=ha(o.nextSibling),qo=t,An=!0,Js=null,e!==null&&(ks[Es++]=cl,ks[Es++]=ul,ks[Es++]=xc,cl=e.id,ul=e.overflow,xc=t),t=vP(t,r.children),t.flags|=4096,t)}function LT(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),tx(e.return,t,n)}function ww(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function eF(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(so(e,t,r.children,n),r=zn.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&&LT(e,n,t);else if(e.tag===19)LT(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(xn(zn,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&&xv(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ww(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&xv(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ww(t,!0,n,null,s);break;case"together":ww(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Bg(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function bl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Pc|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(He(153));if(t.child!==null){for(e=t.child,n=ya(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ya(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function TG(e,t,n){switch(t.tag){case 3:ZL(t),pd();break;case 5:IL(t);break;case 1:Eo(t.type)&&gv(t);break;case 4:cP(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;xn(bv,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(xn(zn,zn.current&1),t.flags|=128,null):n&t.child.childLanes?JL(e,t,n):(xn(zn,zn.current&1),e=bl(e,t,n),e!==null?e.sibling:null);xn(zn,zn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return eF(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),xn(zn,zn.current),r)break;return null;case 22:case 23:return t.lanes=0,QL(e,t,n)}return bl(e,t,n)}var tF,cx,nF,rF;tF=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}};cx=function(){};nF=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,lc(_i.current);var s=null;switch(n){case"input":o=$C(e,o),r=$C(e,r),s=[];break;case"select":o=Hn({},o,{value:void 0}),r=Hn({},r,{value:void 0}),s=[];break;case"textarea":o=DC(e,o),r=DC(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=hv)}LC(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Lp.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var a=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(i in l)!l.hasOwnProperty(i)||a&&a.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in a)a.hasOwnProperty(i)&&l[i]!==a[i]&&(n||(n={}),n[i]=a[i])}else n||(s||(s=[]),s.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(s=s||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(s=s||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Lp.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&En("scroll",e),s||l===a||(s=[])):(s=s||[]).push(u,a))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};rF=function(e,t,n,r){n!==r&&(t.flags|=4)};function Af(e,t){if(!An)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function jr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $G(e,t,n){var r=t.pendingProps;switch(nP(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jr(t),null;case 1:return Eo(t.type)&&mv(),jr(t),null;case 3:return r=t.stateNode,md(),Mn(ko),Mn(Zr),dP(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(tg(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Js!==null&&(vx(Js),Js=null))),cx(e,t),jr(t),null;case 5:uP(t);var o=lc(qp.current);if(n=t.type,e!==null&&t.stateNode!=null)nF(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(He(166));return jr(t),null}if(e=lc(_i.current),tg(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Ei]=t,r[Gp]=s,e=(t.mode&1)!==0,n){case"dialog":En("cancel",r),En("close",r);break;case"iframe":case"object":case"embed":En("load",r);break;case"video":case"audio":for(o=0;o<np.length;o++)En(np[o],r);break;case"source":En("error",r);break;case"img":case"image":case"link":En("error",r),En("load",r);break;case"details":En("toggle",r);break;case"input":W_(r,s),En("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},En("invalid",r);break;case"textarea":K_(r,s),En("invalid",r)}LC(n,s),o=null;for(var i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&eg(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&eg(r.textContent,l,e),o=["children",""+l]):Lp.hasOwnProperty(i)&&l!=null&&i==="onScroll"&&En("scroll",r)}switch(n){case"input":Gm(r),G_(r,s,!0);break;case"textarea":Gm(r),q_(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=hv)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=TA(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ei]=t,e[Gp]=r,tF(e,t,!1,!1),t.stateNode=e;e:{switch(i=FC(n,r),n){case"dialog":En("cancel",e),En("close",e),o=r;break;case"iframe":case"object":case"embed":En("load",e),o=r;break;case"video":case"audio":for(o=0;o<np.length;o++)En(np[o],e);o=r;break;case"source":En("error",e),o=r;break;case"img":case"image":case"link":En("error",e),En("load",e),o=r;break;case"details":En("toggle",e),o=r;break;case"input":W_(e,r),o=$C(e,r),En("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Hn({},r,{value:void 0}),En("invalid",e);break;case"textarea":K_(e,r),o=DC(e,r),En("invalid",e);break;default:o=r}LC(n,o),l=o;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?OA(e,a):s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&$A(e,a)):s==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Fp(e,a):typeof a=="number"&&Fp(e,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Lp.hasOwnProperty(s)?a!=null&&s==="onScroll"&&En("scroll",e):a!=null&&VS(e,s,a,i))}switch(n){case"input":Gm(e),G_(e,r,!1);break;case"textarea":Gm(e),q_(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Sa(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Yu(e,!!r.multiple,s,!1):r.defaultValue!=null&&Yu(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=hv)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return jr(t),null;case 6:if(e&&t.stateNode!=null)rF(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(He(166));if(n=lc(qp.current),lc(_i.current),tg(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ei]=t,(s=r.nodeValue!==n)&&(e=qo,e!==null))switch(e.tag){case 3:eg(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&eg(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ei]=t,t.stateNode=r}return jr(t),null;case 13:if(Mn(zn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(An&&Ko!==null&&t.mode&1&&!(t.flags&128))wL(),pd(),t.flags|=98560,s=!1;else if(s=tg(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(He(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(He(317));s[Ei]=t}else pd(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jr(t),s=!1}else Js!==null&&(vx(Js),Js=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||zn.current&1?pr===0&&(pr=3):SP())),t.updateQueue!==null&&(t.flags|=4),jr(t),null);case 4:return md(),cx(e,t),e===null&&Up(t.stateNode.containerInfo),jr(t),null;case 10:return iP(t.type._context),jr(t),null;case 17:return Eo(t.type)&&mv(),jr(t),null;case 19:if(Mn(zn),s=t.memoizedState,s===null)return jr(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)Af(s,!1);else{if(pr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=xv(e),i!==null){for(t.flags|=128,Af(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return xn(zn,zn.current&1|2),t.child}e=e.sibling}s.tail!==null&&tr()>vd&&(t.flags|=128,r=!0,Af(s,!1),t.lanes=4194304)}else{if(!r)if(e=xv(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Af(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!An)return jr(t),null}else 2*tr()-s.renderingStartTime>vd&&n!==1073741824&&(t.flags|=128,r=!0,Af(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=tr(),t.sibling=null,n=zn.current,xn(zn,r?n&1|2:n&1),t):(jr(t),null);case 22:case 23:return xP(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?zo&1073741824&&(jr(t),t.subtreeFlags&6&&(t.flags|=8192)):jr(t),null;case 24:return null;case 25:return null}throw Error(He(156,t.tag))}function RG(e,t){switch(nP(t),t.tag){case 1:return Eo(t.type)&&mv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return md(),Mn(ko),Mn(Zr),dP(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return uP(t),null;case 13:if(Mn(zn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(He(340));pd()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Mn(zn),null;case 4:return md(),null;case 10:return iP(t.type._context),null;case 22:case 23:return xP(),null;case 24:return null;default:return null}}var og=!1,Gr=!1,OG=typeof WeakSet=="function"?WeakSet:Set,at=null;function zu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Kn(e,t,r)}else n.current=null}function ux(e,t,n){try{n()}catch(r){Kn(e,t,r)}}var FT=!1;function DG(e,t){if(KC=dv,e=lL(),eP(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(k){n=null;break e}var i=0,l=-1,a=-1,u=0,f=0,p=e,m=null;t:for(;;){for(var v;p!==n||o!==0&&p.nodeType!==3||(l=i+o),p!==s||r!==0&&p.nodeType!==3||(a=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(v=p.firstChild)!==null;)m=p,p=v;for(;;){if(p===e)break t;if(m===n&&++u===o&&(l=i),m===s&&++f===r&&(a=i),(v=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=v}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(qC={focusedElem:e,selectionRange:n},dv=!1,at=t;at!==null;)if(t=at,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,at=e;else for(;at!==null;){t=at;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var g=y.memoizedProps,C=y.memoizedState,b=t.stateNode,w=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:Qs(t.type,g),C);b.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(He(163))}}catch(k){Kn(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,at=e;break}at=t.return}return y=FT,FT=!1,y}function wp(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&ux(t,n,s)}o=o.next}while(o!==r)}}function _y(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function dx(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function oF(e){var t=e.alternate;t!==null&&(e.alternate=null,oF(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ei],delete t[Gp],delete t[XC],delete t[gG],delete t[vG])),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 sF(e){return e.tag===5||e.tag===3||e.tag===4}function NT(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||sF(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 fx(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=hv));else if(r!==4&&(e=e.child,e!==null))for(fx(e,t,n),e=e.sibling;e!==null;)fx(e,t,n),e=e.sibling}function px(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(px(e,t,n),e=e.sibling;e!==null;)px(e,t,n),e=e.sibling}var Rr=null,Zs=!1;function zl(e,t,n){for(n=n.child;n!==null;)iF(e,t,n),n=n.sibling}function iF(e,t,n){if(Mi&&typeof Mi.onCommitFiberUnmount=="function")try{Mi.onCommitFiberUnmount(Cy,n)}catch(l){}switch(n.tag){case 5:Gr||zu(n,t);case 6:var r=Rr,o=Zs;Rr=null,zl(e,t,n),Rr=r,Zs=o,Rr!==null&&(Zs?(e=Rr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Rr.removeChild(n.stateNode));break;case 18:Rr!==null&&(Zs?(e=Rr,n=n.stateNode,e.nodeType===8?pw(e.parentNode,n):e.nodeType===1&&pw(e,n),Vp(e)):pw(Rr,n.stateNode));break;case 4:r=Rr,o=Zs,Rr=n.stateNode.containerInfo,Zs=!0,zl(e,t,n),Rr=r,Zs=o;break;case 0:case 11:case 14:case 15:if(!Gr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&ux(n,t,i),o=o.next}while(o!==r)}zl(e,t,n);break;case 1:if(!Gr&&(zu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Kn(n,t,l)}zl(e,t,n);break;case 21:zl(e,t,n);break;case 22:n.mode&1?(Gr=(r=Gr)||n.memoizedState!==null,zl(e,t,n),Gr=r):zl(e,t,n);break;default:zl(e,t,n)}}function BT(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new OG),t.forEach(function(r){var o=HG.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ks(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 5:Rr=l.stateNode,Zs=!1;break e;case 3:Rr=l.stateNode.containerInfo,Zs=!0;break e;case 4:Rr=l.stateNode.containerInfo,Zs=!0;break e}l=l.return}if(Rr===null)throw Error(He(160));iF(s,i,o),Rr=null,Zs=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){Kn(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)lF(t,e),t=t.sibling}function lF(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ks(t,e),bi(e),r&4){try{wp(3,e,e.return),_y(3,e)}catch(g){Kn(e,e.return,g)}try{wp(5,e,e.return)}catch(g){Kn(e,e.return,g)}}break;case 1:Ks(t,e),bi(e),r&512&&n!==null&&zu(n,n.return);break;case 5:if(Ks(t,e),bi(e),r&512&&n!==null&&zu(n,n.return),e.flags&32){var o=e.stateNode;try{Fp(o,"")}catch(g){Kn(e,e.return,g)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&MA(o,s),FC(l,i);var u=FC(l,s);for(i=0;i<a.length;i+=2){var f=a[i],p=a[i+1];f==="style"?OA(o,p):f==="dangerouslySetInnerHTML"?$A(o,p):f==="children"?Fp(o,p):VS(o,f,p,u)}switch(l){case"input":RC(o,s);break;case"textarea":_A(o,s);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var v=s.value;v!=null?Yu(o,!!s.multiple,v,!1):m!==!!s.multiple&&(s.defaultValue!=null?Yu(o,!!s.multiple,s.defaultValue,!0):Yu(o,!!s.multiple,s.multiple?[]:"",!1))}o[Gp]=s}catch(g){Kn(e,e.return,g)}}break;case 6:if(Ks(t,e),bi(e),r&4){if(e.stateNode===null)throw Error(He(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(g){Kn(e,e.return,g)}}break;case 3:if(Ks(t,e),bi(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vp(t.containerInfo)}catch(g){Kn(e,e.return,g)}break;case 4:Ks(t,e),bi(e);break;case 13:Ks(t,e),bi(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(wP=tr())),r&4&&BT(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Gr=(u=Gr)||f,Ks(t,e),Gr=u):Ks(t,e),bi(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(at=e,f=e.child;f!==null;){for(p=at=f;at!==null;){switch(m=at,v=m.child,m.tag){case 0:case 11:case 14:case 15:wp(4,m,m.return);break;case 1:zu(m,m.return);var y=m.stateNode;if(typeof y.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(g){Kn(r,n,g)}}break;case 5:zu(m,m.return);break;case 22:if(m.memoizedState!==null){VT(p);continue}}v!==null?(v.return=m,at=v):VT(p)}f=f.sibling}e:for(f=null,p=e;;){if(p.tag===5){if(f===null){f=p;try{o=p.stateNode,u?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=p.stateNode,a=p.memoizedProps.style,i=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=RA("display",i))}catch(g){Kn(e,e.return,g)}}}else if(p.tag===6){if(f===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(g){Kn(e,e.return,g)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:Ks(t,e),bi(e),r&4&&BT(e);break;case 21:break;default:Ks(t,e),bi(e)}}function bi(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(sF(n)){var r=n;break e}n=n.return}throw Error(He(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Fp(o,""),r.flags&=-33);var s=NT(e);px(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,l=NT(e);fx(e,l,i);break;default:throw Error(He(161))}}catch(a){Kn(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function AG(e,t,n){at=e,aF(e)}function aF(e,t,n){for(var r=(e.mode&1)!==0;at!==null;){var o=at,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||og;if(!i){var l=o.alternate,a=l!==null&&l.memoizedState!==null||Gr;l=og;var u=Gr;if(og=i,(Gr=a)&&!u)for(at=o;at!==null;)i=at,a=i.child,i.tag===22&&i.memoizedState!==null?jT(o):a!==null?(a.return=i,at=a):jT(o);for(;s!==null;)at=s,aF(s),s=s.sibling;at=o,og=l,Gr=u}zT(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,at=s):zT(e)}}function zT(e){for(;at!==null;){var t=at;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Gr||_y(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Gr)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Qs(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&ST(t,s,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ST(t,i,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var p=f.dehydrated;p!==null&&Vp(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(He(163))}Gr||t.flags&512&&dx(t)}catch(m){Kn(t,t.return,m)}}if(t===e){at=null;break}if(n=t.sibling,n!==null){n.return=t.return,at=n;break}at=t.return}}function VT(e){for(;at!==null;){var t=at;if(t===e){at=null;break}var n=t.sibling;if(n!==null){n.return=t.return,at=n;break}at=t.return}}function jT(e){for(;at!==null;){var t=at;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{_y(4,t)}catch(a){Kn(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){Kn(t,o,a)}}var s=t.return;try{dx(t)}catch(a){Kn(t,s,a)}break;case 5:var i=t.return;try{dx(t)}catch(a){Kn(t,i,a)}}}catch(a){Kn(t,t.return,a)}if(t===e){at=null;break}var l=t.sibling;if(l!==null){l.return=t.return,at=l;break}at=t.return}}var LG=Math.ceil,kv=kl.ReactCurrentDispatcher,yP=kl.ReactCurrentOwner,_s=kl.ReactCurrentBatchConfig,Xt=0,Sr=null,cr=null,Lr=0,zo=0,Vu=Oa(0),pr=0,Zp=null,Pc=0,Ty=0,bP=0,Cp=null,wo=null,wP=0,vd=1/0,ol=null,Ev=!1,hx=null,ga=null,sg=!1,sa=null,Iv=0,xp=0,mx=null,zg=-1,Vg=0;function uo(){return Xt&6?tr():zg!==-1?zg:zg=tr()}function va(e){return e.mode&1?Xt&2&&Lr!==0?Lr&-Lr:bG.transition!==null?(Vg===0&&(Vg=WA()),Vg):(e=dn,e!==0||(e=window.event,e=e===void 0?16:ZA(e.type)),e):1}function ii(e,t,n,r){if(50<xp)throw xp=0,mx=null,Error(He(185));Ih(e,n,r),(!(Xt&2)||e!==Sr)&&(e===Sr&&(!(Xt&2)&&(Ty|=n),pr===4&&na(e,Lr)),Io(e,r),n===1&&Xt===0&&!(t.mode&1)&&(vd=tr()+500,Ey&&Da()))}function Io(e,t){var n=e.callbackNode;bW(e,t);var r=uv(e,e===Sr?Lr:0);if(r===0)n!==null&&X_(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&X_(n),t===1)e.tag===0?yG(HT.bind(null,e)):vL(HT.bind(null,e)),hG(function(){!(Xt&6)&&Da()}),n=null;else{switch(GA(r)){case 1:n=GS;break;case 4:n=HA;break;case 16:n=cv;break;case 536870912:n=UA;break;default:n=cv}n=gF(n,cF.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function cF(e,t){if(zg=-1,Vg=0,Xt&6)throw Error(He(327));var n=e.callbackNode;if(ed()&&e.callbackNode!==n)return null;var r=uv(e,e===Sr?Lr:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Mv(e,r);else{t=r;var o=Xt;Xt|=2;var s=dF();(Sr!==e||Lr!==t)&&(ol=null,vd=tr()+500,dc(e,t));do try{BG();break}catch(l){uF(e,l)}while(1);sP(),kv.current=s,Xt=o,cr!==null?t=0:(Sr=null,Lr=0,t=pr)}if(t!==0){if(t===2&&(o=jC(e),o!==0&&(r=o,t=gx(e,o))),t===1)throw n=Zp,dc(e,0),na(e,r),Io(e,tr()),n;if(t===6)na(e,r);else{if(o=e.current.alternate,!(r&30)&&!FG(o)&&(t=Mv(e,r),t===2&&(s=jC(e),s!==0&&(r=s,t=gx(e,s))),t===1))throw n=Zp,dc(e,0),na(e,r),Io(e,tr()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(He(345));case 2:tc(e,wo,ol);break;case 3:if(na(e,r),(r&130023424)===r&&(t=wP+500-tr(),10<t)){if(uv(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){uo(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=QC(tc.bind(null,e,wo,ol),t);break}tc(e,wo,ol);break;case 4:if(na(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-si(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}if(r=o,r=tr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*LG(r/1960))-r,10<r){e.timeoutHandle=QC(tc.bind(null,e,wo,ol),r);break}tc(e,wo,ol);break;case 5:tc(e,wo,ol);break;default:throw Error(He(329))}}}return Io(e,tr()),e.callbackNode===n?cF.bind(null,e):null}function gx(e,t){var n=Cp;return e.current.memoizedState.isDehydrated&&(dc(e,t).flags|=256),e=Mv(e,t),e!==2&&(t=wo,wo=n,t!==null&&vx(t)),e}function vx(e){wo===null?wo=e:wo.push.apply(wo,e)}function FG(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!ci(s(),o))return!1}catch(i){return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function na(e,t){for(t&=~bP,t&=~Ty,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-si(t),r=1<<n;e[n]=-1,t&=~r}}function HT(e){if(Xt&6)throw Error(He(327));ed();var t=uv(e,0);if(!(t&1))return Io(e,tr()),null;var n=Mv(e,t);if(e.tag!==0&&n===2){var r=jC(e);r!==0&&(t=r,n=gx(e,r))}if(n===1)throw n=Zp,dc(e,0),na(e,t),Io(e,tr()),n;if(n===6)throw Error(He(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,tc(e,wo,ol),Io(e,tr()),null}function CP(e,t){var n=Xt;Xt|=1;try{return e(t)}finally{Xt=n,Xt===0&&(vd=tr()+500,Ey&&Da())}}function kc(e){sa!==null&&sa.tag===0&&!(Xt&6)&&ed();var t=Xt;Xt|=1;var n=_s.transition,r=dn;try{if(_s.transition=null,dn=1,e)return e()}finally{dn=r,_s.transition=n,Xt=t,!(Xt&6)&&Da()}}function xP(){zo=Vu.current,Mn(Vu)}function dc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,pG(n)),cr!==null)for(n=cr.return;n!==null;){var r=n;switch(nP(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&mv();break;case 3:md(),Mn(ko),Mn(Zr),dP();break;case 5:uP(r);break;case 4:md();break;case 13:Mn(zn);break;case 19:Mn(zn);break;case 10:iP(r.type._context);break;case 22:case 23:xP()}n=n.return}if(Sr=e,cr=e=ya(e.current,null),Lr=zo=t,pr=0,Zp=null,bP=Ty=Pc=0,wo=Cp=null,ic!==null){for(t=0;t<ic.length;t++)if(n=ic[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var i=s.next;s.next=o,r.next=i}n.pending=r}ic=null}return e}function uF(e,t){do{var n=cr;try{if(sP(),Fg.current=Pv,Sv){for(var r=jn.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Sv=!1}if(Sc=0,Cr=fr=jn=null,bp=!1,Yp=0,yP.current=null,n===null||n.return===null){pr=1,Zp=t,cr=null;break}e:{var s=e,i=n.return,l=n,a=t;if(t=Lr,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,f=l,p=f.tag;if(!(f.mode&1)&&(p===0||p===11||p===15)){var m=f.alternate;m?(f.updateQueue=m.updateQueue,f.memoizedState=m.memoizedState,f.lanes=m.lanes):(f.updateQueue=null,f.memoizedState=null)}var v=TT(i);if(v!==null){v.flags&=-257,$T(v,i,l,s,t),v.mode&1&&_T(s,u,t),t=v,a=u;var y=t.updateQueue;if(y===null){var g=new Set;g.add(a),t.updateQueue=g}else y.add(a);break e}else{if(!(t&1)){_T(s,u,t),SP();break e}a=Error(He(426))}}else if(An&&l.mode&1){var C=TT(i);if(C!==null){!(C.flags&65536)&&(C.flags|=256),$T(C,i,l,s,t),rP(gd(a,l));break e}}s=a=gd(a,l),pr!==4&&(pr=2),Cp===null?Cp=[s]:Cp.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var b=KL(s,a,t);xT(s,b);break e;case 1:l=a;var w=s.type,S=s.stateNode;if(!(s.flags&128)&&(typeof w.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(ga===null||!ga.has(S)))){s.flags|=65536,t&=-t,s.lanes|=t;var k=qL(s,l,t);xT(s,k);break e}}s=s.return}while(s!==null)}pF(n)}catch(M){t=M,cr===n&&n!==null&&(cr=n=n.return);continue}break}while(1)}function dF(){var e=kv.current;return kv.current=Pv,e===null?Pv:e}function SP(){(pr===0||pr===3||pr===2)&&(pr=4),Sr===null||!(Pc&268435455)&&!(Ty&268435455)||na(Sr,Lr)}function Mv(e,t){var n=Xt;Xt|=2;var r=dF();(Sr!==e||Lr!==t)&&(ol=null,dc(e,t));do try{NG();break}catch(o){uF(e,o)}while(1);if(sP(),Xt=n,kv.current=r,cr!==null)throw Error(He(261));return Sr=null,Lr=0,pr}function NG(){for(;cr!==null;)fF(cr)}function BG(){for(;cr!==null&&!uW();)fF(cr)}function fF(e){var t=mF(e.alternate,e,zo);e.memoizedProps=e.pendingProps,t===null?pF(e):cr=t,yP.current=null}function pF(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=RG(n,t),n!==null){n.flags&=32767,cr=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{pr=6,cr=null;return}}else if(n=$G(n,t,zo),n!==null){cr=n;return}if(t=t.sibling,t!==null){cr=t;return}cr=t=e}while(t!==null);pr===0&&(pr=5)}function tc(e,t,n){var r=dn,o=_s.transition;try{_s.transition=null,dn=1,zG(e,t,n,r)}finally{_s.transition=o,dn=r}return null}function zG(e,t,n,r){do ed();while(sa!==null);if(Xt&6)throw Error(He(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(He(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(wW(e,s),e===Sr&&(cr=Sr=null,Lr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||sg||(sg=!0,gF(cv,function(){return ed(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=_s.transition,_s.transition=null;var i=dn;dn=1;var l=Xt;Xt|=4,yP.current=null,DG(e,n),lF(n,e),iG(qC),dv=!!KC,qC=KC=null,e.current=n,AG(n),dW(),Xt=l,dn=i,_s.transition=s}else e.current=n;if(sg&&(sg=!1,sa=e,Iv=o),s=e.pendingLanes,s===0&&(ga=null),hW(n.stateNode),Io(e,tr()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ev)throw Ev=!1,e=hx,hx=null,e;return Iv&1&&e.tag!==0&&ed(),s=e.pendingLanes,s&1?e===mx?xp++:(xp=0,mx=e):xp=0,Da(),null}function ed(){if(sa!==null){var e=GA(Iv),t=_s.transition,n=dn;try{if(_s.transition=null,dn=16>e?16:e,sa===null)var r=!1;else{if(e=sa,sa=null,Iv=0,Xt&6)throw Error(He(331));var o=Xt;for(Xt|=4,at=e.current;at!==null;){var s=at,i=s.child;if(at.flags&16){var l=s.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(at=u;at!==null;){var f=at;switch(f.tag){case 0:case 11:case 15:wp(8,f,s)}var p=f.child;if(p!==null)p.return=f,at=p;else for(;at!==null;){f=at;var m=f.sibling,v=f.return;if(oF(f),f===u){at=null;break}if(m!==null){m.return=v,at=m;break}at=v}}}var y=s.alternate;if(y!==null){var g=y.child;if(g!==null){y.child=null;do{var C=g.sibling;g.sibling=null,g=C}while(g!==null)}}at=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,at=i;else e:for(;at!==null;){if(s=at,s.flags&2048)switch(s.tag){case 0:case 11:case 15:wp(9,s,s.return)}var b=s.sibling;if(b!==null){b.return=s.return,at=b;break e}at=s.return}}var w=e.current;for(at=w;at!==null;){i=at;var S=i.child;if(i.subtreeFlags&2064&&S!==null)S.return=i,at=S;else e:for(i=w;at!==null;){if(l=at,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:_y(9,l)}}catch(M){Kn(l,l.return,M)}if(l===i){at=null;break e}var k=l.sibling;if(k!==null){k.return=l.return,at=k;break e}at=l.return}}if(Xt=o,Da(),Mi&&typeof Mi.onPostCommitFiberRoot=="function")try{Mi.onPostCommitFiberRoot(Cy,e)}catch(M){}r=!0}return r}finally{dn=n,_s.transition=t}}return!1}function UT(e,t,n){t=gd(n,t),t=KL(e,t,1),e=ma(e,t,1),t=uo(),e!==null&&(Ih(e,1,t),Io(e,t))}function Kn(e,t,n){if(e.tag===3)UT(e,e,n);else for(;t!==null;){if(t.tag===3){UT(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ga===null||!ga.has(r))){e=gd(n,e),e=qL(t,e,1),t=ma(t,e,1),e=uo(),t!==null&&(Ih(t,1,e),Io(t,e));break}}t=t.return}}function VG(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=uo(),e.pingedLanes|=e.suspendedLanes&n,Sr===e&&(Lr&n)===n&&(pr===4||pr===3&&(Lr&130023424)===Lr&&500>tr()-wP?dc(e,0):bP|=n),Io(e,t)}function hF(e,t){t===0&&(e.mode&1?(t=Ym,Ym<<=1,!(Ym&130023424)&&(Ym=4194304)):t=1);var n=uo();e=yl(e,t),e!==null&&(Ih(e,t,n),Io(e,n))}function jG(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),hF(e,n)}function HG(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(He(314))}r!==null&&r.delete(t),hF(e,n)}var mF;mF=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ko.current)Po=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Po=!1,TG(e,t,n);Po=!!(e.flags&131072)}else Po=!1,An&&t.flags&1048576&&yL(t,yv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Bg(e,t),e=t.pendingProps;var o=fd(t,Zr.current);Ju(t,n),o=pP(null,t,r,e,o,n);var s=hP();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,Eo(r)?(s=!0,gv(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,aP(t),o.updater=Iy,t.stateNode=o,o._reactInternals=t,rx(t,r,e,n),t=ix(null,t,r,!0,s,n)):(t.tag=0,An&&s&&tP(t),so(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Bg(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=WG(r),e=Qs(r,e),o){case 0:t=sx(null,t,r,e,n);break e;case 1:t=DT(null,t,r,e,n);break e;case 11:t=RT(null,t,r,e,n);break e;case 14:t=OT(null,t,r,Qs(r.type,e),n);break e}throw Error(He(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qs(r,o),sx(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qs(r,o),DT(e,t,r,o,n);case 3:e:{if(ZL(t),e===null)throw Error(He(387));r=t.pendingProps,s=t.memoizedState,o=s.element,xL(e,t),Cv(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=gd(Error(He(423)),t),t=AT(e,t,r,n,o);break e}else if(r!==o){o=gd(Error(He(424)),t),t=AT(e,t,r,n,o);break e}else for(Ko=ha(t.stateNode.containerInfo.firstChild),qo=t,An=!0,Js=null,n=EL(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(pd(),r===o){t=bl(e,t,n);break e}so(e,t,r,n)}t=t.child}return t;case 5:return IL(t),e===null&&ex(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,YC(r,o)?i=null:s!==null&&YC(r,s)&&(t.flags|=32),XL(e,t),so(e,t,i,n),t.child;case 6:return e===null&&ex(t),null;case 13:return JL(e,t,n);case 4:return cP(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=hd(t,null,r,n):so(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qs(r,o),RT(e,t,r,o,n);case 7:return so(e,t,t.pendingProps,n),t.child;case 8:return so(e,t,t.pendingProps.children,n),t.child;case 12:return so(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,xn(bv,r._currentValue),r._currentValue=i,s!==null)if(ci(s.value,i)){if(s.children===o.children&&!ko.current){t=bl(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){i=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=pl(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),tx(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(He(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),tx(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}so(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ju(t,n),o=Rs(o),r=r(o),t.flags|=1,so(e,t,r,n),t.child;case 14:return r=t.type,o=Qs(r,t.pendingProps),o=Qs(r.type,o),OT(e,t,r,o,n);case 15:return YL(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qs(r,o),Bg(e,t),t.tag=1,Eo(r)?(e=!0,gv(t)):e=!1,Ju(t,n),PL(t,r,o),rx(t,r,o,n),ix(null,t,r,!0,e,n);case 19:return eF(e,t,n);case 22:return QL(e,t,n)}throw Error(He(156,t.tag))};function gF(e,t){return jA(e,t)}function UG(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 Ms(e,t,n,r){return new UG(e,t,n,r)}function PP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function WG(e){if(typeof e=="function")return PP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===HS)return 11;if(e===US)return 14}return 2}function ya(e,t){var n=e.alternate;return n===null?(n=Ms(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 jg(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")PP(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case $u:return fc(n.children,o,s,t);case jS:i=8,o|=8;break;case IC:return e=Ms(12,n,t,o|2),e.elementType=IC,e.lanes=s,e;case MC:return e=Ms(13,n,t,o),e.elementType=MC,e.lanes=s,e;case _C:return e=Ms(19,n,t,o),e.elementType=_C,e.lanes=s,e;case kA:return $y(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case SA:i=10;break e;case PA:i=9;break e;case HS:i=11;break e;case US:i=14;break e;case Ql:i=16,r=null;break e}throw Error(He(130,e==null?e:typeof e,""))}return t=Ms(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function fc(e,t,n,r){return e=Ms(7,e,r,t),e.lanes=n,e}function $y(e,t,n,r){return e=Ms(22,e,r,t),e.elementType=kA,e.lanes=n,e.stateNode={isHidden:!1},e}function Cw(e,t,n){return e=Ms(6,e,null,t),e.lanes=n,e}function xw(e,t,n){return t=Ms(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function GG(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=nw(0),this.expirationTimes=nw(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nw(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function kP(e,t,n,r,o,s,i,l,a){return e=new GG(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ms(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},aP(s),e}function KG(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Tu,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function vF(e){if(!e)return Pa;e=e._reactInternals;e:{if(Bc(e)!==e||e.tag!==1)throw Error(He(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Eo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(He(171))}if(e.tag===1){var n=e.type;if(Eo(n))return gL(e,n,t)}return t}function yF(e,t,n,r,o,s,i,l,a){return e=kP(n,r,!0,e,o,s,i,l,a),e.context=vF(null),n=e.current,r=uo(),o=va(n),s=pl(r,o),s.callback=t!=null?t:null,ma(n,s,o),e.current.lanes=o,Ih(e,o,r),Io(e,r),e}function Ry(e,t,n,r){var o=t.current,s=uo(),i=va(o);return n=vF(n),t.context===null?t.context=n:t.pendingContext=n,t=pl(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ma(o,t,i),e!==null&&(ii(e,o,i,s),Lg(e,o,i)),i}function _v(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 WT(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function EP(e,t){WT(e,t),(e=e.alternate)&&WT(e,t)}function qG(){return null}var bF=typeof reportError=="function"?reportError:function(e){console.error(e)};function IP(e){this._internalRoot=e}Oy.prototype.render=IP.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(He(409));Ry(e,t,null,null)};Oy.prototype.unmount=IP.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;kc(function(){Ry(null,e,null,null)}),t[vl]=null}};function Oy(e){this._internalRoot=e}Oy.prototype.unstable_scheduleHydration=function(e){if(e){var t=YA();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ta.length&&t!==0&&t<ta[n].priority;n++);ta.splice(n,0,e),n===0&&XA(e)}};function MP(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Dy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function GT(){}function YG(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var u=_v(i);s.call(u)}}var i=yF(t,r,e,0,null,!1,!1,"",GT);return e._reactRootContainer=i,e[vl]=i.current,Up(e.nodeType===8?e.parentNode:e),kc(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var u=_v(a);l.call(u)}}var a=kP(e,0,!1,null,null,!1,!1,"",GT);return e._reactRootContainer=a,e[vl]=a.current,Up(e.nodeType===8?e.parentNode:e),kc(function(){Ry(t,a,n,r)}),a}function Ay(e,t,n,r,o){var s=n._reactRootContainer;if(s){var i=s;if(typeof o=="function"){var l=o;o=function(){var a=_v(i);l.call(a)}}Ry(t,i,e,o)}else i=YG(n,t,e,o,r);return _v(i)}KA=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=tp(t.pendingLanes);n!==0&&(KS(t,n|1),Io(t,tr()),!(Xt&6)&&(vd=tr()+500,Da()))}break;case 13:kc(function(){var r=yl(e,1);if(r!==null){var o=uo();ii(r,e,1,o)}}),EP(e,1)}};qS=function(e){if(e.tag===13){var t=yl(e,134217728);if(t!==null){var n=uo();ii(t,e,134217728,n)}EP(e,134217728)}};qA=function(e){if(e.tag===13){var t=va(e),n=yl(e,t);if(n!==null){var r=uo();ii(n,e,t,r)}EP(e,t)}};YA=function(){return dn};QA=function(e,t){var n=dn;try{return dn=e,t()}finally{dn=n}};BC=function(e,t,n){switch(t){case"input":if(RC(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=ky(r);if(!o)throw Error(He(90));IA(r),RC(r,o)}}}break;case"textarea":_A(e,n);break;case"select":t=n.value,t!=null&&Yu(e,!!n.multiple,t,!1)}};LA=CP;FA=kc;var QG={usingClientEntryPoint:!1,Events:[_h,Au,ky,DA,AA,CP]},Lf={findFiberByHostInstance:sc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},XG={bundleType:Lf.bundleType,version:Lf.version,rendererPackageName:Lf.rendererPackageName,rendererConfig:Lf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:kl.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=zA(e),e===null?null:e.stateNode},findFiberByHostInstance:Lf.findFiberByHostInstance||qG,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 ig=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ig.isDisabled&&ig.supportsFiber)try{Cy=ig.inject(XG),Mi=ig}catch(e){}}os.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=QG;os.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!MP(t))throw Error(He(200));return KG(e,t,null,n)};os.createRoot=function(e,t){if(!MP(e))throw Error(He(299));var n=!1,r="",o=bF;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=kP(e,1,!1,null,null,n,!1,r,o),e[vl]=t.current,Up(e.nodeType===8?e.parentNode:e),new IP(t)};os.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(He(188)):(e=Object.keys(e).join(","),Error(He(268,e)));return e=zA(t),e=e===null?null:e.stateNode,e};os.flushSync=function(e){return kc(e)};os.hydrate=function(e,t,n){if(!Dy(t))throw Error(He(200));return Ay(null,e,t,!0,n)};os.hydrateRoot=function(e,t,n){if(!MP(e))throw Error(He(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=bF;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=yF(t,null,e,1,n!=null?n:null,o,!1,s,i),e[vl]=t.current,Up(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 Oy(t)};os.render=function(e,t,n){if(!Dy(t))throw Error(He(200));return Ay(null,e,t,!1,n)};os.unmountComponentAtNode=function(e){if(!Dy(e))throw Error(He(40));return e._reactRootContainer?(kc(function(){Ay(null,null,e,!1,function(){e._reactRootContainer=null,e[vl]=null})}),!0):!1};os.unstable_batchedUpdates=CP;os.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Dy(n))throw Error(He(200));if(e==null||e._reactInternals===void 0)throw Error(He(38));return Ay(e,t,n,!1,r)};os.version="18.2.0-next-9e3b772b8-20220608";function wF(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wF)}catch(e){console.error(e)}}wF(),yA.exports=os;var zd=yA.exports;const lg=di(zd);var CF,KT=zd;CF=KT.createRoot,KT.hydrateRoot;const ZG="modulepreload",JG=function(e){return"/"+e},qT={},eK=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=JG(s),s in qT)return;qT[s]=!0;const i=s.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(!!r)for(let f=o.length-1;f>=0;f--){const p=o[f];if(p.href===s&&(!i||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${l}`))return;const u=document.createElement("link");if(u.rel=i?"stylesheet":ZG,i||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),i)return new Promise((f,p)=>{u.addEventListener("load",f),u.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})};var aA;if(!((aA=window.crypto)!=null&&aA.subtle)){let t;console.debug("poly subtle");const e={digest(n,r){return ot(this,null,function*(){if(n!=="SHA-512")return alert(n+" required but not supported");const s=(yield eK(()=>import("./sha512-a1b6cce6.js").then(i=>i.s),[])).default.arrayBuffer;return s(r)})}};window.crypto||(window.crypto={subtle:e}),crypto.subtle||(crypto.subtle=e)}/**
33
+ * @remix-run/router v1.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 Jp(){return Jp=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},Jp.apply(this,arguments)}var ia;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ia||(ia={}));const YT="popstate";function tK(e){e===void 0&&(e={});function t(o,s){let{pathname:i="/",search:l="",hash:a=""}=zc(o.location.hash.substr(1));return yx("",{pathname:i,search:l,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(o,s){let i=o.document.querySelector("base"),l="";if(i&&i.getAttribute("href")){let a=o.location.href,u=a.indexOf("#");l=u===-1?a:a.slice(0,u)}return l+"#"+(typeof s=="string"?s:Tv(s))}function r(o,s){Ly(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(s)+")")}return rK(t,n,r,e)}function gr(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function Ly(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function nK(){return Math.random().toString(36).substr(2,8)}function QT(e,t){return{usr:e.state,key:e.key,idx:t}}function yx(e,t,n,r){return n===void 0&&(n=null),Jp({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?zc(t):t,{state:n,key:t&&t.key||r||nK()})}function Tv(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 zc(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 rK(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,l=ia.Pop,a=null,u=f();u==null&&(u=0,i.replaceState(Jp({},i.state,{idx:u}),""));function f(){return(i.state||{idx:null}).idx}function p(){l=ia.Pop;let C=f(),b=C==null?null:C-u;u=C,a&&a({action:l,location:g.location,delta:b})}function m(C,b){l=ia.Push;let w=yx(g.location,C,b);n&&n(w,C),u=f()+1;let S=QT(w,u),k=g.createHref(w);try{i.pushState(S,"",k)}catch(M){o.location.assign(k)}s&&a&&a({action:l,location:g.location,delta:1})}function v(C,b){l=ia.Replace;let w=yx(g.location,C,b);n&&n(w,C),u=f();let S=QT(w,u),k=g.createHref(w);i.replaceState(S,"",k),s&&a&&a({action:l,location:g.location,delta:0})}function y(C){let b=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof C=="string"?C:Tv(C);return gr(b,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,b)}let g={get action(){return l},get location(){return e(o,i)},listen(C){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(YT,p),a=C,()=>{o.removeEventListener(YT,p),a=null}},createHref(C){return t(o,C)},createURL:y,encodeLocation(C){let b=y(C);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:m,replace:v,go(C){return i.go(C)}};return g}var XT;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(XT||(XT={}));function oK(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?zc(t):t,o=_P(r.pathname||"/",n);if(o==null)return null;let s=xF(e);sK(s);let i=null;for(let l=0;i==null&&l<s.length;++l)i=hK(s[l],vK(o));return i}function xF(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(s,i,l)=>{let a={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};a.relativePath.startsWith("/")&&(gr(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=ba([r,a.relativePath]),f=n.concat(a);s.children&&s.children.length>0&&(gr(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),xF(s.children,t,f,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:fK(u,s.index),routesMeta:f})};return e.forEach((s,i)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))o(s,i);else for(let a of SF(s.path))o(s,i,a)}),t}function SF(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=SF(r.join("/")),l=[];return l.push(...i.map(a=>a===""?s:[s,a].join("/"))),o&&l.push(...i),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function sK(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:pK(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const iK=/^:\w+$/,lK=3,aK=2,cK=1,uK=10,dK=-2,ZT=e=>e==="*";function fK(e,t){let n=e.split("/"),r=n.length;return n.some(ZT)&&(r+=dK),t&&(r+=aK),n.filter(o=>!ZT(o)).reduce((o,s)=>o+(iK.test(s)?lK:s===""?cK:uK),r)}function pK(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 hK(e,t){let{routesMeta:n}=e,r={},o="/",s=[];for(let i=0;i<n.length;++i){let l=n[i],a=i===n.length-1,u=o==="/"?t:t.slice(o.length)||"/",f=mK({path:l.relativePath,caseSensitive:l.caseSensitive,end:a},u);if(!f)return null;Object.assign(r,f.params);let p=l.route;s.push({params:r,pathname:ba([o,f.pathname]),pathnameBase:CK(ba([o,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(o=ba([o,f.pathnameBase]))}return s}function mK(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=gK(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],i=s.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((u,f,p)=>{if(f==="*"){let m=l[p]||"";i=s.slice(0,s.length-m.length).replace(/(.)\/+$/,"$1")}return u[f]=yK(l[p]||"",f),u},{}),pathname:s,pathnameBase:i,pattern:e}}function gK(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ly(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(i,l)=>(r.push(l),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function vK(e){try{return decodeURI(e)}catch(t){return Ly(!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 yK(e,t){try{return decodeURIComponent(e)}catch(n){return Ly(!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 _P(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 bK(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?zc(e):e;return{pathname:n?n.startsWith("/")?n:wK(n,t):t,search:xK(r),hash:SK(o)}}function wK(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 Sw(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 PF(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function kF(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=zc(e):(o=Jp({},e),gr(!o.pathname||!o.pathname.includes("?"),Sw("?","pathname","search",o)),gr(!o.pathname||!o.pathname.includes("#"),Sw("#","pathname","hash",o)),gr(!o.search||!o.search.includes("#"),Sw("#","search","hash",o)));let s=e===""||o.pathname==="",i=s?"/":o.pathname,l;if(r||i==null)l=n;else{let p=t.length-1;if(i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),p-=1;o.pathname=m.join("/")}l=p>=0?t[p]:"/"}let a=bK(o,l),u=i&&i!=="/"&&i.endsWith("/"),f=(s||i===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||f)&&(a.pathname+="/"),a}const ba=e=>e.join("/").replace(/\/\/+/g,"/"),CK=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),xK=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,SK=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function PK(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const EF=["post","put","patch","delete"];new Set(EF);const kK=["get",...EF];new Set(kK);/**
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 EK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const IK=typeof Object.is=="function"?Object.is:EK,{useState:MK,useEffect:_K,useLayoutEffect:TK,useDebugValue:$K}=wc;function RK(e,t,n){const r=t(),[{inst:o},s]=MK({inst:{value:r,getSnapshot:t}});return TK(()=>{o.value=r,o.getSnapshot=t,Pw(o)&&s({inst:o})},[e,r,t]),_K(()=>(Pw(o)&&s({inst:o}),e(()=>{Pw(o)&&s({inst:o})})),[e]),$K(r),r}function Pw(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!IK(n,r)}catch(r){return!0}}function OK(e,t,n){return t()}const DK=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",AK=!DK,LK=AK?OK:RK;"useSyncExternalStore"in wc&&(e=>e.useSyncExternalStore)(wc);const IF=c.createContext(null),TP=c.createContext(null),Vd=c.createContext(null),Fy=c.createContext(null),jd=c.createContext({outlet:null,matches:[]}),MF=c.createContext(null);function bx(){return bx=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},bx.apply(this,arguments)}function FK(e,t){let{relative:n}=t===void 0?{}:t;$h()||gr(!1);let{basename:r,navigator:o}=c.useContext(Vd),{hash:s,pathname:i,search:l}=$P(e,{relative:n}),a=i;return r!=="/"&&(a=i==="/"?r:ba([r,i])),o.createHref({pathname:a,search:l,hash:s})}function $h(){return c.useContext(Fy)!=null}function Hd(){return $h()||gr(!1),c.useContext(Fy).location}function NK(){$h()||gr(!1);let{basename:e,navigator:t}=c.useContext(Vd),{matches:n}=c.useContext(jd),{pathname:r}=Hd(),o=JSON.stringify(PF(n).map(l=>l.pathnameBase)),s=c.useRef(!1);return c.useEffect(()=>{s.current=!0}),c.useCallback(function(l,a){if(a===void 0&&(a={}),!s.current)return;if(typeof l=="number"){t.go(l);return}let u=kF(l,JSON.parse(o),r,a.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:ba([e,u.pathname])),(a.replace?t.replace:t.push)(u,a.state,a)},[e,t,o,r])}function $P(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=c.useContext(jd),{pathname:o}=Hd(),s=JSON.stringify(PF(r).map(i=>i.pathnameBase));return c.useMemo(()=>kF(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function BK(e,t){$h()||gr(!1);let{navigator:n}=c.useContext(Vd),r=c.useContext(TP),{matches:o}=c.useContext(jd),s=o[o.length-1],i=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let a=Hd(),u;if(t){var f;let g=typeof t=="string"?zc(t):t;l==="/"||(f=g.pathname)!=null&&f.startsWith(l)||gr(!1),u=g}else u=a;let p=u.pathname||"/",m=l==="/"?p:p.slice(l.length)||"/",v=oK(e,{pathname:m}),y=HK(v&&v.map(g=>Object.assign({},g,{params:Object.assign({},i,g.params),pathname:ba([l,n.encodeLocation?n.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:ba([l,n.encodeLocation?n.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,r||void 0);return t&&y?c.createElement(Fy.Provider,{value:{location:bx({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:ia.Pop}},y):y}function zK(){let e=KK(),t=PK(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},s=null;return c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),n?c.createElement("pre",{style:o},n):null,s)}class VK extends c.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?c.createElement(jd.Provider,{value:this.props.routeContext},c.createElement(MF.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function jK(e){let{routeContext:t,match:n,children:r}=e,o=c.useContext(IF);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),c.createElement(jd.Provider,{value:t},r)}function HK(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 s=r.findIndex(i=>i.route.id&&(o==null?void 0:o[i.route.id]));s>=0||gr(!1),r=r.slice(0,Math.min(r.length,s+1))}return r.reduceRight((s,i,l)=>{let a=i.route.id?o==null?void 0:o[i.route.id]:null,u=null;n&&(i.route.ErrorBoundary?u=c.createElement(i.route.ErrorBoundary,null):i.route.errorElement?u=i.route.errorElement:u=c.createElement(zK,null));let f=t.concat(r.slice(0,l+1)),p=()=>{let m=s;return a?m=u:i.route.Component?m=c.createElement(i.route.Component,null):i.route.element&&(m=i.route.element),c.createElement(jK,{match:i,routeContext:{outlet:s,matches:f},children:m})};return n&&(i.route.ErrorBoundary||i.route.errorElement||l===0)?c.createElement(VK,{location:n.location,component:u,error:a,children:p(),routeContext:{outlet:null,matches:f}}):p()},null)}var JT;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(JT||(JT={}));var $v;(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"})($v||($v={}));function UK(e){let t=c.useContext(TP);return t||gr(!1),t}function WK(e){let t=c.useContext(jd);return t||gr(!1),t}function GK(e){let t=WK(),n=t.matches[t.matches.length-1];return n.route.id||gr(!1),n.route.id}function KK(){var e;let t=c.useContext(MF),n=UK($v.UseRouteError),r=GK($v.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function wx(e){gr(!1)}function qK(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ia.Pop,navigator:s,static:i=!1}=e;$h()&&gr(!1);let l=t.replace(/^\/*/,"/"),a=c.useMemo(()=>({basename:l,navigator:s,static:i}),[l,s,i]);typeof r=="string"&&(r=zc(r));let{pathname:u="/",search:f="",hash:p="",state:m=null,key:v="default"}=r,y=c.useMemo(()=>{let g=_P(u,l);return g==null?null:{location:{pathname:g,search:f,hash:p,state:m,key:v},navigationType:o}},[l,u,f,p,m,v,o]);return y==null?null:c.createElement(Vd.Provider,{value:a},c.createElement(Fy.Provider,{children:n,value:y}))}function YK(e){let{children:t,location:n}=e,r=c.useContext(IF),o=r&&!t?r.router.routes:Cx(t);return BK(o,n)}var e$;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(e$||(e$={}));new Promise(()=>{});function Cx(e,t){t===void 0&&(t=[]);let n=[];return c.Children.forEach(e,(r,o)=>{if(!c.isValidElement(r))return;let s=[...t,o];if(r.type===c.Fragment){n.push.apply(n,Cx(r.props.children,s));return}r.type!==wx&&gr(!1),!r.props.index||!r.props.children||gr(!1);let i={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Cx(r.props.children,s)),n.push(i)}),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 Rv(){return Rv=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},Rv.apply(this,arguments)}function _F(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function QK(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function XK(e,t){return e.button===0&&(!t||t==="_self")&&!QK(e)}const ZK=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],JK=["aria-current","caseSensitive","className","end","style","to","children"];function eq(e){let{basename:t,children:n,window:r}=e,o=c.useRef();o.current==null&&(o.current=tK({window:r,v5Compat:!0}));let s=o.current,[i,l]=c.useState({action:s.action,location:s.location});return c.useLayoutEffect(()=>s.listen(l),[s]),c.createElement(qK,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:s})}const tq=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",nq=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,RP=c.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:i,state:l,target:a,to:u,preventScrollReset:f}=t,p=_F(t,ZK),{basename:m}=c.useContext(Vd),v,y=!1;if(typeof u=="string"&&nq.test(u)&&(v=u,tq)){let w=new URL(window.location.href),S=u.startsWith("//")?new URL(w.protocol+u):new URL(u),k=_P(S.pathname,m);S.origin===w.origin&&k!=null?u=k+S.search+S.hash:y=!0}let g=FK(u,{relative:o}),C=oq(u,{replace:i,state:l,target:a,preventScrollReset:f,relative:o});function b(w){r&&r(w),w.defaultPrevented||C(w)}return c.createElement("a",Rv({},p,{href:v||g,onClick:y||s?r:b,ref:n,target:a}))}),rq=c.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:s="",end:i=!1,style:l,to:a,children:u}=t,f=_F(t,JK),p=$P(a,{relative:f.relative}),m=Hd(),v=c.useContext(TP),{navigator:y}=c.useContext(Vd),g=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,C=m.pathname,b=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;o||(C=C.toLowerCase(),b=b?b.toLowerCase():null,g=g.toLowerCase());let w=C===g||!i&&C.startsWith(g)&&C.charAt(g.length)==="/",S=b!=null&&(b===g||!i&&b.startsWith(g)&&b.charAt(g.length)==="/"),k=w?r:void 0,M;typeof s=="function"?M=s({isActive:w,isPending:S}):M=[s,w?"active":null,S?"pending":null].filter(Boolean).join(" ");let E=typeof l=="function"?l({isActive:w,isPending:S}):l;return c.createElement(RP,Rv({},f,{"aria-current":k,className:M,ref:n,style:E,to:a}),typeof u=="function"?u({isActive:w,isPending:S}):u)});var t$;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(t$||(t$={}));var n$;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(n$||(n$={}));function oq(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:i}=t===void 0?{}:t,l=NK(),a=Hd(),u=$P(e,{relative:i});return c.useCallback(f=>{if(XK(f,n)){f.preventDefault();let p=r!==void 0?r:Tv(a)===Tv(u);l(e,{replace:p,state:o,preventScrollReset:s,relative:i})}},[a,l,u,r,o,n,e,s,i])}const sq={black:"#000",white:"#fff"},eh=sq,iq={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"},au=iq,lq={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"},cu=lq,aq={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"},uu=aq,cq={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"},du=cq,uq={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"},fu=uq,dq={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"},Ff=dq,fq={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"},pq=fq;function hq(e,t){return()=>null}function x(){return x=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},x.apply(this,arguments)}function il(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function TF(e){if(!il(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=TF(e[n])}),t}function Yr(e,t,n={clone:!0}){const r=n.clone?x({},e):e;return il(e)&&il(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(il(t[o])&&o in e&&il(e[o])?r[o]=Yr(e[o],t[o],n):n.clone?r[o]=il(t[o])?TF(t[o]):t[o]:r[o]=t[o])}),r}var $F={exports:{}},mq="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",gq=mq,vq=gq;function RF(){}function OF(){}OF.resetWarningCache=RF;var yq=function(){function e(r,o,s,i,l,a){if(a!==vq){var u=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 u.name="Invariant Violation",u}}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:OF,resetWarningCache:RF};return n.PropTypes=n,n};$F.exports=yq();var bq=$F.exports;const W=di(bq);function ka(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 gn={};/**
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 OP=Symbol.for("react.element"),DP=Symbol.for("react.portal"),Ny=Symbol.for("react.fragment"),By=Symbol.for("react.strict_mode"),zy=Symbol.for("react.profiler"),Vy=Symbol.for("react.provider"),jy=Symbol.for("react.context"),wq=Symbol.for("react.server_context"),Hy=Symbol.for("react.forward_ref"),Uy=Symbol.for("react.suspense"),Wy=Symbol.for("react.suspense_list"),Gy=Symbol.for("react.memo"),Ky=Symbol.for("react.lazy"),Cq=Symbol.for("react.offscreen"),DF;DF=Symbol.for("react.module.reference");function Bs(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case OP:switch(e=e.type,e){case Ny:case zy:case By:case Uy:case Wy:return e;default:switch(e=e&&e.$$typeof,e){case wq:case jy:case Hy:case Ky:case Gy:case Vy:return e;default:return t}}case DP:return t}}}gn.ContextConsumer=jy;gn.ContextProvider=Vy;gn.Element=OP;gn.ForwardRef=Hy;gn.Fragment=Ny;gn.Lazy=Ky;gn.Memo=Gy;gn.Portal=DP;gn.Profiler=zy;gn.StrictMode=By;gn.Suspense=Uy;gn.SuspenseList=Wy;gn.isAsyncMode=function(){return!1};gn.isConcurrentMode=function(){return!1};gn.isContextConsumer=function(e){return Bs(e)===jy};gn.isContextProvider=function(e){return Bs(e)===Vy};gn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===OP};gn.isForwardRef=function(e){return Bs(e)===Hy};gn.isFragment=function(e){return Bs(e)===Ny};gn.isLazy=function(e){return Bs(e)===Ky};gn.isMemo=function(e){return Bs(e)===Gy};gn.isPortal=function(e){return Bs(e)===DP};gn.isProfiler=function(e){return Bs(e)===zy};gn.isStrictMode=function(e){return Bs(e)===By};gn.isSuspense=function(e){return Bs(e)===Uy};gn.isSuspenseList=function(e){return Bs(e)===Wy};gn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ny||e===zy||e===By||e===Uy||e===Wy||e===Cq||typeof e=="object"&&e!==null&&(e.$$typeof===Ky||e.$$typeof===Gy||e.$$typeof===Vy||e.$$typeof===jy||e.$$typeof===Hy||e.$$typeof===DF||e.getModuleId!==void 0)};gn.typeOf=Bs;const xq=W.oneOfType([W.func,W.object]),AF=xq;function Pe(e){if(typeof e!="string")throw new Error(ka(7));return e.charAt(0).toUpperCase()+e.slice(1)}function xx(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Aa(e,t=166){let n;function r(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function Sq(e,t){return()=>null}function Sp(e,t){var n,r;return c.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function fn(e){return e&&e.ownerDocument||document}function Jo(e){return fn(e).defaultView||window}function Pq(e,t){return()=>null}function th(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const kq=typeof window!="undefined"?c.useLayoutEffect:c.useEffect,Nt=kq;let r$=0;function Eq(e){const[t,n]=c.useState(e),r=e||t;return c.useEffect(()=>{t==null&&(r$+=1,n(`mui-${r$}`))},[t]),r}const o$=wc["useId".toString()];function Kt(e){if(o$!==void 0){const t=o$();return e!=null?e:t}return Eq(e)}function Iq(e,t,n,r,o){return null}function Qr({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=c.useRef(e!==void 0),[s,i]=c.useState(t),l=o?e:s,a=c.useCallback(u=>{o||i(u)},[]);return[l,a]}function Ye(e){const t=c.useRef(e);return Nt(()=>{t.current=e}),c.useRef((...n)=>(0,t.current)(...n)).current}function Et(...e){return c.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{th(n,t)})},e)}let qy=!0,Sx=!1,s$;const Mq={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 _q(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Mq[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Tq(e){e.metaKey||e.altKey||e.ctrlKey||(qy=!0)}function kw(){qy=!1}function $q(){this.visibilityState==="hidden"&&Sx&&(qy=!0)}function Rq(e){e.addEventListener("keydown",Tq,!0),e.addEventListener("mousedown",kw,!0),e.addEventListener("pointerdown",kw,!0),e.addEventListener("touchstart",kw,!0),e.addEventListener("visibilitychange",$q,!0)}function Oq(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return qy||_q(t)}function Yy(){const e=c.useCallback(o=>{o!=null&&Rq(o.ownerDocument)},[]),t=c.useRef(!1);function n(){return t.current?(Sx=!0,window.clearTimeout(s$),s$=window.setTimeout(()=>{Sx=!1},100),t.current=!1,!0):!1}function r(o){return Oq(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function LF(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let pu;function FF(){if(pu)return pu;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),pu="reverse",e.scrollLeft>0?pu="default":(e.scrollLeft=1,e.scrollLeft===0&&(pu="negative")),document.body.removeChild(e),pu}function Dq(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(FF()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Aq=e=>{const t=c.useRef({});return c.useEffect(()=>{t.current=e}),t.current},AP=Aq;function LP(e,t){const n=x({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=x({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},s=t[r];n[r]={},!s||!Object.keys(s)?n[r]=o:!o||!Object.keys(o)?n[r]=s:(n[r]=x({},s),Object.keys(o).forEach(i=>{n[r][i]=LP(o[i],s[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Te(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((s,i)=>{if(i){const l=t(i);l!==""&&s.push(l),n&&n[i]&&s.push(n[i])}return s},[]).join(" ")}),r}const i$=e=>e,Lq=()=>{let e=i$;return{configure(t){e=t},generate(t){return e(t)},reset(){e=i$}}},Fq=Lq(),FP=Fq,Nq={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ke(e,t,n="Mui"){const r=Nq[t];return r?`${n}-${r}`:`${FP.generate(e)}-${t}`}function We(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ke(e,o,n)}),r}const Ec="$$material";function le(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function NF(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Bq=/^((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)-.*))$/,zq=NF(function(e){return Bq.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Vq(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 jq(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 Hq=function(){function e(n){var r=this;this._insertTag=function(o){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,s),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(jq(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Vq(o);try{s.insertRule(r,s.cssRules.length)}catch(i){}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Hr="-ms-",Ov="-moz-",tn="-webkit-",BF="comm",NP="rule",BP="decl",Uq="@import",zF="@keyframes",Wq="@layer",Gq=Math.abs,Qy=String.fromCharCode,Kq=Object.assign;function qq(e,t){return Dr(e,0)^45?(((t<<2^Dr(e,0))<<2^Dr(e,1))<<2^Dr(e,2))<<2^Dr(e,3):0}function VF(e){return e.trim()}function Yq(e,t){return(e=t.exec(e))?e[0]:e}function nn(e,t,n){return e.replace(t,n)}function Px(e,t){return e.indexOf(t)}function Dr(e,t){return e.charCodeAt(t)|0}function nh(e,t,n){return e.slice(t,n)}function Si(e){return e.length}function zP(e){return e.length}function ag(e,t){return t.push(e),e}function Qq(e,t){return e.map(t).join("")}var Xy=1,yd=1,jF=0,To=0,ar=0,Ud="";function Zy(e,t,n,r,o,s,i){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Xy,column:yd,length:i,return:""}}function Nf(e,t){return Kq(Zy("",null,null,"",null,null,0),e,{length:-e.length},t)}function Xq(){return ar}function Zq(){return ar=To>0?Dr(Ud,--To):0,yd--,ar===10&&(yd=1,Xy--),ar}function Yo(){return ar=To<jF?Dr(Ud,To++):0,yd++,ar===10&&(yd=1,Xy++),ar}function Ti(){return Dr(Ud,To)}function Hg(){return To}function Rh(e,t){return nh(Ud,e,t)}function rh(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 HF(e){return Xy=yd=1,jF=Si(Ud=e),To=0,[]}function UF(e){return Ud="",e}function Ug(e){return VF(Rh(To-1,kx(e===91?e+2:e===40?e+1:e)))}function Jq(e){for(;(ar=Ti())&&ar<33;)Yo();return rh(e)>2||rh(ar)>3?"":" "}function eY(e,t){for(;--t&&Yo()&&!(ar<48||ar>102||ar>57&&ar<65||ar>70&&ar<97););return Rh(e,Hg()+(t<6&&Ti()==32&&Yo()==32))}function kx(e){for(;Yo();)switch(ar){case e:return To;case 34:case 39:e!==34&&e!==39&&kx(ar);break;case 40:e===41&&kx(e);break;case 92:Yo();break}return To}function tY(e,t){for(;Yo()&&e+ar!==47+10;)if(e+ar===42+42&&Ti()===47)break;return"/*"+Rh(t,To-1)+"*"+Qy(e===47?e:Yo())}function nY(e){for(;!rh(Ti());)Yo();return Rh(e,To)}function rY(e){return UF(Wg("",null,null,null,[""],e=HF(e),0,[0],e))}function Wg(e,t,n,r,o,s,i,l,a){for(var u=0,f=0,p=i,m=0,v=0,y=0,g=1,C=1,b=1,w=0,S="",k=o,M=s,E=r,I=S;C;)switch(y=w,w=Yo()){case 40:if(y!=108&&Dr(I,p-1)==58){Px(I+=nn(Ug(w),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:I+=Ug(w);break;case 9:case 10:case 13:case 32:I+=Jq(y);break;case 92:I+=eY(Hg()-1,7);continue;case 47:switch(Ti()){case 42:case 47:ag(oY(tY(Yo(),Hg()),t,n),a);break;default:I+="/"}break;case 123*g:l[u++]=Si(I)*b;case 125*g:case 59:case 0:switch(w){case 0:case 125:C=0;case 59+f:b==-1&&(I=nn(I,/\f/g,"")),v>0&&Si(I)-p&&ag(v>32?a$(I+";",r,n,p-1):a$(nn(I," ","")+";",r,n,p-2),a);break;case 59:I+=";";default:if(ag(E=l$(I,t,n,u,f,o,l,S,k=[],M=[],p),s),w===123)if(f===0)Wg(I,t,E,E,k,s,p,l,M);else switch(m===99&&Dr(I,3)===110?100:m){case 100:case 108:case 109:case 115:Wg(e,E,E,r&&ag(l$(e,E,E,0,0,o,l,S,o,k=[],p),M),o,M,p,l,r?k:M);break;default:Wg(I,E,E,E,[""],M,0,l,M)}}u=f=v=0,g=b=1,S=I="",p=i;break;case 58:p=1+Si(I),v=y;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&Zq()==125)continue}switch(I+=Qy(w),w*g){case 38:b=f>0?1:(I+="\f",-1);break;case 44:l[u++]=(Si(I)-1)*b,b=1;break;case 64:Ti()===45&&(I+=Ug(Yo())),m=Ti(),f=p=Si(S=I+=nY(Hg())),w++;break;case 45:y===45&&Si(I)==2&&(g=0)}}return s}function l$(e,t,n,r,o,s,i,l,a,u,f){for(var p=o-1,m=o===0?s:[""],v=zP(m),y=0,g=0,C=0;y<r;++y)for(var b=0,w=nh(e,p+1,p=Gq(g=i[y])),S=e;b<v;++b)(S=VF(g>0?m[b]+" "+w:nn(w,/&\f/g,m[b])))&&(a[C++]=S);return Zy(e,t,n,o===0?NP:l,a,u,f)}function oY(e,t,n){return Zy(e,t,n,BF,Qy(Xq()),nh(e,2,-2),0)}function a$(e,t,n,r){return Zy(e,t,n,BP,nh(e,0,r),nh(e,r+1,-1),r)}function td(e,t){for(var n="",r=zP(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function sY(e,t,n,r){switch(e.type){case Wq:if(e.children.length)break;case Uq:case BP:return e.return=e.return||e.value;case BF:return"";case zF:return e.return=e.value+"{"+td(e.children,r)+"}";case NP:e.value=e.props.join(",")}return Si(n=td(e.children,r))?e.return=e.value+"{"+n+"}":""}function iY(e){var t=zP(e);return function(n,r,o,s){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,s)||"";return i}}function lY(e){return function(t){t.root||(t=t.return)&&e(t)}}var aY=function(t,n,r){for(var o=0,s=0;o=s,s=Ti(),o===38&&s===12&&(n[r]=1),!rh(s);)Yo();return Rh(t,To)},cY=function(t,n){var r=-1,o=44;do switch(rh(o)){case 0:o===38&&Ti()===12&&(n[r]=1),t[r]+=aY(To-1,n,r);break;case 2:t[r]+=Ug(o);break;case 4:if(o===44){t[++r]=Ti()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Qy(o)}while(o=Yo());return t},uY=function(t,n){return UF(cY(HF(t),n))},c$=new WeakMap,dY=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!c$.get(r))&&!o){c$.set(t,!0);for(var s=[],i=uY(n,s),l=r.props,a=0,u=0;a<i.length;a++)for(var f=0;f<l.length;f++,u++)t.props[u]=s[a]?i[a].replace(/&\f/g,l[f]):l[f]+" "+i[a]}}},fY=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function WF(e,t){switch(qq(e,t)){case 5103:return tn+"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 tn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return tn+e+Ov+e+Hr+e+e;case 6828:case 4268:return tn+e+Hr+e+e;case 6165:return tn+e+Hr+"flex-"+e+e;case 5187:return tn+e+nn(e,/(\w+).+(:[^]+)/,tn+"box-$1$2"+Hr+"flex-$1$2")+e;case 5443:return tn+e+Hr+"flex-item-"+nn(e,/flex-|-self/,"")+e;case 4675:return tn+e+Hr+"flex-line-pack"+nn(e,/align-content|flex-|-self/,"")+e;case 5548:return tn+e+Hr+nn(e,"shrink","negative")+e;case 5292:return tn+e+Hr+nn(e,"basis","preferred-size")+e;case 6060:return tn+"box-"+nn(e,"-grow","")+tn+e+Hr+nn(e,"grow","positive")+e;case 4554:return tn+nn(e,/([^-])(transform)/g,"$1"+tn+"$2")+e;case 6187:return nn(nn(nn(e,/(zoom-|grab)/,tn+"$1"),/(image-set)/,tn+"$1"),e,"")+e;case 5495:case 3959:return nn(e,/(image-set\([^]*)/,tn+"$1$`$1");case 4968:return nn(nn(e,/(.+:)(flex-)?(.*)/,tn+"box-pack:$3"+Hr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+tn+e+e;case 4095:case 3583:case 4068:case 2532:return nn(e,/(.+)-inline(.+)/,tn+"$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(Si(e)-1-t>6)switch(Dr(e,t+1)){case 109:if(Dr(e,t+4)!==45)break;case 102:return nn(e,/(.+:)(.+)-([^]+)/,"$1"+tn+"$2-$3$1"+Ov+(Dr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Px(e,"stretch")?WF(nn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Dr(e,t+1)!==115)break;case 6444:switch(Dr(e,Si(e)-3-(~Px(e,"!important")&&10))){case 107:return nn(e,":",":"+tn)+e;case 101:return nn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+tn+(Dr(e,14)===45?"inline-":"")+"box$3$1"+tn+"$2$3$1"+Hr+"$2box$3")+e}break;case 5936:switch(Dr(e,t+11)){case 114:return tn+e+Hr+nn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return tn+e+Hr+nn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return tn+e+Hr+nn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return tn+e+Hr+e+e}return e}var pY=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case BP:t.return=WF(t.value,t.length);break;case zF:return td([Nf(t,{value:nn(t.value,"@","@"+tn)})],o);case NP:if(t.length)return Qq(t.props,function(s){switch(Yq(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return td([Nf(t,{props:[nn(s,/:(read-\w+)/,":"+Ov+"$1")]})],o);case"::placeholder":return td([Nf(t,{props:[nn(s,/:(plac\w+)/,":"+tn+"input-$1")]}),Nf(t,{props:[nn(s,/:(plac\w+)/,":"+Ov+"$1")]}),Nf(t,{props:[nn(s,/:(plac\w+)/,Hr+"input-$1")]})],o)}return""})}},hY=[pY],mY=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 C=g.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||hY,s={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var C=g.getAttribute("data-emotion").split(" "),b=1;b<C.length;b++)s[C[b]]=!0;l.push(g)});var a,u=[dY,fY];{var f,p=[sY,lY(function(g){f.insert(g)})],m=iY(u.concat(o,p)),v=function(C){return td(rY(C),m)};a=function(C,b,w,S){f=w,v(C?C+"{"+b.styles+"}":b.styles),S&&(y.inserted[b.name]=!0)}}var y={key:n,sheet:new Hq({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:a};return y.sheet.hydrate(l),y},GF={exports:{}},pn={};/** @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 Er=typeof Symbol=="function"&&Symbol.for,VP=Er?Symbol.for("react.element"):60103,jP=Er?Symbol.for("react.portal"):60106,Jy=Er?Symbol.for("react.fragment"):60107,eb=Er?Symbol.for("react.strict_mode"):60108,tb=Er?Symbol.for("react.profiler"):60114,nb=Er?Symbol.for("react.provider"):60109,rb=Er?Symbol.for("react.context"):60110,HP=Er?Symbol.for("react.async_mode"):60111,ob=Er?Symbol.for("react.concurrent_mode"):60111,sb=Er?Symbol.for("react.forward_ref"):60112,ib=Er?Symbol.for("react.suspense"):60113,gY=Er?Symbol.for("react.suspense_list"):60120,lb=Er?Symbol.for("react.memo"):60115,ab=Er?Symbol.for("react.lazy"):60116,vY=Er?Symbol.for("react.block"):60121,yY=Er?Symbol.for("react.fundamental"):60117,bY=Er?Symbol.for("react.responder"):60118,wY=Er?Symbol.for("react.scope"):60119;function is(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case VP:switch(e=e.type,e){case HP:case ob:case Jy:case tb:case eb:case ib:return e;default:switch(e=e&&e.$$typeof,e){case rb:case sb:case ab:case lb:case nb:return e;default:return t}}case jP:return t}}}function KF(e){return is(e)===ob}pn.AsyncMode=HP;pn.ConcurrentMode=ob;pn.ContextConsumer=rb;pn.ContextProvider=nb;pn.Element=VP;pn.ForwardRef=sb;pn.Fragment=Jy;pn.Lazy=ab;pn.Memo=lb;pn.Portal=jP;pn.Profiler=tb;pn.StrictMode=eb;pn.Suspense=ib;pn.isAsyncMode=function(e){return KF(e)||is(e)===HP};pn.isConcurrentMode=KF;pn.isContextConsumer=function(e){return is(e)===rb};pn.isContextProvider=function(e){return is(e)===nb};pn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===VP};pn.isForwardRef=function(e){return is(e)===sb};pn.isFragment=function(e){return is(e)===Jy};pn.isLazy=function(e){return is(e)===ab};pn.isMemo=function(e){return is(e)===lb};pn.isPortal=function(e){return is(e)===jP};pn.isProfiler=function(e){return is(e)===tb};pn.isStrictMode=function(e){return is(e)===eb};pn.isSuspense=function(e){return is(e)===ib};pn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Jy||e===ob||e===tb||e===eb||e===ib||e===gY||typeof e=="object"&&e!==null&&(e.$$typeof===ab||e.$$typeof===lb||e.$$typeof===nb||e.$$typeof===rb||e.$$typeof===sb||e.$$typeof===yY||e.$$typeof===bY||e.$$typeof===wY||e.$$typeof===vY)};pn.typeOf=is;GF.exports=pn;var CY=GF.exports,qF=CY,xY={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},SY={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},YF={};YF[qF.ForwardRef]=xY;YF[qF.Memo]=SY;var PY=!0;function kY(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var QF=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||PY===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},XF=function(t,n,r){QF(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function EY(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 IY={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},MY=/[A-Z]|^ms/g,_Y=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ZF=function(t){return t.charCodeAt(1)===45},u$=function(t){return t!=null&&typeof t!="boolean"},Ew=NF(function(e){return ZF(e)?e:e.replace(MY,"-$&").toLowerCase()}),d$=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(_Y,function(r,o,s){return Pi={name:o,styles:s,next:Pi},o})}return IY[t]!==1&&!ZF(t)&&typeof n=="number"&&n!==0?n+"px":n};function oh(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 Pi={name:n.name,styles:n.styles,next:Pi},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Pi={name:r.name,styles:r.styles,next:Pi},r=r.next;var o=n.styles+";";return o}return TY(e,t,n)}case"function":{if(e!==void 0){var s=Pi,i=n(e);return Pi=s,oh(e,t,i)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function TY(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=oh(e,t,n[o])+";";else for(var s in n){var i=n[s];if(typeof i!="object")t!=null&&t[i]!==void 0?r+=s+"{"+t[i]+"}":u$(i)&&(r+=Ew(s)+":"+d$(s,i)+";");else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var l=0;l<i.length;l++)u$(i[l])&&(r+=Ew(s)+":"+d$(s,i[l])+";");else{var a=oh(e,t,i);switch(s){case"animation":case"animationName":{r+=Ew(s)+":"+a+";";break}default:r+=s+"{"+a+"}"}}}return r}var f$=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Pi,UP=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,s="";Pi=void 0;var i=t[0];i==null||i.raw===void 0?(o=!1,s+=oh(r,n,i)):s+=i[0];for(var l=1;l<t.length;l++)s+=oh(r,n,t[l]),o&&(s+=i[l]);f$.lastIndex=0;for(var a="",u;(u=f$.exec(s))!==null;)a+="-"+u[1];var f=EY(s)+a;return{name:f,styles:s,next:Pi}},$Y=function(t){return t()},JF=wc["useInsertionEffect"]?wc["useInsertionEffect"]:!1,RY=JF||$Y,p$=JF||c.useLayoutEffect,eN=c.createContext(typeof HTMLElement!="undefined"?mY({key:"css"}):null);eN.Provider;var tN=function(t){return c.forwardRef(function(n,r){var o=c.useContext(eN);return t(n,o,r)})},cb=c.createContext({}),OY=tN(function(e,t){var n=e.styles,r=UP([n],void 0,c.useContext(cb)),o=c.useRef();return p$(function(){var s=t.key+"-global",i=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,a=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),a!==null&&(l=!0,a.setAttribute("data-emotion",s),i.hydrate([a])),o.current=[i,l],function(){i.flush()}},[t]),p$(function(){var s=o.current,i=s[0],l=s[1];if(l){s[1]=!1;return}if(r.next!==void 0&&XF(t,r.next,!0),i.tags.length){var a=i.tags[i.tags.length-1].nextElementSibling;i.before=a,i.flush()}t.insert("",r,i,!1)},[t,r.name]),null});function Ea(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return UP(t)}var Hi=function(){var t=Ea.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_"}}},DY=zq,AY=function(t){return t!=="theme"},h$=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?DY:AY},m$=function(t,n,r){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(i){return t.__emotion_forwardProp(i)&&s(i)}:s}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},LY=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return QF(n,r,o),RY(function(){return XF(n,r,o)}),null},FY=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,s,i;n!==void 0&&(s=n.label,i=n.target);var l=m$(t,n,r),a=l||h$(o),u=!a("as");return function(){var f=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&p.push("label:"+s+";"),f[0]==null||f[0].raw===void 0)p.push.apply(p,f);else{p.push(f[0][0]);for(var m=f.length,v=1;v<m;v++)p.push(f[v],f[0][v])}var y=tN(function(g,C,b){var w=u&&g.as||o,S="",k=[],M=g;if(g.theme==null){M={};for(var E in g)M[E]=g[E];M.theme=c.useContext(cb)}typeof g.className=="string"?S=kY(C.registered,k,g.className):g.className!=null&&(S=g.className+" ");var I=UP(p.concat(k),C.registered,M);S+=C.key+"-"+I.name,i!==void 0&&(S+=" "+i);var R=u&&l===void 0?h$(w):a,A={};for(var $ in g)u&&$==="as"||R($)&&(A[$]=g[$]);return A.className=S,A.ref=b,c.createElement(c.Fragment,null,c.createElement(LY,{cache:C,serialized:I,isStringTag:typeof w=="string"}),c.createElement(w,A))});return y.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=o,y.__emotion_styles=p,y.__emotion_forwardProp=l,Object.defineProperty(y,"toString",{value:function(){return"."+i}}),y.withComponent=function(g,C){return e(g,x({},n,C,{shouldForwardProp:m$(y,C,!0)})).apply(void 0,p)},y}},NY=["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"],Ex=FY.bind();NY.forEach(function(e){Ex[e]=Ex(e)});var Iw={exports:{}},Bf={};/**
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 g$;function BY(){if(g$)return Bf;g$=1;var e=c,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(l,a,u){var f,p={},m=null,v=null;u!==void 0&&(m=""+u),a.key!==void 0&&(m=""+a.key),a.ref!==void 0&&(v=a.ref);for(f in a)r.call(a,f)&&!s.hasOwnProperty(f)&&(p[f]=a[f]);if(l&&l.defaultProps)for(f in a=l.defaultProps,a)p[f]===void 0&&(p[f]=a[f]);return{$$typeof:t,type:l,key:m,ref:v,props:p,_owner:o.current}}return Bf.Fragment=n,Bf.jsx=i,Bf.jsxs=i,Bf}var v$;function Ze(){return v$||(v$=1,Iw.exports=BY()),Iw.exports}var D=Ze();function zY(e){return e==null||Object.keys(e).length===0}function VY(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(zY(o)?n:o):t;return D.jsx(OY,{styles:r})}/**
83
+ * @mui/styled-engine v5.14.19
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 nN(e,t){return Ex(e,t)}const jY=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},HY=["values","unit","step"],UY=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)=>x({},n,{[r.key]:r.val}),{})};function WY(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=le(e,HY),s=UY(t),i=Object.keys(s);function l(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function a(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function u(m,v){const y=i.indexOf(v);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:v)-r/100}${n})`}function f(m){return i.indexOf(m)+1<i.length?u(m,i[i.indexOf(m)+1]):l(m)}function p(m){const v=i.indexOf(m);return v===0?l(i[1]):v===i.length-1?a(i[v]):u(m,i[i.indexOf(m)+1]).replace("@media","@media not all and")}return x({keys:i,values:s,up:l,down:a,between:u,only:f,not:p,unit:n},o)}const GY={borderRadius:4},KY=GY;function Pp(e,t){return t?Yr(e,t,{clone:!1}):e}const WP={xs:0,sm:600,md:900,lg:1200,xl:1536},y$={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${WP[e]}px)`};function $o(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||y$;return t.reduce((i,l,a)=>(i[s.up(s.keys[a])]=n(t[a]),i),{})}if(typeof t=="object"){const s=r.breakpoints||y$;return Object.keys(t).reduce((i,l)=>{if(Object.keys(s.values||WP).indexOf(l)!==-1){const a=s.up(l);i[a]=n(t[l],l)}else{const a=l;i[a]=t[a]}return i},{})}return n(t)}function rN(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const s=e.up(o);return r[s]={},r},{}))||{}}function oN(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function qY(e,...t){const n=rN(e),r=[n,...t].reduce((o,s)=>Yr(o,s),{});return oN(Object.keys(n),r)}function YY(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,s)=>{s<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function pc({values:e,breakpoints:t,base:n}){const r=n||YY(e,t),o=Object.keys(r);if(o.length===0)return e;let s;return o.reduce((i,l,a)=>(Array.isArray(e)?(i[l]=e[a]!=null?e[a]:e[s],s=a):typeof e=="object"?(i[l]=e[l]!=null?e[l]:e[s],s=l):i[l]=e,i),{})}function bd(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Dv(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=bd(e,n)||r,t&&(o=t(o,r,e)),o}function sr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=i=>{if(i[t]==null)return null;const l=i[t],a=i.theme,u=bd(a,r)||{};return $o(i,l,p=>{let m=Dv(u,o,p);return p===m&&typeof p=="string"&&(m=Dv(u,o,`${t}${p==="default"?"":Pe(p)}`,p)),n===!1?m:{[n]:m}})};return s.propTypes={},s.filterProps=[t],s}function QY(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const XY={m:"margin",p:"padding"},ZY={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},b$={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},JY=QY(e=>{if(e.length>2)if(b$[e])e=b$[e];else return[e];const[t,n]=e.split(""),r=XY[t],o=ZY[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),GP=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],KP=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...GP,...KP];function Oh(e,t,n,r){var o;const s=(o=bd(e,t,!1))!=null?o:n;return typeof s=="number"?i=>typeof i=="string"?i:s*i:Array.isArray(s)?i=>typeof i=="string"?i:s[i]:typeof s=="function"?s:()=>{}}function qP(e){return Oh(e,"spacing",8)}function Ic(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 eQ(e,t){return n=>e.reduce((r,o)=>(r[o]=Ic(t,n),r),{})}function tQ(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=JY(n),s=eQ(o,r),i=e[n];return $o(e,i,s)}function sN(e,t){const n=qP(e.theme);return Object.keys(e).map(r=>tQ(e,t,r,n)).reduce(Pp,{})}function Wn(e){return sN(e,GP)}Wn.propTypes={};Wn.filterProps=GP;function Gn(e){return sN(e,KP)}Gn.propTypes={};Gn.filterProps=KP;function nQ(e=8){if(e.mui)return e;const t=qP({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function ub(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?Pp(o,t[s](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Is(e){return typeof e!="number"?e:`${e}px solid`}function zs(e,t){return sr({prop:e,themeKey:"borders",transform:t})}const rQ=zs("border",Is),oQ=zs("borderTop",Is),sQ=zs("borderRight",Is),iQ=zs("borderBottom",Is),lQ=zs("borderLeft",Is),aQ=zs("borderColor"),cQ=zs("borderTopColor"),uQ=zs("borderRightColor"),dQ=zs("borderBottomColor"),fQ=zs("borderLeftColor"),pQ=zs("outline",Is),hQ=zs("outlineColor"),db=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Oh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ic(t,r)});return $o(e,e.borderRadius,n)}return null};db.propTypes={};db.filterProps=["borderRadius"];ub(rQ,oQ,sQ,iQ,lQ,aQ,cQ,uQ,dQ,fQ,db,pQ,hQ);const fb=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Oh(e.theme,"spacing",8),n=r=>({gap:Ic(t,r)});return $o(e,e.gap,n)}return null};fb.propTypes={};fb.filterProps=["gap"];const pb=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Oh(e.theme,"spacing",8),n=r=>({columnGap:Ic(t,r)});return $o(e,e.columnGap,n)}return null};pb.propTypes={};pb.filterProps=["columnGap"];const hb=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Oh(e.theme,"spacing",8),n=r=>({rowGap:Ic(t,r)});return $o(e,e.rowGap,n)}return null};hb.propTypes={};hb.filterProps=["rowGap"];const mQ=sr({prop:"gridColumn"}),gQ=sr({prop:"gridRow"}),vQ=sr({prop:"gridAutoFlow"}),yQ=sr({prop:"gridAutoColumns"}),bQ=sr({prop:"gridAutoRows"}),wQ=sr({prop:"gridTemplateColumns"}),CQ=sr({prop:"gridTemplateRows"}),xQ=sr({prop:"gridTemplateAreas"}),SQ=sr({prop:"gridArea"});ub(fb,pb,hb,mQ,gQ,vQ,yQ,bQ,wQ,CQ,xQ,SQ);function nd(e,t){return t==="grey"?t:e}const PQ=sr({prop:"color",themeKey:"palette",transform:nd}),kQ=sr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:nd}),EQ=sr({prop:"backgroundColor",themeKey:"palette",transform:nd});ub(PQ,kQ,EQ);function Wo(e){return e<=1&&e!==0?`${e*100}%`:e}const IQ=sr({prop:"width",transform:Wo}),YP=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const s=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||WP[n];return s?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:Wo(n)}};return $o(e,e.maxWidth,t)}return null};YP.filterProps=["maxWidth"];const MQ=sr({prop:"minWidth",transform:Wo}),_Q=sr({prop:"height",transform:Wo}),TQ=sr({prop:"maxHeight",transform:Wo}),$Q=sr({prop:"minHeight",transform:Wo});sr({prop:"size",cssProperty:"width",transform:Wo});sr({prop:"size",cssProperty:"height",transform:Wo});const RQ=sr({prop:"boxSizing"});ub(IQ,YP,MQ,_Q,TQ,$Q,RQ);const OQ={border:{themeKey:"borders",transform:Is},borderTop:{themeKey:"borders",transform:Is},borderRight:{themeKey:"borders",transform:Is},borderBottom:{themeKey:"borders",transform:Is},borderLeft:{themeKey:"borders",transform:Is},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Is},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:db},color:{themeKey:"palette",transform:nd},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:nd},backgroundColor:{themeKey:"palette",transform:nd},p:{style:Gn},pt:{style:Gn},pr:{style:Gn},pb:{style:Gn},pl:{style:Gn},px:{style:Gn},py:{style:Gn},padding:{style:Gn},paddingTop:{style:Gn},paddingRight:{style:Gn},paddingBottom:{style:Gn},paddingLeft:{style:Gn},paddingX:{style:Gn},paddingY:{style:Gn},paddingInline:{style:Gn},paddingInlineStart:{style:Gn},paddingInlineEnd:{style:Gn},paddingBlock:{style:Gn},paddingBlockStart:{style:Gn},paddingBlockEnd:{style:Gn},m:{style:Wn},mt:{style:Wn},mr:{style:Wn},mb:{style:Wn},ml:{style:Wn},mx:{style:Wn},my:{style:Wn},margin:{style:Wn},marginTop:{style:Wn},marginRight:{style:Wn},marginBottom:{style:Wn},marginLeft:{style:Wn},marginX:{style:Wn},marginY:{style:Wn},marginInline:{style:Wn},marginInlineStart:{style:Wn},marginInlineEnd:{style:Wn},marginBlock:{style:Wn},marginBlockStart:{style:Wn},marginBlockEnd:{style:Wn},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:fb},rowGap:{style:hb},columnGap:{style:pb},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Wo},maxWidth:{style:YP},minWidth:{transform:Wo},height:{transform:Wo},maxHeight:{transform:Wo},minHeight:{transform:Wo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},mb=OQ;function DQ(...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 AQ(e,t){return typeof e=="function"?e(t):e}function LQ(){function e(n,r,o,s){const i={[n]:r,theme:o},l=s[n];if(!l)return{[n]:r};const{cssProperty:a=n,themeKey:u,transform:f,style:p}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const m=bd(o,u)||{};return p?p(i):$o(i,r,y=>{let g=Dv(m,f,y);return y===g&&typeof y=="string"&&(g=Dv(m,f,`${n}${y==="default"?"":Pe(y)}`,y)),a===!1?g:{[a]:g}})}function t(n){var r;const{sx:o,theme:s={}}=n||{};if(!o)return null;const i=(r=s.unstable_sxConfig)!=null?r:mb;function l(a){let u=a;if(typeof a=="function")u=a(s);else if(typeof a!="object")return a;if(!u)return null;const f=rN(s.breakpoints),p=Object.keys(f);let m=f;return Object.keys(u).forEach(v=>{const y=AQ(u[v],s);if(y!=null)if(typeof y=="object")if(i[v])m=Pp(m,e(v,y,s,i));else{const g=$o({theme:s},y,C=>({[v]:C}));DQ(g,y)?m[v]=t({sx:y,theme:s}):m=Pp(m,g)}else m=Pp(m,e(v,y,s,i))}),oN(p,m)}return Array.isArray(o)?o.map(l):l(o)}return t}const iN=LQ();iN.filterProps=["sx"];const gb=iN,FQ=["breakpoints","palette","spacing","shape"];function vb(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={}}=e,i=le(e,FQ),l=WY(n),a=nQ(o);let u=Yr({breakpoints:l,direction:"ltr",components:{},palette:x({mode:"light"},r),spacing:a,shape:x({},KY,s)},i);return u=t.reduce((f,p)=>Yr(f,p),u),u.unstable_sxConfig=x({},mb,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(p){return gb({sx:p,theme:this})},u}function NQ(e){return Object.keys(e).length===0}function yb(e=null){const t=c.useContext(cb);return!t||NQ(t)?e:t}const BQ=vb();function Wd(e=BQ){return yb(e)}function zQ({styles:e,themeId:t,defaultTheme:n={}}){const r=Wd(n),o=typeof e=="function"?e(t&&r[t]||r):e;return D.jsx(VY,{styles:o})}const VQ=["sx"],jQ=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:mb;return Object.keys(e).forEach(s=>{o[s]?r.systemProps[s]=e[s]:r.otherProps[s]=e[s]}),r};function bb(e){const{sx:t}=e,n=le(e,VQ),{systemProps:r,otherProps:o}=jQ(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...i)=>{const l=t(...i);return il(l)?x({},r,l):r}:s=x({},r,t),x({},o,{sx:s})}function lN(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=lN(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ce(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=lN(e))&&(r&&(r+=" "),r+=t);return r}const HQ=["className","component"];function UQ(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,s=nN("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(gb);return c.forwardRef(function(a,u){const f=Wd(n),p=bb(a),{className:m,component:v="div"}=p,y=le(p,HQ);return D.jsx(s,x({as:v,ref:u,className:Ce(m,o?o(r):r),theme:t&&f[t]||f},y))})}const WQ=["variant"];function w$(e){return e.length===0}function aN(e){const{variant:t}=e,n=le(e,WQ);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=w$(r)?e[o]:Pe(e[o]):r+=`${w$(r)?o:Pe(o)}${Pe(e[o].toString())}`}),r}const GQ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function KQ(e){return Object.keys(e).length===0}function qQ(e){return typeof e=="string"&&e.charCodeAt(0)>96}const YQ=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,Av=e=>{const t={};return e&&e.forEach(n=>{const r=aN(n.props);t[r]=n.style}),t},QQ=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),Av(n)},Lv=(e,t,n)=>{const{ownerState:r={}}=e,o=[];return n&&n.forEach(s=>{let i=!0;Object.keys(s.props).forEach(l=>{r[l]!==s.props[l]&&e[l]!==s.props[l]&&(i=!1)}),i&&o.push(t[aN(s.props)])}),o},XQ=(e,t,n,r)=>{var o;const s=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return Lv(e,t,s)};function kp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ZQ=vb(),JQ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Gg({defaultTheme:e,theme:t,themeId:n}){return KQ(t)?e:t[n]||t}function eX(e){return e?(t,n)=>n[e]:null}const C$=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(x({},t,{theme:Gg(x({},t,{defaultTheme:n,themeId:r}))}));let s;if(o&&o.variants&&(s=o.variants,delete o.variants),s){const i=Lv(t,Av(s),s);return[o,...i]}return o};function cN(e={}){const{themeId:t,defaultTheme:n=ZQ,rootShouldForwardProp:r=kp,slotShouldForwardProp:o=kp}=e,s=i=>gb(x({},i,{theme:Gg(x({},i,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(i,l={})=>{jY(i,k=>k.filter(M=>!(M!=null&&M.__mui_systemSx)));const{name:a,slot:u,skipVariantsResolver:f,skipSx:p,overridesResolver:m=eX(JQ(u))}=l,v=le(l,GQ),y=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,g=p||!1;let C,b=kp;u==="Root"||u==="root"?b=r:u?b=o:qQ(i)&&(b=void 0);const w=nN(i,x({shouldForwardProp:b,label:C},v)),S=(k,...M)=>{const E=M?M.map($=>{if(typeof $=="function"&&$.__emotion_real!==$)return L=>C$({styledArg:$,props:L,defaultTheme:n,themeId:t});if(il($)){let L=$,V;return $&&$.variants&&(V=$.variants,delete L.variants,L=j=>{let _=$;return Lv(j,Av(V),V).forEach(F=>{_=Yr(_,F)}),_}),L}return $}):[];let I=k;if(il(k)){let $;k&&k.variants&&($=k.variants,delete I.variants,I=L=>{let V=k;return Lv(L,Av($),$).forEach(_=>{V=Yr(V,_)}),V})}else typeof k=="function"&&k.__emotion_real!==k&&(I=$=>C$({styledArg:k,props:$,defaultTheme:n,themeId:t}));a&&m&&E.push($=>{const L=Gg(x({},$,{defaultTheme:n,themeId:t})),V=YQ(a,L);if(V){const j={};return Object.entries(V).forEach(([_,T])=>{j[_]=typeof T=="function"?T(x({},$,{theme:L})):T}),m($,j)}return null}),a&&!y&&E.push($=>{const L=Gg(x({},$,{defaultTheme:n,themeId:t}));return XQ($,QQ(a,L),L,a)}),g||E.push(s);const R=E.length-M.length;if(Array.isArray(k)&&R>0){const $=new Array(R).fill("");I=[...k,...$],I.raw=[...k.raw,...$]}const A=w(I,...E);return i.muiName&&(A.muiName=i.muiName),A};return w.withConfig&&(S.withConfig=w.withConfig),S}}const tX=cN(),Ir=tX;function uN(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:LP(t.components[n].defaultProps,r)}function dN({props:e,name:t,defaultTheme:n,themeId:r}){let o=Wd(n);return r&&(o=o[r]||o),uN({theme:o,name:t,props:e})}function QP(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function nX(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 Mc(e){if(e.type)return e;if(e.charAt(0)==="#")return Mc(nX(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(ka(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(ka(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}function wb(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,s)=>s<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function rX(e){e=Mc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),i=(u,f=(u+n/30)%12)=>o-s*Math.max(Math.min(f-3,9-f,1),-1);let l="rgb";const a=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",a.push(t[3])),wb({type:l,values:a})}function x$(e){e=Mc(e);let t=e.type==="hsl"||e.type==="hsla"?Mc(rX(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:ys((n+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function oX(e,t){const n=x$(e),r=x$(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function lt(e,t){return e=Mc(e),t=QP(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,wb(e)}function _c(e,t){if(e=Mc(e),t=QP(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 wb(e)}function Tc(e,t){if(e=Mc(e),t=QP(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 wb(e)}const sX=c.createContext(null),fN=sX;function pN(){return c.useContext(fN)}const iX=typeof Symbol=="function"&&Symbol.for,lX=iX?Symbol.for("mui.nested"):"__THEME_NESTED__";function aX(e,t){return typeof t=="function"?t(e):x({},e,t)}function cX(e){const{children:t,theme:n}=e,r=pN(),o=c.useMemo(()=>{const s=r===null?n:aX(r,n);return s!=null&&(s[lX]=r!==null),s},[n,r]);return D.jsx(fN.Provider,{value:o,children:t})}const S$={};function P$(e,t,n,r=!1){return c.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const s=n(o),i=e?x({},t,{[e]:s}):s;return r?()=>i:i}return e?x({},t,{[e]:n}):x({},t,n)},[e,t,n,r])}function uX(e){const{children:t,theme:n,themeId:r}=e,o=yb(S$),s=pN()||S$,i=P$(r,o,n),l=P$(r,s,n,!0);return D.jsx(cX,{theme:l,children:D.jsx(cb.Provider,{value:i,children:t})})}const dX=["component","direction","spacing","divider","children","className","useFlexGap"],fX=vb(),pX=Ir("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function hX(e){return dN({props:e,name:"MuiStack",defaultTheme:fX})}function mX(e,t){const n=c.Children.toArray(e).filter(Boolean);return n.reduce((r,o,s)=>(r.push(o),s<n.length-1&&r.push(c.cloneElement(t,{key:`separator-${s}`})),r),[])}const gX=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],vX=({ownerState:e,theme:t})=>{let n=x({display:"flex",flexDirection:"column"},$o({theme:t},pc({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=qP(t),o=Object.keys(t.breakpoints.values).reduce((a,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(a[u]=!0),a),{}),s=pc({values:e.direction,base:o}),i=pc({values:e.spacing,base:o});typeof s=="object"&&Object.keys(s).forEach((a,u,f)=>{if(!s[a]){const m=u>0?s[f[u-1]]:"column";s[a]=m}}),n=Yr(n,$o({theme:t},i,(a,u)=>e.useFlexGap?{gap:Ic(r,a)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${gX(u?s[u]:e.direction)}`]:Ic(r,a)}}))}return n=qY(t.breakpoints,n),n};function yX(e={}){const{createStyledComponent:t=pX,useThemeProps:n=hX,componentName:r="MuiStack"}=e,o=()=>Te({root:["root"]},a=>Ke(r,a),{}),s=t(vX);return c.forwardRef(function(a,u){const f=n(a),p=bb(f),{component:m="div",direction:v="column",spacing:y=0,divider:g,children:C,className:b,useFlexGap:w=!1}=p,S=le(p,dX),k={direction:v,spacing:y,useFlexGap:w},M=o();return D.jsx(s,x({as:m,ownerState:k,ref:u,className:Ce(M.root,b)},S,{children:g?mX(C,g):C}))})}function bX(e,t){return x({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const wX=["mode","contrastThreshold","tonalOffset"],k$={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:eh.white,default:eh.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}},Mw={text:{primary:eh.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:eh.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 E$(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Tc(e.main,o):t==="dark"&&(e.dark=_c(e.main,s)))}function CX(e="light"){return e==="dark"?{main:uu[200],light:uu[50],dark:uu[400]}:{main:uu[700],light:uu[400],dark:uu[800]}}function xX(e="light"){return e==="dark"?{main:cu[200],light:cu[50],dark:cu[400]}:{main:cu[500],light:cu[300],dark:cu[700]}}function SX(e="light"){return e==="dark"?{main:au[500],light:au[300],dark:au[700]}:{main:au[700],light:au[400],dark:au[800]}}function PX(e="light"){return e==="dark"?{main:du[400],light:du[300],dark:du[700]}:{main:du[700],light:du[500],dark:du[900]}}function kX(e="light"){return e==="dark"?{main:fu[400],light:fu[300],dark:fu[700]}:{main:fu[800],light:fu[500],dark:fu[900]}}function EX(e="light"){return e==="dark"?{main:Ff[400],light:Ff[300],dark:Ff[700]}:{main:"#ed6c02",light:Ff[500],dark:Ff[900]}}function IX(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=le(e,wX),s=e.primary||CX(t),i=e.secondary||xX(t),l=e.error||SX(t),a=e.info||PX(t),u=e.success||kX(t),f=e.warning||EX(t);function p(g){return oX(g,Mw.text.primary)>=n?Mw.text.primary:k$.text.primary}const m=({color:g,name:C,mainShade:b=500,lightShade:w=300,darkShade:S=700})=>{if(g=x({},g),!g.main&&g[b]&&(g.main=g[b]),!g.hasOwnProperty("main"))throw new Error(ka(11,C?` (${C})`:"",b));if(typeof g.main!="string")throw new Error(ka(12,C?` (${C})`:"",JSON.stringify(g.main)));return E$(g,"light",w,r),E$(g,"dark",S,r),g.contrastText||(g.contrastText=p(g.main)),g},v={dark:Mw,light:k$};return Yr(x({common:x({},eh),mode:t,primary:m({color:s,name:"primary"}),secondary:m({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:l,name:"error"}),warning:m({color:f,name:"warning"}),info:m({color:a,name:"info"}),success:m({color:u,name:"success"}),grey:pq,contrastThreshold:n,getContrastText:p,augmentColor:m,tonalOffset:r},v[t]),o)}const MX=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function _X(e){return Math.round(e*1e5)/1e5}const I$={textTransform:"uppercase"},M$='"Roboto", "Helvetica", "Arial", sans-serif';function TX(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=M$,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:u=16,allVariants:f,pxToRem:p}=n,m=le(n,MX),v=o/14,y=p||(b=>`${b/u*v}rem`),g=(b,w,S,k,M)=>x({fontFamily:r,fontWeight:b,fontSize:y(w),lineHeight:S},r===M$?{letterSpacing:`${_X(k/w)}em`}:{},M,f),C={h1:g(s,96,1.167,-1.5),h2:g(s,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(l,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(l,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(l,14,1.75,.4,I$),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,I$),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Yr(x({htmlFontSize:u,pxToRem:y,fontFamily:r,fontSize:o,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:a},C),m,{clone:!1})}const $X=.2,RX=.14,OX=.12;function On(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${$X})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${RX})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${OX})`].join(",")}const DX=["none",On(0,2,1,-1,0,1,1,0,0,1,3,0),On(0,3,1,-2,0,2,2,0,0,1,5,0),On(0,3,3,-2,0,3,4,0,0,1,8,0),On(0,2,4,-1,0,4,5,0,0,1,10,0),On(0,3,5,-1,0,5,8,0,0,1,14,0),On(0,3,5,-1,0,6,10,0,0,1,18,0),On(0,4,5,-2,0,7,10,1,0,2,16,1),On(0,5,5,-3,0,8,10,1,0,3,14,2),On(0,5,6,-3,0,9,12,1,0,3,16,2),On(0,6,6,-3,0,10,14,1,0,4,18,3),On(0,6,7,-4,0,11,15,1,0,4,20,3),On(0,7,8,-4,0,12,17,2,0,5,22,4),On(0,7,8,-4,0,13,19,2,0,5,24,4),On(0,7,9,-4,0,14,21,2,0,5,26,4),On(0,8,9,-5,0,15,22,2,0,6,28,5),On(0,8,10,-5,0,16,24,2,0,6,30,5),On(0,8,11,-5,0,17,26,2,0,6,32,5),On(0,9,11,-5,0,18,28,2,0,7,34,6),On(0,9,12,-6,0,19,29,2,0,7,36,6),On(0,10,13,-6,0,20,31,3,0,8,38,7),On(0,10,13,-6,0,21,33,3,0,8,40,7),On(0,10,14,-6,0,22,35,3,0,8,42,7),On(0,11,14,-7,0,23,36,3,0,9,44,8),On(0,11,15,-7,0,24,38,3,0,9,46,8)],AX=DX,LX=["duration","easing","delay"],FX={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)"},hN={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function _$(e){return`${Math.round(e)}ms`}function NX(e){if(!e)return 0;const t=e/36;return Math.round((4+15*ys(t,.25)+t/5)*10)}function BX(e){const t=x({},FX,e.easing),n=x({},hN,e.duration);return x({getAutoHeightDuration:NX,create:(o=["all"],s={})=>{const{duration:i=n.standard,easing:l=t.easeInOut,delay:a=0}=s;return le(s,LX),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:_$(i)} ${l} ${typeof a=="string"?a:_$(a)}`).join(",")}},e,{easing:t,duration:n})}const zX={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},VX=zX,jX=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function XP(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:s={}}=e,i=le(e,jX);if(e.vars)throw new Error(ka(18));const l=IX(r),a=vb(e);let u=Yr(a,{mixins:bX(a.breakpoints,n),palette:l,shadows:AX.slice(),typography:TX(l,s),transitions:BX(o),zIndex:x({},VX)});return u=Yr(u,i),u=t.reduce((f,p)=>Yr(f,p),u),u.unstable_sxConfig=x({},mb,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(p){return gb({sx:p,theme:this})},u}function HX(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function UX(e){return parseFloat(e)}const WX=XP(),Cb=WX;function yn(){const e=Wd(Cb);return e[Ec]||e}function je({props:e,name:t}){return dN({props:e,name:t,defaultTheme:Cb,themeId:Ec})}const Jr=e=>kp(e)&&e!=="classes",GX=kp,KX=cN({themeId:Ec,defaultTheme:Cb,rootShouldForwardProp:Jr}),oe=KX,qX=["theme"];function YX(e){let{theme:t}=e,n=le(e,qX);const r=t[Ec];return D.jsx(uX,x({},n,{themeId:r?Ec:void 0,theme:r||t}))}const QX=e=>{let t;return e<1?t=5.11916*ys(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},T$=QX;function XX(e){return Ke("MuiSvgIcon",e)}We("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ZX=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],JX=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Pe(t)}`,`fontSize${Pe(n)}`]};return Te(o,XX,r)},eZ=oe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Pe(n.color)}`],t[`fontSize${Pe(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,s,i,l,a,u,f,p,m,v,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(i=s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem",medium:((l=e.typography)==null||(a=l.pxToRem)==null?void 0:a.call(l,24))||"1.5rem",large:((u=e.typography)==null||(f=u.pxToRem)==null?void 0:f.call(u,35))||"2.1875rem"}[t.fontSize],color:(p=(m=(e.vars||e).palette)==null||(m=m[t.color])==null?void 0:m.main)!=null?p:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),mN=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:l="svg",fontSize:a="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:p,viewBox:m="0 0 24 24"}=r,v=le(r,ZX),y=c.isValidElement(o)&&o.type==="svg",g=x({},r,{color:i,component:l,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:m,hasSvgAsChild:y}),C={};f||(C.viewBox=m);const b=JX(g);return D.jsxs(eZ,x({as:l,className:Ce(b.root,s),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n},C,v,y&&o.props,{ownerState:g,children:[y?o.props.children:o,p?D.jsx("title",{children:p}):null]}))});mN.muiName="SvgIcon";const $$=mN;function bt(e,t){function n(r,o){return D.jsx($$,x({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=$$.muiName,c.memo(c.forwardRef(n))}const tZ={configure:e=>{FP.configure(e)}},nZ=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Pe,createChainedFunction:xx,createSvgIcon:bt,debounce:Aa,deprecatedPropType:Sq,isMuiElement:Sp,ownerDocument:fn,ownerWindow:Jo,requirePropFactory:Pq,setRef:th,unstable_ClassNameGenerator:tZ,unstable_useEnhancedEffect:Nt,unstable_useId:Kt,unsupportedProp:Iq,useControlled:Qr,useEventCallback:Ye,useForkRef:Et,useIsFocusVisible:Yy},Symbol.toStringTag,{value:"Module"}));function Ix(e,t){return Ix=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Ix(e,t)}function xb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ix(e,t)}function rZ(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function oZ(e,t){e.classList?e.classList.add(t):rZ(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function R$(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function sZ(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=R$(e.className,t):e.setAttribute("class",R$(e.className&&e.className.baseVal||"",t))}const O$={disabled:!1},Fv=co.createContext(null);var gN=function(t){return t.scrollTop},rp="unmounted",nc="exited",rc="entering",Pu="entered",Mx="exiting",El=function(e){xb(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=o,l=i&&!i.isMounting?r.enter:r.appear,a;return s.appearStatus=null,r.in?l?(a=nc,s.appearStatus=rc):a=Pu:r.unmountOnExit||r.mountOnEnter?a=rp:a=nc,s.state={status:a},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===rp?{status:nc}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==rc&&i!==Pu&&(s=rc):(i===rc||i===Pu)&&(s=Mx)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,i,l;return s=i=l=o,o!=null&&typeof o!="number"&&(s=o.exit,i=o.enter,l=o.appear!==void 0?o.appear:i),{exit:s,enter:i,appear:l}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===rc){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:lg.findDOMNode(this);i&&gN(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===nc&&this.setState({status:rp})},n.performEnter=function(o){var s=this,i=this.props.enter,l=this.context?this.context.isMounting:o,a=this.props.nodeRef?[l]:[lg.findDOMNode(this),l],u=a[0],f=a[1],p=this.getTimeouts(),m=l?p.appear:p.enter;if(!o&&!i||O$.disabled){this.safeSetState({status:Pu},function(){s.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:rc},function(){s.props.onEntering(u,f),s.onTransitionEnd(m,function(){s.safeSetState({status:Pu},function(){s.props.onEntered(u,f)})})})},n.performExit=function(){var o=this,s=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:lg.findDOMNode(this);if(!s||O$.disabled){this.safeSetState({status:nc},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Mx},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:nc},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,s.nextCallback=null,o(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var i=this.props.nodeRef?this.props.nodeRef.current:lg.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],u=a[0],f=a[1];this.props.addEndListener(u,f)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===rp)return null;var s=this.props,i=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var l=le(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return co.createElement(Fv.Provider,{value:null},typeof i=="function"?i(o,l):co.cloneElement(co.Children.only(i),l))},t}(co.Component);El.contextType=Fv;El.propTypes={};function hu(){}El.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:hu,onEntering:hu,onEntered:hu,onExit:hu,onExiting:hu,onExited:hu};El.UNMOUNTED=rp;El.EXITED=nc;El.ENTERING=rc;El.ENTERED=Pu;El.EXITING=Mx;const Dh=El;var iZ=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return oZ(t,r)})},_w=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return sZ(t,r)})},ZP=function(e){xb(t,e);function t(){for(var r,o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return r=e.call.apply(e,[this].concat(s))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(l,a){var u=r.resolveArguments(l,a),f=u[0],p=u[1];r.removeClasses(f,"exit"),r.addClass(f,p?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(l,a)},r.onEntering=function(l,a){var u=r.resolveArguments(l,a),f=u[0],p=u[1],m=p?"appear":"enter";r.addClass(f,m,"active"),r.props.onEntering&&r.props.onEntering(l,a)},r.onEntered=function(l,a){var u=r.resolveArguments(l,a),f=u[0],p=u[1],m=p?"appear":"enter";r.removeClasses(f,m),r.addClass(f,m,"done"),r.props.onEntered&&r.props.onEntered(l,a)},r.onExit=function(l){var a=r.resolveArguments(l),u=a[0];r.removeClasses(u,"appear"),r.removeClasses(u,"enter"),r.addClass(u,"exit","base"),r.props.onExit&&r.props.onExit(l)},r.onExiting=function(l){var a=r.resolveArguments(l),u=a[0];r.addClass(u,"exit","active"),r.props.onExiting&&r.props.onExiting(l)},r.onExited=function(l){var a=r.resolveArguments(l),u=a[0];r.removeClasses(u,"exit"),r.addClass(u,"exit","done"),r.props.onExited&&r.props.onExited(l)},r.resolveArguments=function(l,a){return r.props.nodeRef?[r.props.nodeRef.current,l]:[l,a]},r.getClassNames=function(l){var a=r.props.classNames,u=typeof a=="string",f=u&&a?a+"-":"",p=u?""+f+l:a[l],m=u?p+"-active":a[l+"Active"],v=u?p+"-done":a[l+"Done"];return{baseClassName:p,activeClassName:m,doneClassName:v}},r}var n=t.prototype;return n.addClass=function(o,s,i){var l=this.getClassNames(s)[i+"ClassName"],a=this.getClassNames("enter"),u=a.doneClassName;s==="appear"&&i==="done"&&u&&(l+=" "+u),i==="active"&&o&&gN(o),l&&(this.appliedClasses[s][i]=l,iZ(o,l))},n.removeClasses=function(o,s){var i=this.appliedClasses[s],l=i.base,a=i.active,u=i.done;this.appliedClasses[s]={},l&&_w(o,l),a&&_w(o,a),u&&_w(o,u)},n.render=function(){var o=this.props;o.classNames;var s=le(o,["classNames"]);return co.createElement(Dh,x({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(co.Component);ZP.defaultProps={classNames:""};ZP.propTypes={};const lZ=ZP;function _x(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JP(e,t){var n=function(s){return t&&c.isValidElement(s)?t(s):s},r=Object.create(null);return e&&c.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function aZ(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var r=Object.create(null),o=[];for(var s in e)s in t?o.length&&(r[s]=o,o=[]):o.push(s);var i,l={};for(var a in t){if(r[a])for(i=0;i<r[a].length;i++){var u=r[a][i];l[r[a][i]]=n(u)}l[a]=n(a)}for(i=0;i<o.length;i++)l[o[i]]=n(o[i]);return l}function ac(e,t,n){return n[t]!=null?n[t]:e.props[t]}function cZ(e,t){return JP(e.children,function(n){return c.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:ac(n,"appear",e),enter:ac(n,"enter",e),exit:ac(n,"exit",e)})})}function uZ(e,t,n){var r=JP(e.children),o=aZ(t,r);return Object.keys(o).forEach(function(s){var i=o[s];if(c.isValidElement(i)){var l=s in t,a=s in r,u=t[s],f=c.isValidElement(u)&&!u.props.in;a&&(!l||f)?o[s]=c.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:ac(i,"exit",e),enter:ac(i,"enter",e)}):!a&&l&&!f?o[s]=c.cloneElement(i,{in:!1}):a&&l&&c.isValidElement(u)&&(o[s]=c.cloneElement(i,{onExited:n.bind(null,i),in:u.props.in,exit:ac(i,"exit",e),enter:ac(i,"enter",e)}))}}),o}var dZ=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},fZ={component:"div",childFactory:function(t){return t}},ek=function(e){xb(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=s.handleExited.bind(_x(s));return s.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,s){var i=s.children,l=s.handleExited,a=s.firstRender;return{children:a?cZ(o,l):uZ(o,i,l),firstRender:!1}},n.handleExited=function(o,s){var i=JP(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(l){var a=x({},l.children);return delete a[o.key],{children:a}}))},n.render=function(){var o=this.props,s=o.component,i=o.childFactory,l=le(o,["component","childFactory"]),a=this.state.contextValue,u=dZ(this.state.children).map(i);return delete l.appear,delete l.enter,delete l.exit,s===null?co.createElement(Fv.Provider,{value:a},u):co.createElement(Fv.Provider,{value:a},co.createElement(s,l,u))},t}(co.Component);ek.propTypes={};ek.defaultProps=fZ;const tk=ek,nk=e=>e.scrollTop;function Ia(e,t){var n,r;const{timeout:o,easing:s,style:i={}}=e;return{duration:(n=i.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=i.transitionTimingFunction)!=null?r:typeof s=="object"?s[t.mode]:s,delay:i.transitionDelay}}function pZ(e){return Ke("MuiCollapse",e)}We("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const hZ=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],mZ=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Te(r,pZ,n)},gZ=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})=>x({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&x({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),vZ=oe("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>x({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),yZ=oe("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>x({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),vN=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiCollapse"}),{addEndListener:o,children:s,className:i,collapsedSize:l="0px",component:a,easing:u,in:f,onEnter:p,onEntered:m,onEntering:v,onExit:y,onExited:g,onExiting:C,orientation:b="vertical",style:w,timeout:S=hN.standard,TransitionComponent:k=Dh}=r,M=le(r,hZ),E=x({},r,{orientation:b,collapsedSize:l}),I=mZ(E),R=yn(),A=c.useRef(),$=c.useRef(null),L=c.useRef(),V=typeof l=="number"?`${l}px`:l,j=b==="horizontal",_=j?"width":"height";c.useEffect(()=>()=>{clearTimeout(A.current)},[]);const T=c.useRef(null),F=Et(n,T),B=ee=>se=>{if(ee){const Z=T.current;se===void 0?ee(Z):ee(Z,se)}},O=()=>$.current?$.current[j?"clientWidth":"clientHeight"]:0,N=B((ee,se)=>{$.current&&j&&($.current.style.position="absolute"),ee.style[_]=V,p&&p(ee,se)}),H=B((ee,se)=>{const Z=O();$.current&&j&&($.current.style.position="");const{duration:he,easing:ne}=Ia({style:w,timeout:S,easing:u},{mode:"enter"});if(S==="auto"){const re=R.transitions.getAutoHeightDuration(Z);ee.style.transitionDuration=`${re}ms`,L.current=re}else ee.style.transitionDuration=typeof he=="string"?he:`${he}ms`;ee.style[_]=`${Z}px`,ee.style.transitionTimingFunction=ne,v&&v(ee,se)}),K=B((ee,se)=>{ee.style[_]="auto",m&&m(ee,se)}),Q=B(ee=>{ee.style[_]=`${O()}px`,y&&y(ee)}),J=B(g),Y=B(ee=>{const se=O(),{duration:Z,easing:he}=Ia({style:w,timeout:S,easing:u},{mode:"exit"});if(S==="auto"){const ne=R.transitions.getAutoHeightDuration(se);ee.style.transitionDuration=`${ne}ms`,L.current=ne}else ee.style.transitionDuration=typeof Z=="string"?Z:`${Z}ms`;ee.style[_]=V,ee.style.transitionTimingFunction=he,C&&C(ee)}),X=ee=>{S==="auto"&&(A.current=setTimeout(ee,L.current||0)),o&&o(T.current,ee)};return D.jsx(k,x({in:f,onEnter:N,onEntered:K,onEntering:H,onExit:Q,onExited:J,onExiting:Y,addEndListener:X,nodeRef:T,timeout:S==="auto"?null:S},M,{children:(ee,se)=>D.jsx(gZ,x({as:a,className:Ce(I.root,i,{entered:I.entered,exited:!f&&V==="0px"&&I.hidden}[ee]),style:x({[j?"minWidth":"minHeight"]:V},w),ownerState:x({},E,{state:ee}),ref:F},se,{children:D.jsx(vZ,{ownerState:x({},E,{state:ee}),className:I.wrapper,ref:$,children:D.jsx(yZ,{ownerState:x({},E,{state:ee}),className:I.wrapperInner,children:s})})}))}))});vN.muiSupportAuto=!0;const Nv=vN;function bZ(e){return Ke("MuiPaper",e)}We("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 wZ=["className","component","elevation","square","variant"],CZ=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Te(s,bZ,o)},xZ=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 x({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"&&x({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${lt("#fff",T$(t.elevation))}, ${lt("#fff",T$(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),SZ=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiPaper"}),{className:o,component:s="div",elevation:i=1,square:l=!1,variant:a="elevation"}=r,u=le(r,wZ),f=x({},r,{component:s,elevation:i,square:l,variant:a}),p=CZ(f);return D.jsx(xZ,x({as:s,ownerState:f,className:Ce(p.root,o),ref:n},u))}),Vs=SZ;function PZ(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:i,in:l,onExited:a,timeout:u}=e,[f,p]=c.useState(!1),m=Ce(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:i,height:i,top:-(i/2)+s,left:-(i/2)+o},y=Ce(n.child,f&&n.childLeaving,r&&n.childPulsate);return!l&&!f&&p(!0),c.useEffect(()=>{if(!l&&a!=null){const g=setTimeout(a,u);return()=>{clearTimeout(g)}}},[a,l,u]),D.jsx("span",{className:m,style:v,children:D.jsx("span",{className:y})})}const kZ=We("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ss=kZ,EZ=["center","classes","className"];let Sb=e=>e,D$,A$,L$,F$;const Tx=550,IZ=80,MZ=Hi(D$||(D$=Sb`
89
+ 0% {
90
+ transform: scale(0);
91
+ opacity: 0.1;
92
+ }
93
+
94
+ 100% {
95
+ transform: scale(1);
96
+ opacity: 0.3;
97
+ }
98
+ `)),_Z=Hi(A$||(A$=Sb`
99
+ 0% {
100
+ opacity: 1;
101
+ }
102
+
103
+ 100% {
104
+ opacity: 0;
105
+ }
106
+ `)),TZ=Hi(L$||(L$=Sb`
107
+ 0% {
108
+ transform: scale(1);
109
+ }
110
+
111
+ 50% {
112
+ transform: scale(0.92);
113
+ }
114
+
115
+ 100% {
116
+ transform: scale(1);
117
+ }
118
+ `)),$Z=oe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),RZ=oe(PZ,{name:"MuiTouchRipple",slot:"Ripple"})(F$||(F$=Sb`
119
+ opacity: 0;
120
+ position: absolute;
121
+
122
+ &.${0} {
123
+ opacity: 0.3;
124
+ transform: scale(1);
125
+ animation-name: ${0};
126
+ animation-duration: ${0}ms;
127
+ animation-timing-function: ${0};
128
+ }
129
+
130
+ &.${0} {
131
+ animation-duration: ${0}ms;
132
+ }
133
+
134
+ & .${0} {
135
+ opacity: 1;
136
+ display: block;
137
+ width: 100%;
138
+ height: 100%;
139
+ border-radius: 50%;
140
+ background-color: currentColor;
141
+ }
142
+
143
+ & .${0} {
144
+ opacity: 0;
145
+ animation-name: ${0};
146
+ animation-duration: ${0}ms;
147
+ animation-timing-function: ${0};
148
+ }
149
+
150
+ & .${0} {
151
+ position: absolute;
152
+ /* @noflip */
153
+ left: 0px;
154
+ top: 0;
155
+ animation-name: ${0};
156
+ animation-duration: 2500ms;
157
+ animation-timing-function: ${0};
158
+ animation-iteration-count: infinite;
159
+ animation-delay: 200ms;
160
+ }
161
+ `),Ss.rippleVisible,MZ,Tx,({theme:e})=>e.transitions.easing.easeInOut,Ss.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ss.child,Ss.childLeaving,_Z,Tx,({theme:e})=>e.transitions.easing.easeInOut,Ss.childPulsate,TZ,({theme:e})=>e.transitions.easing.easeInOut),OZ=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:i}=r,l=le(r,EZ),[a,u]=c.useState([]),f=c.useRef(0),p=c.useRef(null);c.useEffect(()=>{p.current&&(p.current(),p.current=null)},[a]);const m=c.useRef(!1),v=c.useRef(0),y=c.useRef(null),g=c.useRef(null);c.useEffect(()=>()=>{v.current&&clearTimeout(v.current)},[]);const C=c.useCallback(k=>{const{pulsate:M,rippleX:E,rippleY:I,rippleSize:R,cb:A}=k;u($=>[...$,D.jsx(RZ,{classes:{ripple:Ce(s.ripple,Ss.ripple),rippleVisible:Ce(s.rippleVisible,Ss.rippleVisible),ripplePulsate:Ce(s.ripplePulsate,Ss.ripplePulsate),child:Ce(s.child,Ss.child),childLeaving:Ce(s.childLeaving,Ss.childLeaving),childPulsate:Ce(s.childPulsate,Ss.childPulsate)},timeout:Tx,pulsate:M,rippleX:E,rippleY:I,rippleSize:R},f.current)]),f.current+=1,p.current=A},[s]),b=c.useCallback((k={},M={},E=()=>{})=>{const{pulsate:I=!1,center:R=o||M.pulsate,fakeElement:A=!1}=M;if((k==null?void 0:k.type)==="mousedown"&&m.current){m.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(m.current=!0);const $=A?null:g.current,L=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let V,j,_;if(R||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)V=Math.round(L.width/2),j=Math.round(L.height/2);else{const{clientX:T,clientY:F}=k.touches&&k.touches.length>0?k.touches[0]:k;V=Math.round(T-L.left),j=Math.round(F-L.top)}if(R)_=Math.sqrt((2*ys(L.width,2)+ys(L.height,2))/3),_%2===0&&(_+=1);else{const T=Math.max(Math.abs(($?$.clientWidth:0)-V),V)*2+2,F=Math.max(Math.abs(($?$.clientHeight:0)-j),j)*2+2;_=Math.sqrt(ys(T,2)+ys(F,2))}k!=null&&k.touches?y.current===null&&(y.current=()=>{C({pulsate:I,rippleX:V,rippleY:j,rippleSize:_,cb:E})},v.current=setTimeout(()=>{y.current&&(y.current(),y.current=null)},IZ)):C({pulsate:I,rippleX:V,rippleY:j,rippleSize:_,cb:E})},[o,C]),w=c.useCallback(()=>{b({},{pulsate:!0})},[b]),S=c.useCallback((k,M)=>{if(clearTimeout(v.current),(k==null?void 0:k.type)==="touchend"&&y.current){y.current(),y.current=null,v.current=setTimeout(()=>{S(k,M)});return}y.current=null,u(E=>E.length>0?E.slice(1):E),p.current=M},[]);return c.useImperativeHandle(n,()=>({pulsate:w,start:b,stop:S}),[w,b,S]),D.jsx($Z,x({className:Ce(Ss.root,s.root,i),ref:g},l,{children:D.jsx(tk,{component:null,exit:!0,children:a})}))}),DZ=OZ;function AZ(e){return Ke("MuiButtonBase",e)}const LZ=We("MuiButtonBase",["root","disabled","focusVisible"]),FZ=LZ,NZ=["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"],BZ=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Te({root:["root",t&&"disabled",n&&"focusVisible"]},AZ,o);return n&&r&&(i.root+=` ${r}`),i},zZ=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"},[`&.${FZ.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),VZ=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:i,className:l,component:a="button",disabled:u=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:m=!1,LinkComponent:v="a",onBlur:y,onClick:g,onContextMenu:C,onDragLeave:b,onFocus:w,onFocusVisible:S,onKeyDown:k,onKeyUp:M,onMouseDown:E,onMouseLeave:I,onMouseUp:R,onTouchEnd:A,onTouchMove:$,onTouchStart:L,tabIndex:V=0,TouchRippleProps:j,touchRippleRef:_,type:T}=r,F=le(r,NZ),B=c.useRef(null),O=c.useRef(null),N=Et(O,_),{isFocusVisibleRef:H,onFocus:K,onBlur:Q,ref:J}=Yy(),[Y,X]=c.useState(!1);u&&Y&&X(!1),c.useImperativeHandle(o,()=>({focusVisible:()=>{X(!0),B.current.focus()}}),[]);const[ee,se]=c.useState(!1);c.useEffect(()=>{se(!0)},[]);const Z=ee&&!f&&!u;c.useEffect(()=>{Y&&m&&!f&&ee&&O.current.pulsate()},[f,m,Y,ee]);function he(Le,ht,Zt=p){return Ye(Pt=>(ht&&ht(Pt),!Zt&&O.current&&O.current[Le](Pt),!0))}const ne=he("start",E),re=he("stop",C),me=he("stop",b),ce=he("stop",R),Se=he("stop",Le=>{Y&&Le.preventDefault(),I&&I(Le)}),Ee=he("start",L),ae=he("stop",A),Ie=he("stop",$),ye=he("stop",Le=>{Q(Le),H.current===!1&&X(!1),y&&y(Le)},!1),Me=Ye(Le=>{B.current||(B.current=Le.currentTarget),K(Le),H.current===!0&&(X(!0),S&&S(Le)),w&&w(Le)}),pe=()=>{const Le=B.current;return a&&a!=="button"&&!(Le.tagName==="A"&&Le.href)},fe=c.useRef(!1),de=Ye(Le=>{m&&!fe.current&&Y&&O.current&&Le.key===" "&&(fe.current=!0,O.current.stop(Le,()=>{O.current.start(Le)})),Le.target===Le.currentTarget&&pe()&&Le.key===" "&&Le.preventDefault(),k&&k(Le),Le.target===Le.currentTarget&&pe()&&Le.key==="Enter"&&!u&&(Le.preventDefault(),g&&g(Le))}),be=Ye(Le=>{m&&Le.key===" "&&O.current&&Y&&!Le.defaultPrevented&&(fe.current=!1,O.current.stop(Le,()=>{O.current.pulsate(Le)})),M&&M(Le),g&&Le.target===Le.currentTarget&&pe()&&Le.key===" "&&!Le.defaultPrevented&&g(Le)});let _e=a;_e==="button"&&(F.href||F.to)&&(_e=v);const Ne={};_e==="button"?(Ne.type=T===void 0?"button":T,Ne.disabled=u):(!F.href&&!F.to&&(Ne.role="button"),u&&(Ne["aria-disabled"]=u));const Ge=Et(n,J,B),Ve=x({},r,{centerRipple:s,component:a,disabled:u,disableRipple:f,disableTouchRipple:p,focusRipple:m,tabIndex:V,focusVisible:Y}),Ue=BZ(Ve);return D.jsxs(zZ,x({as:_e,className:Ce(Ue.root,l),ownerState:Ve,onBlur:ye,onClick:g,onContextMenu:re,onFocus:Me,onKeyDown:de,onKeyUp:be,onMouseDown:ne,onMouseLeave:Se,onMouseUp:ce,onDragLeave:me,onTouchEnd:ae,onTouchMove:Ie,onTouchStart:Ee,ref:Ge,tabIndex:u?-1:V,type:T},Ne,F,{children:[i,Z?D.jsx(DZ,x({ref:N,center:s},j)):null]}))}),ui=VZ;function jZ(e){return Ke("MuiAlert",e)}const HZ=We("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),N$=HZ;function UZ(e){return Ke("MuiIconButton",e)}const WZ=We("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),GZ=WZ,KZ=["edge","children","className","color","disabled","disableFocusRipple","size"],qZ=e=>{const{classes:t,disabled:n,color:r,edge:o,size:s}=e,i={root:["root",n&&"disabled",r!=="default"&&`color${Pe(r)}`,o&&`edge${Pe(o)}`,`size${Pe(s)}`]};return Te(i,UZ,t)},YZ=oe(ui,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Pe(n.color)}`],n.edge&&t[`edge${Pe(n.edge)}`],t[`size${Pe(n.size)}`]]}})(({theme:e,ownerState:t})=>x({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})`:lt(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 x({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&x({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":x({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(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)},{[`&.${GZ.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),QZ=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:i,color:l="default",disabled:a=!1,disableFocusRipple:u=!1,size:f="medium"}=r,p=le(r,KZ),m=x({},r,{edge:o,color:l,disabled:a,disableFocusRipple:u,size:f}),v=qZ(m);return D.jsx(YZ,x({className:Ce(v.root,i),centerRipple:!0,focusRipple:!u,disabled:a,ref:n,ownerState:m},p,{children:s}))}),hr=QZ,XZ=bt(D.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),ZZ=bt(D.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),JZ=bt(D.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),eJ=bt(D.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),yN=bt(D.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),tJ=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],nJ=e=>{const{variant:t,color:n,severity:r,classes:o}=e,s={root:["root",`${t}${Pe(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Te(s,jZ,o)},rJ=oe(Vs,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Pe(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?_c:Tc,r=e.palette.mode==="light"?Tc:_c,o=t.color||t.severity;return x({},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),[`& .${N$.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}`,[`& .${N$.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&x({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)}))}),oJ=oe("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),sJ=oe("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),B$=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}),z$={success:D.jsx(XZ,{fontSize:"inherit"}),warning:D.jsx(ZZ,{fontSize:"inherit"}),error:D.jsx(JZ,{fontSize:"inherit"}),info:D.jsx(eJ,{fontSize:"inherit"})},iJ=c.forwardRef(function(t,n){var r,o,s,i,l,a;const u=je({props:t,name:"MuiAlert"}),{action:f,children:p,className:m,closeText:v="Close",color:y,components:g={},componentsProps:C={},icon:b,iconMapping:w=z$,onClose:S,role:k="alert",severity:M="success",slotProps:E={},slots:I={},variant:R="standard"}=u,A=le(u,tJ),$=x({},u,{color:y,severity:M,variant:R}),L=nJ($),V=(r=(o=I.closeButton)!=null?o:g.CloseButton)!=null?r:hr,j=(s=(i=I.closeIcon)!=null?i:g.CloseIcon)!=null?s:yN,_=(l=E.closeButton)!=null?l:C.closeButton,T=(a=E.closeIcon)!=null?a:C.closeIcon;return D.jsxs(rJ,x({role:k,elevation:0,ownerState:$,className:Ce(L.root,m),ref:n},A,{children:[b!==!1?D.jsx(oJ,{ownerState:$,className:L.icon,children:b||w[M]||z$[M]}):null,D.jsx(sJ,{ownerState:$,className:L.message,children:p}),f!=null?D.jsx(B$,{ownerState:$,className:L.action,children:f}):null,f==null&&S?D.jsx(B$,{ownerState:$,className:L.action,children:D.jsx(V,x({size:"small","aria-label":v,title:v,color:"inherit",onClick:S},_,{children:D.jsx(j,x({fontSize:"small"},T))}))}):null]}))}),kr=iJ;function lJ(e){return Ke("MuiTypography",e)}We("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const aJ=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],cJ=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:i}=e,l={root:["root",s,e.align!=="inherit"&&`align${Pe(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Te(l,lJ,i)},uJ=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${Pe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>x({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),V$={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},dJ={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},fJ=e=>dJ[e]||e,pJ=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTypography"}),o=fJ(r.color),s=bb(x({},r,{color:o})),{align:i="inherit",className:l,component:a,gutterBottom:u=!1,noWrap:f=!1,paragraph:p=!1,variant:m="body1",variantMapping:v=V$}=s,y=le(s,aJ),g=x({},s,{align:i,color:o,className:l,component:a,gutterBottom:u,noWrap:f,paragraph:p,variant:m,variantMapping:v}),C=a||(p?"p":v[m]||V$[m])||"span",b=cJ(g);return D.jsx(uJ,x({as:C,ref:n,ownerState:g,className:Ce(b.root,l)},y))}),qn=pJ;function hJ(e){return Ke("MuiAppBar",e)}We("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const mJ=["className","color","enableColorOnDark","position"],gJ=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Pe(t)}`,`position${Pe(n)}`]};return Te(o,hJ,r)},cg=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,vJ=oe(Vs,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Pe(n.position)}`],t[`color${Pe(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return x({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&&x({},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"&&x({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&x({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:cg(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:cg(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:cg(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:cg(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"}))}),yJ=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiAppBar"}),{className:o,color:s="primary",enableColorOnDark:i=!1,position:l="fixed"}=r,a=le(r,mJ),u=x({},r,{color:s,position:l,enableColorOnDark:i}),f=gJ(u);return D.jsx(vJ,x({square:!0,component:"header",ownerState:u,elevation:4,className:Ce(f.root,o,l==="fixed"&&"mui-fixed"),ref:n},a))}),bJ=yJ;function $c(e){return typeof e=="string"}function op(e,t,n){return e===void 0||$c(e)?t:x({},t,{ownerState:x({},t.ownerState,n)})}const wJ={disableDefaultClasses:!1},CJ=c.createContext(wJ);function xJ(e){const{disableDefaultClasses:t}=c.useContext(CJ);return n=>t?"":e(n)}function bN(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 Pb(e,t,n){return typeof e=="function"?e(t,n):e}function j$(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 SJ(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const v=Ce(n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),y=x({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=x({},n,o,r);return v.length>0&&(g.className=v),Object.keys(y).length>0&&(g.style=y),{props:g,internalRef:void 0}}const i=bN(x({},o,r)),l=j$(r),a=j$(o),u=t(i),f=Ce(u==null?void 0:u.className,n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),p=x({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=x({},u,n,a,l);return f.length>0&&(m.className=f),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:u.ref}}const PJ=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function qt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:s=!1}=e,i=le(e,PJ),l=s?{}:Pb(r,o),{props:a,internalRef:u}=SJ(x({},i,{externalSlotProps:l})),f=Et(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return op(n,x({},a,{ref:f}),o)}function kJ(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,s=AP({badgeContent:t,max:r});let i=n;n===!1&&t===0&&!o&&(i=!0);const{badgeContent:l,max:a=r}=i?s:e,u=l&&Number(l)>a?`${a}+`:l;return{badgeContent:l,invisible:i,max:a,displayValue:u}}function H$(e){return e.substring(2).toLowerCase()}function EJ(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function wN(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:s="onTouchEnd"}=e,i=c.useRef(!1),l=c.useRef(null),a=c.useRef(!1),u=c.useRef(!1);c.useEffect(()=>(setTimeout(()=>{a.current=!0},0),()=>{a.current=!1}),[]);const f=Et(t.ref,l),p=Ye(y=>{const g=u.current;u.current=!1;const C=fn(l.current);if(!a.current||!l.current||"clientX"in y&&EJ(y,C))return;if(i.current){i.current=!1;return}let b;y.composedPath?b=y.composedPath().indexOf(l.current)>-1:b=!C.documentElement.contains(y.target)||l.current.contains(y.target),!b&&(n||!g)&&o(y)}),m=y=>g=>{u.current=!0;const C=t.props[y];C&&C(g)},v={ref:f};return s!==!1&&(v[s]=m(s)),c.useEffect(()=>{if(s!==!1){const y=H$(s),g=fn(l.current),C=()=>{i.current=!0};return g.addEventListener(y,p),g.addEventListener("touchmove",C),()=>{g.removeEventListener(y,p),g.removeEventListener("touchmove",C)}}},[p,s]),r!==!1&&(v[r]=m(r)),c.useEffect(()=>{if(r!==!1){const y=H$(r),g=fn(l.current);return g.addEventListener(y,p),()=>{g.removeEventListener(y,p)}}},[p,r]),D.jsx(c.Fragment,{children:c.cloneElement(t,v)})}const IJ=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function MJ(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 _J(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 TJ(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||_J(e))}function $J(e){const t=[],n=[];return Array.from(e.querySelectorAll(IJ)).forEach((r,o)=>{const s=MJ(r);s===-1||!TJ(r)||(s===0?t.push(r):n.push({documentOrder:o,tabIndex:s,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function RJ(){return!0}function rk(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=$J,isEnabled:i=RJ,open:l}=e,a=c.useRef(!1),u=c.useRef(null),f=c.useRef(null),p=c.useRef(null),m=c.useRef(null),v=c.useRef(!1),y=c.useRef(null),g=Et(t.ref,y),C=c.useRef(null);c.useEffect(()=>{!l||!y.current||(v.current=!n)},[n,l]),c.useEffect(()=>{if(!l||!y.current)return;const S=fn(y.current);return y.current.contains(S.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),v.current&&y.current.focus()),()=>{o||(p.current&&p.current.focus&&(a.current=!0,p.current.focus()),p.current=null)}},[l]),c.useEffect(()=>{if(!l||!y.current)return;const S=fn(y.current),k=I=>{C.current=I,!(r||!i()||I.key!=="Tab")&&S.activeElement===y.current&&I.shiftKey&&(a.current=!0,f.current&&f.current.focus())},M=()=>{const I=y.current;if(I===null)return;if(!S.hasFocus()||!i()||a.current){a.current=!1;return}if(I.contains(S.activeElement)||r&&S.activeElement!==u.current&&S.activeElement!==f.current)return;if(S.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!v.current)return;let R=[];if((S.activeElement===u.current||S.activeElement===f.current)&&(R=s(y.current)),R.length>0){var A,$;const L=!!((A=C.current)!=null&&A.shiftKey&&(($=C.current)==null?void 0:$.key)==="Tab"),V=R[0],j=R[R.length-1];typeof V!="string"&&typeof j!="string"&&(L?j.focus():V.focus())}else I.focus()};S.addEventListener("focusin",M),S.addEventListener("keydown",k,!0);const E=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(E),S.removeEventListener("focusin",M),S.removeEventListener("keydown",k,!0)}},[n,r,o,i,l,s]);const b=S=>{p.current===null&&(p.current=S.relatedTarget),v.current=!0,m.current=S.target;const k=t.props.onFocus;k&&k(S)},w=S=>{p.current===null&&(p.current=S.relatedTarget),v.current=!0};return D.jsxs(c.Fragment,{children:[D.jsx("div",{tabIndex:l?0:-1,onFocus:w,ref:u,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:g,onFocus:b}),D.jsx("div",{tabIndex:l?0:-1,onFocus:w,ref:f,"data-testid":"sentinelEnd"})]})}var Mo="top",Ds="bottom",As="right",_o="left",ok="auto",Ah=[Mo,Ds,As,_o],wd="start",sh="end",OJ="clippingParents",CN="viewport",zf="popper",DJ="reference",U$=Ah.reduce(function(e,t){return e.concat([t+"-"+wd,t+"-"+sh])},[]),xN=[].concat(Ah,[ok]).reduce(function(e,t){return e.concat([t,t+"-"+wd,t+"-"+sh])},[]),AJ="beforeRead",LJ="read",FJ="afterRead",NJ="beforeMain",BJ="main",zJ="afterMain",VJ="beforeWrite",jJ="write",HJ="afterWrite",UJ=[AJ,LJ,FJ,NJ,BJ,zJ,VJ,jJ,HJ];function Bi(e){return e?(e.nodeName||"").toLowerCase():null}function es(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Rc(e){var t=es(e).Element;return e instanceof t||e instanceof Element}function Ts(e){var t=es(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sk(e){if(typeof ShadowRoot=="undefined")return!1;var t=es(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function WJ(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Ts(s)||!Bi(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(i){var l=o[i];l===!1?s.removeAttribute(i):s.setAttribute(i,l===!0?"":l)}))})}function GJ(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=i.reduce(function(a,u){return a[u]="",a},{});!Ts(o)||!Bi(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(a){o.removeAttribute(a)}))})}}const KJ={name:"applyStyles",enabled:!0,phase:"write",fn:WJ,effect:GJ,requires:["computeStyles"]};function $i(e){return e.split("-")[0]}var hc=Math.max,Bv=Math.min,Cd=Math.round;function $x(){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 SN(){return!/^((?!chrome|android).)*safari/i.test($x())}function xd(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&Ts(e)&&(o=e.offsetWidth>0&&Cd(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Cd(r.height)/e.offsetHeight||1);var i=Rc(e)?es(e):window,l=i.visualViewport,a=!SN()&&n,u=(r.left+(a&&l?l.offsetLeft:0))/o,f=(r.top+(a&&l?l.offsetTop:0))/s,p=r.width/o,m=r.height/s;return{width:p,height:m,top:f,right:u+p,bottom:f+m,left:u,x:u,y:f}}function ik(e){var t=xd(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 PN(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&sk(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function wl(e){return es(e).getComputedStyle(e)}function qJ(e){return["table","td","th"].indexOf(Bi(e))>=0}function La(e){return((Rc(e)?e.ownerDocument:e.document)||window.document).documentElement}function kb(e){return Bi(e)==="html"?e:e.assignedSlot||e.parentNode||(sk(e)?e.host:null)||La(e)}function W$(e){return!Ts(e)||wl(e).position==="fixed"?null:e.offsetParent}function YJ(e){var t=/firefox/i.test($x()),n=/Trident/i.test($x());if(n&&Ts(e)){var r=wl(e);if(r.position==="fixed")return null}var o=kb(e);for(sk(o)&&(o=o.host);Ts(o)&&["html","body"].indexOf(Bi(o))<0;){var s=wl(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Lh(e){for(var t=es(e),n=W$(e);n&&qJ(n)&&wl(n).position==="static";)n=W$(n);return n&&(Bi(n)==="html"||Bi(n)==="body"&&wl(n).position==="static")?t:n||YJ(e)||t}function lk(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ep(e,t,n){return hc(e,Bv(t,n))}function QJ(e,t,n){var r=Ep(e,t,n);return r>n?n:r}function kN(){return{top:0,right:0,bottom:0,left:0}}function EN(e){return Object.assign({},kN(),e)}function IN(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var XJ=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,EN(typeof t!="number"?t:IN(t,Ah))};function ZJ(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,l=$i(n.placement),a=lk(l),u=[_o,As].indexOf(l)>=0,f=u?"height":"width";if(!(!s||!i)){var p=XJ(o.padding,n),m=ik(s),v=a==="y"?Mo:_o,y=a==="y"?Ds:As,g=n.rects.reference[f]+n.rects.reference[a]-i[a]-n.rects.popper[f],C=i[a]-n.rects.reference[a],b=Lh(s),w=b?a==="y"?b.clientHeight||0:b.clientWidth||0:0,S=g/2-C/2,k=p[v],M=w-m[f]-p[y],E=w/2-m[f]/2+S,I=Ep(k,E,M),R=a;n.modifiersData[r]=(t={},t[R]=I,t.centerOffset=I-E,t)}}function JJ(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)||PN(t.elements.popper,o)&&(t.elements.arrow=o))}const eee={name:"arrow",enabled:!0,phase:"main",fn:ZJ,effect:JJ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Sd(e){return e.split("-")[1]}var tee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nee(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Cd(n*o)/o||0,y:Cd(r*o)/o||0}}function G$(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,i=e.offsets,l=e.position,a=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,p=e.isFixed,m=i.x,v=m===void 0?0:m,y=i.y,g=y===void 0?0:y,C=typeof f=="function"?f({x:v,y:g}):{x:v,y:g};v=C.x,g=C.y;var b=i.hasOwnProperty("x"),w=i.hasOwnProperty("y"),S=_o,k=Mo,M=window;if(u){var E=Lh(n),I="clientHeight",R="clientWidth";if(E===es(n)&&(E=La(n),wl(E).position!=="static"&&l==="absolute"&&(I="scrollHeight",R="scrollWidth")),E=E,o===Mo||(o===_o||o===As)&&s===sh){k=Ds;var A=p&&E===M&&M.visualViewport?M.visualViewport.height:E[I];g-=A-r.height,g*=a?1:-1}if(o===_o||(o===Mo||o===Ds)&&s===sh){S=As;var $=p&&E===M&&M.visualViewport?M.visualViewport.width:E[R];v-=$-r.width,v*=a?1:-1}}var L=Object.assign({position:l},u&&tee),V=f===!0?nee({x:v,y:g},es(n)):{x:v,y:g};if(v=V.x,g=V.y,a){var j;return Object.assign({},L,(j={},j[k]=w?"0":"",j[S]=b?"0":"",j.transform=(M.devicePixelRatio||1)<=1?"translate("+v+"px, "+g+"px)":"translate3d("+v+"px, "+g+"px, 0)",j))}return Object.assign({},L,(t={},t[k]=w?g+"px":"",t[S]=b?v+"px":"",t.transform="",t))}function ree(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,i=s===void 0?!0:s,l=n.roundOffsets,a=l===void 0?!0:l,u={placement:$i(t.placement),variation:Sd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,G$(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,G$(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const oee={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ree,data:{}};var ug={passive:!0};function see(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,i=r.resize,l=i===void 0?!0:i,a=es(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(f){f.addEventListener("scroll",n.update,ug)}),l&&a.addEventListener("resize",n.update,ug),function(){s&&u.forEach(function(f){f.removeEventListener("scroll",n.update,ug)}),l&&a.removeEventListener("resize",n.update,ug)}}const iee={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:see,data:{}};var lee={left:"right",right:"left",bottom:"top",top:"bottom"};function Kg(e){return e.replace(/left|right|bottom|top/g,function(t){return lee[t]})}var aee={start:"end",end:"start"};function K$(e){return e.replace(/start|end/g,function(t){return aee[t]})}function ak(e){var t=es(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ck(e){return xd(La(e)).left+ak(e).scrollLeft}function cee(e,t){var n=es(e),r=La(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,l=0,a=0;if(o){s=o.width,i=o.height;var u=SN();(u||!u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:s,height:i,x:l+ck(e),y:a}}function uee(e){var t,n=La(e),r=ak(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=hc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=hc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+ck(e),a=-r.scrollTop;return wl(o||n).direction==="rtl"&&(l+=hc(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:l,y:a}}function uk(e){var t=wl(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function MN(e){return["html","body","#document"].indexOf(Bi(e))>=0?e.ownerDocument.body:Ts(e)&&uk(e)?e:MN(kb(e))}function Ip(e,t){var n;t===void 0&&(t=[]);var r=MN(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=es(r),i=o?[s].concat(s.visualViewport||[],uk(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(Ip(kb(i)))}function Rx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dee(e,t){var n=xd(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function q$(e,t,n){return t===CN?Rx(cee(e,n)):Rc(t)?dee(t,n):Rx(uee(La(e)))}function fee(e){var t=Ip(kb(e)),n=["absolute","fixed"].indexOf(wl(e).position)>=0,r=n&&Ts(e)?Lh(e):e;return Rc(r)?t.filter(function(o){return Rc(o)&&PN(o,r)&&Bi(o)!=="body"}):[]}function pee(e,t,n,r){var o=t==="clippingParents"?fee(e):[].concat(t),s=[].concat(o,[n]),i=s[0],l=s.reduce(function(a,u){var f=q$(e,u,r);return a.top=hc(f.top,a.top),a.right=Bv(f.right,a.right),a.bottom=Bv(f.bottom,a.bottom),a.left=hc(f.left,a.left),a},q$(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function _N(e){var t=e.reference,n=e.element,r=e.placement,o=r?$i(r):null,s=r?Sd(r):null,i=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,a;switch(o){case Mo:a={x:i,y:t.y-n.height};break;case Ds:a={x:i,y:t.y+t.height};break;case As:a={x:t.x+t.width,y:l};break;case _o:a={x:t.x-n.width,y:l};break;default:a={x:t.x,y:t.y}}var u=o?lk(o):null;if(u!=null){var f=u==="y"?"height":"width";switch(s){case wd:a[u]=a[u]-(t[f]/2-n[f]/2);break;case sh:a[u]=a[u]+(t[f]/2-n[f]/2);break}}return a}function ih(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,i=s===void 0?e.strategy:s,l=n.boundary,a=l===void 0?OJ:l,u=n.rootBoundary,f=u===void 0?CN:u,p=n.elementContext,m=p===void 0?zf:p,v=n.altBoundary,y=v===void 0?!1:v,g=n.padding,C=g===void 0?0:g,b=EN(typeof C!="number"?C:IN(C,Ah)),w=m===zf?DJ:zf,S=e.rects.popper,k=e.elements[y?w:m],M=pee(Rc(k)?k:k.contextElement||La(e.elements.popper),a,f,i),E=xd(e.elements.reference),I=_N({reference:E,element:S,strategy:"absolute",placement:o}),R=Rx(Object.assign({},S,I)),A=m===zf?R:E,$={top:M.top-A.top+b.top,bottom:A.bottom-M.bottom+b.bottom,left:M.left-A.left+b.left,right:A.right-M.right+b.right},L=e.modifiersData.offset;if(m===zf&&L){var V=L[o];Object.keys($).forEach(function(j){var _=[As,Ds].indexOf(j)>=0?1:-1,T=[Mo,Ds].indexOf(j)>=0?"y":"x";$[j]+=V[T]*_})}return $}function hee(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,i=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,u=a===void 0?xN:a,f=Sd(r),p=f?l?U$:U$.filter(function(y){return Sd(y)===f}):Ah,m=p.filter(function(y){return u.indexOf(y)>=0});m.length===0&&(m=p);var v=m.reduce(function(y,g){return y[g]=ih(e,{placement:g,boundary:o,rootBoundary:s,padding:i})[$i(g)],y},{});return Object.keys(v).sort(function(y,g){return v[y]-v[g]})}function mee(e){if($i(e)===ok)return[];var t=Kg(e);return[K$(e),t,K$(t)]}function gee(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,l=i===void 0?!0:i,a=n.fallbackPlacements,u=n.padding,f=n.boundary,p=n.rootBoundary,m=n.altBoundary,v=n.flipVariations,y=v===void 0?!0:v,g=n.allowedAutoPlacements,C=t.options.placement,b=$i(C),w=b===C,S=a||(w||!y?[Kg(C)]:mee(C)),k=[C].concat(S).reduce(function(Y,X){return Y.concat($i(X)===ok?hee(t,{placement:X,boundary:f,rootBoundary:p,padding:u,flipVariations:y,allowedAutoPlacements:g}):X)},[]),M=t.rects.reference,E=t.rects.popper,I=new Map,R=!0,A=k[0],$=0;$<k.length;$++){var L=k[$],V=$i(L),j=Sd(L)===wd,_=[Mo,Ds].indexOf(V)>=0,T=_?"width":"height",F=ih(t,{placement:L,boundary:f,rootBoundary:p,altBoundary:m,padding:u}),B=_?j?As:_o:j?Ds:Mo;M[T]>E[T]&&(B=Kg(B));var O=Kg(B),N=[];if(s&&N.push(F[V]<=0),l&&N.push(F[B]<=0,F[O]<=0),N.every(function(Y){return Y})){A=L,R=!1;break}I.set(L,N)}if(R)for(var H=y?3:1,K=function(X){var ee=k.find(function(se){var Z=I.get(se);if(Z)return Z.slice(0,X).every(function(he){return he})});if(ee)return A=ee,"break"},Q=H;Q>0;Q--){var J=K(Q);if(J==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const vee={name:"flip",enabled:!0,phase:"main",fn:gee,requiresIfExists:["offset"],data:{_skip:!1}};function Y$(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Q$(e){return[Mo,As,Ds,_o].some(function(t){return e[t]>=0})}function yee(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=ih(t,{elementContext:"reference"}),l=ih(t,{altBoundary:!0}),a=Y$(i,r),u=Y$(l,o,s),f=Q$(a),p=Q$(u);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}const bee={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:yee};function wee(e,t,n){var r=$i(e),o=[_o,Mo].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],l=s[1];return i=i||0,l=(l||0)*o,[_o,As].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}function Cee(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=xN.reduce(function(f,p){return f[p]=wee(p,t.rects,s),f},{}),l=i[t.placement],a=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}const xee={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Cee};function See(e){var t=e.state,n=e.name;t.modifiersData[n]=_N({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Pee={name:"popperOffsets",enabled:!0,phase:"read",fn:See,data:{}};function kee(e){return e==="x"?"y":"x"}function Eee(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,l=i===void 0?!1:i,a=n.boundary,u=n.rootBoundary,f=n.altBoundary,p=n.padding,m=n.tether,v=m===void 0?!0:m,y=n.tetherOffset,g=y===void 0?0:y,C=ih(t,{boundary:a,rootBoundary:u,padding:p,altBoundary:f}),b=$i(t.placement),w=Sd(t.placement),S=!w,k=lk(b),M=kee(k),E=t.modifiersData.popperOffsets,I=t.rects.reference,R=t.rects.popper,A=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,$=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(E){if(s){var j,_=k==="y"?Mo:_o,T=k==="y"?Ds:As,F=k==="y"?"height":"width",B=E[k],O=B+C[_],N=B-C[T],H=v?-R[F]/2:0,K=w===wd?I[F]:R[F],Q=w===wd?-R[F]:-I[F],J=t.elements.arrow,Y=v&&J?ik(J):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:kN(),ee=X[_],se=X[T],Z=Ep(0,I[F],Y[F]),he=S?I[F]/2-H-Z-ee-$.mainAxis:K-Z-ee-$.mainAxis,ne=S?-I[F]/2+H+Z+se+$.mainAxis:Q+Z+se+$.mainAxis,re=t.elements.arrow&&Lh(t.elements.arrow),me=re?k==="y"?re.clientTop||0:re.clientLeft||0:0,ce=(j=L==null?void 0:L[k])!=null?j:0,Se=B+he-ce-me,Ee=B+ne-ce,ae=Ep(v?Bv(O,Se):O,B,v?hc(N,Ee):N);E[k]=ae,V[k]=ae-B}if(l){var Ie,ye=k==="x"?Mo:_o,Me=k==="x"?Ds:As,pe=E[M],fe=M==="y"?"height":"width",de=pe+C[ye],be=pe-C[Me],_e=[Mo,_o].indexOf(b)!==-1,Ne=(Ie=L==null?void 0:L[M])!=null?Ie:0,Ge=_e?de:pe-I[fe]-R[fe]-Ne+$.altAxis,Ve=_e?pe+I[fe]+R[fe]-Ne-$.altAxis:be,Ue=v&&_e?QJ(Ge,pe,Ve):Ep(v?Ge:de,pe,v?Ve:be);E[M]=Ue,V[M]=Ue-pe}t.modifiersData[r]=V}}const Iee={name:"preventOverflow",enabled:!0,phase:"main",fn:Eee,requiresIfExists:["offset"]};function Mee(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function _ee(e){return e===es(e)||!Ts(e)?ak(e):Mee(e)}function Tee(e){var t=e.getBoundingClientRect(),n=Cd(t.width)/e.offsetWidth||1,r=Cd(t.height)/e.offsetHeight||1;return n!==1||r!==1}function $ee(e,t,n){n===void 0&&(n=!1);var r=Ts(t),o=Ts(t)&&Tee(t),s=La(t),i=xd(e,o,n),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((Bi(t)!=="body"||uk(s))&&(l=_ee(t)),Ts(t)?(a=xd(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):s&&(a.x=ck(s))),{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function Ree(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(l){if(!n.has(l)){var a=t.get(l);a&&o(a)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function Oee(e){var t=Ree(e);return UJ.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Dee(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Aee(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var X$={placement:"bottom",modifiers:[],strategy:"absolute"};function Z$(){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 Lee(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?X$:o;return function(l,a,u){u===void 0&&(u=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},X$,s),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},p=[],m=!1,v={state:f,setOptions:function(b){var w=typeof b=="function"?b(f.options):b;g(),f.options=Object.assign({},s,f.options,w),f.scrollParents={reference:Rc(l)?Ip(l):l.contextElement?Ip(l.contextElement):[],popper:Ip(a)};var S=Oee(Aee([].concat(r,f.options.modifiers)));return f.orderedModifiers=S.filter(function(k){return k.enabled}),y(),v.update()},forceUpdate:function(){if(!m){var b=f.elements,w=b.reference,S=b.popper;if(Z$(w,S)){f.rects={reference:$ee(w,Lh(S),f.options.strategy==="fixed"),popper:ik(S)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function($){return f.modifiersData[$.name]=Object.assign({},$.data)});for(var k=0;k<f.orderedModifiers.length;k++){if(f.reset===!0){f.reset=!1,k=-1;continue}var M=f.orderedModifiers[k],E=M.fn,I=M.options,R=I===void 0?{}:I,A=M.name;typeof E=="function"&&(f=E({state:f,options:R,name:A,instance:v})||f)}}}},update:Dee(function(){return new Promise(function(C){v.forceUpdate(),C(f)})}),destroy:function(){g(),m=!0}};if(!Z$(l,a))return v;v.setOptions(u).then(function(C){!m&&u.onFirstUpdate&&u.onFirstUpdate(C)});function y(){f.orderedModifiers.forEach(function(C){var b=C.name,w=C.options,S=w===void 0?{}:w,k=C.effect;if(typeof k=="function"){var M=k({state:f,name:b,instance:v,options:S}),E=function(){};p.push(M||E)}})}function g(){p.forEach(function(C){return C()}),p=[]}return v}}var Fee=[iee,Pee,oee,KJ,xee,vee,Iee,eee,bee],Nee=Lee({defaultModifiers:Fee});function Bee(e){return typeof e=="function"?e():e}const TN=c.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[i,l]=c.useState(null),a=Et(c.isValidElement(r)?r.ref:null,n);if(Nt(()=>{s||l(Bee(o)||document.body)},[o,s]),Nt(()=>{if(i&&!s)return th(n,i),()=>{th(n,null)}},[n,i,s]),s){if(c.isValidElement(r)){const u={ref:a};return c.cloneElement(r,u)}return D.jsx(c.Fragment,{children:r})}return D.jsx(c.Fragment,{children:i&&zd.createPortal(r,i)})});function zee(e){return Ke("MuiPopper",e)}We("MuiPopper",["root"]);const Vee=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],jee=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Hee(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 Ox(e){return typeof e=="function"?e():e}function Uee(e){return e.nodeType!==void 0}const Wee=()=>Te({root:["root"]},xJ(zee)),Gee={},Kee=c.forwardRef(function(t,n){var r;const{anchorEl:o,children:s,direction:i,disablePortal:l,modifiers:a,open:u,placement:f,popperOptions:p,popperRef:m,slotProps:v={},slots:y={},TransitionProps:g}=t,C=le(t,Vee),b=c.useRef(null),w=Et(b,n),S=c.useRef(null),k=Et(S,m),M=c.useRef(k);Nt(()=>{M.current=k},[k]),c.useImperativeHandle(m,()=>S.current,[]);const E=Hee(f,i),[I,R]=c.useState(E),[A,$]=c.useState(Ox(o));c.useEffect(()=>{S.current&&S.current.forceUpdate()}),c.useEffect(()=>{o&&$(Ox(o))},[o]),Nt(()=>{if(!A||!u)return;const T=O=>{R(O.placement)};let F=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:O})=>{T(O)}}];a!=null&&(F=F.concat(a)),p&&p.modifiers!=null&&(F=F.concat(p.modifiers));const B=Nee(A,b.current,x({placement:E},p,{modifiers:F}));return M.current(B),()=>{B.destroy(),M.current(null)}},[A,l,a,u,p,E]);const L={placement:I};g!==null&&(L.TransitionProps=g);const V=Wee(),j=(r=y.root)!=null?r:"div",_=qt({elementType:j,externalSlotProps:v.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:V.root});return D.jsx(j,x({},_,{children:typeof s=="function"?s(L):s}))}),qee=c.forwardRef(function(t,n){const{anchorEl:r,children:o,container:s,direction:i="ltr",disablePortal:l=!1,keepMounted:a=!1,modifiers:u,open:f,placement:p="bottom",popperOptions:m=Gee,popperRef:v,style:y,transition:g=!1,slotProps:C={},slots:b={}}=t,w=le(t,jee),[S,k]=c.useState(!0),M=()=>{k(!1)},E=()=>{k(!0)};if(!a&&!f&&(!g||S))return null;let I;if(s)I=s;else if(r){const $=Ox(r);I=$&&Uee($)?fn($).body:fn(null).body}const R=!f&&a&&(!g||S)?"none":void 0,A=g?{in:f,onEnter:M,onExited:E}:void 0;return D.jsx(TN,{disablePortal:l,container:I,children:D.jsx(Kee,x({anchorEl:r,direction:i,disablePortal:l,modifiers:u,ref:n,open:g?!S:f,placement:p,popperOptions:m,popperRef:v,slotProps:C,slots:b},w,{style:x({position:"fixed",top:0,left:0,display:R},y),TransitionProps:A,children:o}))})});function Yee(e){const t=fn(e);return t.body===e?Jo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Mp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function J$(e){return parseInt(Jo(e).getComputedStyle(e).paddingRight,10)||0}function Qee(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 eR(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,i=>{const l=s.indexOf(i)===-1,a=!Qee(i);l&&a&&Mp(i,o)})}function Tw(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Xee(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Yee(r)){const i=LF(fn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${J$(r)+i}px`;const l=fn(r).querySelectorAll(".mui-fixed");[].forEach.call(l,a=>{n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${J$(a)+i}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=fn(r).body;else{const i=r.parentElement,l=Jo(r);s=(i==null?void 0:i.nodeName)==="HTML"&&l.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:i,property:l})=>{s?i.style.setProperty(l,s):i.style.removeProperty(l)})}}function Zee(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Jee{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&&Mp(t.modalRef,!1);const o=Zee(n);eR(n,t.mount,t.modalRef,o,!0);const s=Tw(this.containers,i=>i.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Tw(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=Xee(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Tw(this.containers,i=>i.modals.indexOf(t)!==-1),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&Mp(t.modalRef,n),eR(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=s.modals[s.modals.length-1];i.modalRef&&Mp(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function ete(e){return typeof e=="function"?e():e}function tte(e){return e?e.props.hasOwnProperty("in"):!1}const nte=new Jee;function rte(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=nte,closeAfterTransition:s=!1,onTransitionEnter:i,onTransitionExited:l,children:a,onClose:u,open:f,rootRef:p}=e,m=c.useRef({}),v=c.useRef(null),y=c.useRef(null),g=Et(y,p),[C,b]=c.useState(!f),w=tte(a);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const k=()=>fn(v.current),M=()=>(m.current.modalRef=y.current,m.current.mount=v.current,m.current),E=()=>{o.mount(M(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},I=Ye(()=>{const F=ete(t)||k().body;o.add(M(),F),y.current&&E()}),R=c.useCallback(()=>o.isTopModal(M()),[o]),A=Ye(F=>{v.current=F,F&&(f&&R()?E():y.current&&Mp(y.current,S))}),$=c.useCallback(()=>{o.remove(M(),S)},[S,o]);c.useEffect(()=>()=>{$()},[$]),c.useEffect(()=>{f?I():(!w||!s)&&$()},[f,$,w,s,I]);const L=F=>B=>{var O;(O=F.onKeyDown)==null||O.call(F,B),!(B.key!=="Escape"||B.which===229||!R())&&(n||(B.stopPropagation(),u&&u(B,"escapeKeyDown")))},V=F=>B=>{var O;(O=F.onClick)==null||O.call(F,B),B.target===B.currentTarget&&u&&u(B,"backdropClick")};return{getRootProps:(F={})=>{const B=bN(e);delete B.onTransitionEnter,delete B.onTransitionExited;const O=x({},B,F);return x({role:"presentation"},O,{onKeyDown:L(O),ref:g})},getBackdropProps:(F={})=>{const B=F;return x({"aria-hidden":!0},B,{onClick:V(B),open:f})},getTransitionProps:()=>{const F=()=>{b(!1),i&&i()},B=()=>{b(!0),l&&l(),s&&$()};return{onEnter:xx(F,a==null?void 0:a.props.onEnter),onExited:xx(B,a==null?void 0:a.props.onExited)}},rootRef:g,portalRef:A,isTopModal:R,exited:C,hasTransition:w}}const ote=["onChange","maxRows","minRows","style","value"];function dg(e){return parseInt(e,10)||0}const ste={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function tR(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const ite=c.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:s=1,style:i,value:l}=t,a=le(t,ote),{current:u}=c.useRef(l!=null),f=c.useRef(null),p=Et(n,f),m=c.useRef(null),v=c.useRef(0),[y,g]=c.useState({outerHeightStyle:0}),C=c.useCallback(()=>{const k=f.current,E=Jo(k).getComputedStyle(k);if(E.width==="0px")return{outerHeightStyle:0};const I=m.current;I.style.width=E.width,I.value=k.value||t.placeholder||"x",I.value.slice(-1)===`
162
+ `&&(I.value+=" ");const R=E.boxSizing,A=dg(E.paddingBottom)+dg(E.paddingTop),$=dg(E.borderBottomWidth)+dg(E.borderTopWidth),L=I.scrollHeight;I.value="x";const V=I.scrollHeight;let j=L;s&&(j=Math.max(Number(s)*V,j)),o&&(j=Math.min(Number(o)*V,j)),j=Math.max(j,V);const _=j+(R==="border-box"?A+$:0),T=Math.abs(j-L)<=1;return{outerHeightStyle:_,overflow:T}},[o,s,t.placeholder]),b=(k,M)=>{const{outerHeightStyle:E,overflow:I}=M;return v.current<20&&(E>0&&Math.abs((k.outerHeightStyle||0)-E)>1||k.overflow!==I)?(v.current+=1,{overflow:I,outerHeightStyle:E}):k},w=c.useCallback(()=>{const k=C();tR(k)||g(M=>b(M,k))},[C]);Nt(()=>{const k=()=>{const L=C();tR(L)||zd.flushSync(()=>{g(V=>b(V,L))})},M=()=>{v.current=0,k()};let E;const I=Aa(M),R=f.current,A=Jo(R);A.addEventListener("resize",I);let $;return typeof ResizeObserver!="undefined"&&($=new ResizeObserver(M),$.observe(R)),()=>{I.clear(),cancelAnimationFrame(E),A.removeEventListener("resize",I),$&&$.disconnect()}},[C]),Nt(()=>{w()}),c.useEffect(()=>{v.current=0},[l]);const S=k=>{v.current=0,u||w(),r&&r(k)};return D.jsxs(c.Fragment,{children:[D.jsx("textarea",x({value:l,onChange:S,ref:p,rows:s,style:x({height:y.outerHeightStyle,overflow:y.overflow?"hidden":void 0},i)},a)),D.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:x({},ste.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function nR(e){return typeof e.normalize!="undefined"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function $N(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:s,trim:i=!1}=e;return(l,{inputValue:a,getOptionLabel:u})=>{let f=i?a.trim():a;n&&(f=f.toLowerCase()),t&&(f=nR(f));const p=f?l.filter(m=>{let v=(s||u)(m);return n&&(v=v.toLowerCase()),t&&(v=nR(v)),o==="start"?v.indexOf(f)===0:v.indexOf(f)>-1}):l;return typeof r=="number"?p.slice(0,r):p}}function $w(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const lte=$N(),rR=5,ate=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function cte(e){const{unstable_isActiveElementInListbox:t=ate,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:s=!1,blurOnSelect:i=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:a=!1,componentName:u="useAutocomplete",defaultValue:f=e.multiple?[]:null,disableClearable:p=!1,disableCloseOnSelect:m=!1,disabled:v,disabledItemsFocusable:y=!1,disableListWrap:g=!1,filterOptions:C=lte,filterSelectedOptions:b=!1,freeSolo:w=!1,getOptionDisabled:S,getOptionKey:k,getOptionLabel:M=$e=>{var we;return(we=$e.label)!=null?we:$e},groupBy:E,handleHomeEndKeys:I=!e.freeSolo,id:R,includeInputInList:A=!1,inputValue:$,isOptionEqualToValue:L=($e,we)=>$e===we,multiple:V=!1,onChange:j,onClose:_,onHighlightChange:T,onInputChange:F,onOpen:B,open:O,openOnFocus:N=!1,options:H,readOnly:K=!1,selectOnFocus:Q=!e.freeSolo,value:J}=e,Y=Kt(R);let X=M;X=$e=>{const we=M($e);return typeof we!="string"?String(we):we};const ee=c.useRef(!1),se=c.useRef(!0),Z=c.useRef(null),he=c.useRef(null),[ne,re]=c.useState(null),[me,ce]=c.useState(-1),Se=o?0:-1,Ee=c.useRef(Se),[ae,Ie]=Qr({controlled:J,default:f,name:u}),[ye,Me]=Qr({controlled:$,default:"",name:u,state:"inputValue"}),[pe,fe]=c.useState(!1),de=c.useCallback(($e,we)=>{if(!(V?ae.length<we.length:we!==null)&&!l)return;let ft;if(V)ft="";else if(we==null)ft="";else{const Wt=X(we);ft=typeof Wt=="string"?Wt:""}ye!==ft&&(Me(ft),F&&F($e,ft,"reset"))},[X,ye,V,F,Me,l,ae]),[be,_e]=Qr({controlled:O,default:!1,name:u,state:"open"}),[Ne,Ge]=c.useState(!0),Ve=!V&&ae!=null&&ye===X(ae),Ue=be&&!K,Le=Ue?C(H.filter($e=>!(b&&(V?ae:[ae]).some(we=>we!==null&&L($e,we)))),{inputValue:Ve&&Ne?"":ye,getOptionLabel:X}):[],ht=AP({filteredOptions:Le,value:ae,inputValue:ye});c.useEffect(()=>{const $e=ae!==ht.value;pe&&!$e||w&&!$e||de(null,ae)},[ae,de,pe,ht.value,w]);const Zt=be&&Le.length>0&&!K,Pt=Ye($e=>{$e===-1?Z.current.focus():ne.querySelector(`[data-tag-index="${$e}"]`).focus()});c.useEffect(()=>{V&&me>ae.length-1&&(ce(-1),Pt(-1))},[ae,V,me,Pt]);function wt($e,we){if(!he.current||$e<0||$e>=Le.length)return-1;let Qe=$e;for(;;){const ft=he.current.querySelector(`[data-option-index="${Qe}"]`),Wt=y?!1:!ft||ft.disabled||ft.getAttribute("aria-disabled")==="true";if(ft&&ft.hasAttribute("tabindex")&&!Wt)return Qe;if(we==="next"?Qe=(Qe+1)%Le.length:Qe=(Qe-1+Le.length)%Le.length,Qe===$e)return-1}}const Xe=Ye(({event:$e,index:we,reason:Qe="auto"})=>{if(Ee.current=we,we===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${Y}-option-${we}`),T&&T($e,we===-1?null:Le[we],Qe),!he.current)return;const ft=he.current.querySelector(`[role="option"].${n}-focused`);ft&&(ft.classList.remove(`${n}-focused`),ft.classList.remove(`${n}-focusVisible`));let Wt=he.current;if(he.current.getAttribute("role")!=="listbox"&&(Wt=he.current.parentElement.querySelector('[role="listbox"]')),!Wt)return;if(we===-1){Wt.scrollTop=0;return}const $n=he.current.querySelector(`[data-option-index="${we}"]`);if($n&&($n.classList.add(`${n}-focused`),Qe==="keyboard"&&$n.classList.add(`${n}-focusVisible`),Wt.scrollHeight>Wt.clientHeight&&Qe!=="mouse"&&Qe!=="touch")){const Fn=$n,St=Wt.clientHeight+Wt.scrollTop,Xn=Fn.offsetTop+Fn.offsetHeight;Xn>St?Wt.scrollTop=Xn-Wt.clientHeight:Fn.offsetTop-Fn.offsetHeight*(E?1.3:0)<Wt.scrollTop&&(Wt.scrollTop=Fn.offsetTop-Fn.offsetHeight*(E?1.3:0))}}),Oe=Ye(({event:$e,diff:we,direction:Qe="next",reason:ft="auto"})=>{if(!Ue)return;const $n=wt((()=>{const Fn=Le.length-1;if(we==="reset")return Se;if(we==="start")return 0;if(we==="end")return Fn;const St=Ee.current+we;return St<0?St===-1&&A?-1:g&&Ee.current!==-1||Math.abs(we)>1?0:Fn:St>Fn?St===Fn+1&&A?-1:g||Math.abs(we)>1?Fn:0:St})(),Qe);if(Xe({index:$n,reason:ft,event:$e}),r&&we!=="reset")if($n===-1)Z.current.value=ye;else{const Fn=X(Le[$n]);Z.current.value=Fn,Fn.toLowerCase().indexOf(ye.toLowerCase())===0&&ye.length>0&&Z.current.setSelectionRange(ye.length,Fn.length)}}),qe=()=>{const $e=(we,Qe)=>{const ft=we?X(we):"",Wt=Qe?X(Qe):"";return ft===Wt};if(Ee.current!==-1&&ht.filteredOptions&&ht.filteredOptions.length!==Le.length&&ht.inputValue===ye&&(V?ae.length===ht.value.length&&ht.value.every((we,Qe)=>X(ae[Qe])===X(we)):$e(ht.value,ae))){const we=ht.filteredOptions[Ee.current];if(we&&Le.some(ft=>X(ft)===X(we)))return!0}return!1},mt=c.useCallback(()=>{if(!Ue||qe())return;const $e=V?ae[0]:ae;if(Le.length===0||$e==null){Oe({diff:"reset"});return}if(he.current){if($e!=null){const we=Le[Ee.current];if(V&&we&&$w(ae,ft=>L(we,ft))!==-1)return;const Qe=$w(Le,ft=>L(ft,$e));Qe===-1?Oe({diff:"reset"}):Xe({index:Qe});return}if(Ee.current>=Le.length-1){Xe({index:Le.length-1});return}Xe({index:Ee.current})}},[Le.length,V?!1:ae,b,Oe,Xe,Ue,ye,V]),vt=Ye($e=>{th(he,$e),$e&&mt()});c.useEffect(()=>{mt()},[mt]);const Tt=$e=>{be||(_e(!0),Ge(!0),B&&B($e))},Yt=($e,we)=>{be&&(_e(!1),_&&_($e,we))},Qt=($e,we,Qe,ft)=>{if(V){if(ae.length===we.length&&ae.every((Wt,$n)=>Wt===we[$n]))return}else if(ae===we)return;j&&j($e,we,Qe,ft),Ie(we)},Pn=c.useRef(!1),bn=($e,we,Qe="selectOption",ft="options")=>{let Wt=Qe,$n=we;if(V){$n=Array.isArray(ae)?ae.slice():[];const Fn=$w($n,St=>L(we,St));Fn===-1?$n.push(we):ft!=="freeSolo"&&($n.splice(Fn,1),Wt="removeOption")}de($e,$n),Qt($e,$n,Wt,{option:we}),!m&&(!$e||!$e.ctrlKey&&!$e.metaKey)&&Yt($e,Wt),(i===!0||i==="touch"&&Pn.current||i==="mouse"&&!Pn.current)&&Z.current.blur()};function gt($e,we){if($e===-1)return-1;let Qe=$e;for(;;){if(we==="next"&&Qe===ae.length||we==="previous"&&Qe===-1)return-1;const ft=ne.querySelector(`[data-tag-index="${Qe}"]`);if(!ft||!ft.hasAttribute("tabindex")||ft.disabled||ft.getAttribute("aria-disabled")==="true")Qe+=we==="next"?1:-1;else return Qe}}const Rt=($e,we)=>{if(!V)return;ye===""&&Yt($e,"toggleInput");let Qe=me;me===-1?ye===""&&we==="previous"&&(Qe=ae.length-1):(Qe+=we==="next"?1:-1,Qe<0&&(Qe=0),Qe===ae.length&&(Qe=-1)),Qe=gt(Qe,we),ce(Qe),Pt(Qe)},vr=$e=>{ee.current=!0,Me(""),F&&F($e,"","clear"),Qt($e,V?[]:null,"clear")},ir=$e=>we=>{if($e.onKeyDown&&$e.onKeyDown(we),!we.defaultMuiPrevented&&(me!==-1&&["ArrowLeft","ArrowRight"].indexOf(we.key)===-1&&(ce(-1),Pt(-1)),we.which!==229))switch(we.key){case"Home":Ue&&I&&(we.preventDefault(),Oe({diff:"start",direction:"next",reason:"keyboard",event:we}));break;case"End":Ue&&I&&(we.preventDefault(),Oe({diff:"end",direction:"previous",reason:"keyboard",event:we}));break;case"PageUp":we.preventDefault(),Oe({diff:-rR,direction:"previous",reason:"keyboard",event:we}),Tt(we);break;case"PageDown":we.preventDefault(),Oe({diff:rR,direction:"next",reason:"keyboard",event:we}),Tt(we);break;case"ArrowDown":we.preventDefault(),Oe({diff:1,direction:"next",reason:"keyboard",event:we}),Tt(we);break;case"ArrowUp":we.preventDefault(),Oe({diff:-1,direction:"previous",reason:"keyboard",event:we}),Tt(we);break;case"ArrowLeft":Rt(we,"previous");break;case"ArrowRight":Rt(we,"next");break;case"Enter":if(Ee.current!==-1&&Ue){const Qe=Le[Ee.current],ft=S?S(Qe):!1;if(we.preventDefault(),ft)return;bn(we,Qe,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else w&&ye!==""&&Ve===!1&&(V&&we.preventDefault(),bn(we,ye,"createOption","freeSolo"));break;case"Escape":Ue?(we.preventDefault(),we.stopPropagation(),Yt(we,"escape")):a&&(ye!==""||V&&ae.length>0)&&(we.preventDefault(),we.stopPropagation(),vr(we));break;case"Backspace":if(V&&!K&&ye===""&&ae.length>0){const Qe=me===-1?ae.length-1:me,ft=ae.slice();ft.splice(Qe,1),Qt(we,ft,"removeOption",{option:ae[Qe]})}break;case"Delete":if(V&&!K&&ye===""&&ae.length>0&&me!==-1){const Qe=me,ft=ae.slice();ft.splice(Qe,1),Qt(we,ft,"removeOption",{option:ae[Qe]})}break}},Tl=$e=>{fe(!0),N&&!ee.current&&Tt($e)},as=$e=>{if(t(he)){Z.current.focus();return}fe(!1),se.current=!0,ee.current=!1,s&&Ee.current!==-1&&Ue?bn($e,Le[Ee.current],"blur"):s&&w&&ye!==""?bn($e,ye,"blur","freeSolo"):l&&de($e,ae),Yt($e,"blur")},Tn=$e=>{const we=$e.target.value;ye!==we&&(Me(we),Ge(!1),F&&F($e,we,"input")),we===""?!p&&!V&&Qt($e,null,"clear"):Tt($e)},an=$e=>{const we=Number($e.currentTarget.getAttribute("data-option-index"));Ee.current!==we&&Xe({event:$e,index:we,reason:"mouse"})},yr=$e=>{Xe({event:$e,index:Number($e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Pn.current=!0},ho=$e=>{const we=Number($e.currentTarget.getAttribute("data-option-index"));bn($e,Le[we],"selectOption"),Pn.current=!1},cs=$e=>we=>{const Qe=ae.slice();Qe.splice($e,1),Qt(we,Qe,"removeOption",{option:ae[$e]})},lr=$e=>{be?Yt($e,"toggleInput"):Tt($e)},Oo=$e=>{$e.currentTarget.contains($e.target)&&$e.target.getAttribute("id")!==Y&&$e.preventDefault()},hi=$e=>{$e.currentTarget.contains($e.target)&&(Z.current.focus(),Q&&se.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.current.select(),se.current=!1)},Mr=$e=>{!v&&(ye===""||!be)&&lr($e)};let Nr=w&&ye.length>0;Nr=Nr||(V?ae.length>0:ae!==null);let js=Le;return E&&(js=Le.reduce(($e,we,Qe)=>{const ft=E(we);return $e.length>0&&$e[$e.length-1].group===ft?$e[$e.length-1].options.push(we):$e.push({key:Qe,index:Qe,group:ft,options:[we]}),$e},[])),v&&pe&&as(),{getRootProps:($e={})=>x({"aria-owns":Zt?`${Y}-listbox`:null},$e,{onKeyDown:ir($e),onMouseDown:Oo,onClick:hi}),getInputLabelProps:()=>({id:`${Y}-label`,htmlFor:Y}),getInputProps:()=>({id:Y,value:ye,onBlur:as,onFocus:Tl,onChange:Tn,onMouseDown:Mr,"aria-activedescendant":Ue?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Zt?`${Y}-listbox`:void 0,"aria-expanded":Zt,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:vr}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:lr}),getTagProps:({index:$e})=>x({key:$e,"data-tag-index":$e,tabIndex:-1},!K&&{onDelete:cs($e)}),getListboxProps:()=>({role:"listbox",id:`${Y}-listbox`,"aria-labelledby":`${Y}-label`,ref:vt,onMouseDown:$e=>{$e.preventDefault()}}),getOptionProps:({index:$e,option:we})=>{var Qe;const ft=(V?ae:[ae]).some($n=>$n!=null&&L(we,$n)),Wt=S?S(we):!1;return{key:(Qe=k==null?void 0:k(we))!=null?Qe:X(we),tabIndex:-1,role:"option",id:`${Y}-option-${$e}`,onMouseMove:an,onClick:ho,onTouchStart:yr,"data-option-index":$e,"aria-disabled":Wt,"aria-selected":ft}},id:Y,inputValue:ye,value:ae,dirty:Nr,expanded:Ue&&ne,popupOpen:Ue,focused:pe||me!==-1,anchorEl:ne,setAnchorEl:re,focusedTag:me,groupedOptions:js}}const ute=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],dte=oe(qee,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fte=c.forwardRef(function(t,n){var r;const o=yb(),s=je({props:t,name:"MuiPopper"}),{anchorEl:i,component:l,components:a,componentsProps:u,container:f,disablePortal:p,keepMounted:m,modifiers:v,open:y,placement:g,popperOptions:C,popperRef:b,transition:w,slots:S,slotProps:k}=s,M=le(s,ute),E=(r=S==null?void 0:S.root)!=null?r:a==null?void 0:a.Root,I=x({anchorEl:i,container:f,disablePortal:p,keepMounted:m,modifiers:v,open:y,placement:g,popperOptions:C,popperRef:b,transition:w},M);return D.jsx(dte,x({as:l,direction:o==null?void 0:o.direction,slots:{root:E},slotProps:k!=null?k:u},I,{ref:n}))}),Fa=fte;function pte(e){return Ke("MuiListSubheader",e)}We("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const hte=["className","color","component","disableGutters","disableSticky","inset"],mte=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:s}=e,i={root:["root",n!=="default"&&`color${Pe(n)}`,!r&&"gutters",o&&"inset",!s&&"sticky"]};return Te(i,pte,t)},gte=oe("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Pe(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>x({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})),RN=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiListSubheader"}),{className:o,color:s="default",component:i="li",disableGutters:l=!1,disableSticky:a=!1,inset:u=!1}=r,f=le(r,hte),p=x({},r,{color:s,component:i,disableGutters:l,disableSticky:a,inset:u}),m=mte(p);return D.jsx(gte,x({as:i,className:Ce(m.root,o),ref:n,ownerState:p},f))});RN.muiSkipListHighlight=!0;const vte=RN,yte=bt(D.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function bte(e){return Ke("MuiChip",e)}const wte=We("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Jt=wte,Cte=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],xte=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:s,onDelete:i,clickable:l,variant:a}=e,u={root:["root",a,n&&"disabled",`size${Pe(r)}`,`color${Pe(o)}`,l&&"clickable",l&&`clickableColor${Pe(o)}`,i&&"deletable",i&&`deletableColor${Pe(o)}`,`${a}${Pe(o)}`],label:["label",`label${Pe(r)}`],avatar:["avatar",`avatar${Pe(r)}`,`avatarColor${Pe(o)}`],icon:["icon",`icon${Pe(r)}`,`iconColor${Pe(s)}`],deleteIcon:["deleteIcon",`deleteIcon${Pe(r)}`,`deleteIconColor${Pe(o)}`,`deleteIcon${Pe(a)}Color${Pe(o)}`]};return Te(u,bte,t)},Ste=oe("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:s,onDelete:i,size:l,variant:a}=n;return[{[`& .${Jt.avatar}`]:t.avatar},{[`& .${Jt.avatar}`]:t[`avatar${Pe(l)}`]},{[`& .${Jt.avatar}`]:t[`avatarColor${Pe(r)}`]},{[`& .${Jt.icon}`]:t.icon},{[`& .${Jt.icon}`]:t[`icon${Pe(l)}`]},{[`& .${Jt.icon}`]:t[`iconColor${Pe(o)}`]},{[`& .${Jt.deleteIcon}`]:t.deleteIcon},{[`& .${Jt.deleteIcon}`]:t[`deleteIcon${Pe(l)}`]},{[`& .${Jt.deleteIcon}`]:t[`deleteIconColor${Pe(r)}`]},{[`& .${Jt.deleteIcon}`]:t[`deleteIcon${Pe(a)}Color${Pe(r)}`]},t.root,t[`size${Pe(l)}`],t[`color${Pe(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${Pe(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${Pe(r)}`],t[a],t[`${a}${Pe(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return x({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Jt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Jt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Jt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Jt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Jt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Jt.icon}`]:x({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&x({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Jt.deleteIcon}`]:x({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:lt(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)`:lt(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)`:lt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Jt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Jt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>x({},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}))`:lt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Jt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Jt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>x({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Jt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Jt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Jt.avatar}`]:{marginLeft:4},[`& .${Jt.avatarSmall}`]:{marginLeft:2},[`& .${Jt.icon}`]:{marginLeft:4},[`& .${Jt.iconSmall}`]:{marginLeft:2},[`& .${Jt.deleteIcon}`]:{marginRight:5},[`& .${Jt.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:lt(e.palette[t.color].main,.7)}`,[`&.${Jt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Jt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:lt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Jt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:lt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Pte=oe("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Pe(r)}`]]}})(({ownerState:e})=>x({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function oR(e){return e.key==="Backspace"||e.key==="Delete"}const kte=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:i,color:l="default",component:a,deleteIcon:u,disabled:f=!1,icon:p,label:m,onClick:v,onDelete:y,onKeyDown:g,onKeyUp:C,size:b="medium",variant:w="filled",tabIndex:S,skipFocusWhenDisabled:k=!1}=r,M=le(r,Cte),E=c.useRef(null),I=Et(E,n),R=N=>{N.stopPropagation(),y&&y(N)},A=N=>{N.currentTarget===N.target&&oR(N)&&N.preventDefault(),g&&g(N)},$=N=>{N.currentTarget===N.target&&(y&&oR(N)?y(N):N.key==="Escape"&&E.current&&E.current.blur()),C&&C(N)},L=i!==!1&&v?!0:i,V=L||y?ui:a||"div",j=x({},r,{component:V,disabled:f,size:b,color:l,iconColor:c.isValidElement(p)&&p.props.color||l,onDelete:!!y,clickable:L,variant:w}),_=xte(j),T=V===ui?x({component:a||"div",focusVisibleClassName:_.focusVisible},y&&{disableRipple:!0}):{};let F=null;y&&(F=u&&c.isValidElement(u)?c.cloneElement(u,{className:Ce(u.props.className,_.deleteIcon),onClick:R}):D.jsx(yte,{className:Ce(_.deleteIcon),onClick:R}));let B=null;o&&c.isValidElement(o)&&(B=c.cloneElement(o,{className:Ce(_.avatar,o.props.className)}));let O=null;return p&&c.isValidElement(p)&&(O=c.cloneElement(p,{className:Ce(_.icon,p.props.className)})),D.jsxs(Ste,x({as:V,className:Ce(_.root,s),disabled:L&&f?!0:void 0,onClick:v,onKeyDown:A,onKeyUp:$,ref:I,tabIndex:k&&f?-1:S,ownerState:j},T,M,{children:[B||O,D.jsx(Pte,{className:Ce(_.label),ownerState:j,children:m}),F]}))}),Eb=kte;function Vc({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 Ete=c.createContext(void 0),Ib=Ete;function Il(){return c.useContext(Ib)}function Ite(e){return D.jsx(zQ,x({},e,{defaultTheme:Cb,themeId:Ec}))}function sR(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function zv(e,t=!1){return e&&(sR(e.value)&&e.value!==""||t&&sR(e.defaultValue)&&e.defaultValue!=="")}function Mte(e){return e.startAdornment}function _te(e){return Ke("MuiInputBase",e)}const Tte=We("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ho=Tte,$te=["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"],Mb=(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${Pe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},_b=(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]},Rte=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:s,focused:i,formControl:l,fullWidth:a,hiddenLabel:u,multiline:f,readOnly:p,size:m,startAdornment:v,type:y}=e,g={root:["root",`color${Pe(n)}`,r&&"disabled",o&&"error",a&&"fullWidth",i&&"focused",l&&"formControl",m&&m!=="medium"&&`size${Pe(m)}`,f&&"multiline",v&&"adornedStart",s&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",f&&"inputMultiline",m==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",v&&"inputAdornedStart",s&&"inputAdornedEnd",p&&"readOnly"]};return Te(g,_te,t)},Tb=oe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Mb})(({theme:e,ownerState:t})=>x({},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",[`&.${Ho.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&x({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),$b=oe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:_b})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=x({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},s=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return x({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] + .${Ho.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${Ho.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"})}),Ote=D.jsx(Ite,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Dte=c.forwardRef(function(t,n){var r;const o=je({props:t,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:i,autoFocus:l,className:a,components:u={},componentsProps:f={},defaultValue:p,disabled:m,disableInjectingGlobalStyles:v,endAdornment:y,fullWidth:g=!1,id:C,inputComponent:b="input",inputProps:w={},inputRef:S,maxRows:k,minRows:M,multiline:E=!1,name:I,onBlur:R,onChange:A,onClick:$,onFocus:L,onKeyDown:V,onKeyUp:j,placeholder:_,readOnly:T,renderSuffix:F,rows:B,slotProps:O={},slots:N={},startAdornment:H,type:K="text",value:Q}=o,J=le(o,$te),Y=w.value!=null?w.value:Q,{current:X}=c.useRef(Y!=null),ee=c.useRef(),se=c.useCallback(Ue=>{},[]),Z=Et(ee,S,w.ref,se),[he,ne]=c.useState(!1),re=Il(),me=Vc({props:o,muiFormControl:re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});me.focused=re?re.focused:he,c.useEffect(()=>{!re&&m&&he&&(ne(!1),R&&R())},[re,m,he,R]);const ce=re&&re.onFilled,Se=re&&re.onEmpty,Ee=c.useCallback(Ue=>{zv(Ue)?ce&&ce():Se&&Se()},[ce,Se]);Nt(()=>{X&&Ee({value:Y})},[Y,Ee,X]);const ae=Ue=>{if(me.disabled){Ue.stopPropagation();return}L&&L(Ue),w.onFocus&&w.onFocus(Ue),re&&re.onFocus?re.onFocus(Ue):ne(!0)},Ie=Ue=>{R&&R(Ue),w.onBlur&&w.onBlur(Ue),re&&re.onBlur?re.onBlur(Ue):ne(!1)},ye=(Ue,...Le)=>{if(!X){const ht=Ue.target||ee.current;if(ht==null)throw new Error(ka(1));Ee({value:ht.value})}w.onChange&&w.onChange(Ue,...Le),A&&A(Ue,...Le)};c.useEffect(()=>{Ee(ee.current)},[]);const Me=Ue=>{ee.current&&Ue.currentTarget===Ue.target&&ee.current.focus(),$&&$(Ue)};let pe=b,fe=w;E&&pe==="input"&&(B?fe=x({type:void 0,minRows:B,maxRows:B},fe):fe=x({type:void 0,maxRows:k,minRows:M},fe),pe=ite);const de=Ue=>{Ee(Ue.animationName==="mui-auto-fill-cancel"?ee.current:{value:"x"})};c.useEffect(()=>{re&&re.setAdornedStart(!!H)},[re,H]);const be=x({},o,{color:me.color||"primary",disabled:me.disabled,endAdornment:y,error:me.error,focused:me.focused,formControl:re,fullWidth:g,hiddenLabel:me.hiddenLabel,multiline:E,size:me.size,startAdornment:H,type:K}),_e=Rte(be),Ne=N.root||u.Root||Tb,Ge=O.root||f.root||{},Ve=N.input||u.Input||$b;return fe=x({},fe,(r=O.input)!=null?r:f.input),D.jsxs(c.Fragment,{children:[!v&&Ote,D.jsxs(Ne,x({},Ge,!$c(Ne)&&{ownerState:x({},be,Ge.ownerState)},{ref:n,onClick:Me},J,{className:Ce(_e.root,Ge.className,a,T&&"MuiInputBase-readOnly"),children:[H,D.jsx(Ib.Provider,{value:null,children:D.jsx(Ve,x({ownerState:be,"aria-invalid":me.error,"aria-describedby":s,autoComplete:i,autoFocus:l,defaultValue:p,disabled:me.disabled,id:C,onAnimationStart:de,name:I,placeholder:_,readOnly:T,required:me.required,rows:B,value:Y,onKeyDown:V,onKeyUp:j,type:K},fe,!$c(Ve)&&{as:pe,ownerState:x({},be,fe.ownerState)},{ref:Z,className:Ce(_e.input,fe.className,T&&"MuiInputBase-readOnly"),onBlur:Ie,onChange:ye,onFocus:ae}))}),y,F?F(x({},me,{startAdornment:H})):null]}))]})}),Gd=Dte;function Ate(e){return Ke("MuiInput",e)}const Lte=x({},Ho,We("MuiInput",["root","underline","input"])),ra=Lte;function Fte(e){return Ke("MuiOutlinedInput",e)}const Nte=x({},Ho,We("MuiOutlinedInput",["root","notchedOutline","input"])),xi=Nte;function Bte(e){return Ke("MuiFilledInput",e)}const zte=x({},Ho,We("MuiFilledInput",["root","underline","input"])),Uo=zte,ON=bt(D.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Vte(e){return Ke("MuiAutocomplete",e)}const jte=We("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"]),zt=jte;var iR,lR;const Hte=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],Ute=["ref"],Wte=["key"],Gte=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:s,hasClearIcon:i,hasPopupIcon:l,inputFocused:a,popupOpen:u,size:f}=e,p={root:["root",r&&"expanded",o&&"focused",s&&"fullWidth",i&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",a&&"inputFocused"],tag:["tag",`tagSize${Pe(f)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Te(p,Vte,t)},Kte=oe("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:s,inputFocused:i,size:l}=n;return[{[`& .${zt.tag}`]:t.tag},{[`& .${zt.tag}`]:t[`tagSize${Pe(l)}`]},{[`& .${zt.inputRoot}`]:t.inputRoot},{[`& .${zt.input}`]:t.input},{[`& .${zt.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,s&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>x({[`&.${zt.focused} .${zt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${zt.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${zt.tag}`]:x({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${zt.inputRoot}`]:{flexWrap:"wrap",[`.${zt.hasPopupIcon}&, .${zt.hasClearIcon}&`]:{paddingRight:26+4},[`.${zt.hasPopupIcon}.${zt.hasClearIcon}&`]:{paddingRight:52+4},[`& .${zt.input}`]:{width:0,minWidth:30}},[`& .${ra.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${ra.root}.${Ho.sizeSmall}`]:{[`& .${ra.input}`]:{padding:"2px 4px 3px 0"}},[`& .${xi.root}`]:{padding:9,[`.${zt.hasPopupIcon}&, .${zt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${zt.hasPopupIcon}.${zt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${zt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${zt.endAdornment}`]:{right:9}},[`& .${xi.root}.${Ho.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${zt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Uo.root}`]:{paddingTop:19,paddingLeft:8,[`.${zt.hasPopupIcon}&, .${zt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${zt.hasPopupIcon}.${zt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Uo.input}`]:{padding:"7px 4px"},[`& .${zt.endAdornment}`]:{right:9}},[`& .${Uo.root}.${Ho.sizeSmall}`]:{paddingBottom:1,[`& .${Uo.input}`]:{padding:"2.5px 4px"}},[`& .${Ho.hiddenLabel}`]:{paddingTop:8},[`& .${Uo.root}.${Ho.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${zt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Uo.root}.${Ho.hiddenLabel}.${Ho.sizeSmall}`]:{[`& .${zt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${zt.input}`]:x({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),qte=oe("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Yte=oe(hr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),Qte=oe(hr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>x({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>x({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),Xte=oe(Fa,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>x({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),Zte=oe(Vs,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>x({},e.typography.body1,{overflow:"auto"})),Jte=oe("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),ene=oe("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),tne=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",[`& .${zt.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"},[`&.${zt.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"},[`&.${zt.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})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${zt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${zt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),nne=oe(vte,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),rne=oe("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${zt.option}`]:{paddingLeft:24}}),one=c.forwardRef(function(t,n){var r,o,s,i;const l=je({props:t,name:"MuiAutocomplete"}),{autoComplete:a=!1,autoHighlight:u=!1,autoSelect:f=!1,blurOnSelect:p=!1,ChipProps:m,className:v,clearIcon:y=iR||(iR=D.jsx(yN,{fontSize:"small"})),clearOnBlur:g=!l.freeSolo,clearOnEscape:C=!1,clearText:b="Clear",closeText:w="Close",componentsProps:S={},defaultValue:k=l.multiple?[]:null,disableClearable:M=!1,disableCloseOnSelect:E=!1,disabled:I=!1,disabledItemsFocusable:R=!1,disableListWrap:A=!1,disablePortal:$=!1,filterSelectedOptions:L=!1,forcePopupIcon:V="auto",freeSolo:j=!1,fullWidth:_=!1,getLimitTagsText:T=we=>`+${we}`,getOptionLabel:F,groupBy:B,handleHomeEndKeys:O=!l.freeSolo,includeInputInList:N=!1,limitTags:H=-1,ListboxComponent:K="ul",ListboxProps:Q,loading:J=!1,loadingText:Y="Loading…",multiple:X=!1,noOptionsText:ee="No options",openOnFocus:se=!1,openText:Z="Open",PaperComponent:he=Vs,PopperComponent:ne=Fa,popupIcon:re=lR||(lR=D.jsx(ON,{})),readOnly:me=!1,renderGroup:ce,renderInput:Se,renderOption:Ee,renderTags:ae,selectOnFocus:Ie=!l.freeSolo,size:ye="medium",slotProps:Me={}}=l,pe=le(l,Hte),{getRootProps:fe,getInputProps:de,getInputLabelProps:be,getPopupIndicatorProps:_e,getClearProps:Ne,getTagProps:Ge,getListboxProps:Ve,getOptionProps:Ue,value:Le,dirty:ht,expanded:Zt,id:Pt,popupOpen:wt,focused:Xe,focusedTag:Oe,anchorEl:qe,setAnchorEl:mt,inputValue:vt,groupedOptions:Tt}=cte(x({},l,{componentName:"Autocomplete"})),Yt=!M&&!I&&ht&&!me,Qt=(!j||V===!0)&&V!==!1,{onMouseDown:Pn}=de(),{ref:bn}=Q!=null?Q:{},gt=Ve(),{ref:Rt}=gt,vr=le(gt,Ute),ir=Et(Rt,bn),as=F||(we=>{var Qe;return(Qe=we.label)!=null?Qe:we}),Tn=x({},l,{disablePortal:$,expanded:Zt,focused:Xe,fullWidth:_,getOptionLabel:as,hasClearIcon:Yt,hasPopupIcon:Qt,inputFocused:Oe===-1,popupOpen:wt,size:ye}),an=Gte(Tn);let yr;if(X&&Le.length>0){const we=Qe=>x({className:an.tag,disabled:I},Ge(Qe));ae?yr=ae(Le,we,Tn):yr=Le.map((Qe,ft)=>D.jsx(Eb,x({label:as(Qe),size:ye},we({index:ft}),m)))}if(H>-1&&Array.isArray(yr)){const we=yr.length-H;!Xe&&we>0&&(yr=yr.splice(0,H),yr.push(D.jsx("span",{className:an.tag,children:T(we)},yr.length)))}const cs=ce||(we=>D.jsxs("li",{children:[D.jsx(nne,{className:an.groupLabel,ownerState:Tn,component:"div",children:we.group}),D.jsx(rne,{className:an.groupUl,ownerState:Tn,children:we.children})]},we.key)),Oo=Ee||((we,Qe)=>{const{key:ft}=we,Wt=le(we,Wte);return D.jsx("li",x({},Wt,{children:as(Qe)}),ft)}),hi=(we,Qe)=>{const ft=Ue({option:we,index:Qe});return Oo(x({},ft,{className:an.option}),we,{selected:ft["aria-selected"],index:Qe,inputValue:vt},Tn)},Mr=(r=Me.clearIndicator)!=null?r:S.clearIndicator,Nr=(o=Me.paper)!=null?o:S.paper,js=(s=Me.popper)!=null?s:S.popper,$e=(i=Me.popupIndicator)!=null?i:S.popupIndicator;return D.jsxs(c.Fragment,{children:[D.jsx(Kte,x({ref:n,className:Ce(an.root,v),ownerState:Tn},fe(pe),{children:Se({id:Pt,disabled:I,fullWidth:!0,size:ye==="small"?"small":void 0,InputLabelProps:be(),InputProps:x({ref:mt,className:an.inputRoot,startAdornment:yr,onClick:we=>{we.target===we.currentTarget&&Pn(we)}},(Yt||Qt)&&{endAdornment:D.jsxs(qte,{className:an.endAdornment,ownerState:Tn,children:[Yt?D.jsx(Yte,x({},Ne(),{"aria-label":b,title:b,ownerState:Tn},Mr,{className:Ce(an.clearIndicator,Mr==null?void 0:Mr.className),children:y})):null,Qt?D.jsx(Qte,x({},_e(),{disabled:I,"aria-label":wt?w:Z,title:wt?w:Z,ownerState:Tn},$e,{className:Ce(an.popupIndicator,$e==null?void 0:$e.className),children:re})):null]})}),inputProps:x({className:an.input,disabled:I,readOnly:me},de())})})),qe?D.jsx(Xte,x({as:ne,disablePortal:$,style:{width:qe?qe.clientWidth:null},ownerState:Tn,role:"presentation",anchorEl:qe,open:wt},js,{className:Ce(an.popper,js==null?void 0:js.className),children:D.jsxs(Zte,x({ownerState:Tn,as:he},Nr,{className:Ce(an.paper,Nr==null?void 0:Nr.className),children:[J&&Tt.length===0?D.jsx(Jte,{className:an.loading,ownerState:Tn,children:Y}):null,Tt.length===0&&!j&&!J?D.jsx(ene,{className:an.noOptions,ownerState:Tn,role:"presentation",onMouseDown:we=>{we.preventDefault()},children:ee}):null,Tt.length>0?D.jsx(tne,x({as:K,className:an.listbox,ownerState:Tn},vr,Q,{ref:ir,children:Tt.map((we,Qe)=>B?cs({key:we.key,group:we.group,children:we.options.map((ft,Wt)=>hi(ft,we.index+Wt))}):hi(we,Qe))})):null]}))})):null]})}),Fh=one,sne=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ine={entering:{opacity:1},entered:{opacity:1}},lne=c.forwardRef(function(t,n){const r=yn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:i=!0,children:l,easing:a,in:u,onEnter:f,onEntered:p,onEntering:m,onExit:v,onExited:y,onExiting:g,style:C,timeout:b=o,TransitionComponent:w=Dh}=t,S=le(t,sne),k=c.useRef(null),M=Et(k,l.ref,n),E=_=>T=>{if(_){const F=k.current;T===void 0?_(F):_(F,T)}},I=E(m),R=E((_,T)=>{nk(_);const F=Ia({style:C,timeout:b,easing:a},{mode:"enter"});_.style.webkitTransition=r.transitions.create("opacity",F),_.style.transition=r.transitions.create("opacity",F),f&&f(_,T)}),A=E(p),$=E(g),L=E(_=>{const T=Ia({style:C,timeout:b,easing:a},{mode:"exit"});_.style.webkitTransition=r.transitions.create("opacity",T),_.style.transition=r.transitions.create("opacity",T),v&&v(_)}),V=E(y),j=_=>{s&&s(k.current,_)};return D.jsx(w,x({appear:i,in:u,nodeRef:k,onEnter:R,onEntered:A,onEntering:I,onExit:L,onExited:V,onExiting:$,addEndListener:j,timeout:b},S,{children:(_,T)=>c.cloneElement(l,x({style:x({opacity:0,visibility:_==="exited"&&!u?"hidden":void 0},ine[_],C,l.props.style),ref:M},T))}))}),Kd=lne;function ane(e){return Ke("MuiBackdrop",e)}We("MuiBackdrop",["root","invisible"]);const cne=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],une=e=>{const{classes:t,invisible:n}=e;return Te({root:["root",n&&"invisible"]},ane,t)},dne=oe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>x({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"})),fne=c.forwardRef(function(t,n){var r,o,s;const i=je({props:t,name:"MuiBackdrop"}),{children:l,className:a,component:u="div",components:f={},componentsProps:p={},invisible:m=!1,open:v,slotProps:y={},slots:g={},TransitionComponent:C=Kd,transitionDuration:b}=i,w=le(i,cne),S=x({},i,{component:u,invisible:m}),k=une(S),M=(r=y.root)!=null?r:p.root;return D.jsx(C,x({in:v,timeout:b},w,{children:D.jsx(dne,x({"aria-hidden":!0},M,{as:(o=(s=g.root)!=null?s:f.Root)!=null?o:u,className:Ce(k.root,a,M==null?void 0:M.className),ownerState:x({},S,M==null?void 0:M.ownerState),classes:k,ref:n,children:l}))}))}),DN=fne;function pne(e){return Ke("MuiBadge",e)}const hne=We("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"]),Vl=hne,mne=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Rw=10,Ow=4,gne=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:s,classes:i={}}=e,l={root:["root"],badge:["badge",s,r&&"invisible",`anchorOrigin${Pe(n.vertical)}${Pe(n.horizontal)}`,`anchorOrigin${Pe(n.vertical)}${Pe(n.horizontal)}${Pe(o)}`,`overlap${Pe(o)}`,t!=="default"&&`color${Pe(t)}`]};return Te(l,pne,i)},vne=oe("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),yne=oe("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Pe(n.anchorOrigin.vertical)}${Pe(n.anchorOrigin.horizontal)}${Pe(n.overlap)}`],n.color!=="default"&&t[`color${Pe(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>x({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:Rw*2,lineHeight:1,padding:"0 6px",height:Rw*2,borderRadius:Rw,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:Ow,height:Ow*2,minWidth:Ow*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%",[`&.${Vl.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%",[`&.${Vl.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%",[`&.${Vl.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%",[`&.${Vl.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%",[`&.${Vl.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%",[`&.${Vl.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%",[`&.${Vl.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%",[`&.${Vl.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),bne=c.forwardRef(function(t,n){var r,o,s,i,l,a;const u=je({props:t,name:"MuiBadge"}),{anchorOrigin:f={vertical:"top",horizontal:"right"},className:p,component:m,components:v={},componentsProps:y={},children:g,overlap:C="rectangular",color:b="default",invisible:w=!1,max:S=99,badgeContent:k,slots:M,slotProps:E,showZero:I=!1,variant:R="standard"}=u,A=le(u,mne),{badgeContent:$,invisible:L,max:V,displayValue:j}=kJ({max:S,invisible:w,badgeContent:k,showZero:I}),_=AP({anchorOrigin:f,color:b,overlap:C,variant:R,badgeContent:k}),T=L||$==null&&R!=="dot",{color:F=b,overlap:B=C,anchorOrigin:O=f,variant:N=R}=T?_:u,H=N!=="dot"?j:void 0,K=x({},u,{badgeContent:$,invisible:T,max:V,displayValue:H,showZero:I,anchorOrigin:O,color:F,overlap:B,variant:N}),Q=gne(K),J=(r=(o=M==null?void 0:M.root)!=null?o:v.Root)!=null?r:vne,Y=(s=(i=M==null?void 0:M.badge)!=null?i:v.Badge)!=null?s:yne,X=(l=E==null?void 0:E.root)!=null?l:y.root,ee=(a=E==null?void 0:E.badge)!=null?a:y.badge,se=qt({elementType:J,externalSlotProps:X,externalForwardedProps:A,additionalProps:{ref:n,as:m},ownerState:K,className:Ce(X==null?void 0:X.className,Q.root,p)}),Z=qt({elementType:Y,externalSlotProps:ee,ownerState:K,className:Ce(Q.badge,ee==null?void 0:ee.className)});return D.jsxs(J,x({},se,{children:[g,D.jsx(Y,x({},Z,{children:H}))]}))}),AN=bne,wne=We("MuiBox",["root"]),Cne=wne,xne=XP(),Sne=UQ({themeId:Ec,defaultTheme:xne,defaultClassName:Cne.root,generateClassName:FP.generate}),ze=Sne;function Pne(e){return Ke("MuiButton",e)}const kne=We("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"]),fg=kne,Ene=c.createContext({}),Ine=Ene,Mne=c.createContext(void 0),_ne=Mne,Tne=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],$ne=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:s,classes:i}=e,l={root:["root",s,`${s}${Pe(t)}`,`size${Pe(o)}`,`${s}Size${Pe(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Pe(o)}`],endIcon:["endIcon",`iconSize${Pe(o)}`]},a=Te(l,Pne,i);return x({},i,a)},LN=e=>x({},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}}),Rne=oe(ui,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Pe(n.color)}`],t[`size${Pe(n.size)}`],t[`${n.variant}Size${Pe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],s=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return x({},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":x({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(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})`:lt(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})`:lt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":x({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${fg.focusVisible}`]:x({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${fg.disabled}`]:x({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 ${lt(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"},[`&.${fg.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${fg.disabled}`]:{boxShadow:"none"}}),One=oe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Pe(n.size)}`]]}})(({ownerState:e})=>x({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},LN(e))),Dne=oe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Pe(n.size)}`]]}})(({ownerState:e})=>x({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},LN(e))),Ane=c.forwardRef(function(t,n){const r=c.useContext(Ine),o=c.useContext(_ne),s=LP(r,t),i=je({props:s,name:"MuiButton"}),{children:l,color:a="primary",component:u="button",className:f,disabled:p=!1,disableElevation:m=!1,disableFocusRipple:v=!1,endIcon:y,focusVisibleClassName:g,fullWidth:C=!1,size:b="medium",startIcon:w,type:S,variant:k="text"}=i,M=le(i,Tne),E=x({},i,{color:a,component:u,disabled:p,disableElevation:m,disableFocusRipple:v,fullWidth:C,size:b,type:S,variant:k}),I=$ne(E),R=w&&D.jsx(One,{className:I.startIcon,ownerState:E,children:w}),A=y&&D.jsx(Dne,{className:I.endIcon,ownerState:E,children:y}),$=o||"";return D.jsxs(Rne,x({ownerState:E,className:Ce(r.className,I.root,f,$),component:u,disabled:p,focusRipple:!v,focusVisibleClassName:Ce(I.focusVisible,g),ref:n,type:S},M,{classes:I,children:[R,l,A]}))}),Yn=Ane;function Lne(e){return Ke("MuiCard",e)}We("MuiCard",["root"]);const Fne=["className","raised"],Nne=e=>{const{classes:t}=e;return Te({root:["root"]},Lne,t)},Bne=oe(Vs,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),zne=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiCard"}),{className:o,raised:s=!1}=r,i=le(r,Fne),l=x({},r,{raised:s}),a=Nne(l);return D.jsx(Bne,x({className:Ce(a.root,o),elevation:s?8:void 0,ref:n,ownerState:l},i))}),Rb=zne;function Vne(e){return Ke("MuiCardContent",e)}We("MuiCardContent",["root"]);const jne=["className","component"],Hne=e=>{const{classes:t}=e;return Te({root:["root"]},Vne,t)},Une=oe("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Wne=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiCardContent"}),{className:o,component:s="div"}=r,i=le(r,jne),l=x({},r,{component:s}),a=Hne(l);return D.jsx(Une,x({as:s,className:Ce(a.root,o),ownerState:l,ref:n},i))}),Ob=Wne;function Gne(e){return Ke("PrivateSwitchBase",e)}We("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Kne=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],qne=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,s={root:["root",n&&"checked",r&&"disabled",o&&`edge${Pe(o)}`],input:["input"]};return Te(s,Gne,t)},Yne=oe(ui)(({ownerState:e})=>x({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Qne=oe("input",{shouldForwardProp:Jr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Xne=c.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:s,className:i,defaultChecked:l,disabled:a,disableFocusRipple:u=!1,edge:f=!1,icon:p,id:m,inputProps:v,inputRef:y,name:g,onBlur:C,onChange:b,onFocus:w,readOnly:S,required:k=!1,tabIndex:M,type:E,value:I}=t,R=le(t,Kne),[A,$]=Qr({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),L=Il(),V=N=>{w&&w(N),L&&L.onFocus&&L.onFocus(N)},j=N=>{C&&C(N),L&&L.onBlur&&L.onBlur(N)},_=N=>{if(N.nativeEvent.defaultPrevented)return;const H=N.target.checked;$(H),b&&b(N,H)};let T=a;L&&typeof T=="undefined"&&(T=L.disabled);const F=E==="checkbox"||E==="radio",B=x({},t,{checked:A,disabled:T,disableFocusRipple:u,edge:f}),O=qne(B);return D.jsxs(Yne,x({component:"span",className:Ce(O.root,i),centerRipple:!0,focusRipple:!u,disabled:T,tabIndex:null,role:void 0,onFocus:V,onBlur:j,ownerState:B,ref:n},R,{children:[D.jsx(Qne,x({autoFocus:r,checked:o,defaultChecked:l,className:O.input,disabled:T,id:F?m:void 0,name:g,onChange:_,readOnly:S,ref:y,required:k,ownerState:B,tabIndex:M,type:E},E==="checkbox"&&I===void 0?{}:{value:I},v)),A?s:p]}))}),FN=Xne,Zne=bt(D.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Jne=bt(D.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),ere=bt(D.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function tre(e){return Ke("MuiCheckbox",e)}const nre=We("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Dw=nre,rre=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],ore=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,s={root:["root",n&&"indeterminate",`color${Pe(r)}`,`size${Pe(o)}`]},i=Te(s,tre,t);return x({},t,i)},sre=oe(FN,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Pe(n.size)}`],n.color!=="default"&&t[`color${Pe(n.color)}`]]}})(({theme:e,ownerState:t})=>x({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Dw.checked}, &.${Dw.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Dw.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),ire=D.jsx(Jne,{}),lre=D.jsx(Zne,{}),are=D.jsx(ere,{}),cre=c.forwardRef(function(t,n){var r,o;const s=je({props:t,name:"MuiCheckbox"}),{checkedIcon:i=ire,color:l="primary",icon:a=lre,indeterminate:u=!1,indeterminateIcon:f=are,inputProps:p,size:m="medium",className:v}=s,y=le(s,rre),g=u?f:a,C=u?f:i,b=x({},s,{color:l,indeterminate:u,size:m}),w=ore(b);return D.jsx(sre,x({type:"checkbox",inputProps:x({"data-indeterminate":u},p),icon:c.cloneElement(g,{fontSize:(r=g.props.fontSize)!=null?r:m}),checkedIcon:c.cloneElement(C,{fontSize:(o=C.props.fontSize)!=null?o:m}),ownerState:b,ref:n,className:Ce(w.root,v)},y,{classes:w}))}),NN=cre;function ure(e){return Ke("MuiCircularProgress",e)}We("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const dre=["className","color","disableShrink","size","style","thickness","value","variant"];let Db=e=>e,aR,cR,uR,dR;const jl=44,fre=Hi(aR||(aR=Db`
163
+ 0% {
164
+ transform: rotate(0deg);
165
+ }
166
+
167
+ 100% {
168
+ transform: rotate(360deg);
169
+ }
170
+ `)),pre=Hi(cR||(cR=Db`
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
+ `)),hre=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,s={root:["root",n,`color${Pe(r)}`],svg:["svg"],circle:["circle",`circle${Pe(n)}`,o&&"circleDisableShrink"]};return Te(s,ure,t)},mre=oe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Pe(n.color)}`]]}})(({ownerState:e,theme:t})=>x({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"&&Ea(uR||(uR=Db`
186
+ animation: ${0} 1.4s linear infinite;
187
+ `),fre)),gre=oe("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),vre=oe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Pe(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>x({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&&Ea(dR||(dR=Db`
188
+ animation: ${0} 1.4s ease-in-out infinite;
189
+ `),pre)),yre=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:i=!1,size:l=40,style:a,thickness:u=3.6,value:f=0,variant:p="indeterminate"}=r,m=le(r,dre),v=x({},r,{color:s,disableShrink:i,size:l,thickness:u,value:f,variant:p}),y=hre(v),g={},C={},b={};if(p==="determinate"){const w=2*Math.PI*((jl-u)/2);g.strokeDasharray=w.toFixed(3),b["aria-valuenow"]=Math.round(f),g.strokeDashoffset=`${((100-f)/100*w).toFixed(3)}px`,C.transform="rotate(-90deg)"}return D.jsx(mre,x({className:Ce(y.root,o),style:x({width:l,height:l},C,a),ownerState:v,ref:n,role:"progressbar"},b,m,{children:D.jsx(gre,{className:y.svg,ownerState:v,viewBox:`${jl/2} ${jl/2} ${jl} ${jl}`,children:D.jsx(vre,{className:y.circle,style:g,ownerState:v,cx:jl,cy:jl,r:(jl-u)/2,fill:"none",strokeWidth:u})})}))}),zi=yre;function bre(e){return Ke("MuiModal",e)}We("MuiModal",["root","hidden","backdrop"]);const wre=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Cre=e=>{const{open:t,exited:n,classes:r}=e;return Te({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},bre,r)},xre=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})=>x({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Sre=oe(DN,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Pre=c.forwardRef(function(t,n){var r,o,s,i,l,a;const u=je({name:"MuiModal",props:t}),{BackdropComponent:f=Sre,BackdropProps:p,className:m,closeAfterTransition:v=!1,children:y,container:g,component:C,components:b={},componentsProps:w={},disableAutoFocus:S=!1,disableEnforceFocus:k=!1,disableEscapeKeyDown:M=!1,disablePortal:E=!1,disableRestoreFocus:I=!1,disableScrollLock:R=!1,hideBackdrop:A=!1,keepMounted:$=!1,onBackdropClick:L,open:V,slotProps:j,slots:_}=u,T=le(u,wre),F=x({},u,{closeAfterTransition:v,disableAutoFocus:S,disableEnforceFocus:k,disableEscapeKeyDown:M,disablePortal:E,disableRestoreFocus:I,disableScrollLock:R,hideBackdrop:A,keepMounted:$}),{getRootProps:B,getBackdropProps:O,getTransitionProps:N,portalRef:H,isTopModal:K,exited:Q,hasTransition:J}=rte(x({},F,{rootRef:n})),Y=x({},F,{exited:Q}),X=Cre(Y),ee={};if(y.props.tabIndex===void 0&&(ee.tabIndex="-1"),J){const{onEnter:ce,onExited:Se}=N();ee.onEnter=ce,ee.onExited=Se}const se=(r=(o=_==null?void 0:_.root)!=null?o:b.Root)!=null?r:xre,Z=(s=(i=_==null?void 0:_.backdrop)!=null?i:b.Backdrop)!=null?s:f,he=(l=j==null?void 0:j.root)!=null?l:w.root,ne=(a=j==null?void 0:j.backdrop)!=null?a:w.backdrop,re=qt({elementType:se,externalSlotProps:he,externalForwardedProps:T,getSlotProps:B,additionalProps:{ref:n,as:C},ownerState:Y,className:Ce(m,he==null?void 0:he.className,X==null?void 0:X.root,!Y.open&&Y.exited&&(X==null?void 0:X.hidden))}),me=qt({elementType:Z,externalSlotProps:ne,additionalProps:p,getSlotProps:ce=>O(x({},ce,{onClick:Se=>{L&&L(Se),ce!=null&&ce.onClick&&ce.onClick(Se)}})),className:Ce(ne==null?void 0:ne.className,p==null?void 0:p.className,X==null?void 0:X.backdrop),ownerState:Y});return!$&&!V&&(!J||Q)?null:D.jsx(TN,{ref:H,container:g,disablePortal:E,children:D.jsxs(se,x({},re,{children:[!A&&f?D.jsx(Z,x({},me)):null,D.jsx(rk,{disableEnforceFocus:k,disableAutoFocus:S,disableRestoreFocus:I,isEnabled:K,open:V,children:c.cloneElement(y,ee)})]}))})}),Ab=Pre;function kre(e){return Ke("MuiDialog",e)}const Ere=We("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),_p=Ere,Ire=c.createContext({}),BN=Ire,Mre=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],_re=oe(DN,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Tre=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,i={root:["root"],container:["container",`scroll${Pe(n)}`],paper:["paper",`paperScroll${Pe(n)}`,`paperWidth${Pe(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return Te(i,kre,t)},$re=oe(Ab,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Rre=oe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Pe(n.scroll)}`]]}})(({ownerState:e})=>x({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"}})),Ore=oe(Vs,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Pe(n.scroll)}`],t[`paperWidth${Pe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>x({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${_p.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}`,[`&.${_p.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,[`&.${_p.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Dre=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialog"}),o=yn(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":l,BackdropComponent:a,BackdropProps:u,children:f,className:p,disableEscapeKeyDown:m=!1,fullScreen:v=!1,fullWidth:y=!1,maxWidth:g="sm",onBackdropClick:C,onClose:b,open:w,PaperComponent:S=Vs,PaperProps:k={},scroll:M="paper",TransitionComponent:E=Kd,transitionDuration:I=s,TransitionProps:R}=r,A=le(r,Mre),$=x({},r,{disableEscapeKeyDown:m,fullScreen:v,fullWidth:y,maxWidth:g,scroll:M}),L=Tre($),V=c.useRef(),j=B=>{V.current=B.target===B.currentTarget},_=B=>{V.current&&(V.current=null,C&&C(B),b&&b(B,"backdropClick"))},T=Kt(l),F=c.useMemo(()=>({titleId:T}),[T]);return D.jsx($re,x({className:Ce(L.root,p),closeAfterTransition:!0,components:{Backdrop:_re},componentsProps:{backdrop:x({transitionDuration:I,as:a},u)},disableEscapeKeyDown:m,onClose:b,open:w,ref:n,onClick:_,ownerState:$},A,{children:D.jsx(E,x({appear:!0,in:w,timeout:I,role:"presentation"},R,{children:D.jsx(Rre,{className:Ce(L.container),onMouseDown:j,ownerState:$,children:D.jsx(Ore,x({as:S,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":T},k,{className:Ce(L.paper,k.className),ownerState:$,children:D.jsx(BN.Provider,{value:F,children:f})}))})}))}))}),zN=Dre;function Are(e){return Ke("MuiDialogActions",e)}We("MuiDialogActions",["root","spacing"]);const Lre=["className","disableSpacing"],Fre=e=>{const{classes:t,disableSpacing:n}=e;return Te({root:["root",!n&&"spacing"]},Are,t)},Nre=oe("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>x({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Bre=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1}=r,i=le(r,Lre),l=x({},r,{disableSpacing:s}),a=Fre(l);return D.jsx(Nre,x({className:Ce(a.root,o),ownerState:l,ref:n},i))}),zre=Bre;function Vre(e){return Ke("MuiDialogContent",e)}We("MuiDialogContent",["root","dividers"]);function jre(e){return Ke("MuiDialogTitle",e)}const Hre=We("MuiDialogTitle",["root"]),Ure=Hre,Wre=["className","dividers"],Gre=e=>{const{classes:t,dividers:n}=e;return Te({root:["root",n&&"dividers"]},Vre,t)},Kre=oe("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>x({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}`}:{[`.${Ure.root} + &`]:{paddingTop:0}})),qre=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1}=r,i=le(r,Wre),l=x({},r,{dividers:s}),a=Gre(l);return D.jsx(Kre,x({className:Ce(a.root,o),ownerState:l,ref:n},i))}),VN=qre,Yre=["className","id"],Qre=e=>{const{classes:t}=e;return Te({root:["root"]},jre,t)},Xre=oe(qn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Zre=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialogTitle"}),{className:o,id:s}=r,i=le(r,Yre),l=r,a=Qre(l),{titleId:u=s}=c.useContext(BN);return D.jsx(Xre,x({component:"h2",className:Ce(a.root,o),ownerState:l,ref:n,variant:"h6",id:s!=null?s:u},i))}),Jre=Zre;function eoe(e){return Ke("MuiDivider",e)}const toe=We("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),fR=toe,noe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],roe=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:s,orientation:i,textAlign:l,variant:a}=e;return Te({root:["root",t&&"absolute",a,s&&"light",i==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&i==="vertical"&&"withChildrenVertical",l==="right"&&i!=="vertical"&&"textAlignRight",l==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},eoe,r)},ooe=oe("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>x({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:lt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>x({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>x({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>x({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>x({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),soe=oe("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>x({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),jN=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDivider"}),{absolute:o=!1,children:s,className:i,component:l=s?"div":"hr",flexItem:a=!1,light:u=!1,orientation:f="horizontal",role:p=l!=="hr"?"separator":void 0,textAlign:m="center",variant:v="fullWidth"}=r,y=le(r,noe),g=x({},r,{absolute:o,component:l,flexItem:a,light:u,orientation:f,role:p,textAlign:m,variant:v}),C=roe(g);return D.jsx(ooe,x({as:l,className:Ce(C.root,i),role:p,ref:n,ownerState:g},y,{children:s?D.jsx(soe,{className:C.wrapper,ownerState:g,children:s}):null}))});jN.muiSkipListHighlight=!0;const Pd=jN,ioe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function loe(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),s=Jo(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const u=s.getComputedStyle(t);i=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let l=0,a=0;if(i&&i!=="none"&&typeof i=="string"){const u=i.split("(")[1].split(")")[0].split(",");l=parseInt(u[4],10),a=parseInt(u[5],10)}return e==="left"?o?`translateX(${o.right+l-r.left}px)`:`translateX(${s.innerWidth+l-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-l}px)`:`translateX(-${r.left+r.width-l}px)`:e==="up"?o?`translateY(${o.bottom+a-r.top}px)`:`translateY(${s.innerHeight+a-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-a}px)`:`translateY(-${r.top+r.height-a}px)`}function aoe(e){return typeof e=="function"?e():e}function pg(e,t,n){const r=aoe(n),o=loe(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const coe=c.forwardRef(function(t,n){const r=yn(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:a,container:u,direction:f="down",easing:p=o,in:m,onEnter:v,onEntered:y,onEntering:g,onExit:C,onExited:b,onExiting:w,style:S,timeout:k=s,TransitionComponent:M=Dh}=t,E=le(t,ioe),I=c.useRef(null),R=Et(a.ref,I,n),A=O=>N=>{O&&(N===void 0?O(I.current):O(I.current,N))},$=A((O,N)=>{pg(f,O,u),nk(O),v&&v(O,N)}),L=A((O,N)=>{const H=Ia({timeout:k,style:S,easing:p},{mode:"enter"});O.style.webkitTransition=r.transitions.create("-webkit-transform",x({},H)),O.style.transition=r.transitions.create("transform",x({},H)),O.style.webkitTransform="none",O.style.transform="none",g&&g(O,N)}),V=A(y),j=A(w),_=A(O=>{const N=Ia({timeout:k,style:S,easing:p},{mode:"exit"});O.style.webkitTransition=r.transitions.create("-webkit-transform",N),O.style.transition=r.transitions.create("transform",N),pg(f,O,u),C&&C(O)}),T=A(O=>{O.style.webkitTransition="",O.style.transition="",b&&b(O)}),F=O=>{i&&i(I.current,O)},B=c.useCallback(()=>{I.current&&pg(f,I.current,u)},[f,u]);return c.useEffect(()=>{if(m||f==="down"||f==="right")return;const O=Aa(()=>{I.current&&pg(f,I.current,u)}),N=Jo(I.current);return N.addEventListener("resize",O),()=>{O.clear(),N.removeEventListener("resize",O)}},[f,m,u]),c.useEffect(()=>{m||B()},[m,B]),D.jsx(M,x({nodeRef:I,onEnter:$,onEntered:V,onEntering:L,onExit:_,onExited:T,onExiting:j,addEndListener:F,appear:l,in:m,timeout:k},E,{children:(O,N)=>c.cloneElement(a,x({ref:R,style:x({visibility:O==="exited"&&!m?"hidden":void 0},S,a.props.style)},N))}))}),uoe=coe;function doe(e){return Ke("MuiDrawer",e)}We("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const foe=["BackdropProps"],poe=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],HN=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},hoe=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Pe(n)}`,r!=="temporary"&&`paperAnchorDocked${Pe(n)}`]};return Te(o,doe,t)},moe=oe(Ab,{name:"MuiDrawer",slot:"Root",overridesResolver:HN})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),pR=oe("div",{shouldForwardProp:Jr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:HN})({flex:"0 0 auto"}),goe=oe(Vs,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Pe(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Pe(n.anchor)}`]]}})(({theme:e,ownerState:t})=>x({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}`})),UN={left:"right",right:"left",top:"down",bottom:"up"};function voe(e){return["left","right"].indexOf(e)!==-1}function yoe(e,t){return e.direction==="rtl"&&voe(t)?UN[t]:t}const boe=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDrawer"}),o=yn(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:i="left",BackdropProps:l,children:a,className:u,elevation:f=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:m}={},onClose:v,open:y=!1,PaperProps:g={},SlideProps:C,TransitionComponent:b=uoe,transitionDuration:w=s,variant:S="temporary"}=r,k=le(r.ModalProps,foe),M=le(r,poe),E=c.useRef(!1);c.useEffect(()=>{E.current=!0},[]);const I=yoe(o,i),A=x({},r,{anchor:i,elevation:f,open:y,variant:S},M),$=hoe(A),L=D.jsx(goe,x({elevation:S==="temporary"?f:0,square:!0},g,{className:Ce($.paper,g.className),ownerState:A,children:a}));if(S==="permanent")return D.jsx(pR,x({className:Ce($.root,$.docked,u),ownerState:A,ref:n},M,{children:L}));const V=D.jsx(b,x({in:y,direction:UN[I],timeout:w,appear:E.current},C,{children:L}));return S==="persistent"?D.jsx(pR,x({className:Ce($.root,$.docked,u),ownerState:A,ref:n},M,{children:V})):D.jsx(moe,x({BackdropProps:x({},l,m,{transitionDuration:w}),className:Ce($.root,$.modal,u),open:y,ownerState:A,onClose:v,hideBackdrop:p,ref:n},M,k,{children:V}))}),woe=boe,Coe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],xoe=e=>{const{classes:t,disableUnderline:n}=e,o=Te({root:["root",!n&&"underline"],input:["input"]},Bte,t);return x({},t,o)},Soe=oe(Tb,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Mb(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return x({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s}},[`&.${Uo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s},[`&.${Uo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Uo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Uo.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(.${Uo.disabled}, .${Uo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Uo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&x({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Poe=oe($b,{name:"MuiFilledInput",slot:"Input",overridesResolver:_b})(({theme:e,ownerState:t})=>x({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),WN=c.forwardRef(function(t,n){var r,o,s,i;const l=je({props:t,name:"MuiFilledInput"}),{components:a={},componentsProps:u,fullWidth:f=!1,inputComponent:p="input",multiline:m=!1,slotProps:v,slots:y={},type:g="text"}=l,C=le(l,Coe),b=x({},l,{fullWidth:f,inputComponent:p,multiline:m,type:g}),w=xoe(l),S={root:{ownerState:b},input:{ownerState:b}},k=(v!=null?v:u)?Yr(S,v!=null?v:u):S,M=(r=(o=y.root)!=null?o:a.Root)!=null?r:Soe,E=(s=(i=y.input)!=null?i:a.Input)!=null?s:Poe;return D.jsx(Gd,x({slots:{root:M,input:E},componentsProps:k,fullWidth:f,inputComponent:p,multiline:m,ref:n,type:g},C,{classes:w}))});WN.muiName="Input";const GN=WN;function koe(e){return Ke("MuiFormControl",e)}We("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Eoe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Ioe=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Pe(n)}`,r&&"fullWidth"]};return Te(o,koe,t)},Moe=oe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>x({},t.root,t[`margin${Pe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>x({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%"})),_oe=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiFormControl"}),{children:o,className:s,color:i="primary",component:l="div",disabled:a=!1,error:u=!1,focused:f,fullWidth:p=!1,hiddenLabel:m=!1,margin:v="none",required:y=!1,size:g="medium",variant:C="outlined"}=r,b=le(r,Eoe),w=x({},r,{color:i,component:l,disabled:a,error:u,fullWidth:p,hiddenLabel:m,margin:v,required:y,size:g,variant:C}),S=Ioe(w),[k,M]=c.useState(()=>{let j=!1;return o&&c.Children.forEach(o,_=>{if(!Sp(_,["Input","Select"]))return;const T=Sp(_,["Select"])?_.props.input:_;T&&Mte(T.props)&&(j=!0)}),j}),[E,I]=c.useState(()=>{let j=!1;return o&&c.Children.forEach(o,_=>{Sp(_,["Input","Select"])&&(zv(_.props,!0)||zv(_.props.inputProps,!0))&&(j=!0)}),j}),[R,A]=c.useState(!1);a&&R&&A(!1);const $=f!==void 0&&!a?f:R;let L;const V=c.useMemo(()=>({adornedStart:k,setAdornedStart:M,color:i,disabled:a,error:u,filled:E,focused:$,fullWidth:p,hiddenLabel:m,size:g,onBlur:()=>{A(!1)},onEmpty:()=>{I(!1)},onFilled:()=>{I(!0)},onFocus:()=>{A(!0)},registerEffect:L,required:y,variant:C}),[k,i,a,u,E,$,p,m,L,y,g,C]);return D.jsx(Ib.Provider,{value:V,children:D.jsx(Moe,x({as:l,ownerState:w,className:Ce(S.root,s),ref:n},b,{children:o}))})}),KN=_oe,Toe=yX({createStyledComponent:oe("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>je({props:e,name:"MuiStack"})}),$oe=Toe;function Roe(e){return Ke("MuiFormControlLabel",e)}const Ooe=We("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),sp=Ooe,Doe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Aoe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:s}=e,i={root:["root",n&&"disabled",`labelPlacement${Pe(r)}`,o&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Te(i,Roe,t)},Loe=oe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${sp.label}`]:t.label},t.root,t[`labelPlacement${Pe(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>x({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${sp.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},{[`& .${sp.label}`]:{[`&.${sp.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),Foe=oe("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${sp.error}`]:{color:(e.vars||e).palette.error.main}})),Noe=c.forwardRef(function(t,n){var r,o;const s=je({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:l={},control:a,disabled:u,disableTypography:f,label:p,labelPlacement:m="end",required:v,slotProps:y={}}=s,g=le(s,Doe),C=Il(),b=(r=u!=null?u:a.props.disabled)!=null?r:C==null?void 0:C.disabled,w=v!=null?v:a.props.required,S={disabled:b,required:w};["checked","name","onChange","value","inputRef"].forEach(A=>{typeof a.props[A]=="undefined"&&typeof s[A]!="undefined"&&(S[A]=s[A])});const k=Vc({props:s,muiFormControl:C,states:["error"]}),M=x({},s,{disabled:b,labelPlacement:m,required:w,error:k.error}),E=Aoe(M),I=(o=y.typography)!=null?o:l.typography;let R=p;return R!=null&&R.type!==qn&&!f&&(R=D.jsx(qn,x({component:"span"},I,{className:Ce(E.label,I==null?void 0:I.className),children:R}))),D.jsxs(Loe,x({className:Ce(E.root,i),ownerState:M,ref:n},g,{children:[c.cloneElement(a,S),w?D.jsxs($oe,{display:"block",children:[R,D.jsxs(Foe,{ownerState:M,"aria-hidden":!0,className:E.asterisk,children:[" ","*"]})]}):R]}))}),qN=Noe;function Boe(e){return Ke("MuiFormHelperText",e)}const zoe=We("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),hR=zoe;var mR;const Voe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],joe=e=>{const{classes:t,contained:n,size:r,disabled:o,error:s,filled:i,focused:l,required:a}=e,u={root:["root",o&&"disabled",s&&"error",r&&`size${Pe(r)}`,n&&"contained",l&&"focused",i&&"filled",a&&"required"]};return Te(u,Boe,t)},Hoe=oe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Pe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>x({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${hR.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${hR.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Uoe=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:i="p"}=r,l=le(r,Voe),a=Il(),u=Vc({props:r,muiFormControl:a,states:["variant","size","disabled","error","filled","focused","required"]}),f=x({},r,{component:i,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),p=joe(f);return D.jsx(Hoe,x({as:i,ownerState:f,className:Ce(p.root,s),ref:n},l,{children:o===" "?mR||(mR=D.jsx("span",{className:"notranslate",children:"​"})):o}))}),qd=Uoe;function Woe(e){return Ke("MuiFormLabel",e)}const Goe=We("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Tp=Goe,Koe=["children","className","color","component","disabled","error","filled","focused","required"],qoe=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:i,required:l}=e,a={root:["root",`color${Pe(n)}`,o&&"disabled",s&&"error",i&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",s&&"error"]};return Te(a,Woe,t)},Yoe=oe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>x({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>x({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Tp.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Tp.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Tp.error}`]:{color:(e.vars||e).palette.error.main}})),Qoe=oe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Tp.error}`]:{color:(e.vars||e).palette.error.main}})),Xoe=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiFormLabel"}),{children:o,className:s,component:i="label"}=r,l=le(r,Koe),a=Il(),u=Vc({props:r,muiFormControl:a,states:["color","required","focused","disabled","error","filled"]}),f=x({},r,{color:u.color||"primary",component:i,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),p=qoe(f);return D.jsxs(Yoe,x({as:i,ownerState:f,className:Ce(p.root,s),ref:n},l,{children:[o,u.required&&D.jsxs(Qoe,{ownerState:f,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}))}),YN=Xoe,Zoe=c.createContext(),gR=Zoe;function Joe(e){return Ke("MuiGrid",e)}const ese=[0,1,2,3,4,5,6,7,8,9,10],tse=["column-reverse","column","row-reverse","row"],nse=["nowrap","wrap-reverse","wrap"],Vf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],lh=We("MuiGrid",["root","container","item","zeroMinWidth",...ese.map(e=>`spacing-xs-${e}`),...tse.map(e=>`direction-xs-${e}`),...nse.map(e=>`wrap-xs-${e}`),...Vf.map(e=>`grid-xs-${e}`),...Vf.map(e=>`grid-sm-${e}`),...Vf.map(e=>`grid-md-${e}`),...Vf.map(e=>`grid-lg-${e}`),...Vf.map(e=>`grid-xl-${e}`)]),rse=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function rd(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function ose({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let s={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)s={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=pc({values:t.columns,breakpoints:e.breakpoints.values}),l=typeof i=="object"?i[o]:i;if(l==null)return r;const a=`${Math.round(n/l*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const f=e.spacing(t.columnSpacing);if(f!=="0px"){const p=`calc(${a} + ${rd(f)})`;u={flexBasis:p,maxWidth:p}}}s=x({flexBasis:a,flexGrow:0,maxWidth:a},u)}return e.breakpoints.values[o]===0?Object.assign(r,s):r[e.breakpoints.up(o)]=s,r},{})}function sse({theme:e,ownerState:t}){const n=pc({values:t.direction,breakpoints:e.breakpoints.values});return $o({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${lh.item}`]={maxWidth:"none"}),o})}function QN({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,s)=>e[o]-e[s]);return r.slice(0,r.indexOf(n))}function ise({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const s=pc({values:r,breakpoints:e.breakpoints.values});let i;typeof s=="object"&&(i=QN({breakpoints:e.breakpoints.values,values:s})),o=$o({theme:e},s,(l,a)=>{var u;const f=e.spacing(l);return f!=="0px"?{marginTop:`-${rd(f)}`,[`& > .${lh.item}`]:{paddingTop:rd(f)}}:(u=i)!=null&&u.includes(a)?{}:{marginTop:0,[`& > .${lh.item}`]:{paddingTop:0}}})}return o}function lse({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const s=pc({values:r,breakpoints:e.breakpoints.values});let i;typeof s=="object"&&(i=QN({breakpoints:e.breakpoints.values,values:s})),o=$o({theme:e},s,(l,a)=>{var u;const f=e.spacing(l);return f!=="0px"?{width:`calc(100% + ${rd(f)})`,marginLeft:`-${rd(f)}`,[`& > .${lh.item}`]:{paddingLeft:rd(f)}}:(u=i)!=null&&u.includes(a)?{}:{width:"100%",marginLeft:0,[`& > .${lh.item}`]:{paddingLeft:0}}})}return o}function ase(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const s=e[o];Number(s)>0&&r.push(n[`spacing-${o}-${String(s)}`])}),r}const cse=oe("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:s,spacing:i,wrap:l,zeroMinWidth:a,breakpoints:u}=n;let f=[];r&&(f=ase(i,u,t));const p=[];return u.forEach(m=>{const v=n[m];v&&p.push(t[`grid-${m}-${String(v)}`])}),[t.root,r&&t.container,s&&t.item,a&&t.zeroMinWidth,...f,o!=="row"&&t[`direction-xs-${String(o)}`],l!=="wrap"&&t[`wrap-xs-${String(l)}`],...p]}})(({ownerState:e})=>x({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}),sse,ise,lse,ose);function use(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const s=`spacing-${r}-${String(o)}`;n.push(s)}}),n}const dse=e=>{const{classes:t,container:n,direction:r,item:o,spacing:s,wrap:i,zeroMinWidth:l,breakpoints:a}=e;let u=[];n&&(u=use(s,a));const f=[];a.forEach(m=>{const v=e[m];v&&f.push(`grid-${m}-${String(v)}`)});const p={root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...f]};return Te(p,Joe,t)},fse=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiGrid"}),{breakpoints:o}=yn(),s=bb(r),{className:i,columns:l,columnSpacing:a,component:u="div",container:f=!1,direction:p="row",item:m=!1,rowSpacing:v,spacing:y=0,wrap:g="wrap",zeroMinWidth:C=!1}=s,b=le(s,rse),w=v||y,S=a||y,k=c.useContext(gR),M=f?l||12:k,E={},I=x({},b);o.keys.forEach($=>{b[$]!=null&&(E[$]=b[$],delete I[$])});const R=x({},s,{columns:M,container:f,direction:p,item:m,rowSpacing:w,columnSpacing:S,wrap:g,zeroMinWidth:C,spacing:y},E,{breakpoints:o.keys}),A=dse(R);return D.jsx(gR.Provider,{value:M,children:D.jsx(cse,x({ownerState:R,className:Ce(A.root,i),as:u,ref:n},I))})}),ri=fse,pse=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Dx(e){return`scale(${e}, ${ys(e,2)})`}const hse={entering:{opacity:1,transform:Dx(1)},entered:{opacity:1,transform:"none"}},Aw=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),XN=c.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:i,in:l,onEnter:a,onEntered:u,onEntering:f,onExit:p,onExited:m,onExiting:v,style:y,timeout:g="auto",TransitionComponent:C=Dh}=t,b=le(t,pse),w=c.useRef(),S=c.useRef(),k=yn(),M=c.useRef(null),E=Et(M,s.ref,n),I=T=>F=>{if(T){const B=M.current;F===void 0?T(B):T(B,F)}},R=I(f),A=I((T,F)=>{nk(T);const{duration:B,delay:O,easing:N}=Ia({style:y,timeout:g,easing:i},{mode:"enter"});let H;g==="auto"?(H=k.transitions.getAutoHeightDuration(T.clientHeight),S.current=H):H=B,T.style.transition=[k.transitions.create("opacity",{duration:H,delay:O}),k.transitions.create("transform",{duration:Aw?H:H*.666,delay:O,easing:N})].join(","),a&&a(T,F)}),$=I(u),L=I(v),V=I(T=>{const{duration:F,delay:B,easing:O}=Ia({style:y,timeout:g,easing:i},{mode:"exit"});let N;g==="auto"?(N=k.transitions.getAutoHeightDuration(T.clientHeight),S.current=N):N=F,T.style.transition=[k.transitions.create("opacity",{duration:N,delay:B}),k.transitions.create("transform",{duration:Aw?N:N*.666,delay:Aw?B:B||N*.333,easing:O})].join(","),T.style.opacity=0,T.style.transform=Dx(.75),p&&p(T)}),j=I(m),_=T=>{g==="auto"&&(w.current=setTimeout(T,S.current||0)),r&&r(M.current,T)};return c.useEffect(()=>()=>{clearTimeout(w.current)},[]),D.jsx(C,x({appear:o,in:l,nodeRef:M,onEnter:A,onEntered:$,onEntering:R,onExit:V,onExited:j,onExiting:L,addEndListener:_,timeout:g==="auto"?null:g},b,{children:(T,F)=>c.cloneElement(s,x({style:x({opacity:0,transform:Dx(.75),visibility:T==="exited"&&!l?"hidden":void 0},hse[T],y,s.props.style),ref:E},F))}))});XN.muiSupportAuto=!0;const ah=XN;function mse(e,t,n,r,o){const[s,i]=c.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Nt(()=>{let l=!0;if(!n)return;const a=n(e),u=()=>{l&&i(a.matches)};return u(),a.addListener(u),()=>{l=!1,a.removeListener(u)}},[e,n]),s}const ZN=wc["useSyncExternalStore"];function gse(e,t,n,r,o){const s=c.useCallback(()=>t,[t]),i=c.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:f}=r(e);return()=>f}return s},[s,e,r,o,n]),[l,a]=c.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const f=n(e);return[()=>f.matches,p=>(f.addListener(p),()=>{f.removeListener(p)})]},[s,n,e]);return ZN(a,l,i)}function Lb(e,t={}){const n=yb(),r=typeof window!="undefined"&&typeof window.matchMedia!="undefined",{defaultMatches:o=!1,matchMedia:s=r?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:l=!1}=uN({name:"MuiUseMediaQuery",props:t,theme:n});let a=typeof e=="function"?e(n):e;return a=a.replace(/^@media( ?)/m,""),(ZN!==void 0?gse:mse)(a,o,s,i,l)}const vse=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],yse=e=>{const{classes:t,disableUnderline:n}=e,o=Te({root:["root",!n&&"underline"],input:["input"]},Ate,t);return x({},t,o)},bse=oe(Tb,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Mb(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})`),x({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"},[`&.${ra.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ra.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(.${ra.disabled}, .${ra.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${ra.disabled}:before`]:{borderBottomStyle:"dotted"}})}),wse=oe($b,{name:"MuiInput",slot:"Input",overridesResolver:_b})({}),JN=c.forwardRef(function(t,n){var r,o,s,i;const l=je({props:t,name:"MuiInput"}),{disableUnderline:a,components:u={},componentsProps:f,fullWidth:p=!1,inputComponent:m="input",multiline:v=!1,slotProps:y,slots:g={},type:C="text"}=l,b=le(l,vse),w=yse(l),k={root:{ownerState:{disableUnderline:a}}},M=(y!=null?y:f)?Yr(y!=null?y:f,k):k,E=(r=(o=g.root)!=null?o:u.Root)!=null?r:bse,I=(s=(i=g.input)!=null?i:u.Input)!=null?s:wse;return D.jsx(Gd,x({slots:{root:E,input:I},slotProps:M,fullWidth:p,inputComponent:m,multiline:v,ref:n,type:C},b,{classes:w}))});JN.muiName="Input";const e4=JN;function Cse(e){return Ke("MuiInputAdornment",e)}const xse=We("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),vR=xse;var yR;const Sse=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Pse=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Pe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},kse=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:s,variant:i}=e,l={root:["root",n&&"disablePointerEvents",o&&`position${Pe(o)}`,i,r&&"hiddenLabel",s&&`size${Pe(s)}`]};return Te(l,Cse,t)},Ese=oe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Pse})(({theme:e,ownerState:t})=>x({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${vR.positionStart}&:not(.${vR.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Ise=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiInputAdornment"}),{children:o,className:s,component:i="div",disablePointerEvents:l=!1,disableTypography:a=!1,position:u,variant:f}=r,p=le(r,Sse),m=Il()||{};let v=f;f&&m.variant,m&&!v&&(v=m.variant);const y=x({},r,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:l,position:u,variant:v}),g=kse(y);return D.jsx(Ib.Provider,{value:null,children:D.jsx(Ese,x({as:i,ownerState:y,className:Ce(g.root,s),ref:n},p,{children:typeof o=="string"&&!a?D.jsx(qn,{color:"text.secondary",children:o}):D.jsxs(c.Fragment,{children:[u==="start"?yR||(yR=D.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),Cl=Ise;function Mse(e){return Ke("MuiInputLabel",e)}We("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const _se=["disableAnimation","margin","shrink","variant","className"],Tse=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:i,required:l}=e,a={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Pe(r)}`,i],asterisk:[l&&"asterisk"]},u=Te(a,Mse,t);return x({},t,u)},$se=oe(YN,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Tp.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>x({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"&&x({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&&x({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"&&x({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)"}),t.variant==="standard"&&{"&:not(label) + div":{marginTop:16}})),Rse=c.forwardRef(function(t,n){const r=je({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:s,className:i}=r,l=le(r,_se),a=Il();let u=s;typeof u=="undefined"&&a&&(u=a.filled||a.focused||a.adornedStart);const f=Vc({props:r,muiFormControl:a,states:["size","variant","required","focused"]}),p=x({},r,{disableAnimation:o,formControl:a,shrink:u,size:f.size,variant:f.variant,required:f.required,focused:f.focused}),m=Tse(p);return D.jsx($se,x({"data-shrink":u,ownerState:p,ref:n,className:Ce(m.root,i)},l,{classes:m}))}),t4=Rse;function Ose(e){return Ke("MuiLinearProgress",e)}We("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Dse=["className","color","value","valueBuffer","variant"];let Yd=e=>e,bR,wR,CR,xR,SR,PR;const Ax=4,Ase=Hi(bR||(bR=Yd`
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
+ `)),Lse=Hi(wR||(wR=Yd`
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
+ `)),Fse=Hi(CR||(CR=Yd`
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
+ `)),Nse=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${Pe(r)}`,n],dashed:["dashed",`dashedColor${Pe(r)}`],bar1:["bar",`barColor${Pe(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${Pe(r)}`,n==="buffer"&&`color${Pe(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Te(o,Ose,t)},dk=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?Tc(e.palette[t].main,.62):_c(e.palette[t].main,.5),Bse=oe("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Pe(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>x({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:dk(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)"})),zse=oe("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Pe(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=dk(t,e.color);return x({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"})},Ea(xR||(xR=Yd`
235
+ animation: ${0} 3s infinite linear;
236
+ `),Fse)),Vse=oe("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Pe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>x({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 .${Ax}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${Ax}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Ea(SR||(SR=Yd`
237
+ width: auto;
238
+ animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
239
+ `),Ase)),jse=oe("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Pe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>x({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:dk(t,e.color),transition:`transform .${Ax}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Ea(PR||(PR=Yd`
240
+ width: auto;
241
+ animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
242
+ `),Lse)),Hse=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiLinearProgress"}),{className:o,color:s="primary",value:i,valueBuffer:l,variant:a="indeterminate"}=r,u=le(r,Dse),f=x({},r,{color:s,variant:a}),p=Nse(f),m=yn(),v={},y={bar1:{},bar2:{}};if((a==="determinate"||a==="buffer")&&i!==void 0){v["aria-valuenow"]=Math.round(i),v["aria-valuemin"]=0,v["aria-valuemax"]=100;let g=i-100;m.direction==="rtl"&&(g=-g),y.bar1.transform=`translateX(${g}%)`}if(a==="buffer"&&l!==void 0){let g=(l||0)-100;m.direction==="rtl"&&(g=-g),y.bar2.transform=`translateX(${g}%)`}return D.jsxs(Bse,x({className:Ce(p.root,o),ownerState:f,role:"progressbar"},v,{ref:n},u,{children:[a==="buffer"?D.jsx(zse,{className:p.dashed,ownerState:f}):null,D.jsx(Vse,{className:p.bar1,ownerState:f,style:y.bar1}),a==="determinate"?null:D.jsx(jse,{className:p.bar2,ownerState:f,style:y.bar2})]}))}),Vv=Hse;function Use(e){return Ke("MuiLink",e)}const Wse=We("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Gse=Wse,n4={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Kse=e=>n4[e]||e,qse=({theme:e,ownerState:t})=>{const n=Kse(t.color),r=bd(e,`palette.${n}`,!1)||t.color,o=bd(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:lt(r,.4)},Yse=qse,Qse=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Xse=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,s={root:["root",`underline${Pe(o)}`,n==="button"&&"button",r&&"focusVisible"]};return Te(s,Use,t)},Zse=oe(qn,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Pe(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>x({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&x({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:Yse({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"},[`&.${Gse.focusVisible}`]:{outline:"auto"}})),Jse=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiLink"}),{className:o,color:s="primary",component:i="a",onBlur:l,onFocus:a,TypographyClasses:u,underline:f="always",variant:p="inherit",sx:m}=r,v=le(r,Qse),{isFocusVisibleRef:y,onBlur:g,onFocus:C,ref:b}=Yy(),[w,S]=c.useState(!1),k=Et(n,b),M=A=>{g(A),y.current===!1&&S(!1),l&&l(A)},E=A=>{C(A),y.current===!0&&S(!0),a&&a(A)},I=x({},r,{color:s,component:i,focusVisible:w,underline:f,variant:p}),R=Xse(I);return D.jsx(Zse,x({color:s,className:Ce(R.root,o),classes:u,component:i,onBlur:M,onFocus:E,ref:k,ownerState:I,variant:p,sx:[...Object.keys(n4).includes(s)?[]:[{color:s}],...Array.isArray(m)?m:[m]]},v))}),Ls=Jse,eie=c.createContext({}),li=eie;function tie(e){return Ke("MuiList",e)}We("MuiList",["root","padding","dense","subheader"]);const nie=["children","className","component","dense","disablePadding","subheader"],rie=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Te({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},tie,t)},oie=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})=>x({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),sie=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiList"}),{children:o,className:s,component:i="ul",dense:l=!1,disablePadding:a=!1,subheader:u}=r,f=le(r,nie),p=c.useMemo(()=>({dense:l}),[l]),m=x({},r,{component:i,dense:l,disablePadding:a}),v=rie(m);return D.jsx(li.Provider,{value:p,children:D.jsxs(oie,x({as:i,className:Ce(v.root,s),ref:n,ownerState:m},f,{children:[u,o]}))})}),Nh=sie;function iie(e){return Ke("MuiListItem",e)}const lie=We("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),ku=lie;function aie(e){return Ke("MuiListItemButton",e)}const cie=We("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Eu=cie,uie=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],die=(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]},fie=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:s,divider:i,selected:l}=e,u=Te({root:["root",r&&"dense",!s&&"gutters",i&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},aie,n);return x({},n,u)},pie=oe(ui,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:die})(({theme:e,ownerState:t})=>x({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"}},[`&.${Eu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Eu.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Eu.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:lt(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})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Eu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Eu.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})),hie=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:s=!1,component:i="div",children:l,dense:a=!1,disableGutters:u=!1,divider:f=!1,focusVisibleClassName:p,selected:m=!1,className:v}=r,y=le(r,uie),g=c.useContext(li),C=c.useMemo(()=>({dense:a||g.dense||!1,alignItems:o,disableGutters:u}),[o,g.dense,a,u]),b=c.useRef(null);Nt(()=>{s&&b.current&&b.current.focus()},[s]);const w=x({},r,{alignItems:o,dense:C.dense,disableGutters:u,divider:f,selected:m}),S=fie(w),k=Et(b,n);return D.jsx(li.Provider,{value:C,children:D.jsx(pie,x({ref:k,href:y.href||y.to,component:(y.href||y.to)&&i==="div"?"button":i,focusVisibleClassName:Ce(S.focusVisible,p),ownerState:w,className:Ce(S.root,v)},y,{classes:S,children:l}))})}),mie=hie;function gie(e){return Ke("MuiListItemSecondaryAction",e)}We("MuiListItemSecondaryAction",["root","disableGutters"]);const vie=["className"],yie=e=>{const{disableGutters:t,classes:n}=e;return Te({root:["root",t&&"disableGutters"]},gie,n)},bie=oe("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>x({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),r4=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,s=le(r,vie),i=c.useContext(li),l=x({},r,{disableGutters:i.disableGutters}),a=yie(l);return D.jsx(bie,x({className:Ce(a.root,o),ownerState:l,ref:n},s))});r4.muiName="ListItemSecondaryAction";const wie=r4,Cie=["className"],xie=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Sie=(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]},Pie=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:s,disableGutters:i,disablePadding:l,divider:a,hasSecondaryAction:u,selected:f}=e;return Te({root:["root",o&&"dense",!i&&"gutters",!l&&"padding",a&&"divider",s&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",f&&"selected"],container:["container"]},iie,r)},kie=oe("div",{name:"MuiListItem",slot:"Root",overridesResolver:Sie})(({theme:e,ownerState:t})=>x({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&x({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Eu.root}`]:{paddingRight:48}},{[`&.${ku.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ku.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ku.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ku.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"}},[`&.${ku.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:lt(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})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Eie=oe("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Iie=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:s=!1,button:i=!1,children:l,className:a,component:u,components:f={},componentsProps:p={},ContainerComponent:m="li",ContainerProps:{className:v}={},dense:y=!1,disabled:g=!1,disableGutters:C=!1,disablePadding:b=!1,divider:w=!1,focusVisibleClassName:S,secondaryAction:k,selected:M=!1,slotProps:E={},slots:I={}}=r,R=le(r.ContainerProps,Cie),A=le(r,xie),$=c.useContext(li),L=c.useMemo(()=>({dense:y||$.dense||!1,alignItems:o,disableGutters:C}),[o,$.dense,y,C]),V=c.useRef(null);Nt(()=>{s&&V.current&&V.current.focus()},[s]);const j=c.Children.toArray(l),_=j.length&&Sp(j[j.length-1],["ListItemSecondaryAction"]),T=x({},r,{alignItems:o,autoFocus:s,button:i,dense:L.dense,disabled:g,disableGutters:C,disablePadding:b,divider:w,hasSecondaryAction:_,selected:M}),F=Pie(T),B=Et(V,n),O=I.root||f.Root||kie,N=E.root||p.root||{},H=x({className:Ce(F.root,N.className,a),disabled:g},A);let K=u||"li";return i&&(H.component=u||"div",H.focusVisibleClassName=Ce(ku.focusVisible,S),K=ui),_?(K=!H.component&&!u?"div":K,m==="li"&&(K==="li"?K="div":H.component==="li"&&(H.component="div")),D.jsx(li.Provider,{value:L,children:D.jsxs(Eie,x({as:m,className:Ce(F.container,v),ref:B,ownerState:T},R,{children:[D.jsx(O,x({},N,!$c(O)&&{as:K,ownerState:x({},T,N.ownerState)},H,{children:j})),j.pop()]}))})):D.jsx(li.Provider,{value:L,children:D.jsxs(O,x({},N,{as:K,ref:B},!$c(O)&&{ownerState:x({},T,N.ownerState)},H,{children:[j,k&&D.jsx(wie,{children:k})]}))})}),fk=Iie;function Mie(e){return Ke("MuiListItemIcon",e)}const _ie=We("MuiListItemIcon",["root","alignItemsFlexStart"]),kR=_ie,Tie=["className"],$ie=e=>{const{alignItems:t,classes:n}=e;return Te({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Mie,n)},Rie=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})=>x({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Oie=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiListItemIcon"}),{className:o}=r,s=le(r,Tie),i=c.useContext(li),l=x({},r,{alignItems:i.alignItems}),a=$ie(l);return D.jsx(Rie,x({className:Ce(a.root,o),ownerState:l,ref:n},s))}),hl=Oie;function Die(e){return Ke("MuiListItemText",e)}const Aie=We("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),jv=Aie,Lie=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Fie=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:s}=e;return Te({root:["root",n&&"inset",s&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Die,t)},Nie=oe("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${jv.primary}`]:t.primary},{[`& .${jv.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>x({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Bie=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiListItemText"}),{children:o,className:s,disableTypography:i=!1,inset:l=!1,primary:a,primaryTypographyProps:u,secondary:f,secondaryTypographyProps:p}=r,m=le(r,Lie),{dense:v}=c.useContext(li);let y=a!=null?a:o,g=f;const C=x({},r,{disableTypography:i,inset:l,primary:!!y,secondary:!!g,dense:v}),b=Fie(C);return y!=null&&y.type!==qn&&!i&&(y=D.jsx(qn,x({variant:v?"body2":"body1",className:b.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:y}))),g!=null&&g.type!==qn&&!i&&(g=D.jsx(qn,x({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},p,{children:g}))),D.jsxs(Nie,x({className:Ce(b.root,s),ownerState:C,ref:n},m,{children:[y,g]}))}),Ri=Bie,zie=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Lw(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ER(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function o4(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 jf(e,t,n,r,o,s){let i=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const a=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!o4(l,s)||a)l=o(e,l,n);else return l.focus(),!0}return!1}const Vie=c.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:i,className:l,disabledItemsFocusable:a=!1,disableListWrap:u=!1,onKeyDown:f,variant:p="selectedMenu"}=t,m=le(t,zie),v=c.useRef(null),y=c.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Nt(()=>{o&&v.current.focus()},[o]),c.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,k)=>{const M=!v.current.style.width;if(S.clientHeight<v.current.clientHeight&&M){const E=`${LF(fn(S))}px`;v.current.style[k.direction==="rtl"?"paddingLeft":"paddingRight"]=E,v.current.style.width=`calc(100% + ${E})`}return v.current}}),[]);const g=S=>{const k=v.current,M=S.key,E=fn(k).activeElement;if(M==="ArrowDown")S.preventDefault(),jf(k,E,u,a,Lw);else if(M==="ArrowUp")S.preventDefault(),jf(k,E,u,a,ER);else if(M==="Home")S.preventDefault(),jf(k,null,u,a,Lw);else if(M==="End")S.preventDefault(),jf(k,null,u,a,ER);else if(M.length===1){const I=y.current,R=M.toLowerCase(),A=performance.now();I.keys.length>0&&(A-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&R!==I.keys[0]&&(I.repeating=!1)),I.lastTime=A,I.keys.push(R);const $=E&&!I.repeating&&o4(E,I);I.previousKeyMatched&&($||jf(k,E,!1,a,Lw,I))?S.preventDefault():I.previousKeyMatched=!1}f&&f(S)},C=Et(v,n);let b=-1;c.Children.forEach(i,(S,k)=>{if(!c.isValidElement(S)){b===k&&(b+=1,b>=i.length&&(b=-1));return}S.props.disabled||(p==="selectedMenu"&&S.props.selected||b===-1)&&(b=k),b===k&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(b+=1,b>=i.length&&(b=-1))});const w=c.Children.map(i,(S,k)=>{if(k===b){const M={};return s&&(M.autoFocus=!0),S.props.tabIndex===void 0&&p==="selectedMenu"&&(M.tabIndex=0),c.cloneElement(S,M)}return S});return D.jsx(Nh,x({role:"menu",ref:C,className:l,onKeyDown:g,tabIndex:o?0:-1},m,{children:w}))}),Qd=Vie;function jie(e){return Ke("MuiPopover",e)}We("MuiPopover",["root","paper"]);const Hie=["onEntering"],Uie=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Wie=["slotProps"];function IR(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function MR(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function _R(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Fw(e){return typeof e=="function"?e():e}const Gie=e=>{const{classes:t}=e;return Te({root:["root"],paper:["paper"]},jie,t)},Kie=oe(Ab,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),s4=oe(Vs,{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}),qie=c.forwardRef(function(t,n){var r,o,s;const i=je({props:t,name:"MuiPopover"}),{action:l,anchorEl:a,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:p="anchorEl",children:m,className:v,container:y,elevation:g=8,marginThreshold:C=16,open:b,PaperProps:w={},slots:S,slotProps:k,transformOrigin:M={vertical:"top",horizontal:"left"},TransitionComponent:E=ah,transitionDuration:I="auto",TransitionProps:{onEntering:R}={},disableScrollLock:A=!1}=i,$=le(i.TransitionProps,Hie),L=le(i,Uie),V=(r=k==null?void 0:k.paper)!=null?r:w,j=c.useRef(),_=Et(j,V.ref),T=x({},i,{anchorOrigin:u,anchorReference:p,elevation:g,marginThreshold:C,externalPaperSlotProps:V,transformOrigin:M,TransitionComponent:E,transitionDuration:I,TransitionProps:$}),F=Gie(T),B=c.useCallback(()=>{if(p==="anchorPosition")return f;const ce=Fw(a),Ee=(ce&&ce.nodeType===1?ce:fn(j.current).body).getBoundingClientRect();return{top:Ee.top+IR(Ee,u.vertical),left:Ee.left+MR(Ee,u.horizontal)}},[a,u.horizontal,u.vertical,f,p]),O=c.useCallback(ce=>({vertical:IR(ce,M.vertical),horizontal:MR(ce,M.horizontal)}),[M.horizontal,M.vertical]),N=c.useCallback(ce=>{const Se={width:ce.offsetWidth,height:ce.offsetHeight},Ee=O(Se);if(p==="none")return{top:null,left:null,transformOrigin:_R(Ee)};const ae=B();let Ie=ae.top-Ee.vertical,ye=ae.left-Ee.horizontal;const Me=Ie+Se.height,pe=ye+Se.width,fe=Jo(Fw(a)),de=fe.innerHeight-C,be=fe.innerWidth-C;if(C!==null&&Ie<C){const _e=Ie-C;Ie-=_e,Ee.vertical+=_e}else if(C!==null&&Me>de){const _e=Me-de;Ie-=_e,Ee.vertical+=_e}if(C!==null&&ye<C){const _e=ye-C;ye-=_e,Ee.horizontal+=_e}else if(pe>be){const _e=pe-be;ye-=_e,Ee.horizontal+=_e}return{top:`${Math.round(Ie)}px`,left:`${Math.round(ye)}px`,transformOrigin:_R(Ee)}},[a,p,B,O,C]),[H,K]=c.useState(b),Q=c.useCallback(()=>{const ce=j.current;if(!ce)return;const Se=N(ce);Se.top!==null&&(ce.style.top=Se.top),Se.left!==null&&(ce.style.left=Se.left),ce.style.transformOrigin=Se.transformOrigin,K(!0)},[N]);c.useEffect(()=>(A&&window.addEventListener("scroll",Q),()=>window.removeEventListener("scroll",Q)),[a,A,Q]);const J=(ce,Se)=>{R&&R(ce,Se),Q()},Y=()=>{K(!1)};c.useEffect(()=>{b&&Q()}),c.useImperativeHandle(l,()=>b?{updatePosition:()=>{Q()}}:null,[b,Q]),c.useEffect(()=>{if(!b)return;const ce=Aa(()=>{Q()}),Se=Jo(a);return Se.addEventListener("resize",ce),()=>{ce.clear(),Se.removeEventListener("resize",ce)}},[a,b,Q]);let X=I;I==="auto"&&!E.muiSupportAuto&&(X=void 0);const ee=y||(a?fn(Fw(a)).body:void 0),se=(o=S==null?void 0:S.root)!=null?o:Kie,Z=(s=S==null?void 0:S.paper)!=null?s:s4,he=qt({elementType:Z,externalSlotProps:x({},V,{style:H?V.style:x({},V.style,{opacity:0})}),additionalProps:{elevation:g,ref:_},ownerState:T,className:Ce(F.paper,V==null?void 0:V.className)}),ne=qt({elementType:se,externalSlotProps:(k==null?void 0:k.root)||{},externalForwardedProps:L,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ee,open:b},ownerState:T,className:Ce(F.root,v)}),{slotProps:re}=ne,me=le(ne,Wie);return D.jsx(se,x({},me,!$c(se)&&{slotProps:re,disableScrollLock:A},{children:D.jsx(E,x({appear:!0,in:b,onEntering:J,onExited:Y,timeout:X},$,{children:D.jsx(Z,x({},he,{children:m}))}))}))}),Yie=qie;function Qie(e){return Ke("MuiMenu",e)}We("MuiMenu",["root","paper","list"]);const Xie=["onEntering"],Zie=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Jie={vertical:"top",horizontal:"right"},ele={vertical:"top",horizontal:"left"},tle=e=>{const{classes:t}=e;return Te({root:["root"],paper:["paper"],list:["list"]},Qie,t)},nle=oe(Yie,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rle=oe(s4,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ole=oe(Qd,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),sle=c.forwardRef(function(t,n){var r,o;const s=je({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:l,className:a,disableAutoFocusItem:u=!1,MenuListProps:f={},onClose:p,open:m,PaperProps:v={},PopoverClasses:y,transitionDuration:g="auto",TransitionProps:{onEntering:C}={},variant:b="selectedMenu",slots:w={},slotProps:S={}}=s,k=le(s.TransitionProps,Xie),M=le(s,Zie),E=yn(),I=E.direction==="rtl",R=x({},s,{autoFocus:i,disableAutoFocusItem:u,MenuListProps:f,onEntering:C,PaperProps:v,transitionDuration:g,TransitionProps:k,variant:b}),A=tle(R),$=i&&!u&&m,L=c.useRef(null),V=(N,H)=>{L.current&&L.current.adjustStyleForScrollbar(N,E),C&&C(N,H)},j=N=>{N.key==="Tab"&&(N.preventDefault(),p&&p(N,"tabKeyDown"))};let _=-1;c.Children.map(l,(N,H)=>{c.isValidElement(N)&&(N.props.disabled||(b==="selectedMenu"&&N.props.selected||_===-1)&&(_=H))});const T=(r=w.paper)!=null?r:rle,F=(o=S.paper)!=null?o:v,B=qt({elementType:w.root,externalSlotProps:S.root,ownerState:R,className:[A.root,a]}),O=qt({elementType:T,externalSlotProps:F,ownerState:R,className:A.paper});return D.jsx(nle,x({onClose:p,anchorOrigin:{vertical:"bottom",horizontal:I?"right":"left"},transformOrigin:I?Jie:ele,slots:{paper:T,root:w.root},slotProps:{root:B,paper:O},open:m,ref:n,transitionDuration:g,TransitionProps:x({onEntering:V},k),ownerState:R},M,{classes:y,children:D.jsx(ole,x({onKeyDown:j,actions:L,autoFocus:i&&(_===-1||u),autoFocusItem:$,variant:b},f,{className:Ce(A.list,f.className),children:l}))}))}),i4=sle;function ile(e){return Ke("MuiMenuItem",e)}const lle=We("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Hf=lle,ale=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],cle=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},ule=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:s,classes:i}=e,a=Te({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",s&&"selected"]},ile,i);return x({},i,a)},dle=oe(ui,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:cle})(({theme:e,ownerState:t})=>x({},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"}},[`&.${Hf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Hf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Hf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:lt(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})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Hf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Hf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${fR.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${fR.inset}`]:{marginLeft:52},[`& .${jv.root}`]:{marginTop:0,marginBottom:0},[`& .${jv.inset}`]:{paddingLeft:36},[`& .${kR.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&x({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${kR.root} svg`]:{fontSize:"1.25rem"}}))),fle=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:i=!1,divider:l=!1,disableGutters:a=!1,focusVisibleClassName:u,role:f="menuitem",tabIndex:p,className:m}=r,v=le(r,ale),y=c.useContext(li),g=c.useMemo(()=>({dense:i||y.dense||!1,disableGutters:a}),[y.dense,i,a]),C=c.useRef(null);Nt(()=>{o&&C.current&&C.current.focus()},[o]);const b=x({},r,{dense:g.dense,divider:l,disableGutters:a}),w=ule(r),S=Et(C,n);let k;return r.disabled||(k=p!==void 0?p:-1),D.jsx(li.Provider,{value:g,children:D.jsx(dle,x({ref:S,role:f,tabIndex:k,component:s,focusVisibleClassName:Ce(w.focusVisible,u),className:Ce(w.root,m)},v,{ownerState:b,classes:w}))})}),Pr=fle;function ple(e){return Ke("MuiNativeSelect",e)}const hle=We("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),pk=hle,mle=["className","disabled","error","IconComponent","inputRef","variant"],gle=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:i}=e,l={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Pe(n)}`,s&&"iconOpen",r&&"disabled"]};return Te(l,ple,t)},l4=({ownerState:e,theme:t})=>x({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":x({},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"},[`&.${pk.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}}),vle=oe("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Jr,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${pk.multiple}`]:t.multiple}]}})(l4),a4=({ownerState:e,theme:t})=>x({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${pk.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),yle=oe("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Pe(n.variant)}`],n.open&&t.iconOpen]}})(a4),ble=c.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:i,inputRef:l,variant:a="standard"}=t,u=le(t,mle),f=x({},t,{disabled:o,variant:a,error:s}),p=gle(f);return D.jsxs(c.Fragment,{children:[D.jsx(vle,x({ownerState:f,className:Ce(p.select,r),disabled:o,ref:l||n},u)),t.multiple?null:D.jsx(yle,{as:i,ownerState:f,className:p.icon})]})}),wle=ble;var TR;const Cle=["children","classes","className","label","notched"],xle=oe("fieldset",{shouldForwardProp:Jr})({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%"}),Sle=oe("legend",{shouldForwardProp:Jr})(({ownerState:e,theme:t})=>x({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&&x({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 Ple(e){const{className:t,label:n,notched:r}=e,o=le(e,Cle),s=n!=null&&n!=="",i=x({},e,{notched:r,withLabel:s});return D.jsx(xle,x({"aria-hidden":!0,className:t,ownerState:i},o,{children:D.jsx(Sle,{ownerState:i,children:s?D.jsx("span",{children:n}):TR||(TR=D.jsx("span",{className:"notranslate",children:"​"}))})}))}const kle=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Ele=e=>{const{classes:t}=e,r=Te({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Fte,t);return x({},t,r)},Ile=oe(Tb,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Mb})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return x({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${xi.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${xi.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${xi.focused} .${xi.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${xi.error} .${xi.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${xi.disabled} .${xi.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&x({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Mle=oe(Ple,{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}}),_le=oe($b,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:_b})(({theme:e,ownerState:t})=>x({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})),c4=c.forwardRef(function(t,n){var r,o,s,i,l;const a=je({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:f=!1,inputComponent:p="input",label:m,multiline:v=!1,notched:y,slots:g={},type:C="text"}=a,b=le(a,kle),w=Ele(a),S=Il(),k=Vc({props:a,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),M=x({},a,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:S,fullWidth:f,hiddenLabel:k.hiddenLabel,multiline:v,size:k.size,type:C}),E=(r=(o=g.root)!=null?o:u.Root)!=null?r:Ile,I=(s=(i=g.input)!=null?i:u.Input)!=null?s:_le;return D.jsx(Gd,x({slots:{root:E,input:I},renderSuffix:R=>D.jsx(Mle,{ownerState:M,className:w.notchedOutline,label:m!=null&&m!==""&&k.required?l||(l=D.jsxs(c.Fragment,{children:[m," ","*"]})):m,notched:typeof y!="undefined"?y:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:f,inputComponent:p,multiline:v,ref:n,type:C},b,{classes:x({},w,{notchedOutline:null})}))});c4.muiName="Input";const u4=c4,$R=bt(D.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),RR=bt(D.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function Tle(e){return Ke("MuiSelect",e)}const $le=We("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Uf=$le;var OR;const Rle=["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"],Ole=oe("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Uf.select}`]:t.select},{[`&.${Uf.select}`]:t[n.variant]},{[`&.${Uf.error}`]:t.error},{[`&.${Uf.multiple}`]:t.multiple}]}})(l4,{[`&.${Uf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Dle=oe("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Pe(n.variant)}`],n.open&&t.iconOpen]}})(a4),Ale=oe("input",{shouldForwardProp:e=>GX(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 DR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Lle(e){return e==null||typeof e=="string"&&!e.trim()}const Fle=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:i}=e,l={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Pe(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Te(l,Tle,t)},Nle=c.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":s,autoFocus:i,autoWidth:l,children:a,className:u,defaultOpen:f,defaultValue:p,disabled:m,displayEmpty:v,error:y=!1,IconComponent:g,inputRef:C,labelId:b,MenuProps:w={},multiple:S,name:k,onBlur:M,onChange:E,onClose:I,onFocus:R,onOpen:A,open:$,readOnly:L,renderValue:V,SelectDisplayProps:j={},tabIndex:_,value:T,variant:F="standard"}=t,B=le(t,Rle),[O,N]=Qr({controlled:T,default:p,name:"Select"}),[H,K]=Qr({controlled:$,default:f,name:"Select"}),Q=c.useRef(null),J=c.useRef(null),[Y,X]=c.useState(null),{current:ee}=c.useRef($!=null),[se,Z]=c.useState(),he=Et(n,C),ne=c.useCallback(Xe=>{J.current=Xe,Xe&&X(Xe)},[]),re=Y==null?void 0:Y.parentNode;c.useImperativeHandle(he,()=>({focus:()=>{J.current.focus()},node:Q.current,value:O}),[O]),c.useEffect(()=>{f&&H&&Y&&!ee&&(Z(l?null:re.clientWidth),J.current.focus())},[Y,l]),c.useEffect(()=>{i&&J.current.focus()},[i]),c.useEffect(()=>{if(!b)return;const Xe=fn(J.current).getElementById(b);if(Xe){const Oe=()=>{getSelection().isCollapsed&&J.current.focus()};return Xe.addEventListener("click",Oe),()=>{Xe.removeEventListener("click",Oe)}}},[b]);const me=(Xe,Oe)=>{Xe?A&&A(Oe):I&&I(Oe),ee||(Z(l?null:re.clientWidth),K(Xe))},ce=Xe=>{Xe.button===0&&(Xe.preventDefault(),J.current.focus(),me(!0,Xe))},Se=Xe=>{me(!1,Xe)},Ee=c.Children.toArray(a),ae=Xe=>{const Oe=Ee.find(qe=>qe.props.value===Xe.target.value);Oe!==void 0&&(N(Oe.props.value),E&&E(Xe,Oe))},Ie=Xe=>Oe=>{let qe;if(Oe.currentTarget.hasAttribute("tabindex")){if(S){qe=Array.isArray(O)?O.slice():[];const mt=O.indexOf(Xe.props.value);mt===-1?qe.push(Xe.props.value):qe.splice(mt,1)}else qe=Xe.props.value;if(Xe.props.onClick&&Xe.props.onClick(Oe),O!==qe&&(N(qe),E)){const mt=Oe.nativeEvent||Oe,vt=new mt.constructor(mt.type,mt);Object.defineProperty(vt,"target",{writable:!0,value:{value:qe,name:k}}),E(vt,Xe)}S||me(!1,Oe)}},ye=Xe=>{L||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Xe.key)!==-1&&(Xe.preventDefault(),me(!0,Xe))},Me=Y!==null&&H,pe=Xe=>{!Me&&M&&(Object.defineProperty(Xe,"target",{writable:!0,value:{value:O,name:k}}),M(Xe))};delete B["aria-invalid"];let fe,de;const be=[];let _e=!1;(zv({value:O})||v)&&(V?fe=V(O):_e=!0);const Ne=Ee.map(Xe=>{if(!c.isValidElement(Xe))return null;let Oe;if(S){if(!Array.isArray(O))throw new Error(ka(2));Oe=O.some(qe=>DR(qe,Xe.props.value)),Oe&&_e&&be.push(Xe.props.children)}else Oe=DR(O,Xe.props.value),Oe&&_e&&(de=Xe.props.children);return c.cloneElement(Xe,{"aria-selected":Oe?"true":"false",onClick:Ie(Xe),onKeyUp:qe=>{qe.key===" "&&qe.preventDefault(),Xe.props.onKeyUp&&Xe.props.onKeyUp(qe)},role:"option",selected:Oe,value:void 0,"data-value":Xe.props.value})});_e&&(S?be.length===0?fe=null:fe=be.reduce((Xe,Oe,qe)=>(Xe.push(Oe),qe<be.length-1&&Xe.push(", "),Xe),[]):fe=de);let Ge=se;!l&&ee&&Y&&(Ge=re.clientWidth);let Ve;typeof _!="undefined"?Ve=_:Ve=m?null:0;const Ue=j.id||(k?`mui-component-select-${k}`:void 0),Le=x({},t,{variant:F,value:O,open:Me,error:y}),ht=Fle(Le),Zt=x({},w.PaperProps,(r=w.slotProps)==null?void 0:r.paper),Pt=Kt(),wt=Kt();return D.jsxs(c.Fragment,{children:[D.jsx(Ole,x({ref:ne,tabIndex:Ve,role:"combobox","aria-controls":Pt,"aria-disabled":m?"true":void 0,"aria-expanded":Me?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[b,Ue].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:ye,onMouseDown:m||L?null:ce,onBlur:pe,onFocus:R},j,{ownerState:Le,className:Ce(j.className,ht.select,u),id:Ue,children:Lle(fe)?OR||(OR=D.jsx("span",{className:"notranslate",children:"​"})):fe})),D.jsx(Ale,x({"aria-invalid":y,value:Array.isArray(O)?O.join(","):O,name:k!=null?k:wt,ref:Q,"aria-hidden":!0,onChange:ae,tabIndex:-1,disabled:m,className:ht.nativeInput,autoFocus:i,ownerState:Le},B)),D.jsx(Dle,{as:g,className:ht.icon,ownerState:Le}),D.jsx(i4,x({id:`menu-${k||""}`,anchorEl:re,open:Me,onClose:Se,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},w,{MenuListProps:x({"aria-labelledby":b,role:"listbox","aria-multiselectable":S?"true":void 0,disableListWrap:!0,id:Pt},w.MenuListProps),slotProps:x({},w.slotProps,{paper:x({},Zt,{style:x({minWidth:Ge},Zt!=null?Zt.style:null)})}),children:Ne}))]})}),Ble=Nle,zle=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Vle=["root"],jle=e=>{const{classes:t}=e;return t},hk={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Jr(e)&&e!=="variant",slot:"Root"},Hle=oe(e4,hk)(""),Ule=oe(u4,hk)(""),Wle=oe(GN,hk)(""),d4=c.forwardRef(function(t,n){const r=je({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:i={},className:l,defaultOpen:a=!1,displayEmpty:u=!1,IconComponent:f=ON,id:p,input:m,inputProps:v,label:y,labelId:g,MenuProps:C,multiple:b=!1,native:w=!1,onClose:S,onOpen:k,open:M,renderValue:E,SelectDisplayProps:I,variant:R="outlined"}=r,A=le(r,zle),$=w?wle:Ble,L=Il(),V=Vc({props:r,muiFormControl:L,states:["variant","error"]}),j=V.variant||R,_=x({},r,{variant:j,classes:i}),T=jle(_),F=le(T,Vle),B=m||{standard:D.jsx(Hle,{ownerState:_}),outlined:D.jsx(Ule,{label:y,ownerState:_}),filled:D.jsx(Wle,{ownerState:_})}[j],O=Et(n,B.ref);return D.jsx(c.Fragment,{children:c.cloneElement(B,x({inputComponent:$,inputProps:x({children:s,error:V.error,IconComponent:f,variant:j,type:void 0,multiple:b},w?{id:p}:{autoWidth:o,defaultOpen:a,displayEmpty:u,labelId:g,MenuProps:C,onClose:S,onOpen:k,open:M,renderValue:E,SelectDisplayProps:x({id:p},I)},v,{classes:v?Yr(F,v.classes):F},m?m.props.inputProps:{})},b&&w&&j==="outlined"?{notched:!0}:{},{ref:O,className:Ce(B.props.className,l,T.root)},!m&&{variant:j},A))})});d4.muiName="Select";const mk=d4;function Gle(e){return Ke("MuiSkeleton",e)}We("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Kle=["animation","className","component","height","style","variant","width"];let Hv=e=>e,AR,LR,FR,NR;const qle=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:s,height:i}=e;return Te({root:["root",n,r,o&&"withChildren",o&&!s&&"fitContent",o&&!i&&"heightAuto"]},Gle,t)},Yle=Hi(AR||(AR=Hv`
243
+ 0% {
244
+ opacity: 1;
245
+ }
246
+
247
+ 50% {
248
+ opacity: 0.4;
249
+ }
250
+
251
+ 100% {
252
+ opacity: 1;
253
+ }
254
+ `)),Qle=Hi(LR||(LR=Hv`
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
+ `)),Xle=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=HX(e.shape.borderRadius)||"px",r=UX(e.shape.borderRadius);return x({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:lt(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"&&Ea(FR||(FR=Hv`
268
+ animation: ${0} 2s ease-in-out 0.5s infinite;
269
+ `),Yle),({ownerState:e,theme:t})=>e.animation==="wave"&&Ea(NR||(NR=Hv`
270
+ position: relative;
271
+ overflow: hidden;
272
+
273
+ /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
274
+ -webkit-mask-image: -webkit-radial-gradient(white, black);
275
+
276
+ &::after {
277
+ animation: ${0} 2s linear 0.5s infinite;
278
+ background: linear-gradient(
279
+ 90deg,
280
+ transparent,
281
+ ${0},
282
+ transparent
283
+ );
284
+ content: '';
285
+ position: absolute;
286
+ transform: translateX(-100%); /* Avoid flash during server-side hydration */
287
+ bottom: 0;
288
+ left: 0;
289
+ right: 0;
290
+ top: 0;
291
+ }
292
+ `),Qle,(t.vars||t).palette.action.hover)),Zle=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:s,component:i="span",height:l,style:a,variant:u="text",width:f}=r,p=le(r,Kle),m=x({},r,{animation:o,component:i,variant:u,hasChildren:!!p.children}),v=qle(m);return D.jsx(Xle,x({as:i,ref:n,className:Ce(v.root,s),ownerState:m},p,{style:x({width:f,height:l},a)}))}),Jle=Zle;function eae(e){return Ke("MuiTooltip",e)}const tae=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),la=tae,nae=["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 rae(e){return Math.round(e*1e5)/1e5}const oae=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:s}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Pe(s.split("-")[0])}`],arrow:["arrow"]};return Te(i,eae,t)},sae=oe(Fa,{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})=>x({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${la.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${la.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${la.arrow}`]:x({},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"] .${la.arrow}`]:x({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),iae=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${Pe(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>x({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:lt(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:`${rae(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${la.popper}[data-popper-placement*="left"] &`]:x({transformOrigin:"right center"},t.isRtl?x({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):x({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${la.popper}[data-popper-placement*="right"] &`]:x({transformOrigin:"left center"},t.isRtl?x({marginRight:"14px"},t.touch&&{marginRight:"24px"}):x({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${la.popper}[data-popper-placement*="top"] &`]:x({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${la.popper}[data-popper-placement*="bottom"] &`]:x({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),lae=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:lt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let hg=!1,Nw=null,Wf={x:0,y:0};function mg(e,t){return n=>{t&&t(n),e(n)}}const aae=c.forwardRef(function(t,n){var r,o,s,i,l,a,u,f,p,m,v,y,g,C,b,w,S,k,M;const E=je({props:t,name:"MuiTooltip"}),{arrow:I=!1,children:R,components:A={},componentsProps:$={},describeChild:L=!1,disableFocusListener:V=!1,disableHoverListener:j=!1,disableInteractive:_=!1,disableTouchListener:T=!1,enterDelay:F=100,enterNextDelay:B=0,enterTouchDelay:O=700,followCursor:N=!1,id:H,leaveDelay:K=0,leaveTouchDelay:Q=1500,onClose:J,onOpen:Y,open:X,placement:ee="bottom",PopperComponent:se,PopperProps:Z={},slotProps:he={},slots:ne={},title:re,TransitionComponent:me=ah,TransitionProps:ce}=E,Se=le(E,nae),Ee=c.isValidElement(R)?R:D.jsx("span",{children:R}),ae=yn(),Ie=ae.direction==="rtl",[ye,Me]=c.useState(),[pe,fe]=c.useState(null),de=c.useRef(!1),be=_||N,_e=c.useRef(),Ne=c.useRef(),Ge=c.useRef(),Ve=c.useRef(),[Ue,Le]=Qr({controlled:X,default:!1,name:"Tooltip",state:"open"});let ht=Ue;const Zt=Kt(H),Pt=c.useRef(),wt=c.useCallback(()=>{Pt.current!==void 0&&(document.body.style.WebkitUserSelect=Pt.current,Pt.current=void 0),clearTimeout(Ve.current)},[]);c.useEffect(()=>()=>{clearTimeout(_e.current),clearTimeout(Ne.current),clearTimeout(Ge.current),wt()},[wt]);const Xe=St=>{clearTimeout(Nw),hg=!0,Le(!0),Y&&!ht&&Y(St)},Oe=Ye(St=>{clearTimeout(Nw),Nw=setTimeout(()=>{hg=!1},800+K),Le(!1),J&&ht&&J(St),clearTimeout(_e.current),_e.current=setTimeout(()=>{de.current=!1},ae.transitions.duration.shortest)}),qe=St=>{de.current&&St.type!=="touchstart"||(ye&&ye.removeAttribute("title"),clearTimeout(Ne.current),clearTimeout(Ge.current),F||hg&&B?Ne.current=setTimeout(()=>{Xe(St)},hg?B:F):Xe(St))},mt=St=>{clearTimeout(Ne.current),clearTimeout(Ge.current),Ge.current=setTimeout(()=>{Oe(St)},K)},{isFocusVisibleRef:vt,onBlur:Tt,onFocus:Yt,ref:Qt}=Yy(),[,Pn]=c.useState(!1),bn=St=>{Tt(St),vt.current===!1&&(Pn(!1),mt(St))},gt=St=>{ye||Me(St.currentTarget),Yt(St),vt.current===!0&&(Pn(!0),qe(St))},Rt=St=>{de.current=!0;const Xn=Ee.props;Xn.onTouchStart&&Xn.onTouchStart(St)},vr=qe,ir=mt,Tl=St=>{Rt(St),clearTimeout(Ge.current),clearTimeout(_e.current),wt(),Pt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ve.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Pt.current,qe(St)},O)},as=St=>{Ee.props.onTouchEnd&&Ee.props.onTouchEnd(St),wt(),clearTimeout(Ge.current),Ge.current=setTimeout(()=>{Oe(St)},Q)};c.useEffect(()=>{if(!ht)return;function St(Xn){(Xn.key==="Escape"||Xn.key==="Esc")&&Oe(Xn)}return document.addEventListener("keydown",St),()=>{document.removeEventListener("keydown",St)}},[Oe,ht]);const Tn=Et(Ee.ref,Qt,Me,n);!re&&re!==0&&(ht=!1);const an=c.useRef(),yr=St=>{const Xn=Ee.props;Xn.onMouseMove&&Xn.onMouseMove(St),Wf={x:St.clientX,y:St.clientY},an.current&&an.current.update()},ho={},cs=typeof re=="string";L?(ho.title=!ht&&cs&&!j?re:null,ho["aria-describedby"]=ht?Zt:null):(ho["aria-label"]=cs?re:null,ho["aria-labelledby"]=ht&&!cs?Zt:null);const lr=x({},ho,Se,Ee.props,{className:Ce(Se.className,Ee.props.className),onTouchStart:Rt,ref:Tn},N?{onMouseMove:yr}:{}),Oo={};T||(lr.onTouchStart=Tl,lr.onTouchEnd=as),j||(lr.onMouseOver=mg(vr,lr.onMouseOver),lr.onMouseLeave=mg(ir,lr.onMouseLeave),be||(Oo.onMouseOver=vr,Oo.onMouseLeave=ir)),V||(lr.onFocus=mg(gt,lr.onFocus),lr.onBlur=mg(bn,lr.onBlur),be||(Oo.onFocus=gt,Oo.onBlur=bn));const hi=c.useMemo(()=>{var St;let Xn=[{name:"arrow",enabled:!!pe,options:{element:pe,padding:4}}];return(St=Z.popperOptions)!=null&&St.modifiers&&(Xn=Xn.concat(Z.popperOptions.modifiers)),x({},Z.popperOptions,{modifiers:Xn})},[pe,Z]),Mr=x({},E,{isRtl:Ie,arrow:I,disableInteractive:be,placement:ee,PopperComponentProp:se,touch:de.current}),Nr=oae(Mr),js=(r=(o=ne.popper)!=null?o:A.Popper)!=null?r:sae,$e=(s=(i=(l=ne.transition)!=null?l:A.Transition)!=null?i:me)!=null?s:ah,we=(a=(u=ne.tooltip)!=null?u:A.Tooltip)!=null?a:iae,Qe=(f=(p=ne.arrow)!=null?p:A.Arrow)!=null?f:lae,ft=op(js,x({},Z,(m=he.popper)!=null?m:$.popper,{className:Ce(Nr.popper,Z==null?void 0:Z.className,(v=(y=he.popper)!=null?y:$.popper)==null?void 0:v.className)}),Mr),Wt=op($e,x({},ce,(g=he.transition)!=null?g:$.transition),Mr),$n=op(we,x({},(C=he.tooltip)!=null?C:$.tooltip,{className:Ce(Nr.tooltip,(b=(w=he.tooltip)!=null?w:$.tooltip)==null?void 0:b.className)}),Mr),Fn=op(Qe,x({},(S=he.arrow)!=null?S:$.arrow,{className:Ce(Nr.arrow,(k=(M=he.arrow)!=null?M:$.arrow)==null?void 0:k.className)}),Mr);return D.jsxs(c.Fragment,{children:[c.cloneElement(Ee,lr),D.jsx(js,x({as:se!=null?se:Fa,placement:ee,anchorEl:N?{getBoundingClientRect:()=>({top:Wf.y,left:Wf.x,right:Wf.x,bottom:Wf.y,width:0,height:0})}:ye,popperRef:an,open:ye?ht:!1,id:Zt,transition:!0},Oo,ft,{popperOptions:hi,children:({TransitionProps:St})=>D.jsx($e,x({timeout:ae.transitions.duration.shorter},St,Wt,{children:D.jsxs(we,x({},$n,{children:[re,I?D.jsx(Qe,x({},Fn,{ref:fe})):null]}))}))}))]})}),Ml=aae;function cae(e){return Ke("MuiSwitch",e)}const uae=We("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Ur=uae,dae=["className","color","edge","size","sx"],fae=e=>{const{classes:t,edge:n,size:r,color:o,checked:s,disabled:i}=e,l={root:["root",n&&`edge${Pe(n)}`,`size${Pe(r)}`],switchBase:["switchBase",`color${Pe(o)}`,s&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},a=Te(l,cae,t);return x({},t,a)},pae=oe("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Pe(n.edge)}`],t[`size${Pe(n.size)}`]]}})(({ownerState:e})=>x({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,[`& .${Ur.thumb}`]:{width:16,height:16},[`& .${Ur.switchBase}`]:{padding:4,[`&.${Ur.checked}`]:{transform:"translateX(16px)"}}})),hae=oe(FN,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Ur.input}`]:t.input},n.color!=="default"&&t[`color${Pe(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}),[`&.${Ur.checked}`]:{transform:"translateX(20px)"},[`&.${Ur.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Ur.checked} + .${Ur.track}`]:{opacity:.5},[`&.${Ur.disabled} + .${Ur.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Ur.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>x({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Ur.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})`:lt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ur.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Tc(e.palette[t.color].main,.62):_c(e.palette[t.color].main,.55)}`}},[`&.${Ur.checked} + .${Ur.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),mae=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}`})),gae=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%"})),vae=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiSwitch"}),{className:o,color:s="primary",edge:i=!1,size:l="medium",sx:a}=r,u=le(r,dae),f=x({},r,{color:s,edge:i,size:l}),p=fae(f),m=D.jsx(gae,{className:p.thumb,ownerState:f});return D.jsxs(pae,{className:Ce(p.root,o),sx:a,ownerState:f,children:[D.jsx(hae,x({type:"checkbox",icon:m,checkedIcon:m,ref:n,ownerState:f},u,{classes:x({},p,{root:p.switchBase})})),D.jsx(mae,{className:p.track,ownerState:f})]})}),f4=vae;function yae(e){return Ke("MuiTab",e)}const bae=We("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Xa=bae,wae=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Cae=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:s,label:i,selected:l,disabled:a}=e,u={root:["root",s&&i&&"labelIcon",`textColor${Pe(n)}`,r&&"fullWidth",o&&"wrapped",l&&"selected",a&&"disabled"],iconWrapper:["iconWrapper"]};return Te(u,yae,t)},xae=oe(ui,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Pe(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>x({},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,[`& > .${Xa.iconWrapper}`]:x({},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,[`&.${Xa.selected}`]:{opacity:1},[`&.${Xa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Xa.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Xa.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Xa.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Xa.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)})),Sae=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTab"}),{className:o,disabled:s=!1,disableFocusRipple:i=!1,fullWidth:l,icon:a,iconPosition:u="top",indicator:f,label:p,onChange:m,onClick:v,onFocus:y,selected:g,selectionFollowsFocus:C,textColor:b="inherit",value:w,wrapped:S=!1}=r,k=le(r,wae),M=x({},r,{disabled:s,disableFocusRipple:i,selected:g,icon:!!a,iconPosition:u,label:!!p,fullWidth:l,textColor:b,wrapped:S}),E=Cae(M),I=a&&p&&c.isValidElement(a)?c.cloneElement(a,{className:Ce(E.iconWrapper,a.props.className)}):a,R=$=>{!g&&m&&m($,w),v&&v($)},A=$=>{C&&!g&&m&&m($,w),y&&y($)};return D.jsxs(xae,x({focusRipple:!i,className:Ce(E.root,o),ref:n,role:"tab","aria-selected":g,disabled:s,onClick:R,onFocus:A,ownerState:M,tabIndex:g?0:-1},k,{children:[u==="top"||u==="start"?D.jsxs(c.Fragment,{children:[I,p]}):D.jsxs(c.Fragment,{children:[p,I]}),f]}))}),Uv=Sae,Pae=c.createContext(),kae=Pae,Eae=c.createContext(),Iae=Eae;function Mae(e){return Ke("MuiTableCell",e)}const _ae=We("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Tae=_ae,$ae=["align","className","component","padding","scope","size","sortDirection","variant"],Rae=e=>{const{classes:t,variant:n,align:r,padding:o,size:s,stickyHeader:i}=e,l={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${Pe(r)}`,o!=="normal"&&`padding${Pe(o)}`,`size${Pe(s)}`]};return Te(l,Mae,t)},Oae=oe("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Pe(n.size)}`],n.padding!=="normal"&&t[`padding${Pe(n.padding)}`],n.align!=="inherit"&&t[`align${Pe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>x({},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"?Tc(lt(e.palette.divider,1),.88):_c(lt(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",[`&.${Tae.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})),Dae=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTableCell"}),{align:o="inherit",className:s,component:i,padding:l,scope:a,size:u,sortDirection:f,variant:p}=r,m=le(r,$ae),v=c.useContext(kae),y=c.useContext(Iae),g=y&&y.variant==="head";let C;i?C=i:C=g?"th":"td";let b=a;C==="td"?b=void 0:!b&&g&&(b="col");const w=p||y&&y.variant,S=x({},r,{align:o,component:C,padding:l||(v&&v.padding?v.padding:"normal"),size:u||(v&&v.size?v.size:"medium"),sortDirection:f,stickyHeader:w==="head"&&v&&v.stickyHeader,variant:w}),k=Rae(S);let M=null;return f&&(M=f==="asc"?"ascending":"descending"),D.jsx(Oae,x({as:C,ref:n,className:Ce(k.root,s),"aria-sort":M,scope:b,ownerState:S},m))}),Lx=Dae;function Aae(e){return Ke("MuiToolbar",e)}We("MuiToolbar",["root","gutters","regular","dense"]);const Lae=["className","component","disableGutters","variant"],Fae=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Te({root:["root",!n&&"gutters",r]},Aae,t)},Nae=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})=>x({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),Bae=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiToolbar"}),{className:o,component:s="div",disableGutters:i=!1,variant:l="regular"}=r,a=le(r,Lae),u=x({},r,{component:s,disableGutters:i,variant:l}),f=Fae(u);return D.jsx(Nae,x({as:s,className:Ce(f.root,o),ref:n,ownerState:u},a))}),p4=Bae,Fx=bt(D.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Nx=bt(D.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var BR,zR,VR,jR,HR,UR,WR,GR;const zae=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slotProps"],Vae=c.forwardRef(function(t,n){var r,o,s,i;const{backIconButtonProps:l,count:a,disabled:u=!1,getItemAriaLabel:f,nextIconButtonProps:p,onPageChange:m,page:v,rowsPerPage:y,showFirstButton:g,showLastButton:C,slotProps:b}=t,w=le(t,zae),S=yn(),k=R=>{m(R,0)},M=R=>{m(R,v-1)},E=R=>{m(R,v+1)},I=R=>{m(R,Math.max(0,Math.ceil(a/y)-1))};return D.jsxs("div",x({ref:n},w,{children:[g&&D.jsx(hr,x({onClick:k,disabled:u||v===0,"aria-label":f("first",v),title:f("first",v)},(r=b==null?void 0:b.firstButton)!=null?r:{},{children:S.direction==="rtl"?BR||(BR=D.jsx(RR,{})):zR||(zR=D.jsx($R,{}))})),D.jsx(hr,x({onClick:M,disabled:u||v===0,color:"inherit","aria-label":f("previous",v),title:f("previous",v)},(o=b==null?void 0:b.previousButton)!=null?o:l,{children:S.direction==="rtl"?VR||(VR=D.jsx(Nx,{})):jR||(jR=D.jsx(Fx,{}))})),D.jsx(hr,x({onClick:E,disabled:u||(a!==-1?v>=Math.ceil(a/y)-1:!1),color:"inherit","aria-label":f("next",v),title:f("next",v)},(s=b==null?void 0:b.nextButton)!=null?s:p,{children:S.direction==="rtl"?HR||(HR=D.jsx(Fx,{})):UR||(UR=D.jsx(Nx,{}))})),C&&D.jsx(hr,x({onClick:I,disabled:u||v>=Math.ceil(a/y)-1,"aria-label":f("last",v),title:f("last",v)},(i=b==null?void 0:b.lastButton)!=null?i:{},{children:S.direction==="rtl"?WR||(WR=D.jsx($R,{})):GR||(GR=D.jsx(RR,{}))}))]}))}),jae=Vae;function Hae(e){return Ke("MuiTablePagination",e)}const Uae=We("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),mc=Uae;var KR;const Wae=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps"],Gae=oe(Lx,{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}})),Kae=oe(p4,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>x({[`& .${mc.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},[`& .${mc.actions}`]:{flexShrink:0,marginLeft:20}})),qae=oe("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Yae=oe("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>x({},e.typography.body2,{flexShrink:0})),Qae=oe(mk,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>x({[`& .${mc.selectIcon}`]:t.selectIcon,[`& .${mc.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${mc.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Xae=oe(Pr,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Zae=oe("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>x({},e.typography.body2,{flexShrink:0}));function Jae({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function ece(e){return`Go to ${e} page`}const tce=e=>{const{classes:t}=e;return Te({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Hae,t)},nce=c.forwardRef(function(t,n){var r;const o=je({props:t,name:"MuiTablePagination"}),{ActionsComponent:s=jae,backIconButtonProps:i,className:l,colSpan:a,component:u=Lx,count:f,disabled:p=!1,getItemAriaLabel:m=ece,labelDisplayedRows:v=Jae,labelRowsPerPage:y="Rows per page:",nextIconButtonProps:g,onPageChange:C,onRowsPerPageChange:b,page:w,rowsPerPage:S,rowsPerPageOptions:k=[10,25,50,100],SelectProps:M={},showFirstButton:E=!1,showLastButton:I=!1,slotProps:R}=o,A=le(o,Wae),$=o,L=tce($),V=(r=R==null?void 0:R.select)!=null?r:M,j=V.native?"option":Xae;let _;(u===Lx||u==="td")&&(_=a||1e3);const T=Kt(V.id),F=Kt(V.labelId),B=()=>f===-1?(w+1)*S:S===-1?f:Math.min(f,(w+1)*S);return D.jsx(Gae,x({colSpan:_,ref:n,as:u,ownerState:$,className:Ce(L.root,l)},A,{children:D.jsxs(Kae,{className:L.toolbar,children:[D.jsx(qae,{className:L.spacer}),k.length>1&&D.jsx(Yae,{className:L.selectLabel,id:F,children:y}),k.length>1&&D.jsx(Qae,x({variant:"standard"},!V.variant&&{input:KR||(KR=D.jsx(Gd,{}))},{value:S,onChange:b,id:T,labelId:F},V,{classes:x({},V.classes,{root:Ce(L.input,L.selectRoot,(V.classes||{}).root),select:Ce(L.select,(V.classes||{}).select),icon:Ce(L.selectIcon,(V.classes||{}).icon)}),disabled:p,children:k.map(O=>c.createElement(j,x({},!$c(j)&&{ownerState:$},{className:L.menuItem,key:O.label?O.label:O,value:O.value?O.value:O}),O.label?O.label:O))})),D.jsx(Zae,{className:L.displayedRows,children:v({from:f===0?0:w*S+1,to:B(),count:f===-1?-1:f,page:w})}),D.jsx(s,{className:L.actions,backIconButtonProps:i,count:f,nextIconButtonProps:g,onPageChange:C,page:w,rowsPerPage:S,showFirstButton:E,showLastButton:I,slotProps:R==null?void 0:R.actions,getItemAriaLabel:m,disabled:p})]})}))}),rce=nce;function oce(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function sce(e,t,n,r={},o=()=>{}){const{ease:s=oce,duration:i=300}=r;let l=null;const a=t[e];let u=!1;const f=()=>{u=!0},p=m=>{if(u){o(new Error("Animation cancelled"));return}l===null&&(l=m);const v=Math.min(1,(m-l)/i);if(t[e]=s(v)*(n-a)+a,v>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(p)};return a===n?(o(new Error("Element already at target position")),f):(requestAnimationFrame(p),f)}const ice=["onChange"],lce={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function ace(e){const{onChange:t}=e,n=le(e,ice),r=c.useRef(),o=c.useRef(null),s=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Nt(()=>{const i=Aa(()=>{const a=r.current;s(),a!==r.current&&t(r.current)}),l=Jo(o.current);return l.addEventListener("resize",i),()=>{i.clear(),l.removeEventListener("resize",i)}},[t]),c.useEffect(()=>{s(),t(r.current)},[t]),D.jsx("div",x({style:lce,ref:o},n))}function cce(e){return Ke("MuiTabScrollButton",e)}const uce=We("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),dce=uce,fce=["className","slots","slotProps","direction","orientation","disabled"],pce=e=>{const{classes:t,orientation:n,disabled:r}=e;return Te({root:["root",n,r&&"disabled"]},cce,t)},hce=oe(ui,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>x({width:40,flexShrink:0,opacity:.8,[`&.${dce.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),mce=c.forwardRef(function(t,n){var r,o;const s=je({props:t,name:"MuiTabScrollButton"}),{className:i,slots:l={},slotProps:a={},direction:u}=s,f=le(s,fce),m=yn().direction==="rtl",v=x({isRtl:m},s),y=pce(v),g=(r=l.StartScrollButtonIcon)!=null?r:Fx,C=(o=l.EndScrollButtonIcon)!=null?o:Nx,b=qt({elementType:g,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),w=qt({elementType:C,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return D.jsx(hce,x({component:"div",className:Ce(y.root,i),ref:n,role:null,ownerState:v,tabIndex:null},f,{children:u==="left"?D.jsx(g,x({},b)):D.jsx(C,x({},w))}))}),gce=mce;function vce(e){return Ke("MuiTabs",e)}const yce=We("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),qg=yce,bce=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],qR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,YR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,gg=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const s=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||s)o=n(e,o);else{o.focus();return}}},wce=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:s,centered:i,scrollButtonsHideMobile:l,classes:a}=e;return Te({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",s&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},vce,a)},Cce=oe("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${qg.scrollButtons}`]:t.scrollButtons},{[`& .${qg.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>x({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${qg.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),xce=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})=>x({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"})),Sce=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})=>x({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Pce=oe("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>x({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})),kce=oe(ace)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),QR={},Ece=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTabs"}),o=yn(),s=o.direction==="rtl",{"aria-label":i,"aria-labelledby":l,action:a,centered:u=!1,children:f,className:p,component:m="div",allowScrollButtonsMobile:v=!1,indicatorColor:y="primary",onChange:g,orientation:C="horizontal",ScrollButtonComponent:b=gce,scrollButtons:w="auto",selectionFollowsFocus:S,slots:k={},slotProps:M={},TabIndicatorProps:E={},TabScrollButtonProps:I={},textColor:R="primary",value:A,variant:$="standard",visibleScrollbar:L=!1}=r,V=le(r,bce),j=$==="scrollable",_=C==="vertical",T=_?"scrollTop":"scrollLeft",F=_?"top":"left",B=_?"bottom":"right",O=_?"clientHeight":"clientWidth",N=_?"height":"width",H=x({},r,{component:m,allowScrollButtonsMobile:v,indicatorColor:y,orientation:C,vertical:_,scrollButtons:w,textColor:R,variant:$,visibleScrollbar:L,fixed:!j,hideScrollbar:j&&!L,scrollableX:j&&!_,scrollableY:j&&_,centered:u&&!j,scrollButtonsHideMobile:!v}),K=wce(H),Q=qt({elementType:k.StartScrollButtonIcon,externalSlotProps:M.startScrollButtonIcon,ownerState:H}),J=qt({elementType:k.EndScrollButtonIcon,externalSlotProps:M.endScrollButtonIcon,ownerState:H}),[Y,X]=c.useState(!1),[ee,se]=c.useState(QR),[Z,he]=c.useState(!1),[ne,re]=c.useState(!1),[me,ce]=c.useState(!1),[Se,Ee]=c.useState({overflow:"hidden",scrollbarWidth:0}),ae=new Map,Ie=c.useRef(null),ye=c.useRef(null),Me=()=>{const Oe=Ie.current;let qe;if(Oe){const vt=Oe.getBoundingClientRect();qe={clientWidth:Oe.clientWidth,scrollLeft:Oe.scrollLeft,scrollTop:Oe.scrollTop,scrollLeftNormalized:Dq(Oe,o.direction),scrollWidth:Oe.scrollWidth,top:vt.top,bottom:vt.bottom,left:vt.left,right:vt.right}}let mt;if(Oe&&A!==!1){const vt=ye.current.children;if(vt.length>0){const Tt=vt[ae.get(A)];mt=Tt?Tt.getBoundingClientRect():null}}return{tabsMeta:qe,tabMeta:mt}},pe=Ye(()=>{const{tabsMeta:Oe,tabMeta:qe}=Me();let mt=0,vt;if(_)vt="top",qe&&Oe&&(mt=qe.top-Oe.top+Oe.scrollTop);else if(vt=s?"right":"left",qe&&Oe){const Yt=s?Oe.scrollLeftNormalized+Oe.clientWidth-Oe.scrollWidth:Oe.scrollLeft;mt=(s?-1:1)*(qe[vt]-Oe[vt]+Yt)}const Tt={[vt]:mt,[N]:qe?qe[N]:0};if(isNaN(ee[vt])||isNaN(ee[N]))se(Tt);else{const Yt=Math.abs(ee[vt]-Tt[vt]),Qt=Math.abs(ee[N]-Tt[N]);(Yt>=1||Qt>=1)&&se(Tt)}}),fe=(Oe,{animation:qe=!0}={})=>{qe?sce(T,Ie.current,Oe,{duration:o.transitions.duration.standard}):Ie.current[T]=Oe},de=Oe=>{let qe=Ie.current[T];_?qe+=Oe:(qe+=Oe*(s?-1:1),qe*=s&&FF()==="reverse"?-1:1),fe(qe)},be=()=>{const Oe=Ie.current[O];let qe=0;const mt=Array.from(ye.current.children);for(let vt=0;vt<mt.length;vt+=1){const Tt=mt[vt];if(qe+Tt[O]>Oe){vt===0&&(qe=Oe);break}qe+=Tt[O]}return qe},_e=()=>{de(-1*be())},Ne=()=>{de(be())},Ge=c.useCallback(Oe=>{Ee({overflow:null,scrollbarWidth:Oe})},[]),Ve=()=>{const Oe={};Oe.scrollbarSizeListener=j?D.jsx(kce,{onChange:Ge,className:Ce(K.scrollableX,K.hideScrollbar)}):null;const mt=j&&(w==="auto"&&(Z||ne)||w===!0);return Oe.scrollButtonStart=mt?D.jsx(b,x({slots:{StartScrollButtonIcon:k.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Q},orientation:C,direction:s?"right":"left",onClick:_e,disabled:!Z},I,{className:Ce(K.scrollButtons,I.className)})):null,Oe.scrollButtonEnd=mt?D.jsx(b,x({slots:{EndScrollButtonIcon:k.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:J},orientation:C,direction:s?"left":"right",onClick:Ne,disabled:!ne},I,{className:Ce(K.scrollButtons,I.className)})):null,Oe},Ue=Ye(Oe=>{const{tabsMeta:qe,tabMeta:mt}=Me();if(!(!mt||!qe)){if(mt[F]<qe[F]){const vt=qe[T]+(mt[F]-qe[F]);fe(vt,{animation:Oe})}else if(mt[B]>qe[B]){const vt=qe[T]+(mt[B]-qe[B]);fe(vt,{animation:Oe})}}}),Le=Ye(()=>{j&&w!==!1&&ce(!me)});c.useEffect(()=>{const Oe=Aa(()=>{Ie.current&&pe()});let qe;const mt=Yt=>{Yt.forEach(Qt=>{Qt.removedNodes.forEach(Pn=>{var bn;(bn=qe)==null||bn.unobserve(Pn)}),Qt.addedNodes.forEach(Pn=>{var bn;(bn=qe)==null||bn.observe(Pn)})}),Oe(),Le()},vt=Jo(Ie.current);vt.addEventListener("resize",Oe);let Tt;return typeof ResizeObserver!="undefined"&&(qe=new ResizeObserver(Oe),Array.from(ye.current.children).forEach(Yt=>{qe.observe(Yt)})),typeof MutationObserver!="undefined"&&(Tt=new MutationObserver(mt),Tt.observe(ye.current,{childList:!0})),()=>{var Yt,Qt;Oe.clear(),vt.removeEventListener("resize",Oe),(Yt=Tt)==null||Yt.disconnect(),(Qt=qe)==null||Qt.disconnect()}},[pe,Le]),c.useEffect(()=>{const Oe=Array.from(ye.current.children),qe=Oe.length;if(typeof IntersectionObserver!="undefined"&&qe>0&&j&&w!==!1){const mt=Oe[0],vt=Oe[qe-1],Tt={root:Ie.current,threshold:.99},Yt=gt=>{he(!gt[0].isIntersecting)},Qt=new IntersectionObserver(Yt,Tt);Qt.observe(mt);const Pn=gt=>{re(!gt[0].isIntersecting)},bn=new IntersectionObserver(Pn,Tt);return bn.observe(vt),()=>{Qt.disconnect(),bn.disconnect()}}},[j,w,me,f==null?void 0:f.length]),c.useEffect(()=>{X(!0)},[]),c.useEffect(()=>{pe()}),c.useEffect(()=>{Ue(QR!==ee)},[Ue,ee]),c.useImperativeHandle(a,()=>({updateIndicator:pe,updateScrollButtons:Le}),[pe,Le]);const ht=D.jsx(Pce,x({},E,{className:Ce(K.indicator,E.className),ownerState:H,style:x({},ee,E.style)}));let Zt=0;const Pt=c.Children.map(f,Oe=>{if(!c.isValidElement(Oe))return null;const qe=Oe.props.value===void 0?Zt:Oe.props.value;ae.set(qe,Zt);const mt=qe===A;return Zt+=1,c.cloneElement(Oe,x({fullWidth:$==="fullWidth",indicator:mt&&!Y&&ht,selected:mt,selectionFollowsFocus:S,onChange:g,textColor:R,value:qe},Zt===1&&A===!1&&!Oe.props.tabIndex?{tabIndex:0}:{}))}),wt=Oe=>{const qe=ye.current,mt=fn(qe).activeElement;if(mt.getAttribute("role")!=="tab")return;let Tt=C==="horizontal"?"ArrowLeft":"ArrowUp",Yt=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&s&&(Tt="ArrowRight",Yt="ArrowLeft"),Oe.key){case Tt:Oe.preventDefault(),gg(qe,mt,YR);break;case Yt:Oe.preventDefault(),gg(qe,mt,qR);break;case"Home":Oe.preventDefault(),gg(qe,null,qR);break;case"End":Oe.preventDefault(),gg(qe,null,YR);break}},Xe=Ve();return D.jsxs(Cce,x({className:Ce(K.root,p),ownerState:H,ref:n,as:m},V,{children:[Xe.scrollButtonStart,Xe.scrollbarSizeListener,D.jsxs(xce,{className:K.scroller,ownerState:H,style:{overflow:Se.overflow,[_?`margin${s?"Left":"Right"}`:"marginBottom"]:L?void 0:-Se.scrollbarWidth},ref:Ie,children:[D.jsx(Sce,{"aria-label":i,"aria-labelledby":l,"aria-orientation":C==="vertical"?"vertical":null,className:K.flexContainer,ownerState:H,onKeyDown:wt,ref:ye,role:"tablist",children:Pt}),Y&&ht]}),Xe.scrollButtonEnd]}))}),gk=Ece;function Ice(e){return Ke("MuiTextField",e)}We("MuiTextField",["root"]);const Mce=["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"],_ce={standard:e4,filled:GN,outlined:u4},Tce=e=>{const{classes:t}=e;return Te({root:["root"]},Ice,t)},$ce=oe(KN,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Rce=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:i,className:l,color:a="primary",defaultValue:u,disabled:f=!1,error:p=!1,FormHelperTextProps:m,fullWidth:v=!1,helperText:y,id:g,InputLabelProps:C,inputProps:b,InputProps:w,inputRef:S,label:k,maxRows:M,minRows:E,multiline:I=!1,name:R,onBlur:A,onChange:$,onFocus:L,placeholder:V,required:j=!1,rows:_,select:T=!1,SelectProps:F,type:B,value:O,variant:N="outlined"}=r,H=le(r,Mce),K=x({},r,{autoFocus:s,color:a,disabled:f,error:p,fullWidth:v,multiline:I,required:j,select:T,variant:N}),Q=Tce(K),J={};N==="outlined"&&(C&&typeof C.shrink!="undefined"&&(J.notched=C.shrink),J.label=k),T&&((!F||!F.native)&&(J.id=void 0),J["aria-describedby"]=void 0);const Y=Kt(g),X=y&&Y?`${Y}-helper-text`:void 0,ee=k&&Y?`${Y}-label`:void 0,se=_ce[N],Z=D.jsx(se,x({"aria-describedby":X,autoComplete:o,autoFocus:s,defaultValue:u,fullWidth:v,multiline:I,name:R,rows:_,maxRows:M,minRows:E,type:B,value:O,id:Y,inputRef:S,onBlur:A,onChange:$,onFocus:L,placeholder:V,inputProps:b},J,w));return D.jsxs($ce,x({className:Ce(Q.root,l),disabled:f,error:p,fullWidth:v,ref:n,required:j,color:a,variant:N,ownerState:K},H,{children:[k!=null&&k!==""&&D.jsx(t4,x({htmlFor:Y,id:ee},C,{children:k})),T?D.jsx(mk,x({"aria-describedby":X,id:Y,labelId:ee,value:O,input:Z},F,{children:i})):Z,y&&D.jsx(qd,x({id:X},m,{children:y}))]}))}),Na=Rce;var vk={},h4={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(h4);var et=h4.exports,Bw={};const Oce=cA(nZ);var XR;function tt(){return XR||(XR=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Oce}(Bw)),Bw}var Dce=et;Object.defineProperty(vk,"__esModule",{value:!0});var m4=vk.default=void 0,Ace=Dce(tt()),Lce=Ze(),Fce=(0,Ace.default)((0,Lce.jsx)("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree");m4=vk.default=Fce;var yk={},Nce=et;Object.defineProperty(yk,"__esModule",{value:!0});var g4=yk.default=void 0,Bce=Nce(tt()),zce=Ze(),Vce=(0,Bce.default)((0,zce.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");g4=yk.default=Vce;var bk={},jce=et;Object.defineProperty(bk,"__esModule",{value:!0});var v4=bk.default=void 0,Hce=jce(tt()),Uce=Ze(),Wce=(0,Hce.default)((0,Uce.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");v4=bk.default=Wce;var wk={},Gce=et;Object.defineProperty(wk,"__esModule",{value:!0});var Fb=wk.default=void 0,Kce=Gce(tt()),qce=Ze(),Yce=(0,Kce.default)((0,qce.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");Fb=wk.default=Yce;var Ck={},Qce=et;Object.defineProperty(Ck,"__esModule",{value:!0});var xk=Ck.default=void 0,Xce=Qce(tt()),Zce=Ze(),Jce=(0,Xce.default)((0,Zce.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");xk=Ck.default=Jce;var Sk={},eue=et;Object.defineProperty(Sk,"__esModule",{value:!0});var y4=Sk.default=void 0,tue=eue(tt()),ZR=Ze(),nue=(0,tue.default)([(0,ZR.jsx)("circle",{cx:"10",cy:"8",r:"4"},"0"),(0,ZR.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");y4=Sk.default=nue;var Pk={},rue=et;Object.defineProperty(Pk,"__esModule",{value:!0});var b4=Pk.default=void 0,oue=rue(tt()),sue=Ze(),iue=(0,oue.default)((0,sue.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");b4=Pk.default=iue;var kk={},lue=et;Object.defineProperty(kk,"__esModule",{value:!0});var Wv=kk.default=void 0,aue=lue(tt()),cue=Ze(),uue=(0,aue.default)((0,cue.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");Wv=kk.default=uue;var Ek={},due=et;Object.defineProperty(Ek,"__esModule",{value:!0});var Ik=Ek.default=void 0,fue=due(tt()),pue=Ze(),hue=(0,fue.default)((0,pue.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");Ik=Ek.default=hue;var Mk={},mue=et;Object.defineProperty(Mk,"__esModule",{value:!0});var w4=Mk.default=void 0,gue=mue(tt()),vue=Ze(),yue=(0,gue.default)((0,vue.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");w4=Mk.default=yue;var _k={},bue=et;Object.defineProperty(_k,"__esModule",{value:!0});var C4=_k.default=void 0,wue=bue(tt()),Cue=Ze(),xue=(0,wue.default)((0,Cue.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");C4=_k.default=xue;var Gv={exports:{}};/**
294
+ * @license
295
+ * Lodash <https://lodash.com/>
296
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
297
+ * Released under MIT license <https://lodash.com/license>
298
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
299
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
300
+ */Gv.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",l="Invalid `variable` option passed into `_.template`",a="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",p=1,m=2,v=4,y=1,g=2,C=1,b=2,w=4,S=8,k=16,M=32,E=64,I=128,R=256,A=512,$=30,L="...",V=800,j=16,_=1,T=2,F=3,B=1/0,O=9007199254740991,N=17976931348623157e292,H=0/0,K=4294967295,Q=K-1,J=K>>>1,Y=[["ary",I],["bind",C],["bindKey",b],["curry",S],["curryRight",k],["flip",A],["partial",M],["partialRight",E],["rearg",R]],X="[object Arguments]",ee="[object Array]",se="[object AsyncFunction]",Z="[object Boolean]",he="[object Date]",ne="[object DOMException]",re="[object Error]",me="[object Function]",ce="[object GeneratorFunction]",Se="[object Map]",Ee="[object Number]",ae="[object Null]",Ie="[object Object]",ye="[object Promise]",Me="[object Proxy]",pe="[object RegExp]",fe="[object Set]",de="[object String]",be="[object Symbol]",_e="[object Undefined]",Ne="[object WeakMap]",Ge="[object WeakSet]",Ve="[object ArrayBuffer]",Ue="[object DataView]",Le="[object Float32Array]",ht="[object Float64Array]",Zt="[object Int8Array]",Pt="[object Int16Array]",wt="[object Int32Array]",Xe="[object Uint8Array]",Oe="[object Uint8ClampedArray]",qe="[object Uint16Array]",mt="[object Uint32Array]",vt=/\b__p \+= '';/g,Tt=/\b(__p \+=) '' \+/g,Yt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qt=/&(?:amp|lt|gt|quot|#39);/g,Pn=/[&<>"']/g,bn=RegExp(Qt.source),gt=RegExp(Pn.source),Rt=/<%-([\s\S]+?)%>/g,vr=/<%([\s\S]+?)%>/g,ir=/<%=([\s\S]+?)%>/g,Tl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,as=/^\w*$/,Tn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,an=/[\\^$.*+?()[\]{}|]/g,yr=RegExp(an.source),ho=/^\s+/,cs=/\s/,lr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Oo=/\{\n\/\* \[wrapped with (.+)\] \*/,hi=/,? & /,Mr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Nr=/[()=,{}\[\]\/\s]/,js=/\\(\\)?/g,$e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,we=/\w*$/,Qe=/^[-+]0x[0-9a-f]+$/i,ft=/^0b[01]+$/i,Wt=/^\[object .+?Constructor\]$/,$n=/^0o[0-7]+$/i,Fn=/^(?:0|[1-9]\d*)$/,St=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xn=/($^)/,CV=/['\n\r\u2028\u2029\\]/g,nm="\\ud800-\\udfff",xV="\\u0300-\\u036f",SV="\\ufe20-\\ufe2f",PV="\\u20d0-\\u20ff",f2=xV+SV+PV,p2="\\u2700-\\u27bf",h2="a-z\\xdf-\\xf6\\xf8-\\xff",kV="\\xac\\xb1\\xd7\\xf7",EV="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",IV="\\u2000-\\u206f",MV=" \\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",m2="A-Z\\xc0-\\xd6\\xd8-\\xde",g2="\\ufe0e\\ufe0f",v2=kV+EV+IV+MV,B0="['’]",_V="["+nm+"]",y2="["+v2+"]",rm="["+f2+"]",b2="\\d+",TV="["+p2+"]",w2="["+h2+"]",C2="[^"+nm+v2+b2+p2+h2+m2+"]",z0="\\ud83c[\\udffb-\\udfff]",$V="(?:"+rm+"|"+z0+")",x2="[^"+nm+"]",V0="(?:\\ud83c[\\udde6-\\uddff]){2}",j0="[\\ud800-\\udbff][\\udc00-\\udfff]",Kc="["+m2+"]",S2="\\u200d",P2="(?:"+w2+"|"+C2+")",RV="(?:"+Kc+"|"+C2+")",k2="(?:"+B0+"(?:d|ll|m|re|s|t|ve))?",E2="(?:"+B0+"(?:D|LL|M|RE|S|T|VE))?",I2=$V+"?",M2="["+g2+"]?",OV="(?:"+S2+"(?:"+[x2,V0,j0].join("|")+")"+M2+I2+")*",DV="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",AV="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",_2=M2+I2+OV,LV="(?:"+[TV,V0,j0].join("|")+")"+_2,FV="(?:"+[x2+rm+"?",rm,V0,j0,_V].join("|")+")",NV=RegExp(B0,"g"),BV=RegExp(rm,"g"),H0=RegExp(z0+"(?="+z0+")|"+FV+_2,"g"),zV=RegExp([Kc+"?"+w2+"+"+k2+"(?="+[y2,Kc,"$"].join("|")+")",RV+"+"+E2+"(?="+[y2,Kc+P2,"$"].join("|")+")",Kc+"?"+P2+"+"+k2,Kc+"+"+E2,AV,DV,b2,LV].join("|"),"g"),VV=RegExp("["+S2+nm+f2+g2+"]"),jV=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,HV=["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"],UV=-1,kn={};kn[Le]=kn[ht]=kn[Zt]=kn[Pt]=kn[wt]=kn[Xe]=kn[Oe]=kn[qe]=kn[mt]=!0,kn[X]=kn[ee]=kn[Ve]=kn[Z]=kn[Ue]=kn[he]=kn[re]=kn[me]=kn[Se]=kn[Ee]=kn[Ie]=kn[pe]=kn[fe]=kn[de]=kn[Ne]=!1;var wn={};wn[X]=wn[ee]=wn[Ve]=wn[Ue]=wn[Z]=wn[he]=wn[Le]=wn[ht]=wn[Zt]=wn[Pt]=wn[wt]=wn[Se]=wn[Ee]=wn[Ie]=wn[pe]=wn[fe]=wn[de]=wn[be]=wn[Xe]=wn[Oe]=wn[qe]=wn[mt]=!0,wn[re]=wn[me]=wn[Ne]=!1;var WV={À:"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"},GV={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},KV={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},qV={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},YV=parseFloat,QV=parseInt,T2=typeof sn=="object"&&sn&&sn.Object===Object&&sn,XV=typeof self=="object"&&self&&self.Object===Object&&self,_r=T2||XV||Function("return this")(),U0=t&&!t.nodeType&&t,ja=U0&&!0&&e&&!e.nodeType&&e,$2=ja&&ja.exports===U0,W0=$2&&T2.process,us=function(){try{var ge=ja&&ja.require&&ja.require("util").types;return ge||W0&&W0.binding&&W0.binding("util")}catch(Re){}}(),R2=us&&us.isArrayBuffer,O2=us&&us.isDate,D2=us&&us.isMap,A2=us&&us.isRegExp,L2=us&&us.isSet,F2=us&&us.isTypedArray;function Do(ge,Re,ke){switch(ke.length){case 0:return ge.call(Re);case 1:return ge.call(Re,ke[0]);case 2:return ge.call(Re,ke[0],ke[1]);case 3:return ge.call(Re,ke[0],ke[1],ke[2])}return ge.apply(Re,ke)}function ZV(ge,Re,ke,it){for(var It=-1,en=ge==null?0:ge.length;++It<en;){var ur=ge[It];Re(it,ur,ke(ur),ge)}return it}function ds(ge,Re){for(var ke=-1,it=ge==null?0:ge.length;++ke<it&&Re(ge[ke],ke,ge)!==!1;);return ge}function JV(ge,Re){for(var ke=ge==null?0:ge.length;ke--&&Re(ge[ke],ke,ge)!==!1;);return ge}function N2(ge,Re){for(var ke=-1,it=ge==null?0:ge.length;++ke<it;)if(!Re(ge[ke],ke,ge))return!1;return!0}function $l(ge,Re){for(var ke=-1,it=ge==null?0:ge.length,It=0,en=[];++ke<it;){var ur=ge[ke];Re(ur,ke,ge)&&(en[It++]=ur)}return en}function om(ge,Re){var ke=ge==null?0:ge.length;return!!ke&&qc(ge,Re,0)>-1}function G0(ge,Re,ke){for(var it=-1,It=ge==null?0:ge.length;++it<It;)if(ke(Re,ge[it]))return!0;return!1}function Rn(ge,Re){for(var ke=-1,it=ge==null?0:ge.length,It=Array(it);++ke<it;)It[ke]=Re(ge[ke],ke,ge);return It}function Rl(ge,Re){for(var ke=-1,it=Re.length,It=ge.length;++ke<it;)ge[It+ke]=Re[ke];return ge}function K0(ge,Re,ke,it){var It=-1,en=ge==null?0:ge.length;for(it&&en&&(ke=ge[++It]);++It<en;)ke=Re(ke,ge[It],It,ge);return ke}function ej(ge,Re,ke,it){var It=ge==null?0:ge.length;for(it&&It&&(ke=ge[--It]);It--;)ke=Re(ke,ge[It],It,ge);return ke}function q0(ge,Re){for(var ke=-1,it=ge==null?0:ge.length;++ke<it;)if(Re(ge[ke],ke,ge))return!0;return!1}var tj=Y0("length");function nj(ge){return ge.split("")}function rj(ge){return ge.match(Mr)||[]}function B2(ge,Re,ke){var it;return ke(ge,function(It,en,ur){if(Re(It,en,ur))return it=en,!1}),it}function sm(ge,Re,ke,it){for(var It=ge.length,en=ke+(it?1:-1);it?en--:++en<It;)if(Re(ge[en],en,ge))return en;return-1}function qc(ge,Re,ke){return Re===Re?mj(ge,Re,ke):sm(ge,z2,ke)}function oj(ge,Re,ke,it){for(var It=ke-1,en=ge.length;++It<en;)if(it(ge[It],Re))return It;return-1}function z2(ge){return ge!==ge}function V2(ge,Re){var ke=ge==null?0:ge.length;return ke?X0(ge,Re)/ke:H}function Y0(ge){return function(Re){return Re==null?n:Re[ge]}}function Q0(ge){return function(Re){return ge==null?n:ge[Re]}}function j2(ge,Re,ke,it,It){return It(ge,function(en,ur,vn){ke=it?(it=!1,en):Re(ke,en,ur,vn)}),ke}function sj(ge,Re){var ke=ge.length;for(ge.sort(Re);ke--;)ge[ke]=ge[ke].value;return ge}function X0(ge,Re){for(var ke,it=-1,It=ge.length;++it<It;){var en=Re(ge[it]);en!==n&&(ke=ke===n?en:ke+en)}return ke}function Z0(ge,Re){for(var ke=-1,it=Array(ge);++ke<ge;)it[ke]=Re(ke);return it}function ij(ge,Re){return Rn(Re,function(ke){return[ke,ge[ke]]})}function H2(ge){return ge&&ge.slice(0,K2(ge)+1).replace(ho,"")}function Ao(ge){return function(Re){return ge(Re)}}function J0(ge,Re){return Rn(Re,function(ke){return ge[ke]})}function hf(ge,Re){return ge.has(Re)}function U2(ge,Re){for(var ke=-1,it=ge.length;++ke<it&&qc(Re,ge[ke],0)>-1;);return ke}function W2(ge,Re){for(var ke=ge.length;ke--&&qc(Re,ge[ke],0)>-1;);return ke}function lj(ge,Re){for(var ke=ge.length,it=0;ke--;)ge[ke]===Re&&++it;return it}var aj=Q0(WV),cj=Q0(GV);function uj(ge){return"\\"+qV[ge]}function dj(ge,Re){return ge==null?n:ge[Re]}function Yc(ge){return VV.test(ge)}function fj(ge){return jV.test(ge)}function pj(ge){for(var Re,ke=[];!(Re=ge.next()).done;)ke.push(Re.value);return ke}function e1(ge){var Re=-1,ke=Array(ge.size);return ge.forEach(function(it,It){ke[++Re]=[It,it]}),ke}function G2(ge,Re){return function(ke){return ge(Re(ke))}}function Ol(ge,Re){for(var ke=-1,it=ge.length,It=0,en=[];++ke<it;){var ur=ge[ke];(ur===Re||ur===f)&&(ge[ke]=f,en[It++]=ke)}return en}function im(ge){var Re=-1,ke=Array(ge.size);return ge.forEach(function(it){ke[++Re]=it}),ke}function hj(ge){var Re=-1,ke=Array(ge.size);return ge.forEach(function(it){ke[++Re]=[it,it]}),ke}function mj(ge,Re,ke){for(var it=ke-1,It=ge.length;++it<It;)if(ge[it]===Re)return it;return-1}function gj(ge,Re,ke){for(var it=ke+1;it--;)if(ge[it]===Re)return it;return it}function Qc(ge){return Yc(ge)?yj(ge):tj(ge)}function Hs(ge){return Yc(ge)?bj(ge):nj(ge)}function K2(ge){for(var Re=ge.length;Re--&&cs.test(ge.charAt(Re)););return Re}var vj=Q0(KV);function yj(ge){for(var Re=H0.lastIndex=0;H0.test(ge);)++Re;return Re}function bj(ge){return ge.match(H0)||[]}function wj(ge){return ge.match(zV)||[]}var Cj=function ge(Re){Re=Re==null?_r:Xc.defaults(_r.Object(),Re,Xc.pick(_r,HV));var ke=Re.Array,it=Re.Date,It=Re.Error,en=Re.Function,ur=Re.Math,vn=Re.Object,t1=Re.RegExp,xj=Re.String,fs=Re.TypeError,lm=ke.prototype,Sj=en.prototype,Zc=vn.prototype,am=Re["__core-js_shared__"],cm=Sj.toString,cn=Zc.hasOwnProperty,Pj=0,q2=function(){var d=/[^.]+$/.exec(am&&am.keys&&am.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}(),um=Zc.toString,kj=cm.call(vn),Ej=_r._,Ij=t1("^"+cm.call(cn).replace(an,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dm=$2?Re.Buffer:n,Dl=Re.Symbol,fm=Re.Uint8Array,Y2=dm?dm.allocUnsafe:n,pm=G2(vn.getPrototypeOf,vn),Q2=vn.create,X2=Zc.propertyIsEnumerable,hm=lm.splice,Z2=Dl?Dl.isConcatSpreadable:n,mf=Dl?Dl.iterator:n,Ha=Dl?Dl.toStringTag:n,mm=function(){try{var d=qa(vn,"defineProperty");return d({},"",{}),d}catch(h){}}(),Mj=Re.clearTimeout!==_r.clearTimeout&&Re.clearTimeout,_j=it&&it.now!==_r.Date.now&&it.now,Tj=Re.setTimeout!==_r.setTimeout&&Re.setTimeout,gm=ur.ceil,vm=ur.floor,n1=vn.getOwnPropertySymbols,$j=dm?dm.isBuffer:n,J2=Re.isFinite,Rj=lm.join,Oj=G2(vn.keys,vn),dr=ur.max,Br=ur.min,Dj=it.now,Aj=Re.parseInt,eM=ur.random,Lj=lm.reverse,r1=qa(Re,"DataView"),gf=qa(Re,"Map"),o1=qa(Re,"Promise"),Jc=qa(Re,"Set"),vf=qa(Re,"WeakMap"),yf=qa(vn,"create"),ym=vf&&new vf,eu={},Fj=Ya(r1),Nj=Ya(gf),Bj=Ya(o1),zj=Ya(Jc),Vj=Ya(vf),bm=Dl?Dl.prototype:n,bf=bm?bm.valueOf:n,tM=bm?bm.toString:n;function G(d){if(Un(d)&&!Mt(d)&&!(d instanceof Ht)){if(d instanceof ps)return d;if(cn.call(d,"__wrapped__"))return n_(d)}return new ps(d)}var tu=function(){function d(){}return function(h){if(!Nn(h))return{};if(Q2)return Q2(h);d.prototype=h;var P=new d;return d.prototype=n,P}}();function wm(){}function ps(d,h){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=n}G.templateSettings={escape:Rt,evaluate:vr,interpolate:ir,variable:"",imports:{_:G}},G.prototype=wm.prototype,G.prototype.constructor=G,ps.prototype=tu(wm.prototype),ps.prototype.constructor=ps;function Ht(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function jj(){var d=new Ht(this.__wrapped__);return d.__actions__=mo(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=mo(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=mo(this.__views__),d}function Hj(){if(this.__filtered__){var d=new Ht(this);d.__dir__=-1,d.__filtered__=!0}else d=this.clone(),d.__dir__*=-1;return d}function Uj(){var d=this.__wrapped__.value(),h=this.__dir__,P=Mt(d),z=h<0,U=P?d.length:0,q=n6(0,U,this.__views__),te=q.start,ie=q.end,ve=ie-te,De=z?ie:te-1,Fe=this.__iteratees__,Be=Fe.length,Je=0,pt=Br(ve,this.__takeCount__);if(!P||!z&&U==ve&&pt==ve)return kM(d,this.__actions__);var Ct=[];e:for(;ve--&&Je<pt;){De+=h;for(var Dt=-1,xt=d[De];++Dt<Be;){var Bt=Fe[Dt],Gt=Bt.iteratee,No=Bt.type,ro=Gt(xt);if(No==T)xt=ro;else if(!ro){if(No==_)continue e;break e}}Ct[Je++]=xt}return Ct}Ht.prototype=tu(wm.prototype),Ht.prototype.constructor=Ht;function Ua(d){var h=-1,P=d==null?0:d.length;for(this.clear();++h<P;){var z=d[h];this.set(z[0],z[1])}}function Wj(){this.__data__=yf?yf(null):{},this.size=0}function Gj(d){var h=this.has(d)&&delete this.__data__[d];return this.size-=h?1:0,h}function Kj(d){var h=this.__data__;if(yf){var P=h[d];return P===a?n:P}return cn.call(h,d)?h[d]:n}function qj(d){var h=this.__data__;return yf?h[d]!==n:cn.call(h,d)}function Yj(d,h){var P=this.__data__;return this.size+=this.has(d)?0:1,P[d]=yf&&h===n?a:h,this}Ua.prototype.clear=Wj,Ua.prototype.delete=Gj,Ua.prototype.get=Kj,Ua.prototype.has=qj,Ua.prototype.set=Yj;function Ki(d){var h=-1,P=d==null?0:d.length;for(this.clear();++h<P;){var z=d[h];this.set(z[0],z[1])}}function Qj(){this.__data__=[],this.size=0}function Xj(d){var h=this.__data__,P=Cm(h,d);if(P<0)return!1;var z=h.length-1;return P==z?h.pop():hm.call(h,P,1),--this.size,!0}function Zj(d){var h=this.__data__,P=Cm(h,d);return P<0?n:h[P][1]}function Jj(d){return Cm(this.__data__,d)>-1}function eH(d,h){var P=this.__data__,z=Cm(P,d);return z<0?(++this.size,P.push([d,h])):P[z][1]=h,this}Ki.prototype.clear=Qj,Ki.prototype.delete=Xj,Ki.prototype.get=Zj,Ki.prototype.has=Jj,Ki.prototype.set=eH;function qi(d){var h=-1,P=d==null?0:d.length;for(this.clear();++h<P;){var z=d[h];this.set(z[0],z[1])}}function tH(){this.size=0,this.__data__={hash:new Ua,map:new(gf||Ki),string:new Ua}}function nH(d){var h=Om(this,d).delete(d);return this.size-=h?1:0,h}function rH(d){return Om(this,d).get(d)}function oH(d){return Om(this,d).has(d)}function sH(d,h){var P=Om(this,d),z=P.size;return P.set(d,h),this.size+=P.size==z?0:1,this}qi.prototype.clear=tH,qi.prototype.delete=nH,qi.prototype.get=rH,qi.prototype.has=oH,qi.prototype.set=sH;function Wa(d){var h=-1,P=d==null?0:d.length;for(this.__data__=new qi;++h<P;)this.add(d[h])}function iH(d){return this.__data__.set(d,a),this}function lH(d){return this.__data__.has(d)}Wa.prototype.add=Wa.prototype.push=iH,Wa.prototype.has=lH;function Us(d){var h=this.__data__=new Ki(d);this.size=h.size}function aH(){this.__data__=new Ki,this.size=0}function cH(d){var h=this.__data__,P=h.delete(d);return this.size=h.size,P}function uH(d){return this.__data__.get(d)}function dH(d){return this.__data__.has(d)}function fH(d,h){var P=this.__data__;if(P instanceof Ki){var z=P.__data__;if(!gf||z.length<o-1)return z.push([d,h]),this.size=++P.size,this;P=this.__data__=new qi(z)}return P.set(d,h),this.size=P.size,this}Us.prototype.clear=aH,Us.prototype.delete=cH,Us.prototype.get=uH,Us.prototype.has=dH,Us.prototype.set=fH;function nM(d,h){var P=Mt(d),z=!P&&Qa(d),U=!P&&!z&&Bl(d),q=!P&&!z&&!U&&su(d),te=P||z||U||q,ie=te?Z0(d.length,xj):[],ve=ie.length;for(var De in d)(h||cn.call(d,De))&&!(te&&(De=="length"||U&&(De=="offset"||De=="parent")||q&&(De=="buffer"||De=="byteLength"||De=="byteOffset")||Zi(De,ve)))&&ie.push(De);return ie}function rM(d){var h=d.length;return h?d[m1(0,h-1)]:n}function pH(d,h){return Dm(mo(d),Ga(h,0,d.length))}function hH(d){return Dm(mo(d))}function s1(d,h,P){(P!==n&&!Ws(d[h],P)||P===n&&!(h in d))&&Yi(d,h,P)}function wf(d,h,P){var z=d[h];(!(cn.call(d,h)&&Ws(z,P))||P===n&&!(h in d))&&Yi(d,h,P)}function Cm(d,h){for(var P=d.length;P--;)if(Ws(d[P][0],h))return P;return-1}function mH(d,h,P,z){return Al(d,function(U,q,te){h(z,U,P(U),te)}),z}function oM(d,h){return d&&gi(h,br(h),d)}function gH(d,h){return d&&gi(h,vo(h),d)}function Yi(d,h,P){h=="__proto__"&&mm?mm(d,h,{configurable:!0,enumerable:!0,value:P,writable:!0}):d[h]=P}function i1(d,h){for(var P=-1,z=h.length,U=ke(z),q=d==null;++P<z;)U[P]=q?n:z1(d,h[P]);return U}function Ga(d,h,P){return d===d&&(P!==n&&(d=d<=P?d:P),h!==n&&(d=d>=h?d:h)),d}function hs(d,h,P,z,U,q){var te,ie=h&p,ve=h&m,De=h&v;if(P&&(te=U?P(d,z,U,q):P(d)),te!==n)return te;if(!Nn(d))return d;var Fe=Mt(d);if(Fe){if(te=o6(d),!ie)return mo(d,te)}else{var Be=zr(d),Je=Be==me||Be==ce;if(Bl(d))return MM(d,ie);if(Be==Ie||Be==X||Je&&!U){if(te=ve||Je?{}:KM(d),!ie)return ve?KH(d,gH(te,d)):GH(d,oM(te,d))}else{if(!wn[Be])return U?d:{};te=s6(d,Be,ie)}}q||(q=new Us);var pt=q.get(d);if(pt)return pt;q.set(d,te),x_(d)?d.forEach(function(xt){te.add(hs(xt,h,P,xt,d,q))}):w_(d)&&d.forEach(function(xt,Bt){te.set(Bt,hs(xt,h,P,Bt,d,q))});var Ct=De?ve?E1:k1:ve?vo:br,Dt=Fe?n:Ct(d);return ds(Dt||d,function(xt,Bt){Dt&&(Bt=xt,xt=d[Bt]),wf(te,Bt,hs(xt,h,P,Bt,d,q))}),te}function vH(d){var h=br(d);return function(P){return sM(P,d,h)}}function sM(d,h,P){var z=P.length;if(d==null)return!z;for(d=vn(d);z--;){var U=P[z],q=h[U],te=d[U];if(te===n&&!(U in d)||!q(te))return!1}return!0}function iM(d,h,P){if(typeof d!="function")throw new fs(i);return If(function(){d.apply(n,P)},h)}function Cf(d,h,P,z){var U=-1,q=om,te=!0,ie=d.length,ve=[],De=h.length;if(!ie)return ve;P&&(h=Rn(h,Ao(P))),z?(q=G0,te=!1):h.length>=o&&(q=hf,te=!1,h=new Wa(h));e:for(;++U<ie;){var Fe=d[U],Be=P==null?Fe:P(Fe);if(Fe=z||Fe!==0?Fe:0,te&&Be===Be){for(var Je=De;Je--;)if(h[Je]===Be)continue e;ve.push(Fe)}else q(h,Be,z)||ve.push(Fe)}return ve}var Al=OM(mi),lM=OM(a1,!0);function yH(d,h){var P=!0;return Al(d,function(z,U,q){return P=!!h(z,U,q),P}),P}function xm(d,h,P){for(var z=-1,U=d.length;++z<U;){var q=d[z],te=h(q);if(te!=null&&(ie===n?te===te&&!Fo(te):P(te,ie)))var ie=te,ve=q}return ve}function bH(d,h,P,z){var U=d.length;for(P=Ot(P),P<0&&(P=-P>U?0:U+P),z=z===n||z>U?U:Ot(z),z<0&&(z+=U),z=P>z?0:P_(z);P<z;)d[P++]=h;return d}function aM(d,h){var P=[];return Al(d,function(z,U,q){h(z,U,q)&&P.push(z)}),P}function Tr(d,h,P,z,U){var q=-1,te=d.length;for(P||(P=l6),U||(U=[]);++q<te;){var ie=d[q];h>0&&P(ie)?h>1?Tr(ie,h-1,P,z,U):Rl(U,ie):z||(U[U.length]=ie)}return U}var l1=DM(),cM=DM(!0);function mi(d,h){return d&&l1(d,h,br)}function a1(d,h){return d&&cM(d,h,br)}function Sm(d,h){return $l(h,function(P){return Ji(d[P])})}function Ka(d,h){h=Fl(h,d);for(var P=0,z=h.length;d!=null&&P<z;)d=d[vi(h[P++])];return P&&P==z?d:n}function uM(d,h,P){var z=h(d);return Mt(d)?z:Rl(z,P(d))}function to(d){return d==null?d===n?_e:ae:Ha&&Ha in vn(d)?t6(d):h6(d)}function c1(d,h){return d>h}function wH(d,h){return d!=null&&cn.call(d,h)}function CH(d,h){return d!=null&&h in vn(d)}function xH(d,h,P){return d>=Br(h,P)&&d<dr(h,P)}function u1(d,h,P){for(var z=P?G0:om,U=d[0].length,q=d.length,te=q,ie=ke(q),ve=1/0,De=[];te--;){var Fe=d[te];te&&h&&(Fe=Rn(Fe,Ao(h))),ve=Br(Fe.length,ve),ie[te]=!P&&(h||U>=120&&Fe.length>=120)?new Wa(te&&Fe):n}Fe=d[0];var Be=-1,Je=ie[0];e:for(;++Be<U&&De.length<ve;){var pt=Fe[Be],Ct=h?h(pt):pt;if(pt=P||pt!==0?pt:0,!(Je?hf(Je,Ct):z(De,Ct,P))){for(te=q;--te;){var Dt=ie[te];if(!(Dt?hf(Dt,Ct):z(d[te],Ct,P)))continue e}Je&&Je.push(Ct),De.push(pt)}}return De}function SH(d,h,P,z){return mi(d,function(U,q,te){h(z,P(U),q,te)}),z}function xf(d,h,P){h=Fl(h,d),d=XM(d,h);var z=d==null?d:d[vi(gs(h))];return z==null?n:Do(z,d,P)}function dM(d){return Un(d)&&to(d)==X}function PH(d){return Un(d)&&to(d)==Ve}function kH(d){return Un(d)&&to(d)==he}function Sf(d,h,P,z,U){return d===h?!0:d==null||h==null||!Un(d)&&!Un(h)?d!==d&&h!==h:EH(d,h,P,z,Sf,U)}function EH(d,h,P,z,U,q){var te=Mt(d),ie=Mt(h),ve=te?ee:zr(d),De=ie?ee:zr(h);ve=ve==X?Ie:ve,De=De==X?Ie:De;var Fe=ve==Ie,Be=De==Ie,Je=ve==De;if(Je&&Bl(d)){if(!Bl(h))return!1;te=!0,Fe=!1}if(Je&&!Fe)return q||(q=new Us),te||su(d)?UM(d,h,P,z,U,q):JH(d,h,ve,P,z,U,q);if(!(P&y)){var pt=Fe&&cn.call(d,"__wrapped__"),Ct=Be&&cn.call(h,"__wrapped__");if(pt||Ct){var Dt=pt?d.value():d,xt=Ct?h.value():h;return q||(q=new Us),U(Dt,xt,P,z,q)}}return Je?(q||(q=new Us),e6(d,h,P,z,U,q)):!1}function IH(d){return Un(d)&&zr(d)==Se}function d1(d,h,P,z){var U=P.length,q=U,te=!z;if(d==null)return!q;for(d=vn(d);U--;){var ie=P[U];if(te&&ie[2]?ie[1]!==d[ie[0]]:!(ie[0]in d))return!1}for(;++U<q;){ie=P[U];var ve=ie[0],De=d[ve],Fe=ie[1];if(te&&ie[2]){if(De===n&&!(ve in d))return!1}else{var Be=new Us;if(z)var Je=z(De,Fe,ve,d,h,Be);if(!(Je===n?Sf(Fe,De,y|g,z,Be):Je))return!1}}return!0}function fM(d){if(!Nn(d)||c6(d))return!1;var h=Ji(d)?Ij:Wt;return h.test(Ya(d))}function MH(d){return Un(d)&&to(d)==pe}function _H(d){return Un(d)&&zr(d)==fe}function TH(d){return Un(d)&&zm(d.length)&&!!kn[to(d)]}function pM(d){return typeof d=="function"?d:d==null?yo:typeof d=="object"?Mt(d)?gM(d[0],d[1]):mM(d):A_(d)}function f1(d){if(!Ef(d))return Oj(d);var h=[];for(var P in vn(d))cn.call(d,P)&&P!="constructor"&&h.push(P);return h}function $H(d){if(!Nn(d))return p6(d);var h=Ef(d),P=[];for(var z in d)z=="constructor"&&(h||!cn.call(d,z))||P.push(z);return P}function p1(d,h){return d<h}function hM(d,h){var P=-1,z=go(d)?ke(d.length):[];return Al(d,function(U,q,te){z[++P]=h(U,q,te)}),z}function mM(d){var h=M1(d);return h.length==1&&h[0][2]?YM(h[0][0],h[0][1]):function(P){return P===d||d1(P,d,h)}}function gM(d,h){return T1(d)&&qM(h)?YM(vi(d),h):function(P){var z=z1(P,d);return z===n&&z===h?V1(P,d):Sf(h,z,y|g)}}function Pm(d,h,P,z,U){d!==h&&l1(h,function(q,te){if(U||(U=new Us),Nn(q))RH(d,h,te,P,Pm,z,U);else{var ie=z?z(R1(d,te),q,te+"",d,h,U):n;ie===n&&(ie=q),s1(d,te,ie)}},vo)}function RH(d,h,P,z,U,q,te){var ie=R1(d,P),ve=R1(h,P),De=te.get(ve);if(De){s1(d,P,De);return}var Fe=q?q(ie,ve,P+"",d,h,te):n,Be=Fe===n;if(Be){var Je=Mt(ve),pt=!Je&&Bl(ve),Ct=!Je&&!pt&&su(ve);Fe=ve,Je||pt||Ct?Mt(ie)?Fe=ie:Zn(ie)?Fe=mo(ie):pt?(Be=!1,Fe=MM(ve,!0)):Ct?(Be=!1,Fe=_M(ve,!0)):Fe=[]:Mf(ve)||Qa(ve)?(Fe=ie,Qa(ie)?Fe=k_(ie):(!Nn(ie)||Ji(ie))&&(Fe=KM(ve))):Be=!1}Be&&(te.set(ve,Fe),U(Fe,ve,z,q,te),te.delete(ve)),s1(d,P,Fe)}function vM(d,h){var P=d.length;if(P)return h+=h<0?P:0,Zi(h,P)?d[h]:n}function yM(d,h,P){h.length?h=Rn(h,function(q){return Mt(q)?function(te){return Ka(te,q.length===1?q[0]:q)}:q}):h=[yo];var z=-1;h=Rn(h,Ao(yt()));var U=hM(d,function(q,te,ie){var ve=Rn(h,function(De){return De(q)});return{criteria:ve,index:++z,value:q}});return sj(U,function(q,te){return WH(q,te,P)})}function OH(d,h){return bM(d,h,function(P,z){return V1(d,z)})}function bM(d,h,P){for(var z=-1,U=h.length,q={};++z<U;){var te=h[z],ie=Ka(d,te);P(ie,te)&&Pf(q,Fl(te,d),ie)}return q}function DH(d){return function(h){return Ka(h,d)}}function h1(d,h,P,z){var U=z?oj:qc,q=-1,te=h.length,ie=d;for(d===h&&(h=mo(h)),P&&(ie=Rn(d,Ao(P)));++q<te;)for(var ve=0,De=h[q],Fe=P?P(De):De;(ve=U(ie,Fe,ve,z))>-1;)ie!==d&&hm.call(ie,ve,1),hm.call(d,ve,1);return d}function wM(d,h){for(var P=d?h.length:0,z=P-1;P--;){var U=h[P];if(P==z||U!==q){var q=U;Zi(U)?hm.call(d,U,1):y1(d,U)}}return d}function m1(d,h){return d+vm(eM()*(h-d+1))}function AH(d,h,P,z){for(var U=-1,q=dr(gm((h-d)/(P||1)),0),te=ke(q);q--;)te[z?q:++U]=d,d+=P;return te}function g1(d,h){var P="";if(!d||h<1||h>O)return P;do h%2&&(P+=d),h=vm(h/2),h&&(d+=d);while(h);return P}function Lt(d,h){return O1(QM(d,h,yo),d+"")}function LH(d){return rM(iu(d))}function FH(d,h){var P=iu(d);return Dm(P,Ga(h,0,P.length))}function Pf(d,h,P,z){if(!Nn(d))return d;h=Fl(h,d);for(var U=-1,q=h.length,te=q-1,ie=d;ie!=null&&++U<q;){var ve=vi(h[U]),De=P;if(ve==="__proto__"||ve==="constructor"||ve==="prototype")return d;if(U!=te){var Fe=ie[ve];De=z?z(Fe,ve,ie):n,De===n&&(De=Nn(Fe)?Fe:Zi(h[U+1])?[]:{})}wf(ie,ve,De),ie=ie[ve]}return d}var CM=ym?function(d,h){return ym.set(d,h),d}:yo,NH=mm?function(d,h){return mm(d,"toString",{configurable:!0,enumerable:!1,value:H1(h),writable:!0})}:yo;function BH(d){return Dm(iu(d))}function ms(d,h,P){var z=-1,U=d.length;h<0&&(h=-h>U?0:U+h),P=P>U?U:P,P<0&&(P+=U),U=h>P?0:P-h>>>0,h>>>=0;for(var q=ke(U);++z<U;)q[z]=d[z+h];return q}function zH(d,h){var P;return Al(d,function(z,U,q){return P=h(z,U,q),!P}),!!P}function km(d,h,P){var z=0,U=d==null?z:d.length;if(typeof h=="number"&&h===h&&U<=J){for(;z<U;){var q=z+U>>>1,te=d[q];te!==null&&!Fo(te)&&(P?te<=h:te<h)?z=q+1:U=q}return U}return v1(d,h,yo,P)}function v1(d,h,P,z){var U=0,q=d==null?0:d.length;if(q===0)return 0;h=P(h);for(var te=h!==h,ie=h===null,ve=Fo(h),De=h===n;U<q;){var Fe=vm((U+q)/2),Be=P(d[Fe]),Je=Be!==n,pt=Be===null,Ct=Be===Be,Dt=Fo(Be);if(te)var xt=z||Ct;else De?xt=Ct&&(z||Je):ie?xt=Ct&&Je&&(z||!pt):ve?xt=Ct&&Je&&!pt&&(z||!Dt):pt||Dt?xt=!1:xt=z?Be<=h:Be<h;xt?U=Fe+1:q=Fe}return Br(q,Q)}function xM(d,h){for(var P=-1,z=d.length,U=0,q=[];++P<z;){var te=d[P],ie=h?h(te):te;if(!P||!Ws(ie,ve)){var ve=ie;q[U++]=te===0?0:te}}return q}function SM(d){return typeof d=="number"?d:Fo(d)?H:+d}function Lo(d){if(typeof d=="string")return d;if(Mt(d))return Rn(d,Lo)+"";if(Fo(d))return tM?tM.call(d):"";var h=d+"";return h=="0"&&1/d==-B?"-0":h}function Ll(d,h,P){var z=-1,U=om,q=d.length,te=!0,ie=[],ve=ie;if(P)te=!1,U=G0;else if(q>=o){var De=h?null:XH(d);if(De)return im(De);te=!1,U=hf,ve=new Wa}else ve=h?[]:ie;e:for(;++z<q;){var Fe=d[z],Be=h?h(Fe):Fe;if(Fe=P||Fe!==0?Fe:0,te&&Be===Be){for(var Je=ve.length;Je--;)if(ve[Je]===Be)continue e;h&&ve.push(Be),ie.push(Fe)}else U(ve,Be,P)||(ve!==ie&&ve.push(Be),ie.push(Fe))}return ie}function y1(d,h){return h=Fl(h,d),d=XM(d,h),d==null||delete d[vi(gs(h))]}function PM(d,h,P,z){return Pf(d,h,P(Ka(d,h)),z)}function Em(d,h,P,z){for(var U=d.length,q=z?U:-1;(z?q--:++q<U)&&h(d[q],q,d););return P?ms(d,z?0:q,z?q+1:U):ms(d,z?q+1:0,z?U:q)}function kM(d,h){var P=d;return P instanceof Ht&&(P=P.value()),K0(h,function(z,U){return U.func.apply(U.thisArg,Rl([z],U.args))},P)}function b1(d,h,P){var z=d.length;if(z<2)return z?Ll(d[0]):[];for(var U=-1,q=ke(z);++U<z;)for(var te=d[U],ie=-1;++ie<z;)ie!=U&&(q[U]=Cf(q[U]||te,d[ie],h,P));return Ll(Tr(q,1),h,P)}function EM(d,h,P){for(var z=-1,U=d.length,q=h.length,te={};++z<U;){var ie=z<q?h[z]:n;P(te,d[z],ie)}return te}function w1(d){return Zn(d)?d:[]}function C1(d){return typeof d=="function"?d:yo}function Fl(d,h){return Mt(d)?d:T1(d,h)?[d]:t_(on(d))}var VH=Lt;function Nl(d,h,P){var z=d.length;return P=P===n?z:P,!h&&P>=z?d:ms(d,h,P)}var IM=Mj||function(d){return _r.clearTimeout(d)};function MM(d,h){if(h)return d.slice();var P=d.length,z=Y2?Y2(P):new d.constructor(P);return d.copy(z),z}function x1(d){var h=new d.constructor(d.byteLength);return new fm(h).set(new fm(d)),h}function jH(d,h){var P=h?x1(d.buffer):d.buffer;return new d.constructor(P,d.byteOffset,d.byteLength)}function HH(d){var h=new d.constructor(d.source,we.exec(d));return h.lastIndex=d.lastIndex,h}function UH(d){return bf?vn(bf.call(d)):{}}function _M(d,h){var P=h?x1(d.buffer):d.buffer;return new d.constructor(P,d.byteOffset,d.length)}function TM(d,h){if(d!==h){var P=d!==n,z=d===null,U=d===d,q=Fo(d),te=h!==n,ie=h===null,ve=h===h,De=Fo(h);if(!ie&&!De&&!q&&d>h||q&&te&&ve&&!ie&&!De||z&&te&&ve||!P&&ve||!U)return 1;if(!z&&!q&&!De&&d<h||De&&P&&U&&!z&&!q||ie&&P&&U||!te&&U||!ve)return-1}return 0}function WH(d,h,P){for(var z=-1,U=d.criteria,q=h.criteria,te=U.length,ie=P.length;++z<te;){var ve=TM(U[z],q[z]);if(ve){if(z>=ie)return ve;var De=P[z];return ve*(De=="desc"?-1:1)}}return d.index-h.index}function $M(d,h,P,z){for(var U=-1,q=d.length,te=P.length,ie=-1,ve=h.length,De=dr(q-te,0),Fe=ke(ve+De),Be=!z;++ie<ve;)Fe[ie]=h[ie];for(;++U<te;)(Be||U<q)&&(Fe[P[U]]=d[U]);for(;De--;)Fe[ie++]=d[U++];return Fe}function RM(d,h,P,z){for(var U=-1,q=d.length,te=-1,ie=P.length,ve=-1,De=h.length,Fe=dr(q-ie,0),Be=ke(Fe+De),Je=!z;++U<Fe;)Be[U]=d[U];for(var pt=U;++ve<De;)Be[pt+ve]=h[ve];for(;++te<ie;)(Je||U<q)&&(Be[pt+P[te]]=d[U++]);return Be}function mo(d,h){var P=-1,z=d.length;for(h||(h=ke(z));++P<z;)h[P]=d[P];return h}function gi(d,h,P,z){var U=!P;P||(P={});for(var q=-1,te=h.length;++q<te;){var ie=h[q],ve=z?z(P[ie],d[ie],ie,P,d):n;ve===n&&(ve=d[ie]),U?Yi(P,ie,ve):wf(P,ie,ve)}return P}function GH(d,h){return gi(d,_1(d),h)}function KH(d,h){return gi(d,WM(d),h)}function Im(d,h){return function(P,z){var U=Mt(P)?ZV:mH,q=h?h():{};return U(P,d,yt(z,2),q)}}function nu(d){return Lt(function(h,P){var z=-1,U=P.length,q=U>1?P[U-1]:n,te=U>2?P[2]:n;for(q=d.length>3&&typeof q=="function"?(U--,q):n,te&&no(P[0],P[1],te)&&(q=U<3?n:q,U=1),h=vn(h);++z<U;){var ie=P[z];ie&&d(h,ie,z,q)}return h})}function OM(d,h){return function(P,z){if(P==null)return P;if(!go(P))return d(P,z);for(var U=P.length,q=h?U:-1,te=vn(P);(h?q--:++q<U)&&z(te[q],q,te)!==!1;);return P}}function DM(d){return function(h,P,z){for(var U=-1,q=vn(h),te=z(h),ie=te.length;ie--;){var ve=te[d?ie:++U];if(P(q[ve],ve,q)===!1)break}return h}}function qH(d,h,P){var z=h&C,U=kf(d);function q(){var te=this&&this!==_r&&this instanceof q?U:d;return te.apply(z?P:this,arguments)}return q}function AM(d){return function(h){h=on(h);var P=Yc(h)?Hs(h):n,z=P?P[0]:h.charAt(0),U=P?Nl(P,1).join(""):h.slice(1);return z[d]()+U}}function ru(d){return function(h){return K0(O_(R_(h).replace(NV,"")),d,"")}}function kf(d){return function(){var h=arguments;switch(h.length){case 0:return new d;case 1:return new d(h[0]);case 2:return new d(h[0],h[1]);case 3:return new d(h[0],h[1],h[2]);case 4:return new d(h[0],h[1],h[2],h[3]);case 5:return new d(h[0],h[1],h[2],h[3],h[4]);case 6:return new d(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new d(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var P=tu(d.prototype),z=d.apply(P,h);return Nn(z)?z:P}}function YH(d,h,P){var z=kf(d);function U(){for(var q=arguments.length,te=ke(q),ie=q,ve=ou(U);ie--;)te[ie]=arguments[ie];var De=q<3&&te[0]!==ve&&te[q-1]!==ve?[]:Ol(te,ve);if(q-=De.length,q<P)return zM(d,h,Mm,U.placeholder,n,te,De,n,n,P-q);var Fe=this&&this!==_r&&this instanceof U?z:d;return Do(Fe,this,te)}return U}function LM(d){return function(h,P,z){var U=vn(h);if(!go(h)){var q=yt(P,3);h=br(h),P=function(ie){return q(U[ie],ie,U)}}var te=d(h,P,z);return te>-1?U[q?h[te]:te]:n}}function FM(d){return Xi(function(h){var P=h.length,z=P,U=ps.prototype.thru;for(d&&h.reverse();z--;){var q=h[z];if(typeof q!="function")throw new fs(i);if(U&&!te&&Rm(q)=="wrapper")var te=new ps([],!0)}for(z=te?z:P;++z<P;){q=h[z];var ie=Rm(q),ve=ie=="wrapper"?I1(q):n;ve&&$1(ve[0])&&ve[1]==(I|S|M|R)&&!ve[4].length&&ve[9]==1?te=te[Rm(ve[0])].apply(te,ve[3]):te=q.length==1&&$1(q)?te[ie]():te.thru(q)}return function(){var De=arguments,Fe=De[0];if(te&&De.length==1&&Mt(Fe))return te.plant(Fe).value();for(var Be=0,Je=P?h[Be].apply(this,De):Fe;++Be<P;)Je=h[Be].call(this,Je);return Je}})}function Mm(d,h,P,z,U,q,te,ie,ve,De){var Fe=h&I,Be=h&C,Je=h&b,pt=h&(S|k),Ct=h&A,Dt=Je?n:kf(d);function xt(){for(var Bt=arguments.length,Gt=ke(Bt),No=Bt;No--;)Gt[No]=arguments[No];if(pt)var ro=ou(xt),Bo=lj(Gt,ro);if(z&&(Gt=$M(Gt,z,U,pt)),q&&(Gt=RM(Gt,q,te,pt)),Bt-=Bo,pt&&Bt<De){var Jn=Ol(Gt,ro);return zM(d,h,Mm,xt.placeholder,P,Gt,Jn,ie,ve,De-Bt)}var Gs=Be?P:this,tl=Je?Gs[d]:d;return Bt=Gt.length,ie?Gt=m6(Gt,ie):Ct&&Bt>1&&Gt.reverse(),Fe&&ve<Bt&&(Gt.length=ve),this&&this!==_r&&this instanceof xt&&(tl=Dt||kf(tl)),tl.apply(Gs,Gt)}return xt}function NM(d,h){return function(P,z){return SH(P,d,h(z),{})}}function _m(d,h){return function(P,z){var U;if(P===n&&z===n)return h;if(P!==n&&(U=P),z!==n){if(U===n)return z;typeof P=="string"||typeof z=="string"?(P=Lo(P),z=Lo(z)):(P=SM(P),z=SM(z)),U=d(P,z)}return U}}function S1(d){return Xi(function(h){return h=Rn(h,Ao(yt())),Lt(function(P){var z=this;return d(h,function(U){return Do(U,z,P)})})})}function Tm(d,h){h=h===n?" ":Lo(h);var P=h.length;if(P<2)return P?g1(h,d):h;var z=g1(h,gm(d/Qc(h)));return Yc(h)?Nl(Hs(z),0,d).join(""):z.slice(0,d)}function QH(d,h,P,z){var U=h&C,q=kf(d);function te(){for(var ie=-1,ve=arguments.length,De=-1,Fe=z.length,Be=ke(Fe+ve),Je=this&&this!==_r&&this instanceof te?q:d;++De<Fe;)Be[De]=z[De];for(;ve--;)Be[De++]=arguments[++ie];return Do(Je,U?P:this,Be)}return te}function BM(d){return function(h,P,z){return z&&typeof z!="number"&&no(h,P,z)&&(P=z=n),h=el(h),P===n?(P=h,h=0):P=el(P),z=z===n?h<P?1:-1:el(z),AH(h,P,z,d)}}function $m(d){return function(h,P){return typeof h=="string"&&typeof P=="string"||(h=vs(h),P=vs(P)),d(h,P)}}function zM(d,h,P,z,U,q,te,ie,ve,De){var Fe=h&S,Be=Fe?te:n,Je=Fe?n:te,pt=Fe?q:n,Ct=Fe?n:q;h|=Fe?M:E,h&=~(Fe?E:M),h&w||(h&=~(C|b));var Dt=[d,h,U,pt,Be,Ct,Je,ie,ve,De],xt=P.apply(n,Dt);return $1(d)&&ZM(xt,Dt),xt.placeholder=z,JM(xt,d,h)}function P1(d){var h=ur[d];return function(P,z){if(P=vs(P),z=z==null?0:Br(Ot(z),292),z&&J2(P)){var U=(on(P)+"e").split("e"),q=h(U[0]+"e"+(+U[1]+z));return U=(on(q)+"e").split("e"),+(U[0]+"e"+(+U[1]-z))}return h(P)}}var XH=Jc&&1/im(new Jc([,-0]))[1]==B?function(d){return new Jc(d)}:G1;function VM(d){return function(h){var P=zr(h);return P==Se?e1(h):P==fe?hj(h):ij(h,d(h))}}function Qi(d,h,P,z,U,q,te,ie){var ve=h&b;if(!ve&&typeof d!="function")throw new fs(i);var De=z?z.length:0;if(De||(h&=~(M|E),z=U=n),te=te===n?te:dr(Ot(te),0),ie=ie===n?ie:Ot(ie),De-=U?U.length:0,h&E){var Fe=z,Be=U;z=U=n}var Je=ve?n:I1(d),pt=[d,h,P,z,U,Fe,Be,q,te,ie];if(Je&&f6(pt,Je),d=pt[0],h=pt[1],P=pt[2],z=pt[3],U=pt[4],ie=pt[9]=pt[9]===n?ve?0:d.length:dr(pt[9]-De,0),!ie&&h&(S|k)&&(h&=~(S|k)),!h||h==C)var Ct=qH(d,h,P);else h==S||h==k?Ct=YH(d,h,ie):(h==M||h==(C|M))&&!U.length?Ct=QH(d,h,P,z):Ct=Mm.apply(n,pt);var Dt=Je?CM:ZM;return JM(Dt(Ct,pt),d,h)}function jM(d,h,P,z){return d===n||Ws(d,Zc[P])&&!cn.call(z,P)?h:d}function HM(d,h,P,z,U,q){return Nn(d)&&Nn(h)&&(q.set(h,d),Pm(d,h,n,HM,q),q.delete(h)),d}function ZH(d){return Mf(d)?n:d}function UM(d,h,P,z,U,q){var te=P&y,ie=d.length,ve=h.length;if(ie!=ve&&!(te&&ve>ie))return!1;var De=q.get(d),Fe=q.get(h);if(De&&Fe)return De==h&&Fe==d;var Be=-1,Je=!0,pt=P&g?new Wa:n;for(q.set(d,h),q.set(h,d);++Be<ie;){var Ct=d[Be],Dt=h[Be];if(z)var xt=te?z(Dt,Ct,Be,h,d,q):z(Ct,Dt,Be,d,h,q);if(xt!==n){if(xt)continue;Je=!1;break}if(pt){if(!q0(h,function(Bt,Gt){if(!hf(pt,Gt)&&(Ct===Bt||U(Ct,Bt,P,z,q)))return pt.push(Gt)})){Je=!1;break}}else if(!(Ct===Dt||U(Ct,Dt,P,z,q))){Je=!1;break}}return q.delete(d),q.delete(h),Je}function JH(d,h,P,z,U,q,te){switch(P){case Ue:if(d.byteLength!=h.byteLength||d.byteOffset!=h.byteOffset)return!1;d=d.buffer,h=h.buffer;case Ve:return!(d.byteLength!=h.byteLength||!q(new fm(d),new fm(h)));case Z:case he:case Ee:return Ws(+d,+h);case re:return d.name==h.name&&d.message==h.message;case pe:case de:return d==h+"";case Se:var ie=e1;case fe:var ve=z&y;if(ie||(ie=im),d.size!=h.size&&!ve)return!1;var De=te.get(d);if(De)return De==h;z|=g,te.set(d,h);var Fe=UM(ie(d),ie(h),z,U,q,te);return te.delete(d),Fe;case be:if(bf)return bf.call(d)==bf.call(h)}return!1}function e6(d,h,P,z,U,q){var te=P&y,ie=k1(d),ve=ie.length,De=k1(h),Fe=De.length;if(ve!=Fe&&!te)return!1;for(var Be=ve;Be--;){var Je=ie[Be];if(!(te?Je in h:cn.call(h,Je)))return!1}var pt=q.get(d),Ct=q.get(h);if(pt&&Ct)return pt==h&&Ct==d;var Dt=!0;q.set(d,h),q.set(h,d);for(var xt=te;++Be<ve;){Je=ie[Be];var Bt=d[Je],Gt=h[Je];if(z)var No=te?z(Gt,Bt,Je,h,d,q):z(Bt,Gt,Je,d,h,q);if(!(No===n?Bt===Gt||U(Bt,Gt,P,z,q):No)){Dt=!1;break}xt||(xt=Je=="constructor")}if(Dt&&!xt){var ro=d.constructor,Bo=h.constructor;ro!=Bo&&"constructor"in d&&"constructor"in h&&!(typeof ro=="function"&&ro instanceof ro&&typeof Bo=="function"&&Bo instanceof Bo)&&(Dt=!1)}return q.delete(d),q.delete(h),Dt}function Xi(d){return O1(QM(d,n,s_),d+"")}function k1(d){return uM(d,br,_1)}function E1(d){return uM(d,vo,WM)}var I1=ym?function(d){return ym.get(d)}:G1;function Rm(d){for(var h=d.name+"",P=eu[h],z=cn.call(eu,h)?P.length:0;z--;){var U=P[z],q=U.func;if(q==null||q==d)return U.name}return h}function ou(d){var h=cn.call(G,"placeholder")?G:d;return h.placeholder}function yt(){var d=G.iteratee||U1;return d=d===U1?pM:d,arguments.length?d(arguments[0],arguments[1]):d}function Om(d,h){var P=d.__data__;return a6(h)?P[typeof h=="string"?"string":"hash"]:P.map}function M1(d){for(var h=br(d),P=h.length;P--;){var z=h[P],U=d[z];h[P]=[z,U,qM(U)]}return h}function qa(d,h){var P=dj(d,h);return fM(P)?P:n}function t6(d){var h=cn.call(d,Ha),P=d[Ha];try{d[Ha]=n;var z=!0}catch(q){}var U=um.call(d);return z&&(h?d[Ha]=P:delete d[Ha]),U}var _1=n1?function(d){return d==null?[]:(d=vn(d),$l(n1(d),function(h){return X2.call(d,h)}))}:K1,WM=n1?function(d){for(var h=[];d;)Rl(h,_1(d)),d=pm(d);return h}:K1,zr=to;(r1&&zr(new r1(new ArrayBuffer(1)))!=Ue||gf&&zr(new gf)!=Se||o1&&zr(o1.resolve())!=ye||Jc&&zr(new Jc)!=fe||vf&&zr(new vf)!=Ne)&&(zr=function(d){var h=to(d),P=h==Ie?d.constructor:n,z=P?Ya(P):"";if(z)switch(z){case Fj:return Ue;case Nj:return Se;case Bj:return ye;case zj:return fe;case Vj:return Ne}return h});function n6(d,h,P){for(var z=-1,U=P.length;++z<U;){var q=P[z],te=q.size;switch(q.type){case"drop":d+=te;break;case"dropRight":h-=te;break;case"take":h=Br(h,d+te);break;case"takeRight":d=dr(d,h-te);break}}return{start:d,end:h}}function r6(d){var h=d.match(Oo);return h?h[1].split(hi):[]}function GM(d,h,P){h=Fl(h,d);for(var z=-1,U=h.length,q=!1;++z<U;){var te=vi(h[z]);if(!(q=d!=null&&P(d,te)))break;d=d[te]}return q||++z!=U?q:(U=d==null?0:d.length,!!U&&zm(U)&&Zi(te,U)&&(Mt(d)||Qa(d)))}function o6(d){var h=d.length,P=new d.constructor(h);return h&&typeof d[0]=="string"&&cn.call(d,"index")&&(P.index=d.index,P.input=d.input),P}function KM(d){return typeof d.constructor=="function"&&!Ef(d)?tu(pm(d)):{}}function s6(d,h,P){var z=d.constructor;switch(h){case Ve:return x1(d);case Z:case he:return new z(+d);case Ue:return jH(d,P);case Le:case ht:case Zt:case Pt:case wt:case Xe:case Oe:case qe:case mt:return _M(d,P);case Se:return new z;case Ee:case de:return new z(d);case pe:return HH(d);case fe:return new z;case be:return UH(d)}}function i6(d,h){var P=h.length;if(!P)return d;var z=P-1;return h[z]=(P>1?"& ":"")+h[z],h=h.join(P>2?", ":" "),d.replace(lr,`{
301
+ /* [wrapped with `+h+`] */
302
+ `)}function l6(d){return Mt(d)||Qa(d)||!!(Z2&&d&&d[Z2])}function Zi(d,h){var P=typeof d;return h=h==null?O:h,!!h&&(P=="number"||P!="symbol"&&Fn.test(d))&&d>-1&&d%1==0&&d<h}function no(d,h,P){if(!Nn(P))return!1;var z=typeof h;return(z=="number"?go(P)&&Zi(h,P.length):z=="string"&&h in P)?Ws(P[h],d):!1}function T1(d,h){if(Mt(d))return!1;var P=typeof d;return P=="number"||P=="symbol"||P=="boolean"||d==null||Fo(d)?!0:as.test(d)||!Tl.test(d)||h!=null&&d in vn(h)}function a6(d){var h=typeof d;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?d!=="__proto__":d===null}function $1(d){var h=Rm(d),P=G[h];if(typeof P!="function"||!(h in Ht.prototype))return!1;if(d===P)return!0;var z=I1(P);return!!z&&d===z[0]}function c6(d){return!!q2&&q2 in d}var u6=am?Ji:q1;function Ef(d){var h=d&&d.constructor,P=typeof h=="function"&&h.prototype||Zc;return d===P}function qM(d){return d===d&&!Nn(d)}function YM(d,h){return function(P){return P==null?!1:P[d]===h&&(h!==n||d in vn(P))}}function d6(d){var h=Nm(d,function(z){return P.size===u&&P.clear(),z}),P=h.cache;return h}function f6(d,h){var P=d[1],z=h[1],U=P|z,q=U<(C|b|I),te=z==I&&P==S||z==I&&P==R&&d[7].length<=h[8]||z==(I|R)&&h[7].length<=h[8]&&P==S;if(!(q||te))return d;z&C&&(d[2]=h[2],U|=P&C?0:w);var ie=h[3];if(ie){var ve=d[3];d[3]=ve?$M(ve,ie,h[4]):ie,d[4]=ve?Ol(d[3],f):h[4]}return ie=h[5],ie&&(ve=d[5],d[5]=ve?RM(ve,ie,h[6]):ie,d[6]=ve?Ol(d[5],f):h[6]),ie=h[7],ie&&(d[7]=ie),z&I&&(d[8]=d[8]==null?h[8]:Br(d[8],h[8])),d[9]==null&&(d[9]=h[9]),d[0]=h[0],d[1]=U,d}function p6(d){var h=[];if(d!=null)for(var P in vn(d))h.push(P);return h}function h6(d){return um.call(d)}function QM(d,h,P){return h=dr(h===n?d.length-1:h,0),function(){for(var z=arguments,U=-1,q=dr(z.length-h,0),te=ke(q);++U<q;)te[U]=z[h+U];U=-1;for(var ie=ke(h+1);++U<h;)ie[U]=z[U];return ie[h]=P(te),Do(d,this,ie)}}function XM(d,h){return h.length<2?d:Ka(d,ms(h,0,-1))}function m6(d,h){for(var P=d.length,z=Br(h.length,P),U=mo(d);z--;){var q=h[z];d[z]=Zi(q,P)?U[q]:n}return d}function R1(d,h){if(!(h==="constructor"&&typeof d[h]=="function")&&h!="__proto__")return d[h]}var ZM=e_(CM),If=Tj||function(d,h){return _r.setTimeout(d,h)},O1=e_(NH);function JM(d,h,P){var z=h+"";return O1(d,i6(z,g6(r6(z),P)))}function e_(d){var h=0,P=0;return function(){var z=Dj(),U=j-(z-P);if(P=z,U>0){if(++h>=V)return arguments[0]}else h=0;return d.apply(n,arguments)}}function Dm(d,h){var P=-1,z=d.length,U=z-1;for(h=h===n?z:h;++P<h;){var q=m1(P,U),te=d[q];d[q]=d[P],d[P]=te}return d.length=h,d}var t_=d6(function(d){var h=[];return d.charCodeAt(0)===46&&h.push(""),d.replace(Tn,function(P,z,U,q){h.push(U?q.replace(js,"$1"):z||P)}),h});function vi(d){if(typeof d=="string"||Fo(d))return d;var h=d+"";return h=="0"&&1/d==-B?"-0":h}function Ya(d){if(d!=null){try{return cm.call(d)}catch(h){}try{return d+""}catch(h){}}return""}function g6(d,h){return ds(Y,function(P){var z="_."+P[0];h&P[1]&&!om(d,z)&&d.push(z)}),d.sort()}function n_(d){if(d instanceof Ht)return d.clone();var h=new ps(d.__wrapped__,d.__chain__);return h.__actions__=mo(d.__actions__),h.__index__=d.__index__,h.__values__=d.__values__,h}function v6(d,h,P){(P?no(d,h,P):h===n)?h=1:h=dr(Ot(h),0);var z=d==null?0:d.length;if(!z||h<1)return[];for(var U=0,q=0,te=ke(gm(z/h));U<z;)te[q++]=ms(d,U,U+=h);return te}function y6(d){for(var h=-1,P=d==null?0:d.length,z=0,U=[];++h<P;){var q=d[h];q&&(U[z++]=q)}return U}function b6(){var d=arguments.length;if(!d)return[];for(var h=ke(d-1),P=arguments[0],z=d;z--;)h[z-1]=arguments[z];return Rl(Mt(P)?mo(P):[P],Tr(h,1))}var w6=Lt(function(d,h){return Zn(d)?Cf(d,Tr(h,1,Zn,!0)):[]}),C6=Lt(function(d,h){var P=gs(h);return Zn(P)&&(P=n),Zn(d)?Cf(d,Tr(h,1,Zn,!0),yt(P,2)):[]}),x6=Lt(function(d,h){var P=gs(h);return Zn(P)&&(P=n),Zn(d)?Cf(d,Tr(h,1,Zn,!0),n,P):[]});function S6(d,h,P){var z=d==null?0:d.length;return z?(h=P||h===n?1:Ot(h),ms(d,h<0?0:h,z)):[]}function P6(d,h,P){var z=d==null?0:d.length;return z?(h=P||h===n?1:Ot(h),h=z-h,ms(d,0,h<0?0:h)):[]}function k6(d,h){return d&&d.length?Em(d,yt(h,3),!0,!0):[]}function E6(d,h){return d&&d.length?Em(d,yt(h,3),!0):[]}function I6(d,h,P,z){var U=d==null?0:d.length;return U?(P&&typeof P!="number"&&no(d,h,P)&&(P=0,z=U),bH(d,h,P,z)):[]}function r_(d,h,P){var z=d==null?0:d.length;if(!z)return-1;var U=P==null?0:Ot(P);return U<0&&(U=dr(z+U,0)),sm(d,yt(h,3),U)}function o_(d,h,P){var z=d==null?0:d.length;if(!z)return-1;var U=z-1;return P!==n&&(U=Ot(P),U=P<0?dr(z+U,0):Br(U,z-1)),sm(d,yt(h,3),U,!0)}function s_(d){var h=d==null?0:d.length;return h?Tr(d,1):[]}function M6(d){var h=d==null?0:d.length;return h?Tr(d,B):[]}function _6(d,h){var P=d==null?0:d.length;return P?(h=h===n?1:Ot(h),Tr(d,h)):[]}function T6(d){for(var h=-1,P=d==null?0:d.length,z={};++h<P;){var U=d[h];z[U[0]]=U[1]}return z}function i_(d){return d&&d.length?d[0]:n}function $6(d,h,P){var z=d==null?0:d.length;if(!z)return-1;var U=P==null?0:Ot(P);return U<0&&(U=dr(z+U,0)),qc(d,h,U)}function R6(d){var h=d==null?0:d.length;return h?ms(d,0,-1):[]}var O6=Lt(function(d){var h=Rn(d,w1);return h.length&&h[0]===d[0]?u1(h):[]}),D6=Lt(function(d){var h=gs(d),P=Rn(d,w1);return h===gs(P)?h=n:P.pop(),P.length&&P[0]===d[0]?u1(P,yt(h,2)):[]}),A6=Lt(function(d){var h=gs(d),P=Rn(d,w1);return h=typeof h=="function"?h:n,h&&P.pop(),P.length&&P[0]===d[0]?u1(P,n,h):[]});function L6(d,h){return d==null?"":Rj.call(d,h)}function gs(d){var h=d==null?0:d.length;return h?d[h-1]:n}function F6(d,h,P){var z=d==null?0:d.length;if(!z)return-1;var U=z;return P!==n&&(U=Ot(P),U=U<0?dr(z+U,0):Br(U,z-1)),h===h?gj(d,h,U):sm(d,z2,U,!0)}function N6(d,h){return d&&d.length?vM(d,Ot(h)):n}var B6=Lt(l_);function l_(d,h){return d&&d.length&&h&&h.length?h1(d,h):d}function z6(d,h,P){return d&&d.length&&h&&h.length?h1(d,h,yt(P,2)):d}function V6(d,h,P){return d&&d.length&&h&&h.length?h1(d,h,n,P):d}var j6=Xi(function(d,h){var P=d==null?0:d.length,z=i1(d,h);return wM(d,Rn(h,function(U){return Zi(U,P)?+U:U}).sort(TM)),z});function H6(d,h){var P=[];if(!(d&&d.length))return P;var z=-1,U=[],q=d.length;for(h=yt(h,3);++z<q;){var te=d[z];h(te,z,d)&&(P.push(te),U.push(z))}return wM(d,U),P}function D1(d){return d==null?d:Lj.call(d)}function U6(d,h,P){var z=d==null?0:d.length;return z?(P&&typeof P!="number"&&no(d,h,P)?(h=0,P=z):(h=h==null?0:Ot(h),P=P===n?z:Ot(P)),ms(d,h,P)):[]}function W6(d,h){return km(d,h)}function G6(d,h,P){return v1(d,h,yt(P,2))}function K6(d,h){var P=d==null?0:d.length;if(P){var z=km(d,h);if(z<P&&Ws(d[z],h))return z}return-1}function q6(d,h){return km(d,h,!0)}function Y6(d,h,P){return v1(d,h,yt(P,2),!0)}function Q6(d,h){var P=d==null?0:d.length;if(P){var z=km(d,h,!0)-1;if(Ws(d[z],h))return z}return-1}function X6(d){return d&&d.length?xM(d):[]}function Z6(d,h){return d&&d.length?xM(d,yt(h,2)):[]}function J6(d){var h=d==null?0:d.length;return h?ms(d,1,h):[]}function e9(d,h,P){return d&&d.length?(h=P||h===n?1:Ot(h),ms(d,0,h<0?0:h)):[]}function t9(d,h,P){var z=d==null?0:d.length;return z?(h=P||h===n?1:Ot(h),h=z-h,ms(d,h<0?0:h,z)):[]}function n9(d,h){return d&&d.length?Em(d,yt(h,3),!1,!0):[]}function r9(d,h){return d&&d.length?Em(d,yt(h,3)):[]}var o9=Lt(function(d){return Ll(Tr(d,1,Zn,!0))}),s9=Lt(function(d){var h=gs(d);return Zn(h)&&(h=n),Ll(Tr(d,1,Zn,!0),yt(h,2))}),i9=Lt(function(d){var h=gs(d);return h=typeof h=="function"?h:n,Ll(Tr(d,1,Zn,!0),n,h)});function l9(d){return d&&d.length?Ll(d):[]}function a9(d,h){return d&&d.length?Ll(d,yt(h,2)):[]}function c9(d,h){return h=typeof h=="function"?h:n,d&&d.length?Ll(d,n,h):[]}function A1(d){if(!(d&&d.length))return[];var h=0;return d=$l(d,function(P){if(Zn(P))return h=dr(P.length,h),!0}),Z0(h,function(P){return Rn(d,Y0(P))})}function a_(d,h){if(!(d&&d.length))return[];var P=A1(d);return h==null?P:Rn(P,function(z){return Do(h,n,z)})}var u9=Lt(function(d,h){return Zn(d)?Cf(d,h):[]}),d9=Lt(function(d){return b1($l(d,Zn))}),f9=Lt(function(d){var h=gs(d);return Zn(h)&&(h=n),b1($l(d,Zn),yt(h,2))}),p9=Lt(function(d){var h=gs(d);return h=typeof h=="function"?h:n,b1($l(d,Zn),n,h)}),h9=Lt(A1);function m9(d,h){return EM(d||[],h||[],wf)}function g9(d,h){return EM(d||[],h||[],Pf)}var v9=Lt(function(d){var h=d.length,P=h>1?d[h-1]:n;return P=typeof P=="function"?(d.pop(),P):n,a_(d,P)});function c_(d){var h=G(d);return h.__chain__=!0,h}function y9(d,h){return h(d),d}function Am(d,h){return h(d)}var b9=Xi(function(d){var h=d.length,P=h?d[0]:0,z=this.__wrapped__,U=function(q){return i1(q,d)};return h>1||this.__actions__.length||!(z instanceof Ht)||!Zi(P)?this.thru(U):(z=z.slice(P,+P+(h?1:0)),z.__actions__.push({func:Am,args:[U],thisArg:n}),new ps(z,this.__chain__).thru(function(q){return h&&!q.length&&q.push(n),q}))});function w9(){return c_(this)}function C9(){return new ps(this.value(),this.__chain__)}function x9(){this.__values__===n&&(this.__values__=S_(this.value()));var d=this.__index__>=this.__values__.length,h=d?n:this.__values__[this.__index__++];return{done:d,value:h}}function S9(){return this}function P9(d){for(var h,P=this;P instanceof wm;){var z=n_(P);z.__index__=0,z.__values__=n,h?U.__wrapped__=z:h=z;var U=z;P=P.__wrapped__}return U.__wrapped__=d,h}function k9(){var d=this.__wrapped__;if(d instanceof Ht){var h=d;return this.__actions__.length&&(h=new Ht(this)),h=h.reverse(),h.__actions__.push({func:Am,args:[D1],thisArg:n}),new ps(h,this.__chain__)}return this.thru(D1)}function E9(){return kM(this.__wrapped__,this.__actions__)}var I9=Im(function(d,h,P){cn.call(d,P)?++d[P]:Yi(d,P,1)});function M9(d,h,P){var z=Mt(d)?N2:yH;return P&&no(d,h,P)&&(h=n),z(d,yt(h,3))}function _9(d,h){var P=Mt(d)?$l:aM;return P(d,yt(h,3))}var T9=LM(r_),$9=LM(o_);function R9(d,h){return Tr(Lm(d,h),1)}function O9(d,h){return Tr(Lm(d,h),B)}function D9(d,h,P){return P=P===n?1:Ot(P),Tr(Lm(d,h),P)}function u_(d,h){var P=Mt(d)?ds:Al;return P(d,yt(h,3))}function d_(d,h){var P=Mt(d)?JV:lM;return P(d,yt(h,3))}var A9=Im(function(d,h,P){cn.call(d,P)?d[P].push(h):Yi(d,P,[h])});function L9(d,h,P,z){d=go(d)?d:iu(d),P=P&&!z?Ot(P):0;var U=d.length;return P<0&&(P=dr(U+P,0)),Vm(d)?P<=U&&d.indexOf(h,P)>-1:!!U&&qc(d,h,P)>-1}var F9=Lt(function(d,h,P){var z=-1,U=typeof h=="function",q=go(d)?ke(d.length):[];return Al(d,function(te){q[++z]=U?Do(h,te,P):xf(te,h,P)}),q}),N9=Im(function(d,h,P){Yi(d,P,h)});function Lm(d,h){var P=Mt(d)?Rn:hM;return P(d,yt(h,3))}function B9(d,h,P,z){return d==null?[]:(Mt(h)||(h=h==null?[]:[h]),P=z?n:P,Mt(P)||(P=P==null?[]:[P]),yM(d,h,P))}var z9=Im(function(d,h,P){d[P?0:1].push(h)},function(){return[[],[]]});function V9(d,h,P){var z=Mt(d)?K0:j2,U=arguments.length<3;return z(d,yt(h,4),P,U,Al)}function j9(d,h,P){var z=Mt(d)?ej:j2,U=arguments.length<3;return z(d,yt(h,4),P,U,lM)}function H9(d,h){var P=Mt(d)?$l:aM;return P(d,Bm(yt(h,3)))}function U9(d){var h=Mt(d)?rM:LH;return h(d)}function W9(d,h,P){(P?no(d,h,P):h===n)?h=1:h=Ot(h);var z=Mt(d)?pH:FH;return z(d,h)}function G9(d){var h=Mt(d)?hH:BH;return h(d)}function K9(d){if(d==null)return 0;if(go(d))return Vm(d)?Qc(d):d.length;var h=zr(d);return h==Se||h==fe?d.size:f1(d).length}function q9(d,h,P){var z=Mt(d)?q0:zH;return P&&no(d,h,P)&&(h=n),z(d,yt(h,3))}var Y9=Lt(function(d,h){if(d==null)return[];var P=h.length;return P>1&&no(d,h[0],h[1])?h=[]:P>2&&no(h[0],h[1],h[2])&&(h=[h[0]]),yM(d,Tr(h,1),[])}),Fm=_j||function(){return _r.Date.now()};function Q9(d,h){if(typeof h!="function")throw new fs(i);return d=Ot(d),function(){if(--d<1)return h.apply(this,arguments)}}function f_(d,h,P){return h=P?n:h,h=d&&h==null?d.length:h,Qi(d,I,n,n,n,n,h)}function p_(d,h){var P;if(typeof h!="function")throw new fs(i);return d=Ot(d),function(){return--d>0&&(P=h.apply(this,arguments)),d<=1&&(h=n),P}}var L1=Lt(function(d,h,P){var z=C;if(P.length){var U=Ol(P,ou(L1));z|=M}return Qi(d,z,h,P,U)}),h_=Lt(function(d,h,P){var z=C|b;if(P.length){var U=Ol(P,ou(h_));z|=M}return Qi(h,z,d,P,U)});function m_(d,h,P){h=P?n:h;var z=Qi(d,S,n,n,n,n,n,h);return z.placeholder=m_.placeholder,z}function g_(d,h,P){h=P?n:h;var z=Qi(d,k,n,n,n,n,n,h);return z.placeholder=g_.placeholder,z}function v_(d,h,P){var z,U,q,te,ie,ve,De=0,Fe=!1,Be=!1,Je=!0;if(typeof d!="function")throw new fs(i);h=vs(h)||0,Nn(P)&&(Fe=!!P.leading,Be="maxWait"in P,q=Be?dr(vs(P.maxWait)||0,h):q,Je="trailing"in P?!!P.trailing:Je);function pt(Jn){var Gs=z,tl=U;return z=U=n,De=Jn,te=d.apply(tl,Gs),te}function Ct(Jn){return De=Jn,ie=If(Bt,h),Fe?pt(Jn):te}function Dt(Jn){var Gs=Jn-ve,tl=Jn-De,L_=h-Gs;return Be?Br(L_,q-tl):L_}function xt(Jn){var Gs=Jn-ve,tl=Jn-De;return ve===n||Gs>=h||Gs<0||Be&&tl>=q}function Bt(){var Jn=Fm();if(xt(Jn))return Gt(Jn);ie=If(Bt,Dt(Jn))}function Gt(Jn){return ie=n,Je&&z?pt(Jn):(z=U=n,te)}function No(){ie!==n&&IM(ie),De=0,z=ve=U=ie=n}function ro(){return ie===n?te:Gt(Fm())}function Bo(){var Jn=Fm(),Gs=xt(Jn);if(z=arguments,U=this,ve=Jn,Gs){if(ie===n)return Ct(ve);if(Be)return IM(ie),ie=If(Bt,h),pt(ve)}return ie===n&&(ie=If(Bt,h)),te}return Bo.cancel=No,Bo.flush=ro,Bo}var X9=Lt(function(d,h){return iM(d,1,h)}),Z9=Lt(function(d,h,P){return iM(d,vs(h)||0,P)});function J9(d){return Qi(d,A)}function Nm(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new fs(i);var P=function(){var z=arguments,U=h?h.apply(this,z):z[0],q=P.cache;if(q.has(U))return q.get(U);var te=d.apply(this,z);return P.cache=q.set(U,te)||q,te};return P.cache=new(Nm.Cache||qi),P}Nm.Cache=qi;function Bm(d){if(typeof d!="function")throw new fs(i);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}function e8(d){return p_(2,d)}var t8=VH(function(d,h){h=h.length==1&&Mt(h[0])?Rn(h[0],Ao(yt())):Rn(Tr(h,1),Ao(yt()));var P=h.length;return Lt(function(z){for(var U=-1,q=Br(z.length,P);++U<q;)z[U]=h[U].call(this,z[U]);return Do(d,this,z)})}),F1=Lt(function(d,h){var P=Ol(h,ou(F1));return Qi(d,M,n,h,P)}),y_=Lt(function(d,h){var P=Ol(h,ou(y_));return Qi(d,E,n,h,P)}),n8=Xi(function(d,h){return Qi(d,R,n,n,n,h)});function r8(d,h){if(typeof d!="function")throw new fs(i);return h=h===n?h:Ot(h),Lt(d,h)}function o8(d,h){if(typeof d!="function")throw new fs(i);return h=h==null?0:dr(Ot(h),0),Lt(function(P){var z=P[h],U=Nl(P,0,h);return z&&Rl(U,z),Do(d,this,U)})}function s8(d,h,P){var z=!0,U=!0;if(typeof d!="function")throw new fs(i);return Nn(P)&&(z="leading"in P?!!P.leading:z,U="trailing"in P?!!P.trailing:U),v_(d,h,{leading:z,maxWait:h,trailing:U})}function i8(d){return f_(d,1)}function l8(d,h){return F1(C1(h),d)}function a8(){if(!arguments.length)return[];var d=arguments[0];return Mt(d)?d:[d]}function c8(d){return hs(d,v)}function u8(d,h){return h=typeof h=="function"?h:n,hs(d,v,h)}function d8(d){return hs(d,p|v)}function f8(d,h){return h=typeof h=="function"?h:n,hs(d,p|v,h)}function p8(d,h){return h==null||sM(d,h,br(h))}function Ws(d,h){return d===h||d!==d&&h!==h}var h8=$m(c1),m8=$m(function(d,h){return d>=h}),Qa=dM(function(){return arguments}())?dM:function(d){return Un(d)&&cn.call(d,"callee")&&!X2.call(d,"callee")},Mt=ke.isArray,g8=R2?Ao(R2):PH;function go(d){return d!=null&&zm(d.length)&&!Ji(d)}function Zn(d){return Un(d)&&go(d)}function v8(d){return d===!0||d===!1||Un(d)&&to(d)==Z}var Bl=$j||q1,y8=O2?Ao(O2):kH;function b8(d){return Un(d)&&d.nodeType===1&&!Mf(d)}function w8(d){if(d==null)return!0;if(go(d)&&(Mt(d)||typeof d=="string"||typeof d.splice=="function"||Bl(d)||su(d)||Qa(d)))return!d.length;var h=zr(d);if(h==Se||h==fe)return!d.size;if(Ef(d))return!f1(d).length;for(var P in d)if(cn.call(d,P))return!1;return!0}function C8(d,h){return Sf(d,h)}function x8(d,h,P){P=typeof P=="function"?P:n;var z=P?P(d,h):n;return z===n?Sf(d,h,n,P):!!z}function N1(d){if(!Un(d))return!1;var h=to(d);return h==re||h==ne||typeof d.message=="string"&&typeof d.name=="string"&&!Mf(d)}function S8(d){return typeof d=="number"&&J2(d)}function Ji(d){if(!Nn(d))return!1;var h=to(d);return h==me||h==ce||h==se||h==Me}function b_(d){return typeof d=="number"&&d==Ot(d)}function zm(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=O}function Nn(d){var h=typeof d;return d!=null&&(h=="object"||h=="function")}function Un(d){return d!=null&&typeof d=="object"}var w_=D2?Ao(D2):IH;function P8(d,h){return d===h||d1(d,h,M1(h))}function k8(d,h,P){return P=typeof P=="function"?P:n,d1(d,h,M1(h),P)}function E8(d){return C_(d)&&d!=+d}function I8(d){if(u6(d))throw new It(s);return fM(d)}function M8(d){return d===null}function _8(d){return d==null}function C_(d){return typeof d=="number"||Un(d)&&to(d)==Ee}function Mf(d){if(!Un(d)||to(d)!=Ie)return!1;var h=pm(d);if(h===null)return!0;var P=cn.call(h,"constructor")&&h.constructor;return typeof P=="function"&&P instanceof P&&cm.call(P)==kj}var B1=A2?Ao(A2):MH;function T8(d){return b_(d)&&d>=-O&&d<=O}var x_=L2?Ao(L2):_H;function Vm(d){return typeof d=="string"||!Mt(d)&&Un(d)&&to(d)==de}function Fo(d){return typeof d=="symbol"||Un(d)&&to(d)==be}var su=F2?Ao(F2):TH;function $8(d){return d===n}function R8(d){return Un(d)&&zr(d)==Ne}function O8(d){return Un(d)&&to(d)==Ge}var D8=$m(p1),A8=$m(function(d,h){return d<=h});function S_(d){if(!d)return[];if(go(d))return Vm(d)?Hs(d):mo(d);if(mf&&d[mf])return pj(d[mf]());var h=zr(d),P=h==Se?e1:h==fe?im:iu;return P(d)}function el(d){if(!d)return d===0?d:0;if(d=vs(d),d===B||d===-B){var h=d<0?-1:1;return h*N}return d===d?d:0}function Ot(d){var h=el(d),P=h%1;return h===h?P?h-P:h:0}function P_(d){return d?Ga(Ot(d),0,K):0}function vs(d){if(typeof d=="number")return d;if(Fo(d))return H;if(Nn(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=Nn(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=H2(d);var P=ft.test(d);return P||$n.test(d)?QV(d.slice(2),P?2:8):Qe.test(d)?H:+d}function k_(d){return gi(d,vo(d))}function L8(d){return d?Ga(Ot(d),-O,O):d===0?d:0}function on(d){return d==null?"":Lo(d)}var F8=nu(function(d,h){if(Ef(h)||go(h)){gi(h,br(h),d);return}for(var P in h)cn.call(h,P)&&wf(d,P,h[P])}),E_=nu(function(d,h){gi(h,vo(h),d)}),jm=nu(function(d,h,P,z){gi(h,vo(h),d,z)}),N8=nu(function(d,h,P,z){gi(h,br(h),d,z)}),B8=Xi(i1);function z8(d,h){var P=tu(d);return h==null?P:oM(P,h)}var V8=Lt(function(d,h){d=vn(d);var P=-1,z=h.length,U=z>2?h[2]:n;for(U&&no(h[0],h[1],U)&&(z=1);++P<z;)for(var q=h[P],te=vo(q),ie=-1,ve=te.length;++ie<ve;){var De=te[ie],Fe=d[De];(Fe===n||Ws(Fe,Zc[De])&&!cn.call(d,De))&&(d[De]=q[De])}return d}),j8=Lt(function(d){return d.push(n,HM),Do(I_,n,d)});function H8(d,h){return B2(d,yt(h,3),mi)}function U8(d,h){return B2(d,yt(h,3),a1)}function W8(d,h){return d==null?d:l1(d,yt(h,3),vo)}function G8(d,h){return d==null?d:cM(d,yt(h,3),vo)}function K8(d,h){return d&&mi(d,yt(h,3))}function q8(d,h){return d&&a1(d,yt(h,3))}function Y8(d){return d==null?[]:Sm(d,br(d))}function Q8(d){return d==null?[]:Sm(d,vo(d))}function z1(d,h,P){var z=d==null?n:Ka(d,h);return z===n?P:z}function X8(d,h){return d!=null&&GM(d,h,wH)}function V1(d,h){return d!=null&&GM(d,h,CH)}var Z8=NM(function(d,h,P){h!=null&&typeof h.toString!="function"&&(h=um.call(h)),d[h]=P},H1(yo)),J8=NM(function(d,h,P){h!=null&&typeof h.toString!="function"&&(h=um.call(h)),cn.call(d,h)?d[h].push(P):d[h]=[P]},yt),e7=Lt(xf);function br(d){return go(d)?nM(d):f1(d)}function vo(d){return go(d)?nM(d,!0):$H(d)}function t7(d,h){var P={};return h=yt(h,3),mi(d,function(z,U,q){Yi(P,h(z,U,q),z)}),P}function n7(d,h){var P={};return h=yt(h,3),mi(d,function(z,U,q){Yi(P,U,h(z,U,q))}),P}var r7=nu(function(d,h,P){Pm(d,h,P)}),I_=nu(function(d,h,P,z){Pm(d,h,P,z)}),o7=Xi(function(d,h){var P={};if(d==null)return P;var z=!1;h=Rn(h,function(q){return q=Fl(q,d),z||(z=q.length>1),q}),gi(d,E1(d),P),z&&(P=hs(P,p|m|v,ZH));for(var U=h.length;U--;)y1(P,h[U]);return P});function s7(d,h){return M_(d,Bm(yt(h)))}var i7=Xi(function(d,h){return d==null?{}:OH(d,h)});function M_(d,h){if(d==null)return{};var P=Rn(E1(d),function(z){return[z]});return h=yt(h),bM(d,P,function(z,U){return h(z,U[0])})}function l7(d,h,P){h=Fl(h,d);var z=-1,U=h.length;for(U||(U=1,d=n);++z<U;){var q=d==null?n:d[vi(h[z])];q===n&&(z=U,q=P),d=Ji(q)?q.call(d):q}return d}function a7(d,h,P){return d==null?d:Pf(d,h,P)}function c7(d,h,P,z){return z=typeof z=="function"?z:n,d==null?d:Pf(d,h,P,z)}var __=VM(br),T_=VM(vo);function u7(d,h,P){var z=Mt(d),U=z||Bl(d)||su(d);if(h=yt(h,4),P==null){var q=d&&d.constructor;U?P=z?new q:[]:Nn(d)?P=Ji(q)?tu(pm(d)):{}:P={}}return(U?ds:mi)(d,function(te,ie,ve){return h(P,te,ie,ve)}),P}function d7(d,h){return d==null?!0:y1(d,h)}function f7(d,h,P){return d==null?d:PM(d,h,C1(P))}function p7(d,h,P,z){return z=typeof z=="function"?z:n,d==null?d:PM(d,h,C1(P),z)}function iu(d){return d==null?[]:J0(d,br(d))}function h7(d){return d==null?[]:J0(d,vo(d))}function m7(d,h,P){return P===n&&(P=h,h=n),P!==n&&(P=vs(P),P=P===P?P:0),h!==n&&(h=vs(h),h=h===h?h:0),Ga(vs(d),h,P)}function g7(d,h,P){return h=el(h),P===n?(P=h,h=0):P=el(P),d=vs(d),xH(d,h,P)}function v7(d,h,P){if(P&&typeof P!="boolean"&&no(d,h,P)&&(h=P=n),P===n&&(typeof h=="boolean"?(P=h,h=n):typeof d=="boolean"&&(P=d,d=n)),d===n&&h===n?(d=0,h=1):(d=el(d),h===n?(h=d,d=0):h=el(h)),d>h){var z=d;d=h,h=z}if(P||d%1||h%1){var U=eM();return Br(d+U*(h-d+YV("1e-"+((U+"").length-1))),h)}return m1(d,h)}var y7=ru(function(d,h,P){return h=h.toLowerCase(),d+(P?$_(h):h)});function $_(d){return j1(on(d).toLowerCase())}function R_(d){return d=on(d),d&&d.replace(St,aj).replace(BV,"")}function b7(d,h,P){d=on(d),h=Lo(h);var z=d.length;P=P===n?z:Ga(Ot(P),0,z);var U=P;return P-=h.length,P>=0&&d.slice(P,U)==h}function w7(d){return d=on(d),d&&gt.test(d)?d.replace(Pn,cj):d}function C7(d){return d=on(d),d&&yr.test(d)?d.replace(an,"\\$&"):d}var x7=ru(function(d,h,P){return d+(P?"-":"")+h.toLowerCase()}),S7=ru(function(d,h,P){return d+(P?" ":"")+h.toLowerCase()}),P7=AM("toLowerCase");function k7(d,h,P){d=on(d),h=Ot(h);var z=h?Qc(d):0;if(!h||z>=h)return d;var U=(h-z)/2;return Tm(vm(U),P)+d+Tm(gm(U),P)}function E7(d,h,P){d=on(d),h=Ot(h);var z=h?Qc(d):0;return h&&z<h?d+Tm(h-z,P):d}function I7(d,h,P){d=on(d),h=Ot(h);var z=h?Qc(d):0;return h&&z<h?Tm(h-z,P)+d:d}function M7(d,h,P){return P||h==null?h=0:h&&(h=+h),Aj(on(d).replace(ho,""),h||0)}function _7(d,h,P){return(P?no(d,h,P):h===n)?h=1:h=Ot(h),g1(on(d),h)}function T7(){var d=arguments,h=on(d[0]);return d.length<3?h:h.replace(d[1],d[2])}var $7=ru(function(d,h,P){return d+(P?"_":"")+h.toLowerCase()});function R7(d,h,P){return P&&typeof P!="number"&&no(d,h,P)&&(h=P=n),P=P===n?K:P>>>0,P?(d=on(d),d&&(typeof h=="string"||h!=null&&!B1(h))&&(h=Lo(h),!h&&Yc(d))?Nl(Hs(d),0,P):d.split(h,P)):[]}var O7=ru(function(d,h,P){return d+(P?" ":"")+j1(h)});function D7(d,h,P){return d=on(d),P=P==null?0:Ga(Ot(P),0,d.length),h=Lo(h),d.slice(P,P+h.length)==h}function A7(d,h,P){var z=G.templateSettings;P&&no(d,h,P)&&(h=n),d=on(d),h=jm({},h,z,jM);var U=jm({},h.imports,z.imports,jM),q=br(U),te=J0(U,q),ie,ve,De=0,Fe=h.interpolate||Xn,Be="__p += '",Je=t1((h.escape||Xn).source+"|"+Fe.source+"|"+(Fe===ir?$e:Xn).source+"|"+(h.evaluate||Xn).source+"|$","g"),pt="//# sourceURL="+(cn.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++UV+"]")+`
303
+ `;d.replace(Je,function(xt,Bt,Gt,No,ro,Bo){return Gt||(Gt=No),Be+=d.slice(De,Bo).replace(CV,uj),Bt&&(ie=!0,Be+=`' +
304
+ __e(`+Bt+`) +
305
+ '`),ro&&(ve=!0,Be+=`';
306
+ `+ro+`;
307
+ __p += '`),Gt&&(Be+=`' +
308
+ ((__t = (`+Gt+`)) == null ? '' : __t) +
309
+ '`),De=Bo+xt.length,xt}),Be+=`';
310
+ `;var Ct=cn.call(h,"variable")&&h.variable;if(!Ct)Be=`with (obj) {
311
+ `+Be+`
312
+ }
313
+ `;else if(Nr.test(Ct))throw new It(l);Be=(ve?Be.replace(vt,""):Be).replace(Tt,"$1").replace(Yt,"$1;"),Be="function("+(Ct||"obj")+`) {
314
+ `+(Ct?"":`obj || (obj = {});
315
+ `)+"var __t, __p = ''"+(ie?", __e = _.escape":"")+(ve?`, __j = Array.prototype.join;
316
+ function print() { __p += __j.call(arguments, '') }
317
+ `:`;
318
+ `)+Be+`return __p
319
+ }`;var Dt=D_(function(){return en(q,pt+"return "+Be).apply(n,te)});if(Dt.source=Be,N1(Dt))throw Dt;return Dt}function L7(d){return on(d).toLowerCase()}function F7(d){return on(d).toUpperCase()}function N7(d,h,P){if(d=on(d),d&&(P||h===n))return H2(d);if(!d||!(h=Lo(h)))return d;var z=Hs(d),U=Hs(h),q=U2(z,U),te=W2(z,U)+1;return Nl(z,q,te).join("")}function B7(d,h,P){if(d=on(d),d&&(P||h===n))return d.slice(0,K2(d)+1);if(!d||!(h=Lo(h)))return d;var z=Hs(d),U=W2(z,Hs(h))+1;return Nl(z,0,U).join("")}function z7(d,h,P){if(d=on(d),d&&(P||h===n))return d.replace(ho,"");if(!d||!(h=Lo(h)))return d;var z=Hs(d),U=U2(z,Hs(h));return Nl(z,U).join("")}function V7(d,h){var P=$,z=L;if(Nn(h)){var U="separator"in h?h.separator:U;P="length"in h?Ot(h.length):P,z="omission"in h?Lo(h.omission):z}d=on(d);var q=d.length;if(Yc(d)){var te=Hs(d);q=te.length}if(P>=q)return d;var ie=P-Qc(z);if(ie<1)return z;var ve=te?Nl(te,0,ie).join(""):d.slice(0,ie);if(U===n)return ve+z;if(te&&(ie+=ve.length-ie),B1(U)){if(d.slice(ie).search(U)){var De,Fe=ve;for(U.global||(U=t1(U.source,on(we.exec(U))+"g")),U.lastIndex=0;De=U.exec(Fe);)var Be=De.index;ve=ve.slice(0,Be===n?ie:Be)}}else if(d.indexOf(Lo(U),ie)!=ie){var Je=ve.lastIndexOf(U);Je>-1&&(ve=ve.slice(0,Je))}return ve+z}function j7(d){return d=on(d),d&&bn.test(d)?d.replace(Qt,vj):d}var H7=ru(function(d,h,P){return d+(P?" ":"")+h.toUpperCase()}),j1=AM("toUpperCase");function O_(d,h,P){return d=on(d),h=P?n:h,h===n?fj(d)?wj(d):rj(d):d.match(h)||[]}var D_=Lt(function(d,h){try{return Do(d,n,h)}catch(P){return N1(P)?P:new It(P)}}),U7=Xi(function(d,h){return ds(h,function(P){P=vi(P),Yi(d,P,L1(d[P],d))}),d});function W7(d){var h=d==null?0:d.length,P=yt();return d=h?Rn(d,function(z){if(typeof z[1]!="function")throw new fs(i);return[P(z[0]),z[1]]}):[],Lt(function(z){for(var U=-1;++U<h;){var q=d[U];if(Do(q[0],this,z))return Do(q[1],this,z)}})}function G7(d){return vH(hs(d,p))}function H1(d){return function(){return d}}function K7(d,h){return d==null||d!==d?h:d}var q7=FM(),Y7=FM(!0);function yo(d){return d}function U1(d){return pM(typeof d=="function"?d:hs(d,p))}function Q7(d){return mM(hs(d,p))}function X7(d,h){return gM(d,hs(h,p))}var Z7=Lt(function(d,h){return function(P){return xf(P,d,h)}}),J7=Lt(function(d,h){return function(P){return xf(d,P,h)}});function W1(d,h,P){var z=br(h),U=Sm(h,z);P==null&&!(Nn(h)&&(U.length||!z.length))&&(P=h,h=d,d=this,U=Sm(h,br(h)));var q=!(Nn(P)&&"chain"in P)||!!P.chain,te=Ji(d);return ds(U,function(ie){var ve=h[ie];d[ie]=ve,te&&(d.prototype[ie]=function(){var De=this.__chain__;if(q||De){var Fe=d(this.__wrapped__),Be=Fe.__actions__=mo(this.__actions__);return Be.push({func:ve,args:arguments,thisArg:d}),Fe.__chain__=De,Fe}return ve.apply(d,Rl([this.value()],arguments))})}),d}function eU(){return _r._===this&&(_r._=Ej),this}function G1(){}function tU(d){return d=Ot(d),Lt(function(h){return vM(h,d)})}var nU=S1(Rn),rU=S1(N2),oU=S1(q0);function A_(d){return T1(d)?Y0(vi(d)):DH(d)}function sU(d){return function(h){return d==null?n:Ka(d,h)}}var iU=BM(),lU=BM(!0);function K1(){return[]}function q1(){return!1}function aU(){return{}}function cU(){return""}function uU(){return!0}function dU(d,h){if(d=Ot(d),d<1||d>O)return[];var P=K,z=Br(d,K);h=yt(h),d-=K;for(var U=Z0(z,h);++P<d;)h(P);return U}function fU(d){return Mt(d)?Rn(d,vi):Fo(d)?[d]:mo(t_(on(d)))}function pU(d){var h=++Pj;return on(d)+h}var hU=_m(function(d,h){return d+h},0),mU=P1("ceil"),gU=_m(function(d,h){return d/h},1),vU=P1("floor");function yU(d){return d&&d.length?xm(d,yo,c1):n}function bU(d,h){return d&&d.length?xm(d,yt(h,2),c1):n}function wU(d){return V2(d,yo)}function CU(d,h){return V2(d,yt(h,2))}function xU(d){return d&&d.length?xm(d,yo,p1):n}function SU(d,h){return d&&d.length?xm(d,yt(h,2),p1):n}var PU=_m(function(d,h){return d*h},1),kU=P1("round"),EU=_m(function(d,h){return d-h},0);function IU(d){return d&&d.length?X0(d,yo):0}function MU(d,h){return d&&d.length?X0(d,yt(h,2)):0}return G.after=Q9,G.ary=f_,G.assign=F8,G.assignIn=E_,G.assignInWith=jm,G.assignWith=N8,G.at=B8,G.before=p_,G.bind=L1,G.bindAll=U7,G.bindKey=h_,G.castArray=a8,G.chain=c_,G.chunk=v6,G.compact=y6,G.concat=b6,G.cond=W7,G.conforms=G7,G.constant=H1,G.countBy=I9,G.create=z8,G.curry=m_,G.curryRight=g_,G.debounce=v_,G.defaults=V8,G.defaultsDeep=j8,G.defer=X9,G.delay=Z9,G.difference=w6,G.differenceBy=C6,G.differenceWith=x6,G.drop=S6,G.dropRight=P6,G.dropRightWhile=k6,G.dropWhile=E6,G.fill=I6,G.filter=_9,G.flatMap=R9,G.flatMapDeep=O9,G.flatMapDepth=D9,G.flatten=s_,G.flattenDeep=M6,G.flattenDepth=_6,G.flip=J9,G.flow=q7,G.flowRight=Y7,G.fromPairs=T6,G.functions=Y8,G.functionsIn=Q8,G.groupBy=A9,G.initial=R6,G.intersection=O6,G.intersectionBy=D6,G.intersectionWith=A6,G.invert=Z8,G.invertBy=J8,G.invokeMap=F9,G.iteratee=U1,G.keyBy=N9,G.keys=br,G.keysIn=vo,G.map=Lm,G.mapKeys=t7,G.mapValues=n7,G.matches=Q7,G.matchesProperty=X7,G.memoize=Nm,G.merge=r7,G.mergeWith=I_,G.method=Z7,G.methodOf=J7,G.mixin=W1,G.negate=Bm,G.nthArg=tU,G.omit=o7,G.omitBy=s7,G.once=e8,G.orderBy=B9,G.over=nU,G.overArgs=t8,G.overEvery=rU,G.overSome=oU,G.partial=F1,G.partialRight=y_,G.partition=z9,G.pick=i7,G.pickBy=M_,G.property=A_,G.propertyOf=sU,G.pull=B6,G.pullAll=l_,G.pullAllBy=z6,G.pullAllWith=V6,G.pullAt=j6,G.range=iU,G.rangeRight=lU,G.rearg=n8,G.reject=H9,G.remove=H6,G.rest=r8,G.reverse=D1,G.sampleSize=W9,G.set=a7,G.setWith=c7,G.shuffle=G9,G.slice=U6,G.sortBy=Y9,G.sortedUniq=X6,G.sortedUniqBy=Z6,G.split=R7,G.spread=o8,G.tail=J6,G.take=e9,G.takeRight=t9,G.takeRightWhile=n9,G.takeWhile=r9,G.tap=y9,G.throttle=s8,G.thru=Am,G.toArray=S_,G.toPairs=__,G.toPairsIn=T_,G.toPath=fU,G.toPlainObject=k_,G.transform=u7,G.unary=i8,G.union=o9,G.unionBy=s9,G.unionWith=i9,G.uniq=l9,G.uniqBy=a9,G.uniqWith=c9,G.unset=d7,G.unzip=A1,G.unzipWith=a_,G.update=f7,G.updateWith=p7,G.values=iu,G.valuesIn=h7,G.without=u9,G.words=O_,G.wrap=l8,G.xor=d9,G.xorBy=f9,G.xorWith=p9,G.zip=h9,G.zipObject=m9,G.zipObjectDeep=g9,G.zipWith=v9,G.entries=__,G.entriesIn=T_,G.extend=E_,G.extendWith=jm,W1(G,G),G.add=hU,G.attempt=D_,G.camelCase=y7,G.capitalize=$_,G.ceil=mU,G.clamp=m7,G.clone=c8,G.cloneDeep=d8,G.cloneDeepWith=f8,G.cloneWith=u8,G.conformsTo=p8,G.deburr=R_,G.defaultTo=K7,G.divide=gU,G.endsWith=b7,G.eq=Ws,G.escape=w7,G.escapeRegExp=C7,G.every=M9,G.find=T9,G.findIndex=r_,G.findKey=H8,G.findLast=$9,G.findLastIndex=o_,G.findLastKey=U8,G.floor=vU,G.forEach=u_,G.forEachRight=d_,G.forIn=W8,G.forInRight=G8,G.forOwn=K8,G.forOwnRight=q8,G.get=z1,G.gt=h8,G.gte=m8,G.has=X8,G.hasIn=V1,G.head=i_,G.identity=yo,G.includes=L9,G.indexOf=$6,G.inRange=g7,G.invoke=e7,G.isArguments=Qa,G.isArray=Mt,G.isArrayBuffer=g8,G.isArrayLike=go,G.isArrayLikeObject=Zn,G.isBoolean=v8,G.isBuffer=Bl,G.isDate=y8,G.isElement=b8,G.isEmpty=w8,G.isEqual=C8,G.isEqualWith=x8,G.isError=N1,G.isFinite=S8,G.isFunction=Ji,G.isInteger=b_,G.isLength=zm,G.isMap=w_,G.isMatch=P8,G.isMatchWith=k8,G.isNaN=E8,G.isNative=I8,G.isNil=_8,G.isNull=M8,G.isNumber=C_,G.isObject=Nn,G.isObjectLike=Un,G.isPlainObject=Mf,G.isRegExp=B1,G.isSafeInteger=T8,G.isSet=x_,G.isString=Vm,G.isSymbol=Fo,G.isTypedArray=su,G.isUndefined=$8,G.isWeakMap=R8,G.isWeakSet=O8,G.join=L6,G.kebabCase=x7,G.last=gs,G.lastIndexOf=F6,G.lowerCase=S7,G.lowerFirst=P7,G.lt=D8,G.lte=A8,G.max=yU,G.maxBy=bU,G.mean=wU,G.meanBy=CU,G.min=xU,G.minBy=SU,G.stubArray=K1,G.stubFalse=q1,G.stubObject=aU,G.stubString=cU,G.stubTrue=uU,G.multiply=PU,G.nth=N6,G.noConflict=eU,G.noop=G1,G.now=Fm,G.pad=k7,G.padEnd=E7,G.padStart=I7,G.parseInt=M7,G.random=v7,G.reduce=V9,G.reduceRight=j9,G.repeat=_7,G.replace=T7,G.result=l7,G.round=kU,G.runInContext=ge,G.sample=U9,G.size=K9,G.snakeCase=$7,G.some=q9,G.sortedIndex=W6,G.sortedIndexBy=G6,G.sortedIndexOf=K6,G.sortedLastIndex=q6,G.sortedLastIndexBy=Y6,G.sortedLastIndexOf=Q6,G.startCase=O7,G.startsWith=D7,G.subtract=EU,G.sum=IU,G.sumBy=MU,G.template=A7,G.times=dU,G.toFinite=el,G.toInteger=Ot,G.toLength=P_,G.toLower=L7,G.toNumber=vs,G.toSafeInteger=L8,G.toString=on,G.toUpper=F7,G.trim=N7,G.trimEnd=B7,G.trimStart=z7,G.truncate=V7,G.unescape=j7,G.uniqueId=pU,G.upperCase=H7,G.upperFirst=j1,G.each=u_,G.eachRight=d_,G.first=i_,W1(G,function(){var d={};return mi(G,function(h,P){cn.call(G.prototype,P)||(d[P]=h)}),d}(),{chain:!1}),G.VERSION=r,ds(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){G[d].placeholder=G}),ds(["drop","take"],function(d,h){Ht.prototype[d]=function(P){P=P===n?1:dr(Ot(P),0);var z=this.__filtered__&&!h?new Ht(this):this.clone();return z.__filtered__?z.__takeCount__=Br(P,z.__takeCount__):z.__views__.push({size:Br(P,K),type:d+(z.__dir__<0?"Right":"")}),z},Ht.prototype[d+"Right"]=function(P){return this.reverse()[d](P).reverse()}}),ds(["filter","map","takeWhile"],function(d,h){var P=h+1,z=P==_||P==F;Ht.prototype[d]=function(U){var q=this.clone();return q.__iteratees__.push({iteratee:yt(U,3),type:P}),q.__filtered__=q.__filtered__||z,q}}),ds(["head","last"],function(d,h){var P="take"+(h?"Right":"");Ht.prototype[d]=function(){return this[P](1).value()[0]}}),ds(["initial","tail"],function(d,h){var P="drop"+(h?"":"Right");Ht.prototype[d]=function(){return this.__filtered__?new Ht(this):this[P](1)}}),Ht.prototype.compact=function(){return this.filter(yo)},Ht.prototype.find=function(d){return this.filter(d).head()},Ht.prototype.findLast=function(d){return this.reverse().find(d)},Ht.prototype.invokeMap=Lt(function(d,h){return typeof d=="function"?new Ht(this):this.map(function(P){return xf(P,d,h)})}),Ht.prototype.reject=function(d){return this.filter(Bm(yt(d)))},Ht.prototype.slice=function(d,h){d=Ot(d);var P=this;return P.__filtered__&&(d>0||h<0)?new Ht(P):(d<0?P=P.takeRight(-d):d&&(P=P.drop(d)),h!==n&&(h=Ot(h),P=h<0?P.dropRight(-h):P.take(h-d)),P)},Ht.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},Ht.prototype.toArray=function(){return this.take(K)},mi(Ht.prototype,function(d,h){var P=/^(?:filter|find|map|reject)|While$/.test(h),z=/^(?:head|last)$/.test(h),U=G[z?"take"+(h=="last"?"Right":""):h],q=z||/^find/.test(h);U&&(G.prototype[h]=function(){var te=this.__wrapped__,ie=z?[1]:arguments,ve=te instanceof Ht,De=ie[0],Fe=ve||Mt(te),Be=function(Bt){var Gt=U.apply(G,Rl([Bt],ie));return z&&Je?Gt[0]:Gt};Fe&&P&&typeof De=="function"&&De.length!=1&&(ve=Fe=!1);var Je=this.__chain__,pt=!!this.__actions__.length,Ct=q&&!Je,Dt=ve&&!pt;if(!q&&Fe){te=Dt?te:new Ht(this);var xt=d.apply(te,ie);return xt.__actions__.push({func:Am,args:[Be],thisArg:n}),new ps(xt,Je)}return Ct&&Dt?d.apply(this,ie):(xt=this.thru(Be),Ct?z?xt.value()[0]:xt.value():xt)})}),ds(["pop","push","shift","sort","splice","unshift"],function(d){var h=lm[d],P=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",z=/^(?:pop|shift)$/.test(d);G.prototype[d]=function(){var U=arguments;if(z&&!this.__chain__){var q=this.value();return h.apply(Mt(q)?q:[],U)}return this[P](function(te){return h.apply(Mt(te)?te:[],U)})}}),mi(Ht.prototype,function(d,h){var P=G[h];if(P){var z=P.name+"";cn.call(eu,z)||(eu[z]=[]),eu[z].push({name:h,func:P})}}),eu[Mm(n,b).name]=[{name:"wrapper",func:n}],Ht.prototype.clone=jj,Ht.prototype.reverse=Hj,Ht.prototype.value=Uj,G.prototype.at=b9,G.prototype.chain=w9,G.prototype.commit=C9,G.prototype.next=x9,G.prototype.plant=P9,G.prototype.reverse=k9,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=E9,G.prototype.first=G.prototype.head,mf&&(G.prototype[mf]=S9),G},Xc=Cj();ja?((ja.exports=Xc)._=Xc,U0._=Xc):_r._=Xc}).call(sn)})(Gv,Gv.exports);var Sue=Gv.exports;const rt=di(Sue),ju="/~/api/",Pue={loginSrp1:90,update:600,get_status:20},x4={};function kue(e){Object.assign(x4,e)}function ct(e,t,n={}){var a,u,f;rt.defaults(n,x4);const r=(a=n.modal)==null?void 0:a.call(n,e,t),o=new AbortController;let s="";const i=1e3*((f=(u=Pue[e])!=null?u:n.timeout)!=null?f:10),l=i&&setTimeout(()=>{o.abort(s="timeout"),console.debug("API TIMEOUT",e,t!=null?t:"")},i);return Object.assign(fetch(K4()+ju+e,{method:"POST",headers:{"content-type":"application/json","x-hfs-anti-csrf":"1"},signal:o.signal,body:t&&JSON.stringify(t)}).then(p=>ot(this,null,function*(){var g;r==null||r();let m=yield p.text(),v;try{v=JSON.parse(m)}catch(C){}const y=v!=null?v:m;if(console.debug(p.ok?"API":"API FAILED",e,t!=null?t:"",">>",y),yield(g=n.onResponse)==null?void 0:g.call(n,p,y),!p.ok)throw new S4(p.status,v===void 0?m:`Failed API ${e}: ${p.statusText}`,v);return y}),p=>{var m;throw r==null||r(),(m=p==null?void 0:p.message)!=null&&m.includes("fetch")?(console.error(p.message),Error("Network error")):s||p}).finally(()=>clearTimeout(l)),{abort(){o.abort(s="cancel")}})}class S4 extends Error{constructor(t,n,r){super(n,{cause:r}),this.code=t}get data(){return this.cause}}function P4(e,t,n={}){const[r,o]=Co(void 0),[s,i]=Co(void 0),[l,a]=Co(0),u=c.useRef(),f=c.useRef();c.useEffect(()=>{var g,C;(g=u.current)==null||g.abort(),o(void 0),i(void 0);let m=!1,v;const y=Bh(0).then(()=>!e||m?void 0:v=ct(e,t,n)).then(b=>m||o(b),b=>{m||(i(b),o(void 0))}).finally(()=>u.current=f.current=void 0);u.current=Object.assign(y,{abort(){m=!0,v==null||v.abort()}}),(C=f.current)==null||C.resolve(y)},[e,JSON.stringify(t),l]);const p=c.useCallback(()=>{u.current||(a(m=>m+1),f.current=Bk())},[a]);return{data:r,setData:o,error:s,reload:p,loading:!!(u.current||f.current)}}function k4(e,t,n){t=rt.omitBy(t,rt.isUndefined),console.debug("API EVENTS",e,t);const r=new EventSource(K4()+ju+e+"?"+new URLSearchParams(t));return r.onopen=()=>n("connected"),r.onerror=o=>n("error",o),r.onmessage=({data:o})=>{if(!o)return n("closed"),r.close();try{o=JSON.parse(o)}catch(s){return n("string",o)}console.debug("SSE msg",o),n("msg",o)},r}function Eue(e,t={}){const[n,r]=Co(void 0),[o,s]=Co(void 0),[i,l]=Co(!1);return c.useEffect(()=>{const a=k4(e,t,(f,p)=>{switch(f){case"error":return s("Connection error"),u();case"closed":return u();case"msg":return(a==null?void 0:a.readyState)===(a==null?void 0:a.CLOSED)?u():r(p)}});return()=>{a.close(),u()};function u(){l(!1)}},[e,JSON.stringify(t)]),{data:n,loading:i,error:o}}globalThis&&globalThis.__awaiter;function Tk(e,t){const[n,r]=c.useState(e);return c.useEffect(()=>{const o=setTimeout(()=>r(e),t||500);return()=>{clearTimeout(o)}},[e,t]),n}function Iue(e,t,n,r){const o=c.useRef(t);E4(()=>{o.current=t},[t]),c.useEffect(()=>{var s;const i=(s=n==null?void 0:n.current)!==null&&s!==void 0?s:window;if(!(i&&i.addEventListener))return;const l=a=>o.current(a);return i.addEventListener(e,l,r),()=>{i.removeEventListener(e,l,r)}},[e,n,r])}globalThis&&globalThis.__awaiter;function Mue(){const e=c.useRef(!1);return c.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),c.useCallback(()=>e.current,[])}const E4=typeof window!="undefined"?c.useLayoutEffect:c.useEffect;function Nb(){const[e,t]=c.useState({width:0,height:0}),n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return Iue("resize",n),E4(()=>{n()},[]),e}function Co(e){const t=Mue(),[n,r]=c.useState(e),o=c.useCallback(s=>{t()&&r(s)},[t,r]);return[n,o,t]}function _ue(e){return e.filter(t=>t===0||t&&(!Array.isArray(t)||t.length))}function Tue(e,t){const n=[];for(const r of _ue(t))n.push(r,e);return n.splice(-1,1),ch(n)}function ch(e){return e.map((t,n)=>!t||typeof t=="string"?t:Array.isArray(t)?ch(t):c.createElement(c.Fragment,{key:n,children:t}))}function $ue(){const[e,t]=c.useState(0);return Object.assign(c.useCallback(()=>t(n=>n+1),[t]),{state:e})}function Yg(e,t,{delay:n=0}={}){const r=Yg.worker2env||(Yg.worker2env=e&&new Map),o=r&&(r.get(e)||(()=>{const l={batch:new Set,cache:new Map};return r.set(e,l),l})()),s=$ue();c.useEffect(()=>{e&&(o.waiter||(o.waiter=new Promise(l=>{setTimeout(()=>ot(this,null,function*(){if(!o.batch.size)return l();const a=[...o.batch.values()];o.batch.clear();const u=yield e(a);a.forEach((f,p)=>{var m;return o.cache.set(f,(m=u[p])!=null?m:null)}),o.waiter=void 0,l()}),n)}))).then(s)},[e]);const i=o&&o.cache.get(t);return o&&i===void 0&&o.batch.add(t),xe({data:i},o)}function Rue(n){var r=n,{margin:e}=r,t=Ft(r,["margin"]);const o=c.useRef(),[s,i]=c.useState(),l=Nb();return c.useEffect(()=>{const a=o.current;if(!a)return;const u=a.getBoundingClientRect(),f=document.documentElement,p=window.innerHeight||f.clientHeight;i(p-(u==null?void 0:u.top)-e)},[l]),c.createElement("div",xe({ref:o,style:{maxHeight:s,overflow:"auto"}},t))}const Oue=navigator.platform.match("Mac");function Bb(e){return(e.ctrlKey||Oue&&e.metaKey)&&e.key}const Due=Symbol(),$k=Symbol(),Gf="a",Qg="w";let Aue=(e,t)=>new Proxy(e,t);const Bx=Object.getPrototypeOf,zx=new WeakMap,I4=e=>e&&(zx.has(e)?zx.get(e):Bx(e)===Object.prototype||Bx(e)===Array.prototype),JR=e=>typeof e=="object"&&e!==null,Lue=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(Bx(e),t)},M4=e=>e[$k]||e,_4=(e,t,n,r)=>{if(!I4(e))return e;let o=r&&r.get(e);if(!o){const a=M4(e);o=(u=>Object.values(Object.getOwnPropertyDescriptors(u)).some(f=>!f.configurable&&!f.writable))(a)?[a,Lue(a)]:[a],r==null||r.set(e,o)}const[s,i]=o;let l=n&&n.get(s);return l&&l[1].f===!!i||(l=((a,u)=>{const f={f:u};let p=!1;const m=(y,g)=>{if(!p){let C=f[Gf].get(a);if(C||(C={},f[Gf].set(a,C)),y===Qg)C[Qg]=!0;else{let b=C[y];b||(b=new Set,C[y]=b),b.add(g)}}},v={get:(y,g)=>g===$k?a:(m("k",g),_4(Reflect.get(y,g),f[Gf],f.c,f.t)),has:(y,g)=>g===Due?(p=!0,f[Gf].delete(a),!0):(m("h",g),Reflect.has(y,g)),getOwnPropertyDescriptor:(y,g)=>(m("o",g),Reflect.getOwnPropertyDescriptor(y,g)),ownKeys:y=>(m(Qg),Reflect.ownKeys(y))};return u&&(v.set=v.deleteProperty=()=>!1),[v,f]})(s,!!i),l[1].p=Aue(i||s,l[0]),n&&n.set(s,l)),l[1][Gf]=t,l[1].c=n,l[1].t=r,l[1].p},T4=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!JR(e)||!JR(t))return!0;const o=n.get(M4(e));if(!o)return!0;if(r){const i=r.get(e);if(i&&i.n===t)return i.g;r.set(e,{n:t,g:!1})}let s=null;try{for(const i of o.h||[])if(s=Reflect.has(e,i)!==Reflect.has(t,i),s)return s;if(o[Qg]===!0){if(s=((i,l)=>{const a=Reflect.ownKeys(i),u=Reflect.ownKeys(l);return a.length!==u.length||a.some((f,p)=>f!==u[p])})(e,t),s)return s}else for(const i of o.o||[])if(s=!!Reflect.getOwnPropertyDescriptor(e,i)!=!!Reflect.getOwnPropertyDescriptor(t,i),s)return s;for(const i of o.k||[])if(s=T4(e[i],t[i],n,r),s)return s;return s===null&&(s=!0),s}finally{r&&r.set(e,{n:t,g:s})}},Fue=e=>I4(e)&&e[$k]||null,eO=(e,t=!0)=>{zx.set(e,t)};const zw=e=>typeof e=="object"&&e!==null,Zl=new WeakMap,ip=new WeakSet,Nue=(e=Object.is,t=(u,f)=>new Proxy(u,f),n=u=>zw(u)&&!ip.has(u)&&(Array.isArray(u)||!(Symbol.iterator in u))&&!(u instanceof WeakMap)&&!(u instanceof WeakSet)&&!(u instanceof Error)&&!(u instanceof Number)&&!(u instanceof Date)&&!(u instanceof String)&&!(u instanceof RegExp)&&!(u instanceof ArrayBuffer),r=u=>{switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:throw u}},o=new WeakMap,s=(u,f,p=r)=>{const m=o.get(u);if((m==null?void 0:m[0])===f)return m[1];const v=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u));return eO(v,!0),o.set(u,[f,v]),Reflect.ownKeys(u).forEach(y=>{if(Object.getOwnPropertyDescriptor(v,y))return;const g=Reflect.get(u,y),{enumerable:C}=Reflect.getOwnPropertyDescriptor(u,y),b={value:g,enumerable:C,configurable:!0};if(ip.has(g))eO(g,!1);else if(g instanceof Promise)delete b.value,b.get=()=>p(g);else if(Zl.has(g)){const[w,S]=Zl.get(g);b.value=s(w,S(),p)}Object.defineProperty(v,y,b)}),Object.preventExtensions(v)},i=new WeakMap,l=[1,1],a=u=>{if(!zw(u))throw new Error("object required");const f=i.get(u);if(f)return f;let p=l[0];const m=new Set,v=(A,$=++l[0])=>{p!==$&&(p=$,m.forEach(L=>L(A,$)))};let y=l[1];const g=(A=++l[1])=>(y!==A&&!m.size&&(y=A,b.forEach(([$])=>{const L=$[1](A);L>p&&(p=L)})),p),C=A=>($,L)=>{const V=[...$];V[1]=[A,...V[1]],v(V,L)},b=new Map,w=(A,$)=>{if(m.size){const L=$[3](C(A));b.set(A,[$,L])}else b.set(A,[$])},S=A=>{var $;const L=b.get(A);L&&(b.delete(A),($=L[1])==null||$.call(L))},k=A=>(m.add(A),m.size===1&&b.forEach(([L,V],j)=>{const _=L[3](C(j));b.set(j,[L,_])}),()=>{m.delete(A),m.size===0&&b.forEach(([L,V],j)=>{V&&(V(),b.set(j,[L]))})}),M=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u)),I=t(M,{deleteProperty(A,$){const L=Reflect.get(A,$);S($);const V=Reflect.deleteProperty(A,$);return V&&v(["delete",[$],L]),V},set(A,$,L,V){const j=Reflect.has(A,$),_=Reflect.get(A,$,V);if(j&&(e(_,L)||i.has(L)&&e(_,i.get(L))))return!0;S($),zw(L)&&(L=Fue(L)||L);let T=L;if(L instanceof Promise)L.then(F=>{L.status="fulfilled",L.value=F,v(["resolve",[$],F])}).catch(F=>{L.status="rejected",L.reason=F,v(["reject",[$],F])});else{!Zl.has(L)&&n(L)&&(T=a(L));const F=!ip.has(T)&&Zl.get(T);F&&w($,F)}return Reflect.set(A,$,T,V),v(["set",[$],L,_]),!0}});i.set(u,I);const R=[M,g,s,k];return Zl.set(I,R),Reflect.ownKeys(u).forEach(A=>{const $=Object.getOwnPropertyDescriptor(u,A);"value"in $&&(I[A]=u[A],delete $.value,delete $.writable),Object.defineProperty(M,A,$)}),I})=>[a,Zl,ip,e,t,n,r,o,s,i,l],[Bue]=Nue();function Rk(e={}){return Bue(e)}function Ok(e,t,n){const r=Zl.get(e);let o;const s=[],i=r[3];let l=!1;const u=i(f=>{if(s.push(f),n){t(s.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,l&&t(s.splice(0))}))});return l=!0,()=>{l=!1,u()}}function tO(e,t){const n=Zl.get(e),[r,o,s]=n;return s(r,o(),t)}function zue(e){return ip.add(e),e}var $4={exports:{}},R4={};/**
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 kd=c;function Vue(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jue=typeof Object.is=="function"?Object.is:Vue,Hue=kd.useState,Uue=kd.useEffect,Wue=kd.useLayoutEffect,Gue=kd.useDebugValue;function Kue(e,t){var n=t(),r=Hue({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return Wue(function(){o.value=n,o.getSnapshot=t,Vw(o)&&s({inst:o})},[e,n,t]),Uue(function(){return Vw(o)&&s({inst:o}),e(function(){Vw(o)&&s({inst:o})})},[e]),Gue(n),n}function Vw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jue(e,n)}catch(r){return!0}}function que(e,t){return t()}var Yue=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?que:Kue;R4.useSyncExternalStore=kd.useSyncExternalStore!==void 0?kd.useSyncExternalStore:Yue;$4.exports=R4;var Que=$4.exports;const Xue=di(Que),{use:nO}=co,{useSyncExternalStore:Zue}=Xue;const Jue=new WeakMap;function Dk(e,t){const n=t==null?void 0:t.sync,r=c.useRef(),o=c.useRef();let s=!0;const i=Zue(c.useCallback(u=>{const f=Ok(e,u,n);return u(),f},[e,n]),()=>{const u=tO(e,nO);try{if(!s&&r.current&&o.current&&!T4(r.current,u,o.current,new WeakMap))return r.current}catch(f){}return u},()=>tO(e,nO));s=!1;const l=new WeakMap;c.useEffect(()=>{r.current=i,o.current=l});const a=c.useMemo(()=>new WeakMap,[]);return _4(i,l,a,Jue)}const Ed=Rk([]),Vx={closableContent:"x",padding:!0},O4=['input:not([type="hidden"])',"button","select","textarea","a[href]","[tabindex]"].map(e=>e+':not([disabled]):not([tabindex="-1"])').join(",");window.addEventListener("keydown",e=>{if(e.key!=="Tab")return;const t=document.querySelectorAll("[role=dialog]"),n=t[t.length-1];if(!n)return;const r=n.querySelectorAll(O4),o=r.length;if(!o)return;const[s,i]=e.shiftKey?[o-1,0]:[0,o-1];e.target!==r[i]&&ede(document.activeElement,n)||(r[s].focus(),e.preventDefault())});function ede(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function tde(){const e=Dk(Ed);return c.useEffect(()=>{document.body.style.overflow=e.length?"hidden":""},[e.length]),c.createElement(c.Fragment,{},e.length>0&&e.map(t=>c.createElement(nde,xe({key:t.$id},t))))}function nde(e){var r;const t=c.useRef();if(c.useEffect(()=>{var o;(o=t.current)==null||o.focus()},[]),e=xe(xe({},Vx),e),e.Container)return c.createElement(e.Container,e);return c.createElement("div",{ref:t,className:"dialog-backdrop "+(e.className||""),tabIndex:0,onKeyDown:rde,onClick:o=>o.target===o.currentTarget&&Vi()},e.noFrame?c.createElement(e.Content||"div"):c.createElement("div",xe({role:"dialog","aria-modal":!0,className:"dialog",style:xe(xe({},n()),(r=e.dialogProps)==null?void 0:r.style),onClick(o){o.stopPropagation()}},e.dialogProps),e.closable||e.closable===void 0&&c.createElement("button",{className:"dialog-icon dialog-closer",onClick(){Vi()}},e.closableContent),e.icon&&c.createElement("div",{className:"dialog-icon dialog-type"+(typeof e.icon=="string"?" dialog-icon-text":"")},Kv(e.icon)),c.createElement("div",{className:"dialog-title"},Kv(e.title)),c.createElement("div",{className:"dialog-content"},c.createElement(e.Content||"div"))));function n(){const{innerWidth:o,innerHeight:s}=window,i=e.position;return i&&xe(xe({margin:"1em",position:"absolute"},i[0]<o/2?{left:i[0]}:{right:o-i[0]}),i[1]<s/2?{top:i[1]}:{bottom:s-i[1]})}}function Kv(e){return vfe(e)||c.isValidElement(e)?e:c.createElement(e)}function rde(e){e.key==="Escape"&&Vi()}function Ro(e){const t=Math.random();return e.$id=t,e=Xb(e,r=>c.isValidElement(r)?zue(r):r),Ed.push(e),{close:n};function n(r){const o=Ed.findIndex(s=>s.$id===t);if(!(o<0))return D4(o,r)}}function Vi(e){let t=Ed.length;for(;t--;){const n=Ed[t];if(!n.reserveClosing)return D4(t,e),n}}function D4(e,t){var r;const[n]=Ed.splice(e,1);return(r=n==null?void 0:n.onClose)==null?void 0:r.call(n,t)}var gc={},zb={},Id={};const ode={},sde=Object.freeze(Object.defineProperty({__proto__:null,default:ode},Symbol.toStringTag,{value:"Module"})),rO=cA(sde);Object.defineProperty(Id,"__esModule",{value:!0});var oO=Id.crossEnvCrypto=void 0;try{const e=typeof window!="undefined"&&window.crypto||rO.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);oO=Id.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=rO,n=r=>o=>t.createHash(r).update(o).digest().buffer;oO=Id.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(zb,"__esModule",{value:!0});zb.SRPParameters=void 0;const vg=Id;class Md{constructor(t=Md.PrimeGroup[2048],n=Md.H.SHA512){if(this.primeGroup=t,this.H=n,this.NBits=this.primeGroup.N.toString(2).length,!n)throw new Error("Hash function required")}}zb.SRPParameters=Md;Md.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)}};Md.H={SHA1:vg.crossEnvCrypto.hashFunctions.SHA1,SHA256:vg.crossEnvCrypto.hashFunctions.SHA256,SHA384:vg.crossEnvCrypto.hashFunctions.SHA384,SHA512:vg.crossEnvCrypto.hashFunctions.SHA512};var Vb={},jb={};(function(e){var t=sn&&sn.__awaiter||function(S,k,M,E){function I(R){return R instanceof M?R:new M(function(A){A(R)})}return new(M||(M=Promise))(function(R,A){function $(j){try{V(E.next(j))}catch(_){A(_)}}function L(j){try{V(E.throw(j))}catch(_){A(_)}}function V(j){j.done?R(j.value):I(j.value).then($,L)}V((E=E.apply(S,k||[])).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=Id,r=BigInt(0),o=BigInt(1),s=BigInt(2),i=S=>{const k=S.toString(16),M=new ArrayBuffer(Math.ceil(k.length/2)),E=new Uint8Array(M);let I=0;k.length%2!==0&&(E[0]=parseInt(k[0],16),I=1);for(let R=0;R<M.byteLength;R++)E[R+I]=parseInt(k.slice(2*R+I,2*R+2+I),16);return M};e.bigIntToArrayBuffer=i;const l=S=>{const k=[];return new Uint8Array(S).forEach(M=>{k.push(("0"+M.toString(16)).slice(-2))}),BigInt(`0x${k.join("")}`)};e.arrayBufferToBigInt=l;function a(S){return new TextEncoder().encode(S).buffer}e.stringToArrayBuffer=a;const u=(S,k)=>{const M=new Uint8Array(S);if(M.length<k){const E=new Uint8Array(k);return E.fill(0,0,k-M.length),E.set(M,k-M.length),E}return M};e.padStartArrayBuffer=u;function f(S,...k){const M=k.reduce((I,R)=>I+R.byteLength,0),E=new Uint8Array(M);for(let I=0,R=0;R<k.length;R++)E.set(new Uint8Array(k[R]),I),I+=k[R].byteLength;return S.H(E)}e.hash=f;function p(S,k,...M){const E=M.map(I=>e.padStartArrayBuffer(I,k));return f(S,...E)}e.hashPadded=p;function m(S=10){const k=new Uint8Array(Math.ceil(Math.ceil(S/2)));return n.crossEnvCrypto.randomBytes(k),k.reduce((M,E)=>{const I=E.toString(16).toString();return I.length===1?M+"0"+I:M+I},"").slice(0,S)}e.generateRandomString=m;function v(S=16){return e.arrayBufferToBigInt(w(S))}e.generateRandomBigInt=v;function y(S,k,M,E){return t(this,void 0,void 0,function*(){if(!k||!k.trim())throw new Error("Identity (I) must not be null or empty.");if(!M)throw new Error("Salt (s) must not be null.");if(!E)throw new Error("Password (P) must not be null");const I=yield S.computeX(k,M,E);return S.computeVerifier(I)})}e.createVerifier=y;function g(S,k,M,E){return t(this,void 0,void 0,function*(){const I=yield S.generateRandomSalt(E);return{s:I,v:yield y(S,k,I,M)}})}e.createVerifierAndSalt=g;const C=S=>t(void 0,void 0,void 0,function*(){return(yield f(S,e.bigIntToArrayBuffer(BigInt(1)))).byteLength*8});e.hashBitCount=C;function b(S,k,M){let E=o;for(;k>r;)k%s==o?(E=S*E%M,k-=o):(S=S*S%M,k/=s);return E}e.modPow=b;const w=S=>{const k=new Uint8Array(S);return n.crossEnvCrypto.randomBytes(k),k.buffer}})(jb);var Hl=sn&&sn.__awaiter||function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function l(f){try{u(r.next(f))}catch(p){i(p)}}function a(f){try{u(r.throw(f))}catch(p){i(p)}}function u(f){f.done?s(f.value):o(f.value).then(l,a)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(Vb,"__esModule",{value:!0});Vb.SRPRoutines=void 0;const hn=jb;class ide{constructor(t){this.parameters=t}hash(...t){return hn.hash(this.parameters,...t)}hashPadded(...t){const n=Math.trunc((this.parameters.NBits+7)/8);return hn.hashPadded(this.parameters,n,...t)}computeK(){return Hl(this,void 0,void 0,function*(){return hn.arrayBufferToBigInt(yield this.hashPadded(hn.bigIntToArrayBuffer(this.parameters.primeGroup.N),hn.bigIntToArrayBuffer(this.parameters.primeGroup.g)))})}generateRandomSalt(t){return Hl(this,void 0,void 0,function*(){const n=yield hn.hashBitCount(this.parameters),r=t||2*n/8;return hn.generateRandomBigInt(r)})}computeX(t,n,r){return Hl(this,void 0,void 0,function*(){return hn.arrayBufferToBigInt(yield this.hash(hn.bigIntToArrayBuffer(n),yield this.computeIdentityHash(t,r)))})}computeXStep2(t,n){return Hl(this,void 0,void 0,function*(){return hn.arrayBufferToBigInt(yield this.hash(hn.bigIntToArrayBuffer(t),n))})}computeIdentityHash(t,n){return Hl(this,void 0,void 0,function*(){return yield this.hash(hn.stringToArrayBuffer(n))})}computeVerifier(t){return hn.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}generatePrivateValue(){const t=Math.max(256,this.parameters.NBits);let n;do n=hn.generateRandomBigInt(t/8)%this.parameters.primeGroup.N;while(n===BigInt(0));return n}computeClientPublicValue(t){return hn.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}isValidPublicValue(t){return t%this.parameters.primeGroup.N!==BigInt(0)}computeU(t,n){return Hl(this,void 0,void 0,function*(){return hn.arrayBufferToBigInt(yield this.hashPadded(hn.bigIntToArrayBuffer(t),hn.bigIntToArrayBuffer(n)))})}computeClientEvidence(t,n,r,o,s){return Hl(this,void 0,void 0,function*(){return hn.arrayBufferToBigInt(yield this.hash(hn.bigIntToArrayBuffer(r),hn.bigIntToArrayBuffer(o),hn.bigIntToArrayBuffer(s)))})}computeServerEvidence(t,n,r){return Hl(this,void 0,void 0,function*(){return hn.arrayBufferToBigInt(yield this.hash(hn.bigIntToArrayBuffer(t),hn.bigIntToArrayBuffer(n),hn.bigIntToArrayBuffer(r)))})}computeClientSessionKey(t,n,r,o,s){const i=this.parameters.primeGroup.N,l=r*n+o,a=hn.modPow(this.parameters.primeGroup.g,n,i)*t%i;return hn.modPow(s+i-a,l,i)}}Vb.SRPRoutines=ide;var wa={},Ak=sn&&sn.__awaiter||function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function l(f){try{u(r.next(f))}catch(p){i(p)}}function a(f){try{u(r.throw(f))}catch(p){i(p)}}function u(f){f.done?s(f.value):o(f.value).then(l,a)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(wa,"__esModule",{value:!0});wa.SRPClientSessionStep2=wa.SRPClientSessionStep1=wa.SRPClientSession=void 0;class lde{constructor(t){this.routines=t}step1(t,n){return Ak(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 Hb(this.routines,t,r)})}}wa.SRPClientSession=lde;class Hb{constructor(t,n,r){this.routines=t,this.I=n,this.IH=r}step2(t,n){return Ak(this,void 0,void 0,function*(){if(!t)throw new Error("Salt (s) must not be null");if(!n)throw new Error("Public server value (B) must not be null");const r=yield this.routines.computeXStep2(t,this.IH),o=this.routines.generatePrivateValue(),s=this.routines.computeClientPublicValue(o),i=yield this.routines.computeK(),l=yield this.routines.computeU(s,n),a=this.routines.computeClientSessionKey(i,r,l,o,n),u=yield this.routines.computeClientEvidence(this.I,t,s,n,a);return new Ub(this.routines,s,u,a)})}toJSON(){return{I:this.I,IH:Array.from(new Uint8Array(this.IH))}}static fromState(t,n){return new Hb(t,n.I,new Uint8Array(n.IH).buffer)}}wa.SRPClientSessionStep1=Hb;class Ub{constructor(t,n,r,o){this.routines=t,this.A=n,this.M1=r,this.S=o}step3(t){return Ak(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 Ub(t,BigInt("0x"+n.A),BigInt("0x"+n.M1),BigInt("0x"+n.S))}}wa.SRPClientSessionStep2=Ub;var _d={},jx=sn&&sn.__awaiter||function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function l(f){try{u(r.next(f))}catch(p){i(p)}}function a(f){try{u(r.throw(f))}catch(p){i(p)}}function u(f){f.done?s(f.value):o(f.value).then(l,a)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(_d,"__esModule",{value:!0});_d.SRPServerSessionStep1=_d.SRPServerSession=void 0;const Hx=jb;class ade{constructor(t){this.routines=t}step1(t,n,r){return jx(this,void 0,void 0,function*(){const o=this.routines.generatePrivateValue(),s=yield this.routines.computeK(),i=cde(this.routines.parameters,s,r,o);return new Wb(this.routines,t,n,r,o,i)})}}_d.SRPServerSession=ade;class Wb{constructor(t,n,r,o,s,i){this.routines=t,this.identifier=n,this.salt=r,this.verifier=o,this.b=s,this.B=i}sessionKey(t){return jx(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 ude(this.routines.parameters.primeGroup.N,this.verifier,n,t,this.b)})}step2(t,n){return jx(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 Wb(t,n.identifier,BigInt("0x"+n.salt),BigInt("0x"+n.verifier),BigInt("0x"+n.b),BigInt("0x"+n.B))}}_d.SRPServerSessionStep1=Wb;const cde=(e,t,n,r)=>(Hx.modPow(e.primeGroup.g,r,e.primeGroup.N)+n*t)%e.primeGroup.N,ude=(e,t,n,r,o)=>Hx.modPow(Hx.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=zb;Object.defineProperty(e,"SRPParameters",{enumerable:!0,get:function(){return t.SRPParameters}});var n=Vb;Object.defineProperty(e,"SRPRoutines",{enumerable:!0,get:function(){return n.SRPRoutines}});var r=wa;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=_d;Object.defineProperty(e,"SRPServerSession",{enumerable:!0,get:function(){return o.SRPServerSession}}),Object.defineProperty(e,"SRPServerSessionStep1",{enumerable:!0,get:function(){return o.SRPServerSessionStep1}});var s=jb;Object.defineProperty(e,"createVerifierAndSalt",{enumerable:!0,get:function(){return s.createVerifierAndSalt}}),Object.defineProperty(e,"bigIntToArrayBuffer",{enumerable:!0,get:function(){return s.bigIntToArrayBuffer}}),Object.defineProperty(e,"arrayBufferToBigInt",{enumerable:!0,get:function(){return s.arrayBufferToBigInt}}),Object.defineProperty(e,"generateRandomBigInt",{enumerable:!0,get:function(){return s.generateRandomBigInt}})})(gc);function dde(e,t,n){return ot(this,null,function*(){const{pubKey:r,salt:o}=yield n("loginSrp1",{username:e});if(!o)throw Error("salt");const s=yield fde(e,t,o,r),i=yield n("loginSrp2",{pubKey:String(s.A),proof:String(s.M1)});return yield s.step3(BigInt(i.proof)).catch(()=>Promise.reject("trust")),i})}function fde(e,t,n,r){return ot(this,null,function*(){const o=new gc.SRPRoutines(new gc.SRPParameters);return yield(yield new gc.SRPClientSession(o).step1(e,t)).step2(BigInt(n),BigInt(r))})}var Gb={};const wi="\\\\/",sO=`[^${wi}]`,ll="\\.",pde="\\+",hde="\\?",Kb="\\/",mde="(?=.)",A4="[^/]",Lk=`(?:${Kb}|$)`,L4=`(?:^|${Kb})`,Fk=`${ll}{1,2}${Lk}`,gde=`(?!${ll})`,vde=`(?!${L4}${Fk})`,yde=`(?!${ll}{0,1}${Lk})`,bde=`(?!${Fk})`,wde=`[^.${Kb}]`,Cde=`${A4}*?`,xde="/",F4={DOT_LITERAL:ll,PLUS_LITERAL:pde,QMARK_LITERAL:hde,SLASH_LITERAL:Kb,ONE_CHAR:mde,QMARK:A4,END_ANCHOR:Lk,DOTS_SLASH:Fk,NO_DOT:gde,NO_DOTS:vde,NO_DOT_SLASH:yde,NO_DOTS_SLASH:bde,QMARK_NO_DOT:wde,STAR:Cde,START_ANCHOR:L4,SEP:xde},Sde=st(xe({},F4),{SLASH_LITERAL:`[${wi}]`,QMARK:sO,STAR:`${sO}*?`,DOTS_SLASH:`${ll}{1,2}(?:[${wi}]|$)`,NO_DOT:`(?!${ll})`,NO_DOTS:`(?!(?:^|[${wi}])${ll}{1,2}(?:[${wi}]|$))`,NO_DOT_SLASH:`(?!${ll}{0,1}(?:[${wi}]|$))`,NO_DOTS_SLASH:`(?!${ll}{1,2}(?:[${wi}]|$))`,QMARK_NO_DOT:`[^.${wi}]`,START_ANCHOR:`(?:^|[${wi}])`,END_ANCHOR:`(?:[${wi}]|$)`,SEP:"\\"}),Pde={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};var qb={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Pde,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?Sde:F4}};(function(e){const{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:o}=qb;e.isObject=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),e.hasRegexChars=s=>r.test(s),e.isRegexChar=s=>s.length===1&&e.hasRegexChars(s),e.escapeRegex=s=>s.replace(o,"\\$1"),e.toPosixSlashes=s=>s.replace(t,"/"),e.removeBackslashes=s=>s.replace(n,i=>i==="\\"?"":i),e.supportsLookbehinds=()=>{if(typeof process!="undefined"){const s=process.version.slice(1).split(".").map(Number);if(s.length===3&&s[0]>=9||s[0]===8&&s[1]>=10)return!0}return!1},e.escapeLast=(s,i,l)=>{const a=s.lastIndexOf(i,l);return a===-1?s:s[a-1]==="\\"?e.escapeLast(s,i,a-1):`${s.slice(0,a)}\\${s.slice(a)}`},e.removePrefix=(s,i={})=>{let l=s;return l.startsWith("./")&&(l=l.slice(2),i.prefix="./"),l},e.wrapOutput=(s,i={},l={})=>{const a=l.contains?"":"^",u=l.contains?"":"$";let f=`${a}(?:${s})${u}`;return i.negated===!0&&(f=`(?:^(?!${f}).*$)`),f},e.basename=(s,{windows:i}={})=>{const l=s.split(i?/[\\/]/:"/"),a=l[l.length-1];return a===""?l[l.length-2]:a}})(Gb);const iO=Gb,{CHAR_ASTERISK:jw,CHAR_AT:kde,CHAR_BACKWARD_SLASH:lp,CHAR_COMMA:Ede,CHAR_DOT:Hw,CHAR_EXCLAMATION_MARK:Uw,CHAR_FORWARD_SLASH:N4,CHAR_LEFT_CURLY_BRACE:Ww,CHAR_LEFT_PARENTHESES:Gw,CHAR_LEFT_SQUARE_BRACKET:Ide,CHAR_PLUS:Mde,CHAR_QUESTION_MARK:lO,CHAR_RIGHT_CURLY_BRACE:_de,CHAR_RIGHT_PARENTHESES:aO,CHAR_RIGHT_SQUARE_BRACKET:Tde}=qb,cO=e=>e===N4||e===lp,uO=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},$de=(e,t)=>{const n=t||{},r=e.length-1,o=n.parts===!0||n.scanToEnd===!0,s=[],i=[],l=[];let a=e,u=-1,f=0,p=0,m=!1,v=!1,y=!1,g=!1,C=!1,b=!1,w=!1,S=!1,k=!1,M=!1,E=0,I,R,A={value:"",depth:0,isGlob:!1};const $=()=>u>=r,L=()=>a.charCodeAt(u+1),V=()=>(I=R,a.charCodeAt(++u));for(;u<r;){R=V();let B;if(R===lp){w=A.backslashes=!0,R=V(),R===Ww&&(b=!0);continue}if(b===!0||R===Ww){for(E++;$()!==!0&&(R=V());){if(R===lp){w=A.backslashes=!0,V();continue}if(R===Ww){E++;continue}if(b!==!0&&R===Hw&&(R=V())===Hw){if(m=A.isBrace=!0,y=A.isGlob=!0,M=!0,o===!0)continue;break}if(b!==!0&&R===Ede){if(m=A.isBrace=!0,y=A.isGlob=!0,M=!0,o===!0)continue;break}if(R===_de&&(E--,E===0)){b=!1,m=A.isBrace=!0,M=!0;break}}if(o===!0)continue;break}if(R===N4){if(s.push(u),i.push(A),A={value:"",depth:0,isGlob:!1},M===!0)continue;if(I===Hw&&u===f+1){f+=2;continue}p=u+1;continue}if(n.noext!==!0&&(R===Mde||R===kde||R===jw||R===lO||R===Uw)===!0&&L()===Gw){if(y=A.isGlob=!0,g=A.isExtglob=!0,M=!0,R===Uw&&u===f&&(k=!0),o===!0){for(;$()!==!0&&(R=V());){if(R===lp){w=A.backslashes=!0,R=V();continue}if(R===aO){y=A.isGlob=!0,M=!0;break}}continue}break}if(R===jw){if(I===jw&&(C=A.isGlobstar=!0),y=A.isGlob=!0,M=!0,o===!0)continue;break}if(R===lO){if(y=A.isGlob=!0,M=!0,o===!0)continue;break}if(R===Ide){for(;$()!==!0&&(B=V());){if(B===lp){w=A.backslashes=!0,V();continue}if(B===Tde){v=A.isBracket=!0,y=A.isGlob=!0,M=!0;break}}if(o===!0)continue;break}if(n.nonegate!==!0&&R===Uw&&u===f){S=A.negated=!0,f++;continue}if(n.noparen!==!0&&R===Gw){if(y=A.isGlob=!0,o===!0){for(;$()!==!0&&(R=V());){if(R===Gw){w=A.backslashes=!0,R=V();continue}if(R===aO){M=!0;break}}continue}break}if(y===!0){if(M=!0,o===!0)continue;break}}n.noext===!0&&(g=!1,y=!1);let j=a,_="",T="";f>0&&(_=a.slice(0,f),a=a.slice(f),p-=f),j&&y===!0&&p>0?(j=a.slice(0,p),T=a.slice(p)):y===!0?(j="",T=a):j=a,j&&j!==""&&j!=="/"&&j!==a&&cO(j.charCodeAt(j.length-1))&&(j=j.slice(0,-1)),n.unescape===!0&&(T&&(T=iO.removeBackslashes(T)),j&&w===!0&&(j=iO.removeBackslashes(j)));const F={prefix:_,input:e,start:f,base:j,glob:T,isBrace:m,isBracket:v,isGlob:y,isExtglob:g,isGlobstar:C,negated:S,negatedExtglob:k};if(n.tokens===!0&&(F.maxDepth=0,cO(R)||i.push(A),F.tokens=i),n.parts===!0||n.tokens===!0){let B;for(let O=0;O<s.length;O++){const N=B?B+1:f,H=s[O],K=e.slice(N,H);n.tokens&&(O===0&&f!==0?(i[O].isPrefix=!0,i[O].value=_):i[O].value=K,uO(i[O]),F.maxDepth+=i[O].depth),(O!==0||K!=="")&&l.push(K),B=H}if(B&&B+1<e.length){const O=e.slice(B+1);l.push(O),n.tokens&&(i[i.length-1].value=O,uO(i[i.length-1]),F.maxDepth+=i[i.length-1].depth)}F.slashes=s,F.parts=l}return F};var Rde=$de;const qv=qb,qs=Gb,{MAX_LENGTH:Yv,POSIX_REGEX_SOURCE:Ode,REGEX_NON_SPECIAL_CHARS:Dde,REGEX_SPECIAL_CHARS_BACKREF:Ade,REPLACEMENTS:B4}=qv,Lde=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();const n=`[${e.join("-")}]`;try{new RegExp(n)}catch(r){return e.map(o=>qs.escapeRegex(o)).join("..")}return n},mu=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Nk=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=B4[e]||e;const n=xe({},t),r=typeof n.maxLength=="number"?Math.min(Yv,n.maxLength):Yv;let o=e.length;if(o>r)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${r}`);const s={type:"bos",value:"",output:n.prepend||""},i=[s],l=n.capture?"":"?:",a=qv.globChars(n.windows),u=qv.extglobChars(a),{DOT_LITERAL:f,PLUS_LITERAL:p,SLASH_LITERAL:m,ONE_CHAR:v,DOTS_SLASH:y,NO_DOT:g,NO_DOT_SLASH:C,NO_DOTS_SLASH:b,QMARK:w,QMARK_NO_DOT:S,STAR:k,START_ANCHOR:M}=a,E=Z=>`(${l}(?:(?!${M}${Z.dot?y:f}).)*?)`,I=n.dot?"":g,R=n.dot?w:S;let A=n.bash===!0?E(n):k;n.capture&&(A=`(${A})`),typeof n.noext=="boolean"&&(n.noextglob=n.noext);const $={input:e,index:-1,start:0,dot:n.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};e=qs.removePrefix(e,$),o=e.length;const L=[],V=[],j=[];let _=s,T;const F=()=>$.index===o-1,B=$.peek=(Z=1)=>e[$.index+Z],O=$.advance=()=>e[++$.index]||"",N=()=>e.slice($.index+1),H=(Z="",he=0)=>{$.consumed+=Z,$.index+=he},K=Z=>{$.output+=Z.output!=null?Z.output:Z.value,H(Z.value)},Q=()=>{let Z=1;for(;B()==="!"&&(B(2)!=="("||B(3)==="?");)O(),$.start++,Z++;return Z%2===0?!1:($.negated=!0,$.start++,!0)},J=Z=>{$[Z]++,j.push(Z)},Y=Z=>{$[Z]--,j.pop()},X=Z=>{if(_.type==="globstar"){const he=$.braces>0&&(Z.type==="comma"||Z.type==="brace"),ne=Z.extglob===!0||L.length&&(Z.type==="pipe"||Z.type==="paren");Z.type!=="slash"&&Z.type!=="paren"&&!he&&!ne&&($.output=$.output.slice(0,-_.output.length),_.type="star",_.value="*",_.output=A,$.output+=_.output)}if(L.length&&Z.type!=="paren"&&(L[L.length-1].inner+=Z.value),(Z.value||Z.output)&&K(Z),_&&_.type==="text"&&Z.type==="text"){_.value+=Z.value,_.output=(_.output||"")+Z.value;return}Z.prev=_,i.push(Z),_=Z},ee=(Z,he)=>{const ne=st(xe({},u[he]),{conditions:1,inner:""});ne.prev=_,ne.parens=$.parens,ne.output=$.output;const re=(n.capture?"(":"")+ne.open;J("parens"),X({type:Z,value:he,output:$.output?"":v}),X({type:"paren",extglob:!0,value:O(),output:re}),L.push(ne)},se=Z=>{let he=Z.close+(n.capture?")":""),ne;if(Z.type==="negate"){let re=A;if(Z.inner&&Z.inner.length>1&&Z.inner.includes("/")&&(re=E(n)),(re!==A||F()||/^\)+$/.test(N()))&&(he=Z.close=`)$))${re}`),Z.inner.includes("*")&&(ne=N())&&/^\.[^\\/.]+$/.test(ne)){const me=Nk(ne,st(xe({},t),{fastpaths:!1})).output;he=Z.close=`)${me})${re})`}Z.prev.type==="bos"&&($.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:T,output:he}),Y("parens")};if(n.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let Z=!1,he=e.replace(Ade,(ne,re,me,ce,Se,Ee)=>ce==="\\"?(Z=!0,ne):ce==="?"?re?re+ce+(Se?w.repeat(Se.length):""):Ee===0?R+(Se?w.repeat(Se.length):""):w.repeat(me.length):ce==="."?f.repeat(me.length):ce==="*"?re?re+ce+(Se?A:""):A:re?ne:`\\${ne}`);return Z===!0&&(n.unescape===!0?he=he.replace(/\\/g,""):he=he.replace(/\\+/g,ne=>ne.length%2===0?"\\\\":ne?"\\":"")),he===e&&n.contains===!0?($.output=e,$):($.output=qs.wrapOutput(he,$,t),$)}for(;!F();){if(T=O(),T==="\0")continue;if(T==="\\"){const ne=B();if(ne==="/"&&n.bash!==!0||ne==="."||ne===";")continue;if(!ne){T+="\\",X({type:"text",value:T});continue}const re=/^\\+/.exec(N());let me=0;if(re&&re[0].length>2&&(me=re[0].length,$.index+=me,me%2!==0&&(T+="\\")),n.unescape===!0?T=O():T+=O(),$.brackets===0){X({type:"text",value:T});continue}}if($.brackets>0&&(T!=="]"||_.value==="["||_.value==="[^")){if(n.posix!==!1&&T===":"){const ne=_.value.slice(1);if(ne.includes("[")&&(_.posix=!0,ne.includes(":"))){const re=_.value.lastIndexOf("["),me=_.value.slice(0,re),ce=_.value.slice(re+2),Se=Ode[ce];if(Se){_.value=me+Se,$.backtrack=!0,O(),!s.output&&i.indexOf(_)===1&&(s.output=v);continue}}}(T==="["&&B()!==":"||T==="-"&&B()==="]")&&(T=`\\${T}`),T==="]"&&(_.value==="["||_.value==="[^")&&(T=`\\${T}`),n.posix===!0&&T==="!"&&_.value==="["&&(T="^"),_.value+=T,K({value:T});continue}if($.quotes===1&&T!=='"'){T=qs.escapeRegex(T),_.value+=T,K({value:T});continue}if(T==='"'){$.quotes=$.quotes===1?0:1,n.keepQuotes===!0&&X({type:"text",value:T});continue}if(T==="("){J("parens"),X({type:"paren",value:T});continue}if(T===")"){if($.parens===0&&n.strictBrackets===!0)throw new SyntaxError(mu("opening","("));const ne=L[L.length-1];if(ne&&$.parens===ne.parens+1){se(L.pop());continue}X({type:"paren",value:T,output:$.parens?")":"\\)"}),Y("parens");continue}if(T==="["){if(n.nobracket===!0||!N().includes("]")){if(n.nobracket!==!0&&n.strictBrackets===!0)throw new SyntaxError(mu("closing","]"));T=`\\${T}`}else J("brackets");X({type:"bracket",value:T});continue}if(T==="]"){if(n.nobracket===!0||_&&_.type==="bracket"&&_.value.length===1){X({type:"text",value:T,output:`\\${T}`});continue}if($.brackets===0){if(n.strictBrackets===!0)throw new SyntaxError(mu("opening","["));X({type:"text",value:T,output:`\\${T}`});continue}Y("brackets");const ne=_.value.slice(1);if(_.posix!==!0&&ne[0]==="^"&&!ne.includes("/")&&(T=`/${T}`),_.value+=T,K({value:T}),n.literalBrackets===!1||qs.hasRegexChars(ne))continue;const re=qs.escapeRegex(_.value);if($.output=$.output.slice(0,-_.value.length),n.literalBrackets===!0){$.output+=re,_.value=re;continue}_.value=`(${l}${re}|${_.value})`,$.output+=_.value;continue}if(T==="{"&&n.nobrace!==!0){J("braces");const ne={type:"brace",value:T,output:"(",outputIndex:$.output.length,tokensIndex:$.tokens.length};V.push(ne),X(ne);continue}if(T==="}"){const ne=V[V.length-1];if(n.nobrace===!0||!ne){X({type:"text",value:T,output:T});continue}let re=")";if(ne.dots===!0){const me=i.slice(),ce=[];for(let Se=me.length-1;Se>=0&&(i.pop(),me[Se].type!=="brace");Se--)me[Se].type!=="dots"&&ce.unshift(me[Se].value);re=Lde(ce,n),$.backtrack=!0}if(ne.comma!==!0&&ne.dots!==!0){const me=$.output.slice(0,ne.outputIndex),ce=$.tokens.slice(ne.tokensIndex);ne.value=ne.output="\\{",T=re="\\}",$.output=me;for(const Se of ce)$.output+=Se.output||Se.value}X({type:"brace",value:T,output:re}),Y("braces"),V.pop();continue}if(T==="|"){L.length>0&&L[L.length-1].conditions++,X({type:"text",value:T});continue}if(T===","){let ne=T;const re=V[V.length-1];re&&j[j.length-1]==="braces"&&(re.comma=!0,ne="|"),X({type:"comma",value:T,output:ne});continue}if(T==="/"){if(_.type==="dot"&&$.index===$.start+1){$.start=$.index+1,$.consumed="",$.output="",i.pop(),_=s;continue}X({type:"slash",value:T,output:m});continue}if(T==="."){if($.braces>0&&_.type==="dot"){_.value==="."&&(_.output=f);const ne=V[V.length-1];_.type="dots",_.output+=T,_.value+=T,ne.dots=!0;continue}if($.braces+$.parens===0&&_.type!=="bos"&&_.type!=="slash"){X({type:"text",value:T,output:f});continue}X({type:"dot",value:T,output:f});continue}if(T==="?"){if(!(_&&_.value==="(")&&n.noextglob!==!0&&B()==="("&&B(2)!=="?"){ee("qmark",T);continue}if(_&&_.type==="paren"){const re=B();let me=T;if(re==="<"&&!qs.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(_.value==="("&&!/[!=<:]/.test(re)||re==="<"&&!/<([!=]|\w+>)/.test(N()))&&(me=`\\${T}`),X({type:"text",value:T,output:me});continue}if(n.dot!==!0&&(_.type==="slash"||_.type==="bos")){X({type:"qmark",value:T,output:S});continue}X({type:"qmark",value:T,output:w});continue}if(T==="!"){if(n.noextglob!==!0&&B()==="("&&(B(2)!=="?"||!/[!=<:]/.test(B(3)))){ee("negate",T);continue}if(n.nonegate!==!0&&$.index===0){Q();continue}}if(T==="+"){if(n.noextglob!==!0&&B()==="("&&B(2)!=="?"){ee("plus",T);continue}if(_&&_.value==="("||n.regex===!1){X({type:"plus",value:T,output:p});continue}if(_&&(_.type==="bracket"||_.type==="paren"||_.type==="brace")||$.parens>0){X({type:"plus",value:T});continue}X({type:"plus",value:p});continue}if(T==="@"){if(n.noextglob!==!0&&B()==="("&&B(2)!=="?"){X({type:"at",extglob:!0,value:T,output:""});continue}X({type:"text",value:T});continue}if(T!=="*"){(T==="$"||T==="^")&&(T=`\\${T}`);const ne=Dde.exec(N());ne&&(T+=ne[0],$.index+=ne[0].length),X({type:"text",value:T});continue}if(_&&(_.type==="globstar"||_.star===!0)){_.type="star",_.star=!0,_.value+=T,_.output=A,$.backtrack=!0,$.globstar=!0,H(T);continue}let Z=N();if(n.noextglob!==!0&&/^\([^?]/.test(Z)){ee("star",T);continue}if(_.type==="star"){if(n.noglobstar===!0){H(T);continue}const ne=_.prev,re=ne.prev,me=ne.type==="slash"||ne.type==="bos",ce=re&&(re.type==="star"||re.type==="globstar");if(n.bash===!0&&(!me||Z[0]&&Z[0]!=="/")){X({type:"star",value:T,output:""});continue}const Se=$.braces>0&&(ne.type==="comma"||ne.type==="brace"),Ee=L.length&&(ne.type==="pipe"||ne.type==="paren");if(!me&&ne.type!=="paren"&&!Se&&!Ee){X({type:"star",value:T,output:""});continue}for(;Z.slice(0,3)==="/**";){const ae=e[$.index+4];if(ae&&ae!=="/")break;Z=Z.slice(3),H("/**",3)}if(ne.type==="bos"&&F()){_.type="globstar",_.value+=T,_.output=E(n),$.output=_.output,$.globstar=!0,H(T);continue}if(ne.type==="slash"&&ne.prev.type!=="bos"&&!ce&&F()){$.output=$.output.slice(0,-(ne.output+_.output).length),ne.output=`(?:${ne.output}`,_.type="globstar",_.output=E(n)+(n.strictSlashes?")":"|$)"),_.value+=T,$.globstar=!0,$.output+=ne.output+_.output,H(T);continue}if(ne.type==="slash"&&ne.prev.type!=="bos"&&Z[0]==="/"){const ae=Z[1]!==void 0?"|$":"";$.output=$.output.slice(0,-(ne.output+_.output).length),ne.output=`(?:${ne.output}`,_.type="globstar",_.output=`${E(n)}${m}|${m}${ae})`,_.value+=T,$.output+=ne.output+_.output,$.globstar=!0,H(T+O()),X({type:"slash",value:"/",output:""});continue}if(ne.type==="bos"&&Z[0]==="/"){_.type="globstar",_.value+=T,_.output=`(?:^|${m}|${E(n)}${m})`,$.output=_.output,$.globstar=!0,H(T+O()),X({type:"slash",value:"/",output:""});continue}$.output=$.output.slice(0,-_.output.length),_.type="globstar",_.output=E(n),_.value+=T,$.output+=_.output,$.globstar=!0,H(T);continue}const he={type:"star",value:T,output:A};if(n.bash===!0){he.output=".*?",(_.type==="bos"||_.type==="slash")&&(he.output=I+he.output),X(he);continue}if(_&&(_.type==="bracket"||_.type==="paren")&&n.regex===!0){he.output=T,X(he);continue}($.index===$.start||_.type==="slash"||_.type==="dot")&&(_.type==="dot"?($.output+=C,_.output+=C):n.dot===!0?($.output+=b,_.output+=b):($.output+=I,_.output+=I),B()!=="*"&&($.output+=v,_.output+=v)),X(he)}for(;$.brackets>0;){if(n.strictBrackets===!0)throw new SyntaxError(mu("closing","]"));$.output=qs.escapeLast($.output,"["),Y("brackets")}for(;$.parens>0;){if(n.strictBrackets===!0)throw new SyntaxError(mu("closing",")"));$.output=qs.escapeLast($.output,"("),Y("parens")}for(;$.braces>0;){if(n.strictBrackets===!0)throw new SyntaxError(mu("closing","}"));$.output=qs.escapeLast($.output,"{"),Y("braces")}if(n.strictSlashes!==!0&&(_.type==="star"||_.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${m}?`}),$.backtrack===!0){$.output="";for(const Z of $.tokens)$.output+=Z.output!=null?Z.output:Z.value,Z.suffix&&($.output+=Z.suffix)}return $};Nk.fastpaths=(e,t)=>{const n=xe({},t),r=typeof n.maxLength=="number"?Math.min(Yv,n.maxLength):Yv,o=e.length;if(o>r)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${r}`);e=B4[e]||e;const{DOT_LITERAL:s,SLASH_LITERAL:i,ONE_CHAR:l,DOTS_SLASH:a,NO_DOT:u,NO_DOTS:f,NO_DOTS_SLASH:p,STAR:m,START_ANCHOR:v}=qv.globChars(n.windows),y=n.dot?f:u,g=n.dot?p:u,C=n.capture?"":"?:",b={negated:!1,prefix:""};let w=n.bash===!0?".*?":m;n.capture&&(w=`(${w})`);const S=I=>I.noglobstar===!0?w:`(${C}(?:(?!${v}${I.dot?a:s}).)*?)`,k=I=>{switch(I){case"*":return`${y}${l}${w}`;case".*":return`${s}${l}${w}`;case"*.*":return`${y}${w}${s}${l}${w}`;case"*/*":return`${y}${w}${i}${l}${g}${w}`;case"**":return y+S(n);case"**/*":return`(?:${y}${S(n)}${i})?${g}${l}${w}`;case"**/*.*":return`(?:${y}${S(n)}${i})?${g}${w}${s}${l}${w}`;case"**/.*":return`(?:${y}${S(n)}${i})?${s}${l}${w}`;default:{const R=/^(.*?)\.(\w+)$/.exec(I);if(!R)return;const A=k(R[1]);return A?A+s+R[2]:void 0}}},M=qs.removePrefix(e,b);let E=k(M);return E&&n.strictSlashes!==!0&&(E+=`${i}?`),E};var Fde=Nk;const Nde=Rde,Ux=Fde,z4=Gb,Bde=qb,zde=e=>e&&typeof e=="object"&&!Array.isArray(e),nr=(e,t,n=!1)=>{if(Array.isArray(e)){const f=e.map(m=>nr(m,t,n));return m=>{for(const v of f){const y=v(m);if(y)return y}return!1}}const r=zde(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!r)throw new TypeError("Expected pattern to be a non-empty string");const o=t||{},s=o.windows,i=r?nr.compileRe(e,t):nr.makeRe(e,t,!1,!0),l=i.state;delete i.state;let a=()=>!1;if(o.ignore){const f=st(xe({},t),{ignore:null,onMatch:null,onResult:null});a=nr(o.ignore,f,n)}const u=(f,p=!1)=>{const{isMatch:m,match:v,output:y}=nr.test(f,i,t,{glob:e,posix:s}),g={glob:e,state:l,regex:i,posix:s,input:f,output:y,match:v,isMatch:m};return typeof o.onResult=="function"&&o.onResult(g),m===!1?(g.isMatch=!1,p?g:!1):a(f)?(typeof o.onIgnore=="function"&&o.onIgnore(g),g.isMatch=!1,p?g:!1):(typeof o.onMatch=="function"&&o.onMatch(g),p?g:!0)};return n&&(u.state=l),u};nr.test=(e,t,n,{glob:r,posix:o}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};const s=n||{},i=s.format||(o?z4.toPosixSlashes:null);let l=e===r,a=l&&i?i(e):e;return l===!1&&(a=i?i(e):e,l=a===r),(l===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?l=nr.matchBase(e,t,n,o):l=t.exec(a)),{isMatch:!!l,match:l,output:a}};nr.matchBase=(e,t,n)=>(t instanceof RegExp?t:nr.makeRe(t,n)).test(z4.basename(e));nr.isMatch=(e,t,n)=>nr(t,n)(e);nr.parse=(e,t)=>Array.isArray(e)?e.map(n=>nr.parse(n,t)):Ux(e,st(xe({},t),{fastpaths:!1}));nr.scan=(e,t)=>Nde(e,t);nr.compileRe=(e,t,n=!1,r=!1)=>{if(n===!0)return e.output;const o=t||{},s=o.contains?"":"^",i=o.contains?"":"$";let l=`${s}(?:${e.output})${i}`;e&&e.negated===!0&&(l=`^(?!${l}).*$`);const a=nr.toRegex(l,t);return r===!0&&(a.state=e),a};nr.makeRe=(e,t={},n=!1,r=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(o.output=Ux.fastpaths(e,t)),o.output||(o=Ux(e,t)),nr.compileRe(o,t,n,r)};nr.toRegex=(e,t)=>{try{const n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(n){if(t&&t.debug===!0)throw n;return/$^/}};nr.constants=Bde;var Vde=nr;const jde=di(Vde),Hde=-1,Xd=401,Yb=403,Ude=404,Wde=406,Gde=409,Wx=424,Kde=429,qde=500,Yde={[Xd]:"Unauthorized",[Yb]:"Forbidden",[Ude]:"Not found",[qde]:"Server error",[Kde]:"Too many requests"},Qb="https://github.com/rejetto/hfs/",Qde=Qb+"wiki/",Xde=6e4,Zde=60*Xde,Jde=24*Zde,efe=10,tfe=["name","extension","size","time"],nfe={auto:"",light:"light",dark:"dark"},Bn=ofe(["geo_enable","geo_allow","geo_list","geo_allow_unknown","max_downloads","max_downloads_per_ip","max_downloads_per_account","roots","roots_mandatory"]),gu={add:"+",remove:"-",update:"=",props:"props",ready:"ready",error:"e"},rfe=!0,dO=!1,Kw={can_see:"can_read",can_read:rfe,can_list:"can_read",can_upload:dO,can_delete:dO,can_archive:"can_read"};function ofe(e){return Object.fromEntries(e.map(t=>[t,t]))}function sfe(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}const ife=["","K","M","G","T"];function xl(e,{post:t="B",k:n=1024,digits:r=NaN}={}){if(isNaN(Number(e))||e<0)return"";const o=e&&Math.floor(Math.log2(e)/Math.log2(n));return e/=ys(n,o),(o&&!isNaN(r)?e.toFixed(r):rt.round(e,isNaN(r)?e>=100?0:1:r))+" "+(ife[o]||"")+t}function lfe(e,t={}){return xl(e,xe({post:"B/s",k:1e3},t)).replace("K","k")}function Oi(e,t,n=""){return t?e+t+n:""}function Bh(e,t){return new Promise(n=>setTimeout(n,e,t))}function Xb(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>[n,t(r,n)]))}function afe(e,t,n=!1){return!n&&!t||t.endsWith(e)?t:t+e}function cfe(e,t){if(typeof e=="number")return[t.slice(0,e),t.slice(e+1)];const n=t.indexOf(e);return n<0?[t,""]:[t.slice(0,n),t.slice(n+e.length)]}function ufe(e){return!!e}function jc(e){return e.filter(ufe)}function dfe(e,t){return Object.defineProperties(e,H4(t,n=>({enumerable:!1,writable:!0,value:n})))}function ffe(e,t){try{return e()}catch(n){return t==null?void 0:t(n)}}function Ma(e,t){return t(e)}function pfe(e){return(e*100).toFixed(1)+"%"}function Zb(e){return e==null?[]:Array.isArray(e)?e:[e]}function Bk(){let e;const t=new Promise((n,r)=>e={resolve:n,reject:r});return Object.assign(t,e)}function V4(e){return e.slice(e.lastIndexOf("/")+1||e.lastIndexOf("\\")+1)}function hfe(e){return e.slice(0,e.lastIndexOf("/",e.length-1))}function mfe(e,t){try{return e&&JSON.parse(e)}catch(n){return t==null?void 0:t(e)}}function fO(e,t,n){const r=e[t];return e[t]=e[n],e[n]=r,e}function j4(e,t){return rt.isEqualWith(e,t,(n,r)=>{if(!rt.isPlainObject(n)||!rt.isPlainObject(r))return;const o=Object.keys(n),s=Object.keys(r);return o.length===s.length&&o.every((i,l)=>{const a=s[l];return i===a&&j4(n[i],r[a])})})}function H4(e,t,n=!1){if(!e)return{};const r=Object.entries(e).map(([o,s])=>{if(typeof o=="symbol")return;let i=o;const l=typeof n=="number"?n:0;let a=t(s,o,u=>(i=u,!0),l);return(n!==!1||t.length===4)&&rt.isPlainObject(a)&&(a=H4(a,t,l+1)),i!==void 0&&[i,a]});return Object.fromEntries(jc(r))}function gfe(e){return Object.keys(e)}function Gx(e){return e?new Date(e).toLocaleString():"-"}function vfe(e){return!e||Object(e)!==e}function yfe(e){return/^([.:\da-f]+)$/i.test(e)}function bfe(e){return e&&/^[a-zA-Z]:$/.test(e)}function Qv(e,t){return e==t||e&&t&&typeof e=="object"&&typeof t=="object"&&Object.entries(e).every(([n,r])=>Qv(r,t[n]))&&Object.entries(t).every(([n,r])=>Object.hasOwn(e,n)||Qv(r,e[n]))}function zk(e,t){var n;return(n=t[e])!=null?n:e}function wfe(e){return e==="::1"||e.endsWith("127.0.0.1")}function U4(e){return e.includes(":")?"["+e+"]":e}function Cfe(e){return e.replace(/[\u0000-\u002F\u003A-\u0040\u005B-\u0060\u007B-\u00FF]/g,t=>"&#"+("000"+t.charCodeAt(0)).slice(-4)+";")}function xfe(e,t=!1){return e?jde(e.replace(/^(!)?/,"$1(")+")",{nocase:!0}):()=>t}function Sfe(e,t,n=!1){return xfe(t,n)(e)}function Pfe(e){var t;return rt.findKey(kfe,n=>n.test(e))||((t=/^[^/(]+ ?/.exec(e))==null?void 0:t[0])||e}const kfe={YaBrowser:/yabrowser/i,AlamoFire:/alamofire/i,Edge:/edge|edga|edgios|edg/i,PhantomJS:/phantomjs/i,Konqueror:/konqueror/i,Amaya:/amaya/i,Epiphany:/epiphany/i,SeaMonkey:/seamonkey/i,Flock:/flock/i,OmniWeb:/omniweb/i,Opera:/opera|OPR\//i,Chromium:/chromium/i,Facebook:/FBA[NV]/,Chrome:/chrome|crios/i,WinJs:/msapphost/i,IE:/msie|trident/i,Firefox:/firefox|fxios/i,Safari:/safari/i,PS5:/playstation 5/i,PS4:/playstation 4/i,PS3:/playstation 3/i,PSP:/playstation portable/i,PS:/playstation/i,Xbox:/xbox/i,UC:/UCBrowser/i};window._=rt;const qw=Jb();Object.assign(qw,{getPluginKey:()=>pO("plugin"),getPluginPublic:()=>{var e,t;return(t=(e=pO("src"))==null?void 0:e.match(/^.*\//))==null?void 0:t[0]},getPluginConfig:()=>qw.plugins[qw.getPluginKey()]||{}});function pO(e){var t;return((t=document.currentScript)==null?void 0:t.getAttribute(e))||console.error("this function must be called at the very top of your file")}Object.fromEntries(new URLSearchParams(window.location.search).entries());function W4(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 G4(e){return new Promise((t,n)=>{const r=new FileReader;r.addEventListener("load",o=>{if(!o.target||e.size&&!o.target.result)return n("cannot read");const{result:s}=o.target;t(s==null?void 0:s.toString())}),r.addEventListener("error",()=>{n(r.error)}),r.readAsText(e)})}function Efe(){return window.innerWidth<800}function Jb(){return window.HFS}function K4(){return Jb().prefixUrl||""}function Ife(e){return function t(n){if(!n)return;const{exp:r}=n;if(Object.assign(e,rt.pick(n,["username","adminUrl","canChangePassword"])),!n.username||!r)return;const o=new Date(r).getTime()-Date.now(),s=rt.clamp(o-3e4,4e3,6e5);console.debug("session refresh in",Math.round(s/1e3)),setTimeout(()=>ct("refresh_session").then(t),s)}}function Xv(e,t=document){const n=t.querySelector(e);if(n&&n instanceof HTMLElement)return n.focus(),!0}function Mfe(e,t){return ot(this,null,function*(){const r=(yield ct("get_config",{only:[e]}))[e],o=yield t(r);JSON.stringify(r)!==JSON.stringify(o)&&(yield ct("set_config",{values:{[e]:o}}))})}function q4(e){return{github_quota:"Request denied. You may have reached the limit, retry later.",ENOENT:"Not found",ENOTDIR:"Not a folder"}[e]||e}var Vk={},_fe=et;Object.defineProperty(Vk,"__esModule",{value:!0});var Y4=Vk.default=void 0,Tfe=_fe(tt()),$fe=Ze(),Rfe=(0,Tfe.default)((0,$fe.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");Y4=Vk.default=Rfe;var jk={},Ofe=et;Object.defineProperty(jk,"__esModule",{value:!0});var e0=jk.default=void 0,Dfe=Ofe(tt()),Afe=Ze(),Lfe=(0,Dfe.default)((0,Afe.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");e0=jk.default=Lfe;var Hk={},Ffe=et;Object.defineProperty(Hk,"__esModule",{value:!0});var t0=Hk.default=void 0,Nfe=Ffe(tt()),Bfe=Ze(),zfe=(0,Nfe.default)((0,Bfe.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");t0=Hk.default=zfe;var Uk={},Vfe=et;Object.defineProperty(Uk,"__esModule",{value:!0});var Wk=Uk.default=void 0,jfe=Vfe(tt()),Hfe=Ze(),Ufe=(0,jfe.default)((0,Hfe.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");Wk=Uk.default=Ufe;var Gk={},Wfe=et;Object.defineProperty(Gk,"__esModule",{value:!0});var zh=Gk.default=void 0,Gfe=Wfe(tt()),Kfe=Ze(),qfe=(0,Gfe.default)((0,Kfe.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");zh=Gk.default=qfe;var Kk={},Yfe=et;Object.defineProperty(Kk,"__esModule",{value:!0});var n0=Kk.default=void 0,Qfe=Yfe(tt()),Xfe=Ze(),Zfe=(0,Qfe.default)((0,Xfe.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");n0=Kk.default=Zfe;var qk={},Jfe=et;Object.defineProperty(qk,"__esModule",{value:!0});var Q4=qk.default=void 0,epe=Jfe(tt()),tpe=Ze(),npe=(0,epe.default)((0,tpe.jsx)("path",{d:"M12 8V4l8 8-8 8v-4H4V8z"}),"Forward");Q4=qk.default=npe;var Yk={},rpe=et;Object.defineProperty(Yk,"__esModule",{value:!0});var Zv=Yk.default=void 0,ope=rpe(tt()),spe=Ze(),ipe=(0,ope.default)((0,spe.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");Zv=Yk.default=ipe;var Qk={},lpe=et;Object.defineProperty(Qk,"__esModule",{value:!0});var r0=Qk.default=void 0,ape=lpe(tt()),cpe=Ze(),upe=(0,ape.default)((0,cpe.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");r0=Qk.default=upe;var Xk={},dpe=et;Object.defineProperty(Xk,"__esModule",{value:!0});var Vh=Xk.default=void 0,fpe=dpe(tt()),ppe=Ze(),hpe=(0,fpe.default)((0,ppe.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");Vh=Xk.default=hpe;function mpe(e){return Ke("MuiLoadingButton",e)}const gpe=We("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),nl=gpe,vpe=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],ype=e=>{const{loading:t,loadingPosition:n,classes:r}=e,o={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${Pe(n)}`],endIcon:[t&&`endIconLoading${Pe(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${Pe(n)}`]},s=Te(o,mpe,r);return x({},r,s)},bpe=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",wpe=oe(Yn,{shouldForwardProp:e=>bpe(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${nl.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${nl.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>x({[`& .${nl.startIconLoadingStart}, & .${nl.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}),[`&.${nl.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${nl.startIconLoadingStart}, & .${nl.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${nl.startIconLoadingStart}, & .${nl.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),Cpe=oe("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${Pe(n.loadingPosition)}`]]}})(({theme:e,ownerState:t})=>x({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})),xpe=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiLoadingButton"}),{children:o,disabled:s=!1,id:i,loading:l=!1,loadingIndicator:a,loadingPosition:u="center",variant:f="text"}=r,p=le(r,vpe),m=Kt(i),v=a!=null?a:D.jsx(zi,{"aria-labelledby":m,color:"inherit",size:16}),y=x({},r,{disabled:s,loading:l,loadingIndicator:v,loadingPosition:u,variant:f}),g=ype(y),C=l?D.jsx(Cpe,{className:g.loadingIndicator,ownerState:y,children:v}):null;return D.jsxs(wpe,x({disabled:s||l,id:m,ref:n},p,{variant:f,classes:g,ownerState:y,children:[y.loadingPosition==="end"?o:C,y.loadingPosition==="end"?C:o]}))}),X4=xpe;function Ui(m){var v=m,{value:e,onChange:t,min:n,max:r,required:o,setApi:s,typing:i,start:l,end:a,onTyping:u,suggestions:f}=v,p=Ft(v,["value","onChange","min","max","required","setApi","typing","start","end","onTyping","suggestions"]);const y=e!=null?e:"";s==null||s({getError(){return!e&&o?"required":(e==null?void 0:e.length)<n?"too short":(e==null?void 0:e.length)>r?"too long":!1}});const[g,C]=c.useState(y),b=c.useRef(y);c.useEffect(()=>{C(y),b.current=y},[y]);const w=c.useRef(),S=M=>c.createElement(Na,xe(st(xe({fullWidth:!0,InputLabelProps:g||p.placeholder?{shrink:!0}:void 0},p),{sx:p.label?p.sx:Object.assign({"& .MuiInputBase-input":{pt:1.5}},p.sx),value:g,onChange(E){let I=E.target.value;if(u){const R=u(I);if(R===!1)return;I=R}C(I),(i||w.current===void 0)&&k(E,I)},onKeyDown(E){var I;(I=p.onKeyDown)==null||I.call(p,E),(E.key==="Enter"||E.code===void 0)&&k(E)},onFocus(E){w.current=E.target.value},onBlur(E){var I;(I=p.onBlur)==null||I.call(p,E),w.current!==E.target.value&&k(E)},InputProps:xe({startAdornment:l&&c.createElement(Cl,{position:"start"},l),endAdornment:a&&c.createElement(Cl,{position:"end"},a)},p.InputProps)}),M));return f?c.createElement(Fh,{freeSolo:!0,options:f,renderInput:S}):S(null);function k(M,E=g){E=E.trim(),E!==b.current&&(b.current=E,t(E,{was:e,event:M,cancel(){C(y)}}))}}var Zk={},Spe=et;Object.defineProperty(Zk,"__esModule",{value:!0});var Z4=Zk.default=void 0,Ppe=Spe(tt()),kpe=Ze(),Epe=(0,Ppe.default)((0,kpe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");Z4=Zk.default=Epe;function Kr(e){const l=e,{value:t,onChange:n,setApi:r,options:o,sx:s}=l,i=Ft(l,["value","onChange","setApi","options","sx"]);return c.createElement(Na,st(xe(xe({},J4(e)),i),{onChange(a){try{let u=a.target.value;u=JSON.parse(u),n(u,{was:t,event:a})}catch(u){}}}))}function o0(e){const C=e,{value:t,onChange:n,setApi:r,options:o,sx:s,clearable:i,clearValue:l,placeholder:a,autocompleteProps:u}=C,f=Ft(C,["value","onChange","setApi","options","sx","clearable","clearValue","placeholder","autocompleteProps"]),b=J4(st(xe({clearValue:[]},e),{clearable:!1})),{select:p,InputProps:m}=b,v=Ft(b,["select","InputProps"]),y=c.useMemo(()=>e5(o),[o]),g=c.useMemo(()=>Array.isArray(t)?t.map(w=>y.find(S=>S.value===w)||{value:w,label:String(w)}):[],[t,y]);return c.createElement(Fh,st(xe(xe({multiple:!0,options:y,filterSelectedOptions:!0,onChange:(w,S)=>n(S.map(k=>k.value),{was:t,event:w}),isOptionEqualToValue:(w,S)=>w.value===S.value,getOptionLabel:w=>w.label,renderOption:(w,S)=>c.createElement("span",w,S.label)},v),u),{value:g,renderInput:w=>c.createElement(Na,xe(st(xe({},f),{placeholder:g.length?void 0:a,SelectProps:{multiple:!0},sx:st(xe({},f.sx),{"& div[role=button]":{whiteSpace:"unset"}})}),w)),sx:xe({".MuiAutocomplete-tag":{height:24},".MuiAutocomplete-inputRoot":{pt:"21px"},"input[type][type]":{p:"4px"},".MuiChip-deleteIcon[class]":{position:"absolute",right:"-0.6em",opacity:0,color:"text.primary",transition:"all .2s"},".MuiChip-root:hover .MuiChip-deleteIcon":{opacity:1}},s)}))}function J4(e){const{options:t,disabled:n,start:r,end:o,clearable:s,clearValue:i,value:l}=e,a=e5(t),u=JSON.stringify(l),f=a.find(m=>JSON.stringify(m.value)===u),p=s&&(Array.isArray(l)?l.length>0:l);return{select:!0,fullWidth:!0,sx:e.label?e.sx:Object.assign({"& .MuiInputBase-input":{pt:1}},e.sx),value:f?u:"",disabled:!(a!=null&&a.length)||n,InputProps:xe({startAdornment:(r||p)&&c.createElement(Cl,{position:"start"},p&&c.createElement(Ml,{title:"Clear",children:c.createElement(hr,{onClick(m){e.onChange(i,{was:l,event:m})}},c.createElement(Z4))}),r),endAdornment:o&&c.createElement(Cl,{position:"end"},o)},e.InputProps),children:a.map((m,v)=>c.createElement(Pr,{key:v,value:JSON.stringify(m==null?void 0:m.value),children:c.createElement(c.Fragment,{key:v},m==null?void 0:m.label)}))}}function e5(e){return Array.isArray(e)?e.map(t=>typeof t=="string"||typeof t=="number"?{value:t,label:String(t)}:t):Object.entries(e).map(([t,n])=>({value:n,label:t}))}function $p(r){var o=r,{value:e,empty:t="-"}=o,n=Ft(o,["value","empty"]);return!n.toField&&t!==void 0&&e!==0&&!e&&(e=t),c.createElement(Ui,st(xe({},n),{value:e,disabled:!0}))}function Vo(u){var f=u,{value:e,onChange:t,setApi:n,required:r,min:o,max:s,step:i,unit:l}=f,a=Ft(f,["value","onChange","setApi","required","min","max","step","unit"]);return n==null||n({getError(){return e==null?r?"required":!1:e<o?"too low":e>s?"too high":!1}}),c.createElement(Ui,xe({type:"number",value:e==null?"":String(e),onChange(p,y){var g=y,{was:m}=g,v=Ft(g,["was"]);t(p?Number(p):null,st(xe({},v),{was:m?Number(m):null}))},inputProps:{min:o,max:s,step:i},InputProps:rt.merge({sx:{"& input":{appearance:"textfield"}}},l&&{sx:{pr:"6px","& input":{pl:".2em",textAlign:"right"}},endAdornment:c.createElement(Cl,{position:"end",sx:{mt:"1.2em",ml:"5px","& p":{fontSize:"80%"}}},l)})},a))}function Dn(a){var u=a,{label:e="",value:t,onChange:n,setApi:r,helperText:o,error:s,type:i}=u,l=Ft(u,["label","value","onChange","setApi","helperText","error","type"]);const f=()=>t!=null?t:!1,[p,m]=c.useState(f);c.useEffect(()=>m(f),[t]);const v=c.createElement(f4,st(xe({checked:p},l),{onChange(y){n(y.target.checked,{event:y,was:t})}}));return c.createElement(ze,{ml:1,mt:1,sx:s?{color:"error.main",outlineOffset:6,outline:"1px solid"}:void 0},c.createElement(qN,xe({label:e,control:v,labelPlacement:"end"},l.size==="small"&&{sx:{"& .MuiFormControlLabel-label":{fontSize:".9rem"}}})),o&&c.createElement(qd,{error:s},o))}function Hc(y){var g=y,{fields:e,values:t,set:n,defaults:r,save:o,stickyBar:s,addToBar:i=[],barSx:l,formRef:a,onError:u,saveOnEnter:f,gridProps:p,formProps:m}=g,v=Ft(g,["fields","values","set","defaults","save","stickyBar","addToBar","barSx","formRef","onError","saveOnEnter","gridProps","formProps"]);const C=c.useRef(!1);c.useEffect(()=>(C.current=!0,()=>{C.current=!1}),[]);const[b,w]=c.useState({}),[S,k]=c.useState({}),M=typeof o=="function"?{onClick:o}:o,[E,I]=c.useState(0),R=c.useRef(!1),A=c.useRef("");c.useEffect(()=>void _(),[E]);const $={},L={};return c.createElement("form",st(xe({ref:a&&(T=>a.current=T||void 0)},m),{onSubmit(T){T.preventDefault()},onKeyDown(T){M&&!M.disabled&&(T.ctrlKey||T.metaKey)&&T.key==="Enter"&&V()}}),c.createElement(ze,xe({display:"flex",flexDirection:"column",gap:3},v),c.createElement(ri,xe({container:!0,rowSpacing:3,columnSpacing:1},p),e.map((T,F)=>{if(!T)return null;if(c.isValidElement(T))return c.createElement(ri,{key:F,item:!0,xs:12},T);const Y=T,{k:B,fromField:O=rt.identity,toField:N=rt.identity,getError:H,error:K}=Y,Q=Ft(Y,["k","fromField","toField","getError","error"]);let J=b[B]||K||S[B];if(J===!0&&(J="Not valid"),B){const ee=T.hasOwnProperty("value")?T.value:t==null?void 0:t[B],se=xe(xe({},T),Q);Object.assign(Q,{value:N(ee),error:!!(J||K)||void 0,setApi(Z){L[B]=Z},onKeyDown(Z){f&&Z.key==="Enter"&&V()},onChange(Z){var he;try{if(Z=O(Z,{originalValue:ee}),k(ne=>st(xe({},ne),{[B]:!1})),(((he=L[B])==null?void 0:he.isEqual)||rt.isEqual)(Z,ee))return;n(Z,B),j(B)}catch(ne){k(re=>st(xe({},re),{[B]:(ne==null?void 0:ne.message)||String(ne)||!0}))}}}),Array.isArray(Q.helperText)&&(Q.helperText=c.createElement(c.Fragment,{},...Q.helperText)),J&&(Q.helperText=Q.helperText?c.createElement(c.Fragment,{},c.createElement("span",{style:{borderBottom:"1px solid"}},J),c.createElement(ze,{color:"text.primary",component:"span",display:"block"},Q.helperText)):J),Q.label===void 0&&(Q.label=t5(B)),rt.defaults(Q,r==null?void 0:r(se))}{const X=Q,{xs:ee=12,sm:se,md:Z,lg:he,xl:ne,comp:re=Ui,before:me,after:ce,fromField:Se,toField:Ee}=X,ae=Ft(X,["xs","sm","md","lg","xl","comp","before","after","fromField","toField"]);Object.assign(ae,{name:B});const Ie=$[B]=($[B]||0)+1;return c.createElement(ri,{key:B?B+Ie:F,item:!0,xs:ee,sm:se,md:Z,lg:he,xl:ne},me,c.isValidElement(re)?re:c.createElement(re,ae),ce)}})),M&&c.createElement(ze,{display:"flex",alignItems:"center",sx:Object.assign({},s&&{width:"fit-content",zIndex:2,backgroundColor:"background.paper",borderRadius:1,position:"sticky",bottom:0,p:1,m:-1,boxShadow:"0px 0px 30px #000"},l)},c.createElement(X4,st(xe({variant:"contained",startIcon:c.createElement(Vh),children:"Save",loading:Tk(E!==0)},M),{onClick:V})),...i)));function V(){R.current=!0,j()}function j(T=""){E===0&&(A.current=T,setTimeout(()=>I(F=>F===0?1:F)))}function _(){return ot(this,null,function*(){var B,O,N;if(E===0)return;if(E===1)return I(2);const T="Please review errors",F={};for(const H of e){if(!H||c.isValidElement(H)||!H.k)continue;const{k:K}=H,Q=t==null?void 0:t[K],J=(yield(O=(B=L[K])==null?void 0:B.getError)==null?void 0:O.call(B,Q,{values:t,fields:e}))||(yield(N=H.getError)==null?void 0:N.call(H,Q,{values:t,fields:e}))||S[K];if(F[K]=J||!1,!R.current&&K===A.current)break;if(!C.current)return}w(F);try{if(!R.current)return;if(Object.values(F).some(Boolean))return yield u==null?void 0:u(T);const H=M&&M.onClick;H&&(yield H())}catch(H){yield u==null?void 0:u(H)}finally{R.current=!1,C.current&&I(0)}})}}function t5(e){return rt.upperFirst(e.indexOf("_")>0?e.replace(/_/g," "):e.replace(/([a-z])([A-Z])/g,(t,n,r)=>n+" "+r.toLowerCase()))}function n5(){return Lb("(prefers-color-scheme: dark)")}const Ipe={};function Mpe(){const e=n5()?null:Ipe;return c.useMemo(()=>XP({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])}const _pe={"`":"code","*":"i","**":"b"};function er(e,{linkTarget:t="_blank",onText:n=r=>r}={}){return typeof e!="string"&&(e=e[0]),Jk(e,/(`|_|\*\*?)(.+?)\1|(\n)|\[(.+?)\]\((.+?)\)|<([^ >/]+)>(.*?)<\/\6>|<([^ >/]+) *\/>/g,r=>r[4]?c.createElement(Ls,{href:r[5],target:t},n(r[4])):r[3]?c.createElement("br"):r[1]?c.createElement(_pe[r[1]]||c.Fragment,{},n(r[2])):c.createElement(r[6]||r[8],{},r[7]),n)}function Jk(e,t,n,r=o=>o){const o=[];let s=0,i;for(;(i=t.exec(e))&&(o.push(r(e.slice(s,i.index))),o.push(n(i)),s=i.index+i[0].length,!!t.global););return c.createElement(c.Fragment,{},...o,r(e.slice(s,1/0)))}Vx.Container=function(t){const n=c.useRef(),{width:r,height:o}=Nb(),s=r>0&&Math.min(r,o)<500;c.useEffect(()=>{const p=setTimeout(()=>{const m=n.current;m&&(m.focus(),!s&&(Xv("[autofocus]")||Xv("input,textarea")))});return()=>clearTimeout(p)},[n.current]);const i=eE();t=xe(xe({},Vx),t);const f=t.dialogProps||{},{sx:l,root:a}=f,u=Ft(f,["sx","root"]);return t.noFrame?c.createElement(Ab,{open:!0,children:c.createElement(Hh,{},c.createElement(t.Content))}):c.createElement(zN,st(xe(xe({open:!0,maxWidth:"lg",fullScreen:s},u),a),{className:t.className,onClose:()=>Vi()}),t.title&&c.createElement(Jre,{sx:xe({position:"sticky",top:0,p:1,zIndex:2,boxShadow:"0 0 8px #0004",display:"flex",alignItems:"center"},i)},t.icon&&c.createElement(ze,{mr:1},Kv(t.icon)),c.createElement(ze,{flex:1,minWidth:40},Kv(t.title)),c.createElement(mn,{icon:zh,title:"close",sx:{ml:1},onClick:()=>Vi()})),c.createElement(VN,{ref:n,sx:xe({p:t.padding?1:0,pt:"16px !important",overflow:"initial",display:"flex",flexDirection:"column",justifyContent:"center"},l)},c.createElement(t.Content)))};function eE(){return n5()?{bgcolor:"#2d2d2d"}:{bgcolor:"#ccc",color:"#444"}}const r5={error:n0,warning:r0,info:Zv,success:Wk};function kt(e,t){const n=typeof t=="string"?{type:t}:t!=null?t:{};let l=n,{type:r="info"}=l,o=Ft(l,["type"]);e instanceof Error&&(e=e.message||String(e),r="error");const s=Bk(),i=Ro(st(xe({className:"dialog-alert dialog-alert-"+r,icon:"!",onClose:s.resolve},o),{Content(){var a;return c.createElement(ze,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},c.createElement(hr,{onClick(){i.close()},size:"small",sx:{position:"absolute",right:0,top:0,opacity:.5}},c.createElement(zh)),(a=n.icon)!=null?a:c.createElement(r5[r],{color:r,fontSize:"large"}),c.isValidElement(e)?e:c.createElement(ze,{fontSize:"large",mb:1,lineHeight:"1.8em"},String(e)))}}));return Object.assign(s,i)}function xr(e,s={}){var i=s,{href:t,confirmText:n="Go",dontText:r="Don't"}=i,o=Ft(i,["href","confirmText","dontText"]);const l=Bk(),a=Ro(st(xe({className:"dialog-confirm",onClose:l.resolve},o),{Content:u}));return Object.assign(l,a);function u(){return c.createElement(c.Fragment,{},c.createElement(ze,{mb:2},typeof e=="string"?er(e):e),c.createElement(qr,{},c.createElement("a",{href:t,onClick:()=>Vi(!0)},c.createElement(Yn,{variant:"contained"},n)),c.createElement(Yn,{onClick:()=>Vi(!1)},r)))}}function uh(r){return ot(this,null,function*(){var o=r,{form:e,values:t}=o,n=Ft(o,["form","values"]);return new Promise(i=>Ro(st(xe({className:"dialog-confirm",onClose:i},n),{Content:s})));function s(){const[i,l]=c.useState(t||{}),p=typeof e=="function"?e(i):e,{onChange:a,before:u}=p,f=Ft(p,["onChange","before"]);return c.createElement(c.Fragment,{},u,c.createElement(Hc,st(xe({},f),{values:i,set(m,v){l(y=>{const g=st(xe({},y),{[v]:m});return a==null||a(g,{setValues:l}),g})},save:st(xe({},f.save),{onClick(){Vi(i)}})})))}})}function jh(a){return ot(this,arguments,function*(e,i={}){var l=i,{value:t,field:n,save:r,addToBar:o=[]}=l,s=Ft(l,["value","field","save","addToBar"]);return uh(st(xe({},s),{values:{text:t},form:xe({fields:[st(xe({k:"text",label:null,autoFocus:!0},n),{before:c.createElement(ze,{mb:2},e)})],save:xe({children:"Continue",startIcon:c.createElement(Q4)},r),saveOnEnter:!0,barSx:{gap:2},addToBar:[c.createElement(Yn,{onClick:Vi},"Cancel"),...o]},s.form)})).then(u=>u==null?void 0:u.text)})}function o5(){return Ro({Content:()=>c.createElement(zi,{size:"20vw"}),noFrame:!0,closable:!1}).close}function rr(e,t="info",n){const o=Ro(st(xe({},n),{Content:i,dialogProps:{fullScreen:!1,PaperProps:{sx:{transition:"opacity 3000ms ease-in"},ref(l){l&&(l.style.opacity="0")}}}})),{close:s}=o;return setTimeout(s,3e3),o;function i(){return c.createElement(ze,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},c.isValidElement(t)?t:c.createElement(r5[t],{color:t}),c.isValidElement(e)?e:c.createElement("div",{},String(e)))}}function s5(){return c.createElement(zi)}function Qo(e){return Lb(t=>t.breakpoints.up(e),{noSsr:!0})}function i5({icon:e,progress:t,offset:n,addTitle:r,sx:o}){return c.createElement(c.Fragment,{},c.createElement(e,{sx:{position:"absolute",ml:"4px"}}),c.createElement(zi,{value:t*100,variant:"determinate",size:32,sx:{position:"absolute"}}),c.createElement(Ml,{title:c.createElement(c.Fragment,{},pfe(t),r),children:c.createElement(zi,{color:"success",value:(n||1e-7)*100,variant:"determinate",size:32,sx:xe({display:"flex"},o)})}))}function qr(s){var i=s,{vert:e=!1,center:t=!1,children:n=null,props:r={}}=i,o=Ft(i,["vert","center","children","props"]);return c.createElement(ze,xe({sx:xe(xe({display:"flex",gap:".8em",flexDirection:e?"column":void 0,alignItems:e?void 0:"center"},t&&{justifyContent:"center"}),o)},r),n)}function Oc(e,t){return Array.isArray(t)&&(t=ch(t)),c.createElement(Ls,{href:Qde+e,target:"help"},t)}function s0(e,t){return c.createElement(mn,xe({icon:t0,title:"Reload",onClick:e},t))}function Zd(e){return e?{outline:"2px solid"}:void 0}const mn=c.forwardRef((m,p)=>{var v=m,{title:e,icon:t,onClick:n,disabled:r,progress:o,link:s,tooltipProps:i,confirm:l,doneMessage:a,sx:u}=v,f=Ft(v,["title","icon","onClick","disabled","progress","link","tooltipProps","confirm","doneMessage","sx"]);const[y,g]=Co(!1);typeof r=="string"&&(e=r),s&&(n=()=>window.open(s));let C=c.createElement(hr,st(xe({ref:p,disabled:!!(y||o||r)},f),{sx:xe({height:"fit-content"},u),onClick(...w){return ot(this,null,function*(){if(l&&!(yield xr(l)))return;const S=n==null?void 0:n.apply(this,w);S&&S instanceof Promise&&(g(!0),S.then(k=>k!==!1&&l5(a),kt).finally(()=>g(!1)))})}}),(o||y)&&o!==!1&&c.createElement(zi,st(xe({},typeof o=="number"?{value:o*100,variant:"determinate"}:null),{style:{position:"absolute",top:"10%",left:"10%",width:"80%",height:"80%"}})),c.createElement(t));return e&&(C=c.createElement(Ml,st(xe({title:e},i),{children:c.createElement("span",{},C)}))),C});function Xo(m){var v=m,{icon:e,title:t,onClick:n,disabled:r,progress:o,link:s,tooltipProps:i,confirm:l,doneMessage:a,labelFrom:u,children:f}=v,p=Ft(v,["icon","title","onClick","disabled","progress","link","tooltipProps","confirm","doneMessage","labelFrom","children"]);const[y,g]=Co(!1);typeof r=="string"&&(t=r,r=!0),s&&(n=()=>window.open(s));const C=Qo(u||"xs");let b=c.createElement(X4,st(xe({variant:"contained",startIcon:e&&c.createElement(e),loading:!!(y||o),loadingPosition:e&&"start",loadingIndicator:typeof o!="number"?void 0:c.createElement(zi,{size:"1rem",value:o*100,variant:"determinate"}),disabled:r},p),{children:C&&f,sx:xe(xe({},p.sx),!C&&{minWidth:"auto",px:2,py:"7px","& span":{mx:0}}),onClick(...S){return ot(this,null,function*(){if(l&&!(yield xr(l===!0?"Are you sure?":l)))return;const k=n==null?void 0:n.apply(this,S);k&&k instanceof Promise&&(g(!0),k.then(M=>M!==!1&&l5(a),kt).finally(()=>g(!1)))})}}));return t&&(b=c.createElement(Ml,st(xe({title:t},i),{children:c.createElement("span",{},b)}))),b}function l5(e){e&&rr(e===!0?"Operation completed":e,"success")}function Wr(e,t,n){return c.createElement(Ml,{title:t,children:c.createElement(e,{sx:xe({verticalAlign:"bottom"},n)})})}function i0(e){return c.createElement(Ls,xe({component:RP},e))}const Hh=c.forwardRef((e,t)=>c.createElement(ze,xe({ref:t,display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"},e)));function al(t){var e=Ft(t,[]);return c.createElement(Ls,st(xe({},e),{sx:xe({cursor:"pointer"},e.sx)}))}function a5(){const[e,t]=c5(n=>({title:n?"Pause":"Resume",icon:n?Y4:e0,sx:{rotate:n?"180deg":"0deg"}}),!0);return{pause:!e,pauseButton:t}}function c5(e,t=!1){const[n,r]=c.useState(t),o=c.useCallback(()=>r(l=>!l),[]),s=e(n),i=c.createElement(mn,st(xe({size:"small",color:n?"primary":"default"},s),{sx:xe({transition:"all .5s"},s.sx),onClick:o}));return[n,i]}function u5(e,t,n,r){let o=e[t];return Ok(e,()=>{const s=e[t];Object.is(o,s)||n(o=s)},r)}const d5="admin_state",ln=Rk(Object.assign({title:"",config:{},selectedFiles:[],movingFile:"",vfs:void 0,loginRequired:!1,username:"",onlinePluginsColumns:{version:!1,pushed_at:!1,license:!1}},JSON.parse(localStorage[d5]||null))),f5=["onlinePluginsColumns"],Tpe=rt.debounce(()=>localStorage[d5]=JSON.stringify(rt.pick(ln,f5)),500,{maxWait:1e3});for(const e of f5)u5(ln,e,Tpe);function Wi(){return Dk(ln)}function ni(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 Td(e){return!!e&&!!e[ts]}function Dc(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)===Npe}(e)||Array.isArray(e)||!!e[CO]||!!(!((t=e.constructor)===null||t===void 0)&&t[CO])||tE(e)||nE(e))}function dh(e,t,n){n===void 0&&(n=!1),Jd(e)===0?(n?Object.keys:lE)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function Jd(e){var t=e[ts];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:tE(e)?2:nE(e)?3:0}function Kx(e,t){return Jd(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function $pe(e,t){return Jd(e)===2?e.get(t):e[t]}function p5(e,t,n){var r=Jd(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Rpe(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function tE(e){return Lpe&&e instanceof Map}function nE(e){return Fpe&&e instanceof Set}function oc(e){return e.o||e.t}function rE(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Bpe(e);delete t[ts];for(var n=lE(t),r=0;r<n.length;r++){var o=n[r],s=t[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function oE(e,t){return t===void 0&&(t=!1),sE(e)||Td(e)||!Dc(e)||(Jd(e)>1&&(e.set=e.add=e.clear=e.delete=Ope),Object.freeze(e),t&&dh(e,function(n,r){return oE(r,!0)},!0)),e}function Ope(){ni(2)}function sE(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Di(e){var t=zpe[e];return t||ni(18,e),t}function hO(){return fh}function Yw(e,t){t&&(Di("Patches"),e.u=[],e.s=[],e.v=t)}function Jv(e){qx(e),e.p.forEach(Dpe),e.p=null}function qx(e){e===fh&&(fh=e.l)}function mO(e){return fh={p:[],l:fh,h:e,m:!0,_:0}}function Dpe(e){var t=e[ts];t.i===0||t.i===1?t.j():t.g=!0}function Qw(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||Di("ES5").S(t,e,r),r?(n[ts].P&&(Jv(t),ni(4)),Dc(e)&&(e=ey(t,e),t.l||ty(t,e)),t.u&&Di("Patches").M(n[ts].t,e,t.u,t.s)):e=ey(t,n,[]),Jv(t),t.u&&t.v(t.u,t.s),e!==h5?e:void 0}function ey(e,t,n){if(sE(t))return t;var r=t[ts];if(!r)return dh(t,function(l,a){return gO(e,r,t,l,a,n)},!0),t;if(r.A!==e)return t;if(!r.P)return ty(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=rE(r.k):r.o,s=o,i=!1;r.i===3&&(s=new Set(o),o.clear(),i=!0),dh(s,function(l,a){return gO(e,r,o,l,a,n,i)}),ty(e,o,!1),n&&e.u&&Di("Patches").N(r,n,e.u,e.s)}return r.o}function gO(e,t,n,r,o,s,i){if(Td(o)){var l=ey(e,o,s&&t&&t.i!==3&&!Kx(t.R,r)?s.concat(r):void 0);if(p5(n,r,l),!Td(l))return;e.m=!1}else i&&n.add(o);if(Dc(o)&&!sE(o)){if(!e.h.D&&e._<1)return;ey(e,o),t&&t.A.l||ty(e,o)}}function ty(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&oE(t,n)}function Xw(e,t){var n=e[ts];return(n?oc(n):e)[t]}function vO(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 Yx(e){e.P||(e.P=!0,e.l&&Yx(e.l))}function Zw(e){e.o||(e.o=rE(e.t))}function Qx(e,t,n){var r=tE(t)?Di("MapSet").F(t,n):nE(t)?Di("MapSet").T(t,n):e.O?function(o,s){var i=Array.isArray(o),l={i:i?1:0,A:s?s.A:hO(),P:!1,I:!1,R:{},l:s,t:o,k:null,o:null,j:null,C:!1},a=l,u=Xx;i&&(a=[l],u=ap);var f=Proxy.revocable(a,u),p=f.revoke,m=f.proxy;return l.k=m,l.j=p,m}(t,n):Di("ES5").J(t,n);return(n?n.A:hO()).p.push(r),r}function Ape(e){return Td(e)||ni(22,e),function t(n){if(!Dc(n))return n;var r,o=n[ts],s=Jd(n);if(o){if(!o.P&&(o.i<4||!Di("ES5").K(o)))return o.t;o.I=!0,r=yO(n,s),o.I=!1}else r=yO(n,s);return dh(r,function(i,l){o&&$pe(o.t,i)===l||p5(r,i,t(l))}),s===3?new Set(r):r}(e)}function yO(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return rE(e)}var bO,fh,iE=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",Lpe=typeof Map!="undefined",Fpe=typeof Set!="undefined",wO=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",h5=iE?Symbol.for("immer-nothing"):((bO={})["immer-nothing"]=!0,bO),CO=iE?Symbol.for("immer-draftable"):"__$immer_draftable",ts=iE?Symbol.for("immer-state"):"__$immer_state",Npe=""+Object.prototype.constructor,lE=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Bpe=Object.getOwnPropertyDescriptors||function(e){var t={};return lE(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},zpe={},Xx={get:function(e,t){if(t===ts)return e;var n=oc(e);if(!Kx(n,t))return function(o,s,i){var l,a=vO(s,i);return a?"value"in a?a.value:(l=a.get)===null||l===void 0?void 0:l.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!Dc(r)?r:r===Xw(e.t,t)?(Zw(e),e.o[t]=Qx(e.A.h,r,e)):r},has:function(e,t){return t in oc(e)},ownKeys:function(e){return Reflect.ownKeys(oc(e))},set:function(e,t,n){var r=vO(oc(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Xw(oc(e),t),s=o==null?void 0:o[ts];if(s&&s.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(Rpe(n,o)&&(n!==void 0||Kx(e.t,t)))return!0;Zw(e),Yx(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 Xw(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Zw(e),Yx(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=oc(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){ni(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ni(12)}},ap={};dh(Xx,function(e,t){ap[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),ap.deleteProperty=function(e,t){return ap.set.call(this,e,t,void 0)},ap.set=function(e,t,n){return Xx.set.call(this,e[0],t,n,e[0])};var Vpe=function(){function e(n){var r=this;this.O=wO,this.D=!0,this.produce=function(o,s,i){if(typeof o=="function"&&typeof s!="function"){var l=s;s=o;var a=r;return function(g){var C=this;g===void 0&&(g=l);for(var b=arguments.length,w=Array(b>1?b-1:0),S=1;S<b;S++)w[S-1]=arguments[S];return a.produce(g,function(k){var M;return(M=s).call.apply(M,[C,k].concat(w))})}}var u;if(typeof s!="function"&&ni(6),i!==void 0&&typeof i!="function"&&ni(7),Dc(o)){var f=mO(r),p=Qx(r,o,void 0),m=!0;try{u=s(p),m=!1}finally{m?Jv(f):qx(f)}return typeof Promise!="undefined"&&u instanceof Promise?u.then(function(g){return Yw(f,i),Qw(g,f)},function(g){throw Jv(f),g}):(Yw(f,i),Qw(u,f))}if(!o||typeof o!="object"){if((u=s(o))===void 0&&(u=o),u===h5&&(u=void 0),r.D&&oE(u,!0),i){var v=[],y=[];Di("Patches").M(o,u,v,y),i(v,y)}return u}ni(21,o)},this.produceWithPatches=function(o,s){if(typeof o=="function")return function(u){for(var f=arguments.length,p=Array(f>1?f-1:0),m=1;m<f;m++)p[m-1]=arguments[m];return r.produceWithPatches(u,function(v){return o.apply(void 0,[v].concat(p))})};var i,l,a=r.produce(o,s,function(u,f){i=u,l=f});return typeof Promise!="undefined"&&a instanceof Promise?a.then(function(u){return[u,i,l]}):[a,i,l]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Dc(n)||ni(8),Td(n)&&(n=Ape(n));var r=mO(this),o=Qx(this,n,void 0);return o[ts].C=!0,qx(r),o},t.finishDraft=function(n,r){var o=n&&n[ts],s=o.A;return Yw(s,r),Qw(void 0,s)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!wO&&ni(20),this.O=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var s=r[o];if(s.path.length===0&&s.op==="replace"){n=s.value;break}}o>-1&&(r=r.slice(o+1));var i=Di("Patches").$;return Td(n)?i(n,r):this.produce(n,function(l){return i(l,r)})},e}(),ns=new Vpe,jpe=ns.produce;ns.produceWithPatches.bind(ns);ns.setAutoFreeze.bind(ns);ns.setUseProxies.bind(ns);ns.applyPatches.bind(ns);ns.createDraft.bind(ns);ns.finishDraft.bind(ns);const Hpe=jpe;kue({onResponse(e,t){return ot(this,null,function*(){if(e.status===Xd)throw ln.loginRequired=(t==null?void 0:t.possible)!==!1||Yb,new S4(e.status,"Unauthorized")})}});const Upe={timeout:"Operation timeout"};function Qn(...e){const t=P4(...e);return st(xe({},t),{element:c.useMemo(()=>e[0]?t.error?c.createElement(kr,{severity:"error"},zk(String(t.error),Upe),c.createElement(mn,{icon:t0,onClick:t.reload,sx:{m:"-10px 0 -8px 16px"}})):t.loading||t.data===void 0?s5():null:null,Object.values(t))})}function Sl(e,t={},{map:n,invert:r,pause:o}={}){const[s,i]=Co([]),[l,a]=Co(void 0),[u,f]=Co(void 0),[p,m]=Co(!0),[v,y]=Co(!1),[g,C]=Co(!0),[b,w]=c.useState(0),S=c.useRef(0),[k,M]=c.useState();return c.useEffect(()=>M(o?s:void 0),[o]),c.useEffect(()=>{if(!e)return;const A=[],$=rt.debounce(()=>{const j=A.splice(0,1/0);j.length&&(r&&j.reverse(),i(_=>r?[...j,..._]:[..._,...j]))},1e3,{maxWait:1e3});f(void 0),y(!0),m(!0),C(!0),i([]);const L=k4(e,t,(j,_)=>{switch(j){case"connected":return m(!1),setTimeout(()=>$.flush());case"error":return f("Connection error"),setTimeout(E,1e3),V();case"closed":return V();case"msg":const T=[],F=[];Zb(_).forEach(B=>{var H,K,Q;if(!Array.isArray(B))return console.debug("illegal list packet",B);const[O,N]=B;if(O===gu.ready){$.flush(),C(!1);return}if(O===gu.error){N===Xd?ln.loginRequired=((H=B[2])==null?void 0:H.possible)!==!1||Yb:f(q4(N));return}if(O===gu.props)return a(N);if(O===gu.add){const J=(K=n==null?void 0:n(N))!=null?K:N;(Q=J.id)!=null||(J.id=S.current=Math.max(S.current,Date.now())+.001),A.push(J),$();return}if(O===gu.remove){const J=rt.matches(N);rt.isEmpty(rt.remove(A,J))&&T.push(J);return}if(O===gu.update){const J=B[2],Y=rt.find(A,N);if(Y)return Object.assign(Y,J);F.push([N,J]);return}console.debug("unknown list api",O)}),i(B=>{let O=B,N;if(T.length&&(N=B.filter(H=>!T.some(K=>K(H))),N.length<B.length&&(O=N)),F.length)for(const[H,K]of F){const Q=rt.findIndex(O,H);Q<0||(O===B&&(O=N!=null?N:B.slice()),O[Q]=xe(xe({},O[Q]),K))}return O}),(L==null?void 0:L.readyState)===(L==null?void 0:L.CLOSED)&&V()}});return()=>L.close();function V(){C(!1),y(!1),$.flush()}},[b,e,JSON.stringify(t)]),{list:k!=null?k:s,props:l,loading:v,error:u,initializing:g,connecting:p,setList:i,updateList:I,updateEntry:R,reload:E};function E(){w(A=>A+1)}function I(A){i(Hpe(s,$=>{A($)}))}function R(A,$){I(L=>{const V=rt.find(L,A);V&&Object.assign(V,$)})}}var aE={},Wpe=et;Object.defineProperty(aE,"__esModule",{value:!0});var m5=aE.default=void 0,Gpe=Wpe(tt()),Kpe=Ze(),qpe=(0,Gpe.default)((0,Kpe.jsx)("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5zm-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3 2 4.27z"}),"LinkOff");m5=aE.default=qpe;var cE={},Ype=et;Object.defineProperty(cE,"__esModule",{value:!0});var l0=cE.default=void 0,Qpe=Ype(tt()),Xpe=Ze(),Zpe=(0,Qpe.default)((0,Xpe.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");l0=cE.default=Zpe;var uE={},Jpe=et;Object.defineProperty(uE,"__esModule",{value:!0});var g5=uE.default=void 0,ehe=Jpe(tt()),the=Ze(),nhe=(0,ehe.default)((0,the.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");g5=uE.default=nhe;var dE={},rhe=et;Object.defineProperty(dE,"__esModule",{value:!0});var v5=dE.default=void 0,ohe=rhe(tt()),she=Ze(),ihe=(0,ohe.default)((0,she.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");v5=dE.default=ihe;var fE={},lhe=et;Object.defineProperty(fE,"__esModule",{value:!0});var Uh=fE.default=void 0,ahe=lhe(tt()),che=Ze(),uhe=(0,ahe.default)((0,che.jsx)("path",{d:"M5 20h14v-2H5v2zm0-10h4v6h6v-6h4l-7-7-7 7z"}),"Upload");Uh=fE.default=uhe;var pE={},dhe=et;Object.defineProperty(pE,"__esModule",{value:!0});var hE=pE.default=void 0,fhe=dhe(tt()),phe=Ze(),hhe=(0,fhe.default)((0,phe.jsx)("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"}),"Download");hE=pE.default=hhe;const y5=c.createContext(void 0);function Vt(){const e=c.useContext(y5);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 mhe=()=>c.useRef({}),b5=c.createContext(void 0),ut=()=>{const e=c.useContext(b5);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},w5=c.createContext(void 0);function Ba(){const e=c.useContext(w5);if(e===void 0)throw new Error(["MUI: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
329
+ `));return e}const xO={};function mE(e,t){const n=c.useRef(xO);return n.current===xO&&(n.current=e(t)),n}const ghe=[];function C5(e){c.useEffect(e,ghe)}const Gi=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
330
+ `):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},vhe=Object.is;function x5(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!vhe(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}Gi(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function yhe(e){return e.acceptsApiRef}function SO(e,t){return yhe(t)?t(e):t(e.current.state)}const bhe=Object.is,gE=x5,whe=()=>({state:null,equals:null,selector:null}),nt=(e,t,n=bhe)=>{const r=mE(whe),o=r.current.selector!==null,[s,i]=c.useState(o?null:SO(e,t));return r.current.state=s,r.current.equals=n,r.current.selector=t,C5(()=>e.current.store.subscribe(()=>{const l=SO(e,r.current.selector);r.current.equals(r.current.state,l)||(r.current.state=l,i(l))})),s};function jt(e){return Ke("MuiDataGrid",e)}const ue=We("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--selectionMode","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorderColor","cell--withRightBorder","columnHeader--withRightBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]);var ny="NOT_FOUND";function Che(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:ny},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function xhe(e,t){var n=[];function r(l){var a=n.findIndex(function(f){return t(l,f.key)});if(a>-1){var u=n[a];return a>0&&(n.splice(a,1),n.unshift(u)),u.value}return ny}function o(l,a){r(l)===ny&&(n.unshift({key:l,value:a}),n.length>e&&n.pop())}function s(){return n}function i(){n=[]}return{get:r,put:o,getEntries:s,clear:i}}var She=function(t,n){return t===n};function Phe(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,s=0;s<o;s++)if(!e(n[s],r[s]))return!1;return!0}}function a0(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?She:r,s=n.maxSize,i=s===void 0?1:s,l=n.resultEqualityCheck,a=Phe(o),u=i===1?Che(a):xhe(i,a);function f(){var p=u.get(arguments);if(p===ny){if(p=e.apply(null,arguments),l){var m=u.getEntries(),v=m.find(function(y){return l(y.value,p)});v&&(p=v.value)}u.put(arguments,p)}return p}return f.clearCache=function(){return u.clear()},f}function khe(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 Ehe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var i=arguments.length,l=new Array(i),a=0;a<i;a++)l[a]=arguments[a];var u=0,f,p={memoizeOptions:void 0},m=l.pop();if(typeof m=="object"&&(p=m,m=l.pop()),typeof m!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof m+"]");var v=p,y=v.memoizeOptions,g=y===void 0?n:y,C=Array.isArray(g)?g:[g],b=khe(l),w=e.apply(void 0,[function(){return u++,m.apply(null,arguments)}].concat(C)),S=e(function(){for(var M=[],E=b.length,I=0;I<E;I++)M.push(b[I].apply(null,arguments));return f=w.apply(null,M),f});return Object.assign(S,{resultFunc:m,memoizedResultFunc:w,dependencies:b,lastResult:function(){return f},recomputations:function(){return u},resetRecomputations:function(){return u=0}}),S};return o}var Ihe=Ehe(a0);const Mhe={cache:new WeakMap};Gi(["MUI: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, e.g. `mySelector(apiRef)`, or pass the instance ID explicitly, e.g. `mySelector(state, apiRef.current.instanceId)`."]);function Iu(e){return"current"in e&&"instanceId"in e.current}const Mu={id:"default"},_t=(e,t,n,r,o,s,...i)=>{if(i.length>0)throw new Error("Unsupported number of selectors");let l;if(e&&t&&n&&r&&o&&s)l=(a,u)=>{const f=Iu(a),p=u!=null?u:f?a.current.instanceId:Mu,m=f?a.current.state:a,v=e(m,p),y=t(m,p),g=n(m,p),C=r(m,p),b=o(m,p);return s(v,y,g,C,b)};else if(e&&t&&n&&r&&o)l=(a,u)=>{const f=Iu(a),p=u!=null?u:f?a.current.instanceId:Mu,m=f?a.current.state:a,v=e(m,p),y=t(m,p),g=n(m,p),C=r(m,p);return o(v,y,g,C)};else if(e&&t&&n&&r)l=(a,u)=>{const f=Iu(a),p=u!=null?u:f?a.current.instanceId:Mu,m=f?a.current.state:a,v=e(m,p),y=t(m,p),g=n(m,p);return r(v,y,g)};else if(e&&t&&n)l=(a,u)=>{const f=Iu(a),p=u!=null?u:f?a.current.instanceId:Mu,m=f?a.current.state:a,v=e(m,p),y=t(m,p);return n(v,y)};else if(e&&t)l=(a,u)=>{const f=Iu(a),p=u!=null?u:f?a.current.instanceId:Mu,m=f?a.current.state:a,v=e(m,p);return t(v)};else throw new Error("Missing arguments");return l.acceptsApiRef=!0,l},_n=(...e)=>{const t=(...n)=>{var r,o;const[s,i]=n,l=Iu(s),a=l?s.current.instanceId:i!=null?i:Mu,u=l?s.current.state:s,{cache:f}=Mhe;if(f.get(a)&&(r=f.get(a))!=null&&r.get(e)){var p;return(p=f.get(a))==null?void 0:p.get(e)(u,a)}const m=Ihe(...e);return f.get(a)||f.set(a,new Map),(o=f.get(a))==null||o.set(e,m),m(u,a)};return t.acceptsApiRef=!0,t},vc=e=>e.columns,ml=_t(vc,e=>e.orderedFields),ef=_t(vc,e=>e.lookup),Ai=_n(ml,ef,(e,t)=>e.map(n=>t[n])),oi=_t(vc,e=>e.columnVisibilityModel),Ar=_n(Ai,oi,(e,t)=>e.filter(n=>t[n.field]!==!1)),c0=_n(Ar,e=>e.map(t=>t.field)),$d=_n(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}),vE=_t(Ar,$d,(e,t)=>{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),S5=_n(Ai,e=>e.filter(t=>t.filterable)),_he=_n(Ai,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),u0=e=>e.columnGrouping,The=_n(u0,e=>{var t;return(t=e==null?void 0:e.unwrappedGroupingModel)!=null?t:{}}),P5=_n(u0,e=>{var t;return(t=e==null?void 0:e.lookup)!=null?t:{}}),$he=_n(u0,e=>{var t;return(t=e==null?void 0:e.headerStructure)!=null?t:[]}),Wh=_t(u0,e=>{var t;return(t=e==null?void 0:e.maxDepth)!=null?t:0}),fi=e=>e.rows,d0=_t(fi,e=>e.totalRowCount),Rhe=_t(fi,e=>e.loading),Ohe=_t(fi,e=>e.totalTopLevelRowCount),aa=_t(fi,e=>e.dataRowIdToModelLookup),ry=_t(fi,e=>e.dataRowIdToIdLookup),ei=_t(fi,e=>e.tree),Dhe=_t(fi,e=>e.groupingName),PO=_t(fi,e=>e.treeDepths),f0=_n(fi,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]+1}),yg=_t(fi,e=>e.dataRowIds),Ahe=_t(fi,e=>e==null?void 0:e.additionalRowGroups),tf=_n(Ahe,e=>{var t,n;const r=e==null?void 0:e.pinnedRows;return{bottom:r==null||(t=r.bottom)==null?void 0:t.map(o=>{var s;return{id:o.id,model:(s=o.model)!=null?s:{}}}),top:r==null||(n=r.top)==null?void 0:n.map(o=>{var s;return{id:o.id,model:(s=o.model)!=null?s:{}}})}}),Lhe=_t(tf,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)}),k5=()=>{var e;const t=Ba(),n=ut(),r=nt(t,Ar),o=nt(t,d0),s=nt(t,Wh),i=nt(t,Lhe);let l="grid";return(e=n.experimentalFeatures)!=null&&e.ariaV7&&n.treeData&&(l="treegrid"),{role:l,"aria-colcount":r.length,"aria-rowcount":s+1+i+o,"aria-multiselectable":!n.disableMultipleRowSelection}},Fhe=e=>{const{classes:t}=e;return Te({root:["main"]},jt,t)},Nhe=Ir("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"})),Bhe=c.forwardRef((e,t)=>{var n;const r=ut(),o=Fhe(r),s=(n=r.experimentalFeatures)!=null&&n.ariaV7?k5:null,i=typeof s=="function"?s():null;return D.jsx(Nhe,x({ref:t,className:o.root,ownerState:r},i,{children:e.children}))}),E5=e=>e.sorting,yE=_t(E5,e=>e.sortedRows),bE=_n(yE,aa,(e,t)=>e.map(n=>{var r;return{id:n,model:(r=t[n])!=null?r:{}}})),Cs=_t(E5,e=>e.sortModel),zhe=_n(Cs,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),wE=e=>e.filter,Or=_t(wE,e=>e.filterModel);_t(Or,e=>e.quickFilterValues);const Vhe=e=>e.visibleRowsLookup,I5=_t(wE,e=>e.filteredRowsLookup);_t(wE,e=>e.filteredDescendantCountLookup);const za=_n(Vhe,bE,(e,t)=>t.filter(n=>e[n.id]!==!1)),Rp=_n(za,e=>e.map(t=>t.id)),jhe=_n(I5,bE,(e,t)=>t.filter(n=>e[n.id]!==!1)),Hhe=_n(jhe,e=>e.map(t=>t.id)),M5=_n(za,ei,f0,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),_5=_t(za,e=>e.length),p0=_t(M5,e=>e.length),Uhe=_n(Or,ef,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var o,s;if(!r.field)return!1;const i=t[r.field];if(!(i!=null&&i.filterOperators)||(i==null||(o=i.filterOperators)==null?void 0:o.length)===0)return!1;const l=i.filterOperators.find(a=>a.value===r.operator);return l?!l.InputComponent||r.value!=null&&((s=r.value)==null?void 0:s.toString())!=="":!1})}),Whe=_n(Uhe,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),h0=e=>e.focus,jo=_t(h0,e=>e.cell),Ghe=_t(h0,e=>e.columnHeader);_t(h0,e=>e.columnHeaderFilter);const oy=_t(h0,e=>e.columnGroupHeader),m0=e=>e.tabIndex,sy=_t(m0,e=>e.cell),T5=_t(m0,e=>e.columnHeader);_t(m0,e=>e.columnHeaderFilter);const Khe=_t(m0,e=>e.columnGroupHeader),CE=e=>e.density,qhe=_t(CE,e=>e.value),nf=_t(CE,e=>e.factor),Zx=e=>e.columnMenu;function Yhe(e){const{VirtualScrollerComponent:t,ColumnHeadersProps:n,children:r}=e,o=Ba(),s=ut(),i=c.useRef(null),l=nt(o,Ar),a=nt(o,Whe),u=nt(o,zhe),f=nt(o,$d),p=nt(o,T5),m=nt(o,sy),v=nt(o,Khe),y=nt(o,Ghe),g=nt(o,oy),C=nt(o,nf),b=nt(o,Wh),w=nt(o,Zx),S=nt(o,oi),k=nt(o,$he),M=!(v===null&&p===null&&m===null);Nt(()=>{o.current.computeSizeAndPublishResizeEvent();const $=i.current;if(typeof ResizeObserver=="undefined")return()=>{};let L;const V=new ResizeObserver(()=>{L=requestAnimationFrame(()=>{o.current.computeSizeAndPublishResizeEvent()})});return $&&V.observe($),()=>{L&&window.cancelAnimationFrame(L),$&&V.unobserve($)}},[o]);const E=c.useRef(null),I=c.useRef(null),R=c.useRef(null);o.current.register("private",{columnHeadersContainerElementRef:I,columnHeadersElementRef:E,virtualScrollerRef:R,mainElementRef:i});const A=!!o.current.getRootDimensions();return D.jsxs(Bhe,{ref:i,children:[D.jsx(s.slots.columnHeaders,x({ref:I,innerRef:E,visibleColumns:l,filterColumnLookup:a,sortColumnLookup:u,columnPositions:f,columnHeaderTabIndexState:p,columnGroupHeaderTabIndexState:v,columnHeaderFocus:y,columnGroupHeaderFocus:g,densityFactor:C,headerGroupingMaxDepth:b,columnMenuState:w,columnVisibility:S,columnGroupsHeaderStructure:k,hasOtherElementInTabSequence:M},n)),A&&D.jsx(t,{ref:R}),r]})}function Qhe(){var e;const t=ut();return t.hideFooter?null:D.jsx(t.slots.footer,x({},(e=t.slotProps)==null?void 0:e.footer))}const ao="auto-generated-group-node-root",od=Symbol("mui.id_autogenerated"),Xhe=()=>({type:"group",id:ao,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function Zhe(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(`
331
+ `))}const iy=(e,t,n)=>{const r=t?t(e):e.id;return Zhe(r,e,n),r},Xg=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},s={},i={};for(let l=0;l<e.length;l+=1){const a=e[l],u=iy(a,t);s[u]=a,i[u]=u,o.rows.push(u)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToIdLookup:i,dataRowIdToModelLookup:s}},$5=({tree:e,rowCountProp:t=0})=>{const n=e[ao];return Math.max(t,n.children.length+(n.footerId==null?0:1))},R5=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o})=>{const s=e.current.caches.rows,{tree:i,treeDepths:l,dataRowIds:a,groupingName:u}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:s.updates,dataRowIdToIdLookup:s.dataRowIdToIdLookup,dataRowIdToModelLookup:s.dataRowIdToModelLookup}),f=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:i,treeDepths:l,dataRowIdToIdLookup:s.dataRowIdToIdLookup,dataRowIds:a,dataRowIdToModelLookup:s.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},x({},f,{totalRowCount:Math.max(t,f.dataRowIds.length),totalTopLevelRowCount:$5({tree:f.tree,rowCountProp:t}),groupingName:u,loading:n})},ph=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,xE=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let s=0;s<r.children.length;s+=1){const i=r.children[s];(!n||!ph(e[i]))&&o.push(i),o.push(...xE(e,i,n))}return!n&&r.footerId!=null&&o.push(r.footerId),o},Jhe=({previousCache:e,getRowId:t,updates:n})=>{var r,o,s;if(e.updates.type==="full")throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const i=new Map;n.forEach(m=>{const v=iy(m,t,"A row was provided without id when calling updateRows():");i.has(v)?i.set(v,x({},i.get(v),m)):i.set(v,m)});const l={type:"partial",actions:{insert:[...(r=e.updates.actions.insert)!=null?r:[]],modify:[...(o=e.updates.actions.modify)!=null?o:[]],remove:[...(s=e.updates.actions.remove)!=null?s:[]]},idToActionLookup:x({},e.updates.idToActionLookup)},a=x({},e.dataRowIdToModelLookup),u=x({},e.dataRowIdToIdLookup),f={insert:{},modify:{},remove:{}};i.forEach((m,v)=>{const y=l.idToActionLookup[v];if(m._action==="delete"){if(y==="remove"||!a[v])return;y!=null&&(f[y][v]=!0),l.actions.remove.push(v),delete a[v],delete u[v];return}const g=a[v];if(g){y==="remove"?(f.remove[v]=!0,l.actions.modify.push(v)):y==null&&l.actions.modify.push(v),a[v]=x({},g,m);return}y==="remove"?(f.remove[v]=!0,l.actions.insert.push(v)):y==null&&l.actions.insert.push(v),a[v]=m,u[v]=v});const p=Object.keys(f);for(let m=0;m<p.length;m+=1){const v=p[m],y=f[v];Object.keys(y).length>0&&(l.actions[v]=l.actions[v].filter(g=>!y[g]))}return{dataRowIdToModelLookup:a,dataRowIdToIdLookup:u,updates:l,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function O5(e){var t,n;const r=tf(e),o=(r==null||(t=r.top)==null?void 0:t.reduce((i,l)=>(i+=e.current.unstable_getRowHeight(l.id),i),0))||0,s=(r==null||(n=r.bottom)==null?void 0:n.reduce((i,l)=>(i+=e.current.unstable_getRowHeight(l.id),i),0))||0;return{top:o,bottom:s}}function D5(e,t){const n=nf(e);return`var(--DataGrid-overlayHeight, ${2*Math.floor(t*n)}px)`}const eme=Ir("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e})=>({position:"sticky",top:0,left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4})),tme=Ir("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),nme=e=>{const{classes:t}=e;return Te({root:["overlayWrapper"],inner:["overlayWrapperInner"]},jt,t)};function rme(e){var t,n;const r=Vt(),o=ut(),[s,i]=c.useState(()=>{var f,p;return(f=(p=r.current.getRootDimensions())==null?void 0:p.viewportInnerSize)!=null?f:null}),l=c.useCallback(()=>{var f,p;i((f=(p=r.current.getRootDimensions())==null?void 0:p.viewportInnerSize)!=null?f:null)},[r]);Nt(()=>r.current.subscribeEvent("viewportInnerSizeChange",l),[r,l]);let a=(t=s==null?void 0:s.height)!=null?t:0;o.autoHeight&&a===0&&(a=D5(r,o.rowHeight));const u=nme(x({},e,{classes:o.classes}));return s?D.jsx(eme,{className:Ce(u.root),overlayType:e.overlayType,children:D.jsx(tme,x({className:Ce(u.inner),style:{height:a,width:(n=s==null?void 0:s.width)!=null?n:0}},e))}):null}function ome(){const e=Vt(),t=ut(),n=nt(e,d0),r=nt(e,_5),o=nt(e,Rhe),s=!o&&n===0,i=!o&&n>0&&r===0;let l=null,a="";if(s){var u;l=D.jsx(t.slots.noRowsOverlay,x({},(u=t.slotProps)==null?void 0:u.noRowsOverlay)),a="noRowsOverlay"}if(i){var f;l=D.jsx(t.slots.noResultsOverlay,x({},(f=t.slotProps)==null?void 0:f.noResultsOverlay)),a="noResultsOverlay"}if(o){var p;l=D.jsx(t.slots.loadingOverlay,x({},(p=t.slotProps)==null?void 0:p.loadingOverlay)),a="loadingOverlay"}return l===null?null:D.jsx(rme,{overlayType:a,children:l})}function g0(e){return c.memo(e,x5)}let Jw;function sme(){return Jw===void 0&&document.createElement("div").focus({get preventScroll(){return Jw=!0,!1}}),Jw}var ji=function(e){return e.Cell="cell",e.Row="row",e}(ji||{}),un=function(e){return e.Edit="edit",e.View="view",e}(un||{}),Cn=function(e){return e.Edit="edit",e.View="view",e}(Cn||{}),So=function(e){return e.And="and",e.Or="or",e}(So||{}),Gl=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(Gl||{}),Xs=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Xs||{}),Kl=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(Kl||{}),rl=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(rl||{});function A5(e){return e.field!==void 0}function ime(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function lme(e,t){return e.closest(`.${t}`)}function SE(e){return e.replace(/["\\]/g,"\\$&")}function ame(e,t){return e.querySelector(`[role="columnheader"][data-field="${SE(t)}"]`)}function L5(e){return`.${ue.row}[data-id="${SE(String(e))}"]`}function cme(e,t){return e.querySelector(L5(t))}function ume(e,{id:t,field:n}){const r=L5(t),o=`.${ue.cell}[data-field="${SE(n)}"]`,s=`${r} ${o}`;return e.querySelector(s)}function At(e,t,n){const r=c.useRef(!0);c.useEffect(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}class Hu extends Error{}function dme(e,t){const{getRowId:n}=t,r=c.useCallback(y=>({field:y,colDef:e.current.getColumn(y)}),[e]),o=c.useCallback(y=>{const g=e.current.getRow(y);if(!g)throw new Hu(`No row with id #${y} found`);return{id:y,columns:e.current.getAllColumns(),row:g}},[e]),s=c.useCallback((y,g)=>{const C=e.current.getRow(y),b=e.current.getRowNode(y);if(!C||!b)throw new Hu(`No row with id #${y} found`);const w=jo(e),S=sy(e);return{id:y,field:g,row:C,rowNode:b,value:C[g],colDef:e.current.getColumn(g),cellMode:e.current.getCellMode(y,g),api:e.current,hasFocus:w!==null&&w.field===g&&w.id===y,tabIndex:S&&S.field===g&&S.id===y?0:-1}},[e]),i=c.useCallback((y,g)=>{const C=e.current.getColumn(g),b=e.current.getCellValue(y,g),w=e.current.getRow(y),S=e.current.getRowNode(y);if(!w||!S)throw new Hu(`No row with id #${y} found`);const k=jo(e),M=sy(e),E={id:y,field:g,row:w,rowNode:S,colDef:C,cellMode:e.current.getCellMode(y,g),hasFocus:k!==null&&k.field===g&&k.id===y,tabIndex:M&&M.field===g&&M.id===y?0:-1,value:b,formattedValue:b,isEditable:!1};return C&&C.valueFormatter&&(E.formattedValue=C.valueFormatter({id:y,field:E.field,value:E.value,api:e.current})),E.isEditable=C&&e.current.isCellEditable(E),E},[e]),l=c.useCallback((y,g)=>{const C=e.current.getColumn(g);if(!C||!C.valueGetter){const b=e.current.getRow(y);if(!b)throw new Hu(`No row with id #${y} found`);return b[g]}return C.valueGetter(s(y,g))},[e,s]),a=c.useCallback((y,g)=>{var C;const b=od in y?y[od]:(C=n==null?void 0:n(y))!=null?C:y.id,w=g.field;return!g||!g.valueGetter?y[w]:g.valueGetter(s(b,w))},[s,n]),u=c.useCallback((y,g)=>{var C;const b=a(y,g);if(!g||!g.valueFormatter)return b;const w=(C=n?n(y):y.id)!=null?C:y[od],S=g.field;return g.valueFormatter({id:w,field:S,value:b,api:e.current})},[e,n,a]),f=c.useCallback(y=>e.current.rootElementRef.current?ame(e.current.rootElementRef.current,y):null,[e]),p=c.useCallback(y=>e.current.rootElementRef.current?cme(e.current.rootElementRef.current,y):null,[e]),m=c.useCallback((y,g)=>e.current.rootElementRef.current?ume(e.current.rootElementRef.current,{id:y,field:g}):null,[e]);At(e,{getCellValue:l,getCellParams:i,getCellElement:m,getRowValue:a,getRowFormattedValue:u,getRowParams:o,getRowElement:p,getColumnHeaderParams:r,getColumnHeaderElement:f},"public")}const fme=["changeReason","unstable_updateValueOnRender"],pme=["column","rowId","editCellState","align","children","colIndex","height","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","isNotVisible","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],hme=["changeReason","unstable_updateValueOnRender"],ly={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:un.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},mme=e=>{const{align:t,showRightBorder:n,isEditable:r,isSelected:o,isSelectionMode:s,classes:i}=e,l={root:["cell",`cell--text${Pe(t)}`,r&&"cell--editable",o&&"selected",n&&"cell--withRightBorder",s&&!r&&"cell--selectionMode","withBorderColor"],content:["cellContent"]};return Te(l,jt,i)},gme=c.forwardRef((e,t)=>{const{column:n,rowId:r,editCellState:o}=e,s=Vt(),i=ut(),l=n.field,a=nt(s,()=>{try{const A=s.current.getCellParams(r,l);return A.api=s.current,A}catch(R){if(R instanceof Hu)return ly;throw R}},gE),u=nt(s,()=>s.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:l}));if(a===ly)return null;const{cellMode:f,hasFocus:p,isEditable:m,value:v,formattedValue:y}=a,g=n.type==="actions",C=(f==="view"||!m)&&!g?a.tabIndex:-1,{classes:b,getCellClassName:w}=i,S=s.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:l});n.cellClassName&&S.push(typeof n.cellClassName=="function"?n.cellClassName(a):n.cellClassName),w&&S.push(w(a));let k;if(o==null&&n.renderCell&&(k=n.renderCell(a),S.push(ue["cell--withRenderer"]),S.push(b==null?void 0:b["cell--withRenderer"])),o!=null&&n.renderEditCell){const R=s.current.getRowWithUpdatedValues(r,n.field),A=le(o,fme),$=x({},a,{row:R},A);k=n.renderEditCell($),S.push(ue["cell--editing"]),S.push(b==null?void 0:b["cell--editing"])}const{slots:M}=i,E=M.cell,I=x({},e,{ref:t,field:l,formattedValue:y,hasFocus:p,isEditable:m,isSelected:u,value:v,cellMode:f,children:k,tabIndex:C,className:Ce(S)});return c.createElement(E,I)}),vme=g0(gme),yme=c.forwardRef((e,t)=>{var n,r,o,s;const{column:i,rowId:l,editCellState:a,align:u,colIndex:f,height:p,width:m,className:v,showRightBorder:y,colSpan:g,disableDragEvents:C,isNotVisible:b,onClick:w,onDoubleClick:S,onMouseDown:k,onMouseUp:M,onMouseOver:E,onKeyDown:I,onKeyUp:R,onDragEnter:A,onDragOver:$}=e,L=le(e,pme),V=Vt(),j=ut(),_=i.field,T=nt(V,()=>{try{const be=V.current.getCellParams(l,_);return be.api=V.current,be}catch(de){if(de instanceof Hu)return ly;throw de}},gE),F=nt(V,()=>V.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:l,field:_})),{cellMode:B,hasFocus:O,isEditable:N,value:H,formattedValue:K}=T,Q=i.type==="actions"&&((n=(r=i).getActions)==null?void 0:n.call(r,V.current.getRowParams(l)).some(de=>!de.props.disabled)),J=(B==="view"||!N)&&!Q?T.tabIndex:-1,{classes:Y,getCellClassName:X}=j,ee=V.current.unstable_applyPipeProcessors("cellClassName",[],{id:l,field:_});i.cellClassName&&ee.push(typeof i.cellClassName=="function"?i.cellClassName(T):i.cellClassName),X&&ee.push(X(T));const se=K==null?H:K,Z=c.useRef(null),he=Et(t,Z),ne=c.useRef(null),re=(o=j.unstable_cellSelection)!=null?o:!1,me={align:u,showRightBorder:y,isEditable:N,classes:j.classes,isSelected:F,isSelectionMode:re},ce=mme(me),Se=c.useCallback(de=>be=>{const _e=V.current.getCellParams(l,_||"");V.current.publishEvent(de,_e,be),M&&M(be)},[V,_,M,l]),Ee=c.useCallback(de=>be=>{const _e=V.current.getCellParams(l,_||"");V.current.publishEvent(de,_e,be),k&&k(be)},[V,_,k,l]),ae=c.useCallback((de,be)=>_e=>{if(!V.current.getRow(l))return;const Ne=V.current.getCellParams(l,_||"");V.current.publishEvent(de,Ne,_e),be&&be(_e)},[V,_,l]),Ie=c.useMemo(()=>b?{padding:0,opacity:0,width:0,border:0}:{minWidth:m,maxWidth:m,minHeight:p,maxHeight:p==="auto"?"none":p},[m,p,b]);if(c.useEffect(()=>{if(!O||B===un.Edit)return;const de=fn(V.current.rootElementRef.current);if(Z.current&&!Z.current.contains(de.activeElement)){const be=Z.current.querySelector('[tabindex="0"]'),_e=ne.current||be||Z.current;if(sme())_e.focus({preventScroll:!0});else{const Ne=V.current.getScrollPosition();_e.focus(),V.current.scroll(Ne)}}},[O,B,V]),T===ly)return null;let ye=L.onFocus,Me;if(a==null&&i.renderCell&&(Me=i.renderCell(T),ee.push(ue["cell--withRenderer"]),ee.push(Y==null?void 0:Y["cell--withRenderer"])),a!=null&&i.renderEditCell){const de=V.current.getRowWithUpdatedValues(l,i.field),be=le(a,hme),_e=x({},T,{row:de},be);Me=i.renderEditCell(_e),ee.push(ue["cell--editing"]),ee.push(Y==null?void 0:Y["cell--editing"])}if(Me===void 0){const de=se==null?void 0:se.toString();Me=D.jsx("div",{className:ce.content,title:de,role:"presentation",children:de})}c.isValidElement(Me)&&Q&&(Me=c.cloneElement(Me,{focusElementRef:ne}));const pe=C?null:{onDragEnter:ae("cellDragEnter",A),onDragOver:ae("cellDragOver",$)},fe=(s=j.experimentalFeatures)==null?void 0:s.ariaV7;return D.jsx("div",x({ref:he,className:Ce(v,ee,ce.root),role:fe?"gridcell":"cell","data-field":_,"data-colindex":f,"aria-colindex":f+1,"aria-colspan":g,style:Ie,tabIndex:J,onClick:ae("cellClick",w),onDoubleClick:ae("cellDoubleClick",S),onMouseOver:ae("cellMouseOver",E),onMouseDown:Ee("cellMouseDown"),onMouseUp:Se("cellMouseUp"),onKeyDown:ae("cellKeyDown",I),onKeyUp:ae("cellKeyUp",R)},pe,L,{onFocus:ye,children:Me}))}),Jx=g0(yme),bme=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex"],wme=e=>{const{classes:t}=e;return Te({root:["booleanCell"]},jt,t)};function Cme(e){const{value:t}=e,n=le(e,bme),r=Vt(),o=ut(),s={classes:o.classes},i=wme(s),l=c.useMemo(()=>t?o.slots.booleanCellTrueIcon:o.slots.booleanCellFalseIcon,[o.slots.booleanCellFalseIcon,o.slots.booleanCellTrueIcon,t]);return D.jsx(l,x({fontSize:"small",className:i.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},n))}const xme=c.memo(Cme),Sme=e=>ph(e.rowNode)?"":D.jsx(xme,x({},e)),Pme=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],kme=e=>{const{classes:t}=e;return Te({root:["editBooleanCell"]},jt,t)};function Eme(e){var t;const{id:n,value:r,field:o,className:s,hasFocus:i,onValueChange:l}=e,a=le(e,Pme),u=Vt(),f=c.useRef(null),p=Kt(),[m,v]=c.useState(r),y=ut(),g={classes:y.classes},C=kme(g),b=c.useCallback(w=>ot(this,null,function*(){const S=w.target.checked;l&&(yield l(w,S)),v(S),yield u.current.setEditCellValue({id:n,field:o,value:S},w)}),[u,o,n,l]);return c.useEffect(()=>{v(r)},[r]),Nt(()=>{i&&f.current.focus()},[i]),D.jsx("label",x({htmlFor:p,className:Ce(C.root,s)},a,{children:D.jsx(y.slots.baseCheckbox,x({id:p,inputRef:f,checked:!!m,onChange:b,size:"small"},(t=y.slotProps)==null?void 0:t.baseCheckbox))}))}const Ime=e=>D.jsx(Eme,x({},e)),Mme=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],_me=oe(Gd)({fontSize:"inherit"}),Tme=e=>{const{classes:t}=e;return Te({root:["editInputCell"]},jt,t)};function $me(e){const{id:t,value:n,field:r,colDef:o,hasFocus:s,inputProps:i,onValueChange:l}=e,a=le(e,Mme),u=o.type==="dateTime",f=Vt(),p=c.useRef(),m=c.useMemo(()=>{let I;n==null?I=null:n instanceof Date?I=n:I=new Date((n!=null?n:"").toString());let R;return I==null||Number.isNaN(I.getTime())?R="":R=new Date(I.getTime()-I.getTimezoneOffset()*60*1e3).toISOString().substr(0,u?16:10),{parsed:I,formatted:R}},[n,u]),[v,y]=c.useState(m),C={classes:ut().classes},b=Tme(C),w=c.useRef(!1),S=c.useCallback(I=>{if(I==="")return null;const[R,A]=I.split("T"),[$,L,V]=R.split("-"),j=new Date;if(j.setFullYear(Number($),Number(L)-1,Number(V)),j.setHours(0,0,0,0),A){const[_,T]=A.split(":");j.setHours(Number(_),Number(T),0,0)}return j},[]),k=c.useCallback(I=>ot(this,null,function*(){const R=I.target.value,A=S(R);l&&(yield l(I,A)),y({parsed:A,formatted:R}),f.current.setEditCellValue({id:t,field:r,value:A},I)}),[f,r,t,l,S]);c.useEffect(()=>{y(I=>{var R,A;return m.parsed!==I.parsed&&((R=m.parsed)==null?void 0:R.getTime())!==((A=I.parsed)==null?void 0:A.getTime())?m:I})},[m]),Nt(()=>{s&&p.current.focus()},[s]);const M=f.current.unstable_getEditCellMeta(t,r),E=I=>{if(p.current=I,M!=null&&M.unstable_updateValueOnRender&&!w.current){const R=p.current.value,A=S(R);y({parsed:A,formatted:R}),f.current.setEditCellValue({id:t,field:r,value:A}),w.current=!0}};return D.jsx(_me,x({inputRef:E,fullWidth:!0,className:b.root,type:u?"datetime-local":"date",inputProps:x({max:u?"9999-12-31T23:59":"9999-12-31"},i),value:v.formatted,onChange:k},a))}const F5=e=>D.jsx($me,x({},e)),Rme=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],Ome=e=>{const{classes:t}=e;return Te({root:["editInputCell"]},jt,t)},Dme=oe(Gd,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>x({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),Ame=c.forwardRef((e,t)=>{const n=ut(),{id:r,value:o,field:s,colDef:i,hasFocus:l,debounceMs:a=200,isProcessingProps:u,onValueChange:f}=e,p=le(e,Rme),m=Vt(),v=c.useRef(),[y,g]=c.useState(o),C=Ome(n),b=c.useCallback(S=>ot(void 0,null,function*(){const k=S.target.value;f&&(yield f(S,k));const M=m.current.getColumn(s);let E=k;M.valueParser&&(E=M.valueParser(k,m.current.getCellParams(r,s))),g(E),m.current.setEditCellValue({id:r,field:s,value:E,debounceMs:a,unstable_skipValueParser:!0},S)}),[m,a,s,r,f]),w=m.current.unstable_getEditCellMeta(r,s);return c.useEffect(()=>{(w==null?void 0:w.changeReason)!=="debouncedSetEditCellValue"&&g(o)},[w,o]),Nt(()=>{l&&v.current.focus()},[l]),D.jsx(Dme,x({ref:t,inputRef:v,className:C.root,ownerState:n,fullWidth:!0,type:i.type==="number"?i.type:"text",value:y!=null?y:"",onChange:b,endAdornment:u?D.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},p))}),Lme=e=>D.jsx(Ame,x({},e)),ay=e=>e==="Escape",Fme=e=>e==="Enter",N5=e=>e==="Tab",B5=e=>e===" ",Nme=e=>e.indexOf("Arrow")===0,Bme=e=>e==="Home"||e==="End",zme=e=>e.indexOf("Page")===0;function z5(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const cy=e=>Bme(e)||Nme(e)||zme(e)||B5(e),Vme=e=>!!e.key,jme=e=>N5(e)||ay(e);function yc(e){return(e==null?void 0:e.type)==="singleSelect"}function eS(e,t,n){if(t===void 0)return;const r=t.find(o=>{const s=n(o);return String(s)===String(e)});return n(r)}const Hme=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","getOptionLabel","getOptionValue"],Ume=["MenuProps"];function Wme(e){return!!e.key}function Gme(e){var t,n,r;const o=ut(),{id:s,value:i,field:l,row:a,colDef:u,hasFocus:f,error:p,onValueChange:m,initialOpen:v=o.editMode===ji.Cell,getOptionLabel:y,getOptionValue:g}=e,C=le(e,Hme),b=Vt(),w=c.useRef(),S=c.useRef(),[k,M]=c.useState(v),I=(n=(((t=o.slotProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1,R=((r=o.slotProps)==null?void 0:r.baseSelect)||{},{MenuProps:A}=R,$=le(R,Ume);if(Nt(()=>{if(f){var B;(B=S.current)==null||B.focus()}},[f]),!yc(u))return null;let L;if(typeof(u==null?void 0:u.valueOptions)=="function"?L=u==null?void 0:u.valueOptions({id:s,row:a,field:l}):L=u==null?void 0:u.valueOptions,!L)return null;const V=g||u.getOptionValue,j=y||u.getOptionLabel,_=B=>ot(this,null,function*(){if(!yc(u)||!L)return;M(!1);const O=B.target,N=eS(O.value,L,V);m&&(yield m(B,N)),yield b.current.setEditCellValue({id:s,field:l,value:N},B)}),T=(B,O)=>{if(o.editMode===ji.Row){M(!1);return}if(O==="backdropClick"||ay(B.key)){const N=b.current.getCellParams(s,l);b.current.publishEvent("cellEditStop",x({},N,{reason:ay(B.key)?Xs.escapeKeyDown:Xs.cellFocusOut}))}},F=B=>{Wme(B)&&B.key==="Enter"||M(!0)};return!L||!u?null:D.jsx(o.slots.baseSelect,x({ref:w,inputRef:S,value:i,onChange:_,open:k,onOpen:F,MenuProps:x({onClose:T},A),error:p,native:I,fullWidth:!0},C,$,{children:L.map(B=>{var O;const N=V(B);return c.createElement(o.slots.baseSelectOption,x({},((O=o.slotProps)==null?void 0:O.baseSelectOption)||{},{native:I,key:N,value:N}),j(B))})}))}const Kme=e=>D.jsx(Gme,x({},e)),qme=["open","target","onClose","children","position","className","onExited"],Yme=e=>{const{classes:t}=e;return Te({root:["menu"]},jt,t)},Qme=oe(Fa,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${ue.menuList}`]:{outline:0}})),Xme={"bottom-start":"top left","bottom-end":"top right"};function V5(e){var t;const{open:n,target:r,onClose:o,children:s,position:i,className:l,onExited:a}=e,u=le(e,qme),f=Vt(),p=ut(),m=Yme(p),v=c.useRef(null);Nt(()=>{if(n)v.current=document.activeElement instanceof HTMLElement?document.activeElement:null;else{var C,b;(C=v.current)==null||(b=C.focus)==null||b.call(C),v.current=null}},[n]),c.useEffect(()=>{const C=n?"menuOpen":"menuClose";f.current.publishEvent(C,{target:r})},[f,n,r]);const y=C=>b=>{C&&C(),a&&a(b)},g=C=>{C.target&&(r===C.target||r!=null&&r.contains(C.target))||o(C)};return D.jsx(Qme,x({as:p.slots.basePopper,className:Ce(l,m.root),ownerState:p,open:n,anchorEl:r,transition:!0,placement:i},u,(t=p.slotProps)==null?void 0:t.basePopper,{children:({TransitionProps:C,placement:b})=>D.jsx(wN,{onClickAway:g,mouseEvent:"onMouseDown",children:D.jsx(ah,x({},C,{style:{transformOrigin:Xme[b]},onExited:y(C==null?void 0:C.onExited),children:D.jsx(Vs,{children:s})}))})}))}const Zme=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],Jme=e=>typeof e.getActions=="function";function ege(e){var t;const{colDef:n,id:r,hasFocus:o,tabIndex:s,position:i="bottom-end",focusElementRef:l}=e,a=le(e,Zme),[u,f]=c.useState(-1),[p,m]=c.useState(!1),v=Vt(),y=c.useRef(null),g=c.useRef(null),C=c.useRef(!1),b=c.useRef({}),w=yn(),S=Kt(),k=Kt(),M=ut();if(!Jme(n))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const E=n.getActions(v.current.getRowParams(r)),I=E.filter(F=>!F.props.showInMenu),R=E.filter(F=>F.props.showInMenu),A=I.length+(R.length?1:0);c.useLayoutEffect(()=>{o||Object.entries(b.current).forEach(([F,B])=>{B==null||B.stop({},()=>{delete b.current[F]})})},[o]),c.useEffect(()=>{if(u<0||!y.current||u>=y.current.children.length)return;y.current.children[u].focus({preventScroll:!0})},[u]),c.useEffect(()=>{o||(f(-1),C.current=!1)},[o]),c.useImperativeHandle(l,()=>({focus(){if(!C.current){const F=E.findIndex(B=>!B.props.disabled);f(F)}}}),[E]),c.useEffect(()=>{u>=A&&f(A-1)},[u,A]);const $=()=>{m(!0),f(A-1),C.current=!0},L=()=>{m(!1)},V=F=>B=>{b.current[F]=B},j=(F,B)=>O=>{f(F),C.current=!0,B&&B(O)},_=F=>{if(A<=1)return;const B=(N,H)=>{var K;if(N<0||N>E.length)return N;const Q=w.direction==="rtl"?-1:1,J=(H==="left"?-1:1)*Q;return(K=E[N+J])!=null&&K.props.disabled?B(N+J,H):N+J};let O=u;F.key==="ArrowRight"?O=B(u,"right"):F.key==="ArrowLeft"&&(O=B(u,"left")),!(O<0||O>=A)&&O!==u&&(F.preventDefault(),F.stopPropagation(),f(O))},T=F=>{F.key==="Tab"&&F.preventDefault(),["Tab","Enter","Escape"].includes(F.key)&&L()};return D.jsxs("div",x({role:"menu",ref:y,tabIndex:-1,className:ue.actionsCell,onKeyDown:_},a,{children:[I.map((F,B)=>c.cloneElement(F,{key:B,touchRippleRef:V(B),onClick:j(B,F.props.onClick),tabIndex:u===B?s:-1})),R.length>0&&k&&D.jsx(M.slots.baseIconButton,x({ref:g,id:k,"aria-label":v.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?S:void 0,role:"menuitem",size:"small",onClick:$,touchRippleRef:V(k),tabIndex:u===I.length?s:-1},(t=M.slotProps)==null?void 0:t.baseIconButton,{children:D.jsx(M.slots.moreActionsIcon,{fontSize:"small"})})),R.length>0&&D.jsx(V5,{open:p,target:g.current,position:i,onClose:L,onClick:L,children:D.jsx(Qd,{id:S,className:ue.menuList,onKeyDown:T,"aria-labelledby":k,variant:"menu",autoFocusItem:!0,children:R.map((F,B)=>c.cloneElement(F,{key:B}))})})]}))}const tge=e=>D.jsx(ege,x({},e)),nge=["label","icon","showInMenu","onClick"],bg=c.forwardRef((e,t)=>{const{label:n,icon:r,showInMenu:o,onClick:s}=e,i=le(e,nge),l=ut(),a=f=>{s&&s(f)};if(!o){var u;return D.jsx(l.slots.baseIconButton,x({ref:t,size:"small",role:"menuitem","aria-label":n},i,{onClick:a},(u=l.slotProps)==null?void 0:u.baseIconButton,{children:c.cloneElement(r,{fontSize:"small"})}))}return D.jsxs(Pr,x({ref:t},i,{onClick:s,children:[r&&D.jsx(hl,{children:r}),n]}))}),rge=["field","align","width","contentWidth"],oge=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${Pe(t)}`,"withBorderColor"]};return Te(r,jt,n)};function sge(e){const{align:t,width:n,contentWidth:r}=e,o=le(e,rge),i={classes:ut().classes,align:t},l=oge(i);return D.jsx("div",x({className:l.root,style:{width:n}},o,{children:D.jsx(Jle,{width:`${r}%`})}))}function ige(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?Tc(lt(e.palette.divider,1),.88):_c(lt(e.palette.divider,1),.68)}const kO={[`.${ue.columnSeparator}, .${ue["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},EO={[`& .${ue.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ue.menuIcon}`]:{width:"auto",visibility:"visible"}},lge=oe("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${ue.autoHeight}`]:t.autoHeight},{[`&.${ue.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${ue["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${ue["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${ue["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${ue.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${ue["root--disableUserSelection"]} .${ue.cell}`]:t["root--disableUserSelection"]},{[`&.${ue.autosizing}`]:t.autosizing},{[`& .${ue.editBooleanCell}`]:t.editBooleanCell},{[`& .${ue["cell--editing"]}`]:t["cell--editing"]},{[`& .${ue["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${ue["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${ue["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${ue["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${ue.cell}`]:t.cell},{[`& .${ue["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${ue["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${ue["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${ue["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${ue["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${ue.cellContent}`]:t.cellContent},{[`& .${ue.cellCheckbox}`]:t.cellCheckbox},{[`& .${ue.cellSkeleton}`]:t.cellSkeleton},{[`& .${ue.checkboxInput}`]:t.checkboxInput},{[`& .${ue["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${ue["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${ue["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${ue["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${ue["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${ue["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${ue["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${ue["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${ue["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${ue.columnHeader}`]:t.columnHeader},{[`& .${ue.headerFilterRow}`]:t.headerFilterRow},{[`& .${ue.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${ue.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${ue.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${ue["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${ue["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${ue.columnSeparator}`]:t.columnSeparator},{[`& .${ue.filterIcon}`]:t.filterIcon},{[`& .${ue.iconSeparator}`]:t.iconSeparator},{[`& .${ue.menuIcon}`]:t.menuIcon},{[`& .${ue.menuIconButton}`]:t.menuIconButton},{[`& .${ue.menuOpen}`]:t.menuOpen},{[`& .${ue.menuList}`]:t.menuList},{[`& .${ue["row--editable"]}`]:t["row--editable"]},{[`& .${ue["row--editing"]}`]:t["row--editing"]},{[`& .${ue["row--dragging"]}`]:t["row--dragging"]},{[`& .${ue.row}`]:t.row},{[`& .${ue.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${ue.rowReorderCell}`]:t.rowReorderCell},{[`& .${ue["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${ue.sortIcon}`]:t.sortIcon},{[`& .${ue.withBorderColor}`]:t.withBorderColor},{[`& .${ue.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${ue.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${ue.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${ue["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=ige(e),n=e.shape.borderRadius;return x({"--unstable_DataGrid-radius":typeof n=="number"?`${n}px`:n,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:lt(e.palette.background.default,e.palette.action.disabledOpacity),"--DataGrid-cellOffsetMultiplier":2,flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:t,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflowAnchor:"none",[`&.${ue.autoHeight}`]:{height:"auto",[`& .${ue["row--lastVisible"]} .${ue.cell}`]:{borderBottomColor:"transparent"}},[`&.${ue.autosizing}`]:{[`& .${ue.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},[`& .${ue.cell} > *`]:{overflow:"visible !important",whiteSpace:"nowrap"}},[`& .${ue["virtualScrollerContent--overflowed"]} .${ue["row--lastVisible"]} .${ue.cell}`]:{borderBottomColor:"transparent"},[`& .${ue.columnHeader}, & .${ue.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${ue.columnHeader}:focus-within, & .${ue.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:lt(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${ue.columnHeader}:focus, & .${ue.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${ue.columnHeaderCheckbox}, & .${ue.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${ue.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${ue["columnHeader--sorted"]} .${ue.iconButtonContainer}, & .${ue["columnHeader--filtered"]} .${ue.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ue.columnHeader}:not(.${ue["columnHeader--sorted"]}) .${ue.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${ue.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${ue.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${ue["columnHeader--filledGroup"]} .${ue.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${ue["columnHeader--filledGroup"]}.${ue["columnHeader--showColumnBorder"]} .${ue.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${ue["columnHeader--filledGroup"]}.${ue["columnHeader--showColumnBorder"]}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${ue.headerFilterRow}`]:{borderTop:`1px solid ${t}`},[`& .${ue.sortIcon}, & .${ue.filterIcon}`]:{fontSize:"inherit"},[`& .${ue["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${ue["columnHeader--alignCenter"]} .${ue.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${ue["columnHeader--alignRight"]} .${ue.columnHeaderDraggableContainer}, & .${ue["columnHeader--alignRight"]} .${ue.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${ue["columnHeader--alignCenter"]} .${ue.menuIcon}, & .${ue["columnHeader--alignRight"]} .${ue.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${ue["columnHeader--alignRight"]} .${ue.menuIcon}, & .${ue["columnHeader--alignRight"]} .${ue.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${ue["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${ue.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},"@media (hover: hover)":{[`& .${ue.columnHeaders}:hover`]:kO,[`& .${ue.columnHeader}:hover`]:EO,[`& .${ue.columnHeader}:not(.${ue["columnHeader--sorted"]}):hover .${ue.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${ue.columnHeaders}`]:kO,[`& .${ue.columnHeader}`]:EO},[`& .${ue["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${ue["columnSeparator--sideRight"]}`]:{right:-12},[`& .${ue["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(e.vars||e).palette.text.primary,"@media (hover: none)":{color:t}},[`&.${ue["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${ue.iconSeparator}`]:{color:"inherit"},[`& .${ue.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${ue.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${ue.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(
332
+ ${e.vars.palette.action.selectedOpacity} +
333
+ ${e.vars.palette.action.hoverOpacity}
334
+ ))`:lt(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})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${ue.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity+e.palette.action.hoverOpacity})`:lt(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})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`&.${ue["root--disableUserSelection"]} .${ue.cell}`]:{userSelect:"none"},[`& .${ue.row}:not(.${ue["row--dynamicHeight"]}) > .${ue.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${ue.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${ue.cell}.${ue["cell--selectionMode"]}`]:{cursor:"default"},[`& .${ue.cell}.${ue["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${ue["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${ue["row--editing"]} .${ue.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${ue.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${ue.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${ue.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${ue.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${ue.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${ue["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${ue.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${ue.withBorderColor}`]:{borderColor:t},[`& .${ue["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${ue["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${ue["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${ue["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${ue["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${ue.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${ue.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${ue["columnHeader--dragging"]}, & .${ue["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${ue["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${ue.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${ue.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ue.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${ue.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ue.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),age=["children","className"],cge=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${Pe(n)}`,"withBorderColor"]};return Te(o,jt,r)},uge=c.forwardRef(function(t,n){var r;const o=ut(),{children:s,className:i}=t,l=le(t,age),a=Ba(),u=nt(a,qhe),f=c.useRef(null),p=Et(f,n),m=(r=o.experimentalFeatures)!=null&&r.ariaV7?null:k5,v=typeof m=="function"?m():null,y=x({},o,{density:u}),g=cge(y);a.current.register("public",{rootElementRef:f});const[C,b]=c.useState(!1);return Nt(()=>{b(!0)},[]),C?D.jsx(lge,x({ref:p,className:Ce(i,g.root),ownerState:y},v,l,{children:s})):null}),dge=["className"],fge=e=>{const{classes:t}=e;return Te({root:["footerContainer","withBorderColor"]},jt,t)},pge=Ir("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),hge=c.forwardRef(function(t,n){const{className:r}=t,o=le(t,dge),s=ut(),i=fge(s);return D.jsx(pge,x({ref:n,className:Ce(i.root,r),ownerState:s},o))}),mge=["className"],gge=e=>{const{classes:t}=e;return Te({root:["overlay"]},jt,t)},vge=Ir("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),PE=c.forwardRef(function(t,n){const{className:r}=t,o=le(t,mge),s=ut(),i=gge(s);return D.jsx(vge,x({ref:n,className:Ce(i.root,r),ownerState:s},o))}),yge=["className"],bge=e=>{const{classes:t}=e;return Te({root:["iconButtonContainer"]},jt,t)},wge=Ir("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),j5=c.forwardRef(function(t,n){const{className:r}=t,o=le(t,yge),s=ut(),i=bge(s);return D.jsx(wge,x({ref:n,className:Ce(i.root,r),ownerState:s},o))}),Cge=e=>{const{classes:t}=e;return Te({icon:["sortIcon"]},jt,t)};function xge(e,t,n,r){let o;const s={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,s.sortingOrder=r),o?D.jsx(o,x({fontSize:"small",className:n},s)):null}function Sge(e){var t;const{direction:n,index:r,sortingOrder:o}=e,s=Vt(),i=ut(),l=x({},e,{classes:i.classes}),a=Cge(l),u=xge(i.slots,n,a.icon,o);if(!u)return null;const f=D.jsx(i.slots.baseIconButton,x({tabIndex:-1,"aria-label":s.current.getLocaleText("columnHeaderSortIconLabel"),title:s.current.getLocaleText("columnHeaderSortIconLabel"),size:"small"},(t=i.slotProps)==null?void 0:t.baseIconButton,{children:u}));return D.jsxs(j5,{children:[r!=null&&D.jsx(AN,{badgeContent:r,color:"default",children:f}),r==null&&f]})}const Pge=c.memo(Sge),kge=e=>{const{classes:t,open:n}=e;return Te({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},jt,t)},Ege=c.memo(e=>{var t,n;const{colDef:r,open:o,columnMenuId:s,columnMenuButtonId:i,iconButtonRef:l}=e,a=Vt(),u=ut(),f=x({},e,{classes:u.classes}),p=kge(f),m=c.useCallback(v=>{v.preventDefault(),v.stopPropagation(),a.current.toggleColumnMenu(r.field)},[a,r.field]);return D.jsx("div",{className:p.root,children:D.jsx(u.slots.baseTooltip,x({title:a.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(t=u.slotProps)==null?void 0:t.baseTooltip,{children:D.jsx(u.slots.baseIconButton,x({ref:l,tabIndex:-1,className:p.button,"aria-label":a.current.getLocaleText("columnMenuLabel"),size:"small",onClick:m,"aria-haspopup":"menu","aria-expanded":o,"aria-controls":o?s:void 0,id:i},(n=u.slotProps)==null?void 0:n.baseIconButton,{children:D.jsx(u.slots.columnMenuIcon,{fontSize:"small"})}))}))})});function Ige({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:s,target:i,onExited:l}){const a=Vt(),u=a.current.getColumn(o),f=Ye(p=>{p&&(p.stopPropagation(),i!=null&&i.contains(p.target))||a.current.hideColumnMenu()});return!i||!u?null:D.jsx(V5,{placement:`bottom-${u.align==="right"?"start":"end"}`,open:s,target:i,onClose:f,onExited:l,children:D.jsx(n,x({colDef:u,hideMenu:f,open:s,id:e,labelledby:t},r))})}const Mge=["className"],_ge=e=>{const{classes:t}=e;return Te({root:["columnHeaderTitle"]},jt,t)},Tge=Ir("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),$ge=c.forwardRef(function(t,n){const{className:r}=t,o=le(t,Mge),s=ut(),i=_ge(s);return D.jsx(Tge,x({ref:n,className:Ce(i.root,r),ownerState:s},o))});function Rge(e){var t;const{label:n,description:r}=e,o=ut(),s=c.useRef(null),[i,l]=c.useState(""),a=c.useCallback(()=>{if(!r&&s!=null&&s.current){const u=ime(s.current);l(u?n:"")}},[r,n]);return D.jsx(o.slots.baseTooltip,x({title:r||i},(t=o.slotProps)==null?void 0:t.baseTooltip,{children:D.jsx($ge,{onMouseOver:a,ref:s,children:n})}))}const Oge=["resizable","resizing","height","side"];var H5=function(e){return e.Left="left",e.Right="right",e}(H5||{});const Dge=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,s={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${Pe(o)}`],icon:["iconSeparator"]};return Te(s,jt,r)};function Age(e){const{height:t,side:n=H5.Right}=e,r=le(e,Oge),o=ut(),s=x({},e,{side:n,classes:o.classes}),i=Dge(s),l=c.useCallback(a=>{a.preventDefault(),a.stopPropagation()},[]);return D.jsx("div",x({className:i.root,style:{minHeight:t,opacity:o.showColumnVerticalBorder?0:1}},r,{onClick:l,children:D.jsx(o.slots.columnResizeIcon,{className:i.icon})}))}const Lge=c.memo(Age),Fge=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps"],U5=c.forwardRef(function(t,n){const{classes:r,columnMenuOpen:o,colIndex:s,height:i,isResizing:l,sortDirection:a,hasFocus:u,tabIndex:f,separatorSide:p,isDraggable:m,headerComponent:v,description:y,width:g,columnMenuIconButton:C=null,columnMenu:b=null,columnTitleIconButtons:w=null,headerClassName:S,label:k,resizable:M,draggableContainerProps:E,columnHeaderSeparatorProps:I}=t,R=le(t,Fge),A=Ba(),$=ut(),L=c.useRef(null),[V,j]=c.useState(o),_=Et(L,n);let T="none";return a!=null&&(T=a==="asc"?"ascending":"descending"),c.useEffect(()=>{V||j(o)},[V,o]),c.useLayoutEffect(()=>{const F=A.current.state.columnMenu;if(u&&!F.open){const O=L.current.querySelector('[tabindex="0"]')||L.current;O==null||O.focus(),A.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[A,u]),D.jsxs("div",x({ref:_,className:Ce(r.root,S),style:{height:i,width:g,minWidth:g,maxWidth:g},role:"columnheader",tabIndex:f,"aria-colindex":s+1,"aria-sort":T,"aria-label":v==null?k:void 0},R,{children:[D.jsxs("div",x({className:r.draggableContainer,draggable:m,role:"presentation"},E,{children:[D.jsxs("div",{className:r.titleContainer,role:"presentation",children:[D.jsx("div",{className:r.titleContainerContent,children:v!==void 0?v:D.jsx(Rge,{label:k,description:y,columnWidth:g})}),w]}),C]})),D.jsx(Lge,x({resizable:!$.disableColumnResize&&!!M,resizing:l,height:i,side:p},I)),b]}))}),Nge=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:s,filterItemsCounter:i}=e,l=o!=null,a=i!=null&&i>0,u=t.type==="number",f={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",l&&"columnHeader--sorted",a&&"columnHeader--filtered",u&&"columnHeader--numeric","withBorderColor",s&&"columnHeader--withRightBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return Te(f,jt,n)};function Bge(e){var t,n,r,o;const{colDef:s,columnMenuOpen:i,colIndex:l,headerHeight:a,isResizing:u,sortDirection:f,sortIndex:p,filterItemsCounter:m,hasFocus:v,tabIndex:y,disableReorder:g,separatorSide:C}=e,b=Ba(),w=ut(),S=c.useRef(null),k=Kt(),M=Kt(),E=c.useRef(null),[I,R]=c.useState(i),A=c.useMemo(()=>!w.disableColumnReorder&&!g&&!s.disableReorder,[w.disableColumnReorder,g,s.disableReorder]);let $;s.renderHeader&&($=s.renderHeader(b.current.getColumnHeaderParams(s.field)));const L=x({},e,{classes:w.classes,showRightBorder:w.showColumnVerticalBorder}),V=Nge(L),j=c.useCallback(Y=>X=>{X.currentTarget.contains(X.target)&&b.current.publishEvent(Y,b.current.getColumnHeaderParams(s.field),X)},[b,s.field]),_=c.useMemo(()=>({onClick:j("columnHeaderClick"),onDoubleClick:j("columnHeaderDoubleClick"),onMouseOver:j("columnHeaderOver"),onMouseOut:j("columnHeaderOut"),onMouseEnter:j("columnHeaderEnter"),onMouseLeave:j("columnHeaderLeave"),onKeyDown:j("columnHeaderKeyDown"),onFocus:j("columnHeaderFocus"),onBlur:j("columnHeaderBlur")}),[j]),T=c.useMemo(()=>A?{onDragStart:j("columnHeaderDragStart"),onDragEnter:j("columnHeaderDragEnter"),onDragOver:j("columnHeaderDragOver"),onDragEnd:j("columnHeaderDragEnd")}:{},[A,j]),F=c.useMemo(()=>({onMouseDown:j("columnSeparatorMouseDown"),onDoubleClick:j("columnSeparatorDoubleClick")}),[j]);c.useEffect(()=>{I||R(i)},[I,i]);const B=c.useCallback(()=>{R(!1)},[]),O=!w.disableColumnMenu&&!s.disableColumnMenu&&D.jsx(Ege,{colDef:s,columnMenuId:k,columnMenuButtonId:M,open:I,iconButtonRef:E}),N=D.jsx(Ige,{columnMenuId:k,columnMenuButtonId:M,field:s.field,open:i,target:E.current,ContentComponent:w.slots.columnMenu,contentComponentProps:(t=w.slotProps)==null?void 0:t.columnMenu,onExited:B}),H=(n=s.sortingOrder)!=null?n:w.sortingOrder,K=D.jsxs(c.Fragment,{children:[!w.disableColumnFilter&&D.jsx(w.slots.columnHeaderFilterIconButton,x({field:s.field,counter:m},(r=w.slotProps)==null?void 0:r.columnHeaderFilterIconButton)),s.sortable&&!s.hideSortIcons&&D.jsx(Pge,{direction:f,index:p,sortingOrder:H})]});c.useLayoutEffect(()=>{const Y=b.current.state.columnMenu;if(v&&!Y.open){const ee=S.current.querySelector('[tabindex="0"]')||S.current;ee==null||ee.focus(),b.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[b,v]);const Q=typeof s.headerClassName=="function"?s.headerClassName({field:s.field,colDef:s}):s.headerClassName,J=(o=s.headerName)!=null?o:s.field;return D.jsx(U5,x({ref:S,classes:V,columnMenuOpen:i,colIndex:l,height:a,isResizing:u,sortDirection:f,hasFocus:v,tabIndex:y,separatorSide:C,isDraggable:A,headerComponent:$,description:s.description,elementId:s.field,width:s.computedWidth,columnMenuIconButton:O,columnTitleIconButtons:K,headerClassName:Q,label:J,resizable:!w.disableColumnResize&&!!s.resizable,"data-field":s.field,columnMenu:N,draggableContainerProps:T,columnHeaderSeparatorProps:F},_))}const hh=()=>({items:[],logicOperator:So.And,quickFilterValues:[],quickFilterLogicOperator:So.And}),IO=1e3;let zge=class{constructor(t=IO){this.timeouts=new Map,this.cleanupTimeout=IO,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)}},Vge=class{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}};var Li=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e}(Li||{});let jge=class{};function Hge(e){let t=0;return function(r,o,s,i){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new Vge:new zge);const[l]=c.useState(new jge),a=c.useRef(null),u=c.useRef();u.current=s;const f=c.useRef(null);if(!a.current&&u.current){const p=(m,v,y)=>{if(!v.defaultMuiPrevented){var g;(g=u.current)==null||g.call(u,m,v,y)}};a.current=r.current.subscribeEvent(o,p,i),t+=1,f.current={cleanupToken:t},e.registry.register(l,()=>{var m;(m=a.current)==null||m.call(a),a.current=null,f.current=null},f.current)}else!u.current&&a.current&&(a.current(),a.current=null,f.current&&(e.registry.unregister(f.current),f.current=null));c.useEffect(()=>{if(!a.current&&u.current){const p=(m,v,y)=>{if(!v.defaultMuiPrevented){var g;(g=u.current)==null||g.call(u,m,v,y)}};a.current=r.current.subscribeEvent(o,p,i)}return f.current&&e.registry&&(e.registry.unregister(f.current),f.current=null),()=>{var p;(p=a.current)==null||p.call(a),a.current=null}},[r,o,i])}}const Uge={registry:null},dt=Hge(Uge),Wge={isFirst:!0};function In(e,t,n){dt(e,t,n,Wge)}function eo(e,t){const n=c.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}function Gge(e){return typeof e=="number"&&!Number.isNaN(e)}function W5(e){return typeof e=="function"}function kE(e){return typeof e=="object"&&e!==null}function Kge(){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 Zg(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Rd=(e,t,n)=>Math.max(t,Math.min(n,e));function bc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let s=0;s<o;s+=1)if(!bc(e[s],t[s]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let s=0;s<o.length;s+=1)if(!t.has(o[s][0]))return!1;for(let s=0;s<o.length;s+=1){const i=o[s];if(!bc(i[1],t.get(i[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let s=0;s<o.length;s+=1)if(!t.has(o[s][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let s=0;s<o;s+=1)if(e[s]!==t[s])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let o=0;o<r;o+=1)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(let o=0;o<r;o+=1){const s=n[o];if(!bc(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function qge(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 Yge(e,t,n){const r=qge(e);return()=>t+(n-t)*r()}function G5(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const Qge=(e,t,n,r,o)=>{const s=eo(e,"useNativeEventListener"),[i,l]=c.useState(!1),a=c.useRef(r),u=c.useCallback(f=>a.current&&a.current(f),[]);c.useEffect(()=>{a.current=r},[r]),c.useEffect(()=>{let f;if(W5(t)?f=t():f=t&&t.current?t.current:null,f&&n&&!i){s.debug(`Binding native ${n} event`),f.addEventListener(n,u,o);const p=f;l(!0);const m=()=>{s.debug(`Clearing native ${n} event`),p.removeEventListener(n,u,o)};e.current.subscribeEvent("unmount",m)}},[t,u,n,i,s,o,e])},Gh=e=>{const t=c.useRef(!0);t.current&&(t.current=!1,e())},Xge=100,Zge=e=>e?0:100,K5=(e,t)=>t>0&&e>0?Math.ceil(e/t):0;Gi(["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 q5=e=>({page:0,pageSize:e?0:100}),Jge=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),Y5=(e,t)=>{if(t===Li.DataGrid&&e>Xge)throw new Error(["MUI: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
335
+ `))},Q5=e=>e.pagination,Ps=_t(Q5,e=>e.paginationModel),eve=_t(Ps,e=>e.page),tve=_t(Ps,e=>e.pageSize);_t(Ps,p0,(e,t)=>K5(t,e.pageSize));const EE=_n(Ps,ei,f0,za,M5,(e,t,n,r,o)=>{const s=o.length,i=Math.min(e.pageSize*e.page,s-1),l=Math.min(i+e.pageSize-1,s-1);if(i===-1||l===-1)return null;if(n<2)return{firstRowIndex:i,lastRowIndex:l};const a=o[i],u=l-i+1,f=r.findIndex(y=>y.id===a.id);let p=f,m=0;for(;p<r.length&&m<=u;){var v;const y=r[p],g=(v=t[y.id])==null?void 0:v.depth;g===void 0?p+=1:((m<u||g>0)&&(p+=1),g===0&&(m+=1))}return{firstRowIndex:f,lastRowIndex:p-1}}),nve=_n(za,EE,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),X5=_n(Rp,EE,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),mh=e=>e.preferencePanel;var Ac=function(e){return e.filters="filters",e.columns="columns",e}(Ac||{});const gh=e=>e.rowsMeta,xs=e=>e.rowSelection,rve=_t(xs,e=>e.length),ove=_n(xs,aa,(e,t)=>new Map(e.map(n=>[n,t[n]]))),uy=_n(xs,e=>e.reduce((t,n)=>(t[n]=n,t),{})),sve=Gi(["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"),Z5=(e,t)=>t&&e.length>1?(sve(),[e[0]]):e,MO=(e,t)=>n=>x({},n,{sorting:x({},n.sorting,{sortModel:Z5(e,t)})}),ive=e=>e==="desc",lve=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=ive(e.sort)?(...s)=>-1*n.sortComparator(...s):n.sortComparator;return{getSortCellParams:s=>({id:s,field:n.field,rowNode:t.current.getRowNode(s),value:t.current.getCellValue(s,n.field),api:t.current}),comparator:r}},ave=(e,t,n)=>e.reduce((r,o,s)=>{if(r!==0)return r;const i=t.params[s],l=n.params[s];return r=o.comparator(i.value,l.value,i,l),r},0),cve=(e,t)=>{const n=e.map(r=>lve(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(s=>s.getSortCellParams(o.id))})).sort((o,s)=>ave(n,o,s)).map(o=>o.node.id)},_O=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},IE=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,uve=new Intl.Collator,dve=(e,t)=>{const n=IE(e,t);return n!==null?n:typeof e=="string"?uve.compare(e.toString(),t.toString()):e-t},J5=(e,t)=>{const n=IE(e,t);return n!==null?n:Number(e)-Number(t)},eB=(e,t)=>{const n=IE(e,t);return n!==null?n:e>t?1:e<t?-1:0},tB=e=>e.headerFiltering,fve=_t(tB,e=>e.editing),pve=_t(tB,e=>e.menuOpen),hve=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0};return x({},e,{virtualization:n})};function mve(e,t){const n=s=>{e.current.setState(i=>x({},i,{virtualization:x({},i.virtualization,{enabled:s})}))};At(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:s=>{e.current.setState(i=>x({},i,{virtualization:x({},i.virtualization,{enabledForColumns:s})}))}},"public"),c.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization])}const nB=e=>e.virtualization,gve=_t(nB,e=>e.enabled),rB=_t(nB,e=>e.enabledForColumns),vve=e=>{const{classes:t}=e;return Te({icon:["filterIcon"]},jt,t)};function yve(e){var t,n;const{counter:r,field:o,onClick:s}=e,i=Vt(),l=ut(),a=x({},e,{classes:l.classes}),u=vve(a),f=nt(i,mh),p=Kt(),m=Kt(),v=c.useCallback(C=>{C.preventDefault(),C.stopPropagation();const{open:b,openedPanelValue:w}=mh(i.current.state);b&&w===Ac.filters?i.current.hideFilterPanel():i.current.showFilterPanel(void 0,m,p),s&&s(i.current.getColumnHeaderParams(o),C)},[i,o,s,m,p]);if(!r)return null;const y=f.open&&f.labelId===p,g=D.jsx(l.slots.baseIconButton,x({id:p,onClick:v,color:"default","aria-label":i.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":y,"aria-controls":y?m:void 0},(t=l.slotProps)==null?void 0:t.baseIconButton,{children:D.jsx(l.slots.columnFilteredIcon,{className:u.icon,fontSize:"small"})}));return D.jsx(l.slots.baseTooltip,x({title:i.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(n=l.slotProps)==null?void 0:n.baseTooltip,{children:D.jsxs(j5,{children:[r>1&&D.jsx(AN,{badgeContent:r,color:"default",children:g}),r===1&&g]})}))}const bve=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],wve=e=>{const{classes:t}=e;return Te({root:["checkboxInput"]},jt,t)},Cve=c.forwardRef(function(t,n){var r;const{field:o,id:s,value:i,rowNode:l,hasFocus:a,tabIndex:u}=t,f=le(t,bve),p=Vt(),m=ut(),v={classes:m.classes},y=wve(v),g=c.useRef(null),C=c.useRef(null),b=Et(g,n),w=p.current.getCellElement(s,o),S=I=>{const R={value:I.target.checked,id:s};p.current.publishEvent("rowSelectionCheckboxChange",R,I)};c.useLayoutEffect(()=>{u===0&&w&&(w.tabIndex=-1)},[w,u]),c.useEffect(()=>{if(a){var I;const R=(I=g.current)==null?void 0:I.querySelector("input");R==null||R.focus({preventScroll:!0})}else C.current&&C.current.stop({})},[a]);const k=c.useCallback(I=>{B5(I.key)&&I.stopPropagation()},[]);if(l.type==="footer"||l.type==="pinnedRow")return null;const M=p.current.isRowSelectable(s),E=p.current.getLocaleText(i?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return D.jsx(m.slots.baseCheckbox,x({ref:b,tabIndex:u,checked:i,onChange:S,className:y.root,inputProps:{"aria-label":E},onKeyDown:k,disabled:!M,touchRippleRef:C},(r=m.slotProps)==null?void 0:r.baseCheckbox,f))}),xve=Cve,Sve=["field","colDef"],Pve=e=>{const{classes:t}=e;return Te({root:["checkboxInput"]},jt,t)},kve=c.forwardRef(function(t,n){var r;const o=le(t,Sve),[,s]=c.useState(!1),i=Vt(),l=ut(),a={classes:l.classes},u=Pve(a),f=nt(i,T5),p=nt(i,xs),m=nt(i,Rp),v=nt(i,X5),y=c.useMemo(()=>typeof l.isRowSelectable!="function"?p:p.filter(R=>i.current.getRow(R)?l.isRowSelectable(i.current.getRowParams(R)):!1),[i,l.isRowSelectable,p]),g=c.useMemo(()=>(!l.pagination||!l.checkboxSelectionVisibleOnly?m:v).reduce((A,$)=>(A[$]=!0,A),{}),[l.pagination,l.checkboxSelectionVisibleOnly,v,m]),C=c.useMemo(()=>y.filter(R=>g[R]).length,[y,g]),b=C>0&&C<Object.keys(g).length,w=C>0,S=R=>{const A={value:R.target.checked};i.current.publishEvent("headerSelectionCheckboxChange",A)},k=f!==null&&f.field===t.field?0:-1;c.useLayoutEffect(()=>{const R=i.current.getColumnHeaderElement(t.field);k===0&&R&&(R.tabIndex=-1)},[k,i,t.field]);const M=c.useCallback(R=>{R.key===" "&&i.current.publishEvent("headerSelectionCheckboxChange",{value:!w})},[i,w]),E=c.useCallback(()=>{s(R=>!R)},[]);c.useEffect(()=>i.current.subscribeEvent("rowSelectionChange",E),[i,E]);const I=i.current.getLocaleText(w?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return D.jsx(l.slots.baseCheckbox,x({ref:n,indeterminate:b,checked:w,onChange:S,className:u.root,inputProps:{"aria-label":I},tabIndex:k,onKeyDown:M},(r=l.slotProps)==null?void 0:r.baseCheckbox,o))}),TO=bt(D.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),$O=bt(D.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),RO=bt(D.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),OO=bt(D.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Eve=bt(D.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),DO=bt(D.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),Ive=bt(D.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");bt(D.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");bt(D.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const Mve=bt(D.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),_ve=bt(D.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),Tve=bt(D.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),$ve=bt(D.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),Rve=bt(D.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),Ove=bt(D.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),eC=bt(D.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),AO=bt(D.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),Dve=bt(D.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),Ave=bt(D.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),LO=bt(D.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),Lve=bt(D.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),Fve=bt(D.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Nve=bt(D.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),Bve=bt(D.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),zve=bt(D.jsx("g",{children:D.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),Vve=bt(D.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");bt(D.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const jve=bt(D.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),Hve=["hideMenu","colDef","id","labelledby","className","children","open"],Uve=oe(Qd)(()=>({minWidth:248})),Wve=c.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:s,className:i,children:l,open:a}=t,u=le(t,Hve),f=c.useCallback(p=>{N5(p.key)&&p.preventDefault(),jme(p.key)&&r(p)},[r]);return D.jsx(Uve,x({id:o,ref:n,className:Ce(ue.menuList,i),"aria-labelledby":s,onKeyDown:f,autoFocus:a},u,{children:l}))}),Gve=["displayOrder"],Kve=e=>{const t=Ba(),{defaultSlots:n,defaultSlotProps:r,slots:o={},slotProps:s={},hideMenu:i,colDef:l,addDividers:a=!0}=e,u=c.useMemo(()=>x({},n,o),[n,o]),f=c.useMemo(()=>{if(!s||Object.keys(s).length===0)return r;const v=x({},s);return Object.entries(r).forEach(([y,g])=>{v[y]=x({},g,s[y]||{})}),v},[r,s]),p=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),m=c.useMemo(()=>{const v=Object.keys(n);return Object.keys(o).filter(y=>!v.includes(y))},[o,n]);return c.useMemo(()=>{const g=Array.from(new Set([...p,...m])).filter(C=>u[C]!=null).sort((C,b)=>{const w=f[C],S=f[b],k=Number.isFinite(w==null?void 0:w.displayOrder)?w.displayOrder:100,M=Number.isFinite(S==null?void 0:S.displayOrder)?S.displayOrder:100;return k-M});return g.reduce((C,b,w)=>{let S={colDef:l,onClick:i};const k=f[b];if(k){const M=le(k,Gve);S=x({},S,M)}return a&&w!==g.length-1?[...C,[u[b],S],[Pd,{}]]:[...C,[u[b],S]]},[])},[a,l,p,i,u,f,m])};function qve(e){const{colDef:t,onClick:n}=e,r=Vt(),o=ut(),l=Ar(r).filter(u=>u.disableColumnMenu!==!0).length===1,a=c.useCallback(u=>{l||(r.current.setColumnVisibility(t.field,!1),n(u))},[r,t.field,n,l]);return o.disableColumnSelector||t.hideable===!1?null:D.jsxs(Pr,{onClick:a,disabled:l,children:[D.jsx(hl,{children:D.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),D.jsx(Ri,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function Yve(e){const{onClick:t}=e,n=Vt(),r=ut(),o=c.useCallback(s=>{t(s),n.current.showPreferences(Ac.columns)},[n,t]);return r.disableColumnSelector?null:D.jsxs(Pr,{onClick:o,children:[D.jsx(hl,{children:D.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),D.jsx(Ri,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function Qve(e){return D.jsxs(c.Fragment,{children:[D.jsx(qve,x({},e)),D.jsx(Yve,x({},e))]})}function Xve(e){const{colDef:t,onClick:n}=e,r=Vt(),o=ut(),s=c.useCallback(i=>{n(i),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:D.jsxs(Pr,{onClick:s,children:[D.jsx(hl,{children:D.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),D.jsx(Ri,{children:r.current.getLocaleText("columnMenuFilter")})]})}function Zve(e){var t;const{colDef:n,onClick:r}=e,o=Vt(),s=nt(o,Cs),i=ut(),l=c.useMemo(()=>{if(!n)return null;const p=s.find(m=>m.field===n.field);return p==null?void 0:p.sort},[n,s]),a=(t=n.sortingOrder)!=null?t:i.sortingOrder,u=c.useCallback(p=>{r(p);const m=p.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,m===l?null:m)},[o,n,r,l]);if(!n||!n.sortable||!a.some(p=>!!p))return null;const f=p=>{const m=o.current.getLocaleText(p);return typeof m=="function"?m(n):m};return D.jsxs(c.Fragment,{children:[a.includes("asc")&&l!=="asc"?D.jsxs(Pr,{onClick:u,"data-value":"asc",children:[D.jsx(hl,{children:D.jsx(i.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),D.jsx(Ri,{children:f("columnMenuSortAsc")})]}):null,a.includes("desc")&&l!=="desc"?D.jsxs(Pr,{onClick:u,"data-value":"desc",children:[D.jsx(hl,{children:D.jsx(i.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),D.jsx(Ri,{children:f("columnMenuSortDesc")})]}):null,a.includes(null)&&l!=null?D.jsxs(Pr,{onClick:u,children:[D.jsx(hl,{}),D.jsx(Ri,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})}const Jve=["defaultSlots","defaultSlotProps","slots","slotProps"],eye={columnMenuSortItem:Zve,columnMenuFilterItem:Xve,columnMenuColumnsItem:Qve},tye={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},nye=c.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:s,slotProps:i}=t,l=le(t,Jve),a=Kve(x({},l,{defaultSlots:r,defaultSlotProps:o,slots:s,slotProps:i}));return D.jsx(Wve,x({ref:n},l,{children:a.map(([u,f],p)=>D.jsx(u,x({},f),p))}))}),rye=c.forwardRef(function(t,n){return D.jsx(nye,x({},t,{ref:n,defaultSlots:eye,defaultSlotProps:tye}))}),oye=["className"],sye=e=>{const{classes:t}=e;return Te({root:["panelContent"]},jt,t)},iye=Ir("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function oB(e){const{className:t}=e,n=le(e,oye),r=ut(),o=sye(r);return D.jsx(iye,x({className:Ce(t,o.root),ownerState:r},n))}const lye=["className"],aye=e=>{const{classes:t}=e;return Te({root:["panelFooter"]},jt,t)},cye=Ir("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function sB(e){const{className:t}=e,n=le(e,lye),r=ut(),o=aye(r);return D.jsx(cye,x({className:Ce(t,o.root),ownerState:r},n))}const uye=["className"],dye=e=>{const{classes:t}=e;return Te({root:["panelHeader"]},jt,t)},fye=Ir("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function pye(e){const{className:t}=e,n=le(e,uye),r=ut(),o=dye(r);return D.jsx(fye,x({className:Ce(t,o.root),ownerState:r},n))}const hye=["className","slotProps"],mye=e=>{const{classes:t}=e;return Te({root:["panelWrapper"]},jt,t)},gye=oe("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),vye=()=>!0,iB=c.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,s=le(t,hye),i=ut(),l=mye(i);return D.jsx(rk,x({open:!0,disableEnforceFocus:!0,isEnabled:vye},o.TrapFocus,{children:D.jsx(gye,x({ref:n,tabIndex:-1,className:Ce(r,l.root),ownerState:i},s))}))}),yye=!1,bye=["sort","searchPredicate","autoFocusSearchField","disableHideAllButton","disableShowAllButton","getTogglableColumns"],wye=e=>{const{classes:t}=e;return Te({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},jt,t)},Cye=oe("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),xye=oe("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${Ur.root}`]:{marginRight:e.spacing(.5)}})),Sye=oe(hr)({justifyContent:"flex-end"}),FO=new Intl.Collator,Pye=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function kye(e){var t,n,r;const o=Vt(),s=c.useRef(null),i=nt(o,Ai),l=nt(o,oi),a=ut(),[u,f]=c.useState(""),p=wye(a),{sort:m,searchPredicate:v=Pye,autoFocusSearchField:y=!0,disableHideAllButton:g=!1,disableShowAllButton:C=!1,getTogglableColumns:b}=e,w=le(e,bye),S=c.useMemo(()=>{switch(m){case"asc":return[...i].sort((L,V)=>FO.compare(L.headerName||L.field,V.headerName||V.field));case"desc":return[...i].sort((L,V)=>-FO.compare(L.headerName||L.field,V.headerName||V.field));default:return i}},[i,m]),k=L=>{const{name:V}=L.target;o.current.setColumnVisibility(V,l[V]===!1)},M=c.useCallback(L=>{const V=oi(o),j=x({},V),_=b?b(i):null;return i.forEach(T=>{T.hideable&&(_==null||_.includes(T.field))&&(L?delete j[T.field]:j[T.field]=!1)}),o.current.setColumnVisibilityModel(j)},[o,i,b]),E=c.useCallback(L=>{f(L.target.value)},[]),I=c.useMemo(()=>{const L=b?b(S):null,V=L?S.filter(({field:j})=>L.includes(j)):S;return u?V.filter(j=>v(j,u.toLowerCase())):V},[S,u,v,b]),R=c.useRef(null);c.useEffect(()=>{y?s.current.focus():R.current&&typeof R.current.focus=="function"&&R.current.focus()},[y]);let A=!1;const $=L=>A===!1&&L.hideable!==!1?(A=!0,!0):!1;return D.jsxs(iB,x({},w,{children:[D.jsx(pye,{children:D.jsx(a.slots.baseTextField,x({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:s,value:u,onChange:E,variant:"standard",fullWidth:!0},(t=a.slotProps)==null?void 0:t.baseTextField))}),D.jsx(oB,{children:D.jsx(Cye,{className:p.root,ownerState:a,children:I.map(L=>{var V;return D.jsxs(xye,{className:p.columnsPanelRow,ownerState:a,children:[D.jsx(qN,{control:D.jsx(a.slots.baseSwitch,x({disabled:L.hideable===!1,checked:l[L.field]!==!1,onClick:k,name:L.field,size:"small",inputRef:$(L)?R:void 0},(V=a.slotProps)==null?void 0:V.baseSwitch)),label:L.headerName||L.field}),!a.disableColumnReorder&&yye&&D.jsx(Sye,{draggable:!0,"aria-label":o.current.getLocaleText("columnsPanelDragIconLabel"),title:o.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:D.jsx(a.slots.columnReorderIcon,{})})]},L.field)})})}),C&&g?null:D.jsxs(sB,{children:[g?D.jsx("span",{}):D.jsx(a.slots.baseButton,x({onClick:()=>M(!1)},(n=a.slotProps)==null?void 0:n.baseButton,{disabled:g,children:o.current.getLocaleText("columnsPanelHideAllButton")})),C?null:D.jsx(a.slots.baseButton,x({onClick:()=>M(!0)},(r=a.slotProps)==null?void 0:r.baseButton,{disabled:C,children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const Eye=["children","className","classes"],Iye=We("MuiDataGrid",["panel","paper"]),Mye=oe(Fa,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),_ye=oe(Vs,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),Tye=c.forwardRef((e,t)=>{const{children:n,className:r}=e,o=le(e,Eye),s=Vt(),i=ut(),l=Iye,[a,u]=c.useState(!1),f=c.useCallback(()=>{s.current.hidePreferences()},[s]),p=c.useCallback(g=>{ay(g.key)&&s.current.hidePreferences()},[s]),m=c.useMemo(()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{u(!0)},effect:()=>()=>{u(!1)}}],[]),[v,y]=c.useState(null);return c.useEffect(()=>{var g;const C=(g=s.current.rootElementRef)==null||(g=g.current)==null?void 0:g.querySelector(`.${ue.columnHeaders}`);C&&y(C)},[s]),v?D.jsx(Mye,x({ref:t,placement:"bottom-start",className:Ce(r,l.panel),ownerState:i,anchorEl:v,modifiers:m},o,{children:D.jsx(wN,{mouseEvent:"onMouseUp",onClickAway:f,children:D.jsx(_ye,{className:l.paper,ownerState:i,elevation:8,onKeyDown:p,children:a&&n})})})):null}),$ye=c.forwardRef(function(t,n){var r,o,s;const i=Vt(),l=nt(i,Ai),a=ut(),u=nt(i,mh),f=i.current.unstable_applyPipeProcessors("preferencePanel",null,(r=u.openedPanelValue)!=null?r:Ac.filters);return D.jsx(a.slots.panel,x({ref:n,as:a.slots.basePopper,open:l.length>0&&u.open,id:u.panelId,"aria-labelledby":u.labelId},(o=a.slotProps)==null?void 0:o.panel,t,(s=a.slotProps)==null?void 0:s.basePopper,{children:f}))}),Rye=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],Oye=["InputComponentProps"],Dye=e=>{const{classes:t}=e;return Te({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},jt,t)},Aye=oe("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),Lye=oe("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),Fye=oe("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),Nye=oe("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),Bye=oe("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),zye=oe("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),Vye=e=>{switch(e){case So.And:return"filterPanelOperatorAnd";case So.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `logicOperator` property in the `GridFilterPanel`.")}},Kf=e=>e.headerName||e.field,NO=new Intl.Collator,jye=c.forwardRef(function(t,n){var r,o,s,i,l,a,u,f,p,m;const{item:v,hasMultipleFilters:y,deleteFilter:g,applyFilterChanges:C,multiFilterOperator:b,showMultiFilterOperators:w,disableMultiFilterOperator:S,applyMultiFilterOperatorChanges:k,focusElementRef:M,logicOperators:E=[So.And,So.Or],columnsSort:I,filterColumns:R,deleteIconProps:A={},logicOperatorInputProps:$={},operatorInputProps:L={},columnInputProps:V={},valueInputProps:j={}}=t,_=le(t,Rye),T=Vt(),F=nt(T,S5),B=nt(T,Or),O=Kt(),N=Kt(),H=Kt(),K=Kt(),Q=ut(),J=Dye(Q),Y=c.useRef(null),X=c.useRef(null),ee=y&&E.length>0,se=((r=Q.slotProps)==null?void 0:r.baseFormControl)||{},he=(s=(((o=Q.slotProps)==null?void 0:o.baseSelect)||{}).native)!=null?s:!0,ne=((i=Q.slotProps)==null?void 0:i.baseInputLabel)||{},re=((l=Q.slotProps)==null?void 0:l.baseSelectOption)||{},{InputComponentProps:me}=j,ce=le(j,Oye),Se=c.useMemo(()=>{if(R===void 0||typeof R!="function")return F;const de=R({field:v.field,columns:F,currentFilters:(B==null?void 0:B.items)||[]});return F.filter(be=>de.includes(be.field))},[R,B==null?void 0:B.items,F,v.field]),Ee=c.useMemo(()=>{switch(I){case"asc":return Se.sort((de,be)=>NO.compare(Kf(de),Kf(be)));case"desc":return Se.sort((de,be)=>-NO.compare(Kf(de),Kf(be)));default:return Se}},[Se,I]),ae=v.field?T.current.getColumn(v.field):null,Ie=c.useMemo(()=>{var de;return!v.operator||!ae?null:(de=ae.filterOperators)==null?void 0:de.find(be=>be.value===v.operator)},[v,ae]),ye=c.useCallback(de=>{const be=de.target.value,_e=T.current.getColumn(be);if(_e.field===ae.field)return;const Ne=_e.filterOperators.find(Ve=>Ve.value===v.operator)||_e.filterOperators[0],Ge=!Ne.InputComponent||Ne.InputComponent!==(Ie==null?void 0:Ie.InputComponent);C(x({},v,{field:be,operator:Ne.value,value:Ge?void 0:v.value}))},[T,C,v,ae,Ie]),Me=c.useCallback(de=>{const be=de.target.value,_e=ae==null?void 0:ae.filterOperators.find(Ge=>Ge.value===be),Ne=!(_e!=null&&_e.InputComponent)||(_e==null?void 0:_e.InputComponent)!==(Ie==null?void 0:Ie.InputComponent);C(x({},v,{operator:be,value:Ne?void 0:v.value}))},[C,v,ae,Ie]),pe=c.useCallback(de=>{const be=de.target.value===So.And.toString()?So.And:So.Or;k(be)},[k]),fe=()=>{Q.disableMultipleColumnsFiltering?v.value===void 0?g(v):C(x({},v,{value:void 0})):g(v)};return c.useImperativeHandle(M,()=>({focus:()=>{if(Ie!=null&&Ie.InputComponent){var de;Y==null||(de=Y.current)==null||de.focus()}else X.current.focus()}}),[Ie]),D.jsxs(Aye,x({ref:n,className:J.root,"data-id":v.id,ownerState:Q},_,{children:[D.jsx(Lye,x({variant:"standard",as:Q.slots.baseFormControl},se,A,{className:Ce(J.deleteIcon,se.className,A.className),ownerState:Q,children:D.jsx(Q.slots.baseIconButton,x({"aria-label":T.current.getLocaleText("filterPanelDeleteIconLabel"),title:T.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:fe,size:"small"},(a=Q.slotProps)==null?void 0:a.baseIconButton,{children:D.jsx(Q.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),D.jsx(Fye,x({variant:"standard",as:Q.slots.baseFormControl},se,$,{sx:x({display:ee?"flex":"none",visibility:w?"visible":"hidden"},se.sx||{},$.sx||{}),className:Ce(J.logicOperatorInput,se.className,$.className),ownerState:Q,children:D.jsx(Q.slots.baseSelect,x({inputProps:{"aria-label":T.current.getLocaleText("filterPanelLogicOperator")},value:b,onChange:pe,disabled:!!S||E.length===1,native:he},(u=Q.slotProps)==null?void 0:u.baseSelect,{children:E.map(de=>c.createElement(Q.slots.baseSelectOption,x({},re,{native:he,key:de.toString(),value:de.toString()}),T.current.getLocaleText(Vye(de))))}))})),D.jsxs(Nye,x({variant:"standard",as:Q.slots.baseFormControl},se,V,{className:Ce(J.columnInput,se.className,V.className),ownerState:Q,children:[D.jsx(Q.slots.baseInputLabel,x({},ne,{htmlFor:O,id:N,children:T.current.getLocaleText("filterPanelColumns")})),D.jsx(Q.slots.baseSelect,x({labelId:N,id:O,label:T.current.getLocaleText("filterPanelColumns"),value:v.field||"",onChange:ye,native:he},(f=Q.slotProps)==null?void 0:f.baseSelect,{children:Ee.map(de=>c.createElement(Q.slots.baseSelectOption,x({},re,{native:he,key:de.field,value:de.field}),Kf(de)))}))]})),D.jsxs(Bye,x({variant:"standard",as:Q.slots.baseFormControl},se,L,{className:Ce(J.operatorInput,se.className,L.className),ownerState:Q,children:[D.jsx(Q.slots.baseInputLabel,x({},ne,{htmlFor:H,id:K,children:T.current.getLocaleText("filterPanelOperator")})),D.jsx(Q.slots.baseSelect,x({labelId:K,label:T.current.getLocaleText("filterPanelOperator"),id:H,value:v.operator,onChange:Me,native:he,inputRef:X},(p=Q.slotProps)==null?void 0:p.baseSelect,{children:ae==null||(m=ae.filterOperators)==null?void 0:m.map(de=>c.createElement(Q.slots.baseSelectOption,x({},re,{native:he,key:de.value,value:de.value}),de.label||T.current.getLocaleText(`filterOperator${Pe(de.value)}`)))}))]})),D.jsx(zye,x({variant:"standard",as:Q.slots.baseFormControl},se,ce,{className:Ce(J.valueInput,se.className,ce.className),ownerState:Q,children:Ie!=null&&Ie.InputComponent?D.jsx(Ie.InputComponent,x({apiRef:T,item:v,applyValue:C,focusElementRef:Y},Ie.InputComponentProps,me)):null}))]}))});class ME{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new ME}start(t,n){this.clear(),this.currentId=setTimeout(n,t)}}function _E(){const e=mE(ME.create).current;return C5(e.disposeEffect),e}const Hye=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps"];function ki(e){var t,n;const{item:r,applyValue:o,type:s,apiRef:i,focusElementRef:l,tabIndex:a,disabled:u,clearButton:f,InputProps:p}=e,m=le(e,Hye),v=_E(),[y,g]=c.useState((t=r.value)!=null?t:""),[C,b]=c.useState(!1),w=Kt(),S=ut(),k=c.useCallback(M=>{const{value:E}=M.target;g(String(E)),b(!0),v.start(S.filterDebounceMs,()=>{const I=x({},r,{value:E,fromInput:w});o(I),b(!1)})},[w,o,r,S.filterDebounceMs,v]);return c.useEffect(()=>{if(r.fromInput!==w){var E;g(String((E=r.value)!=null?E:""))}},[w,r]),D.jsx(S.slots.baseTextField,x({id:w,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),value:y,onChange:k,variant:"standard",type:s||"text",InputProps:x({},C||f?{endAdornment:C?D.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):f}:{},{disabled:u},p,{inputProps:x({tabIndex:a},p==null?void 0:p.inputProps)}),InputLabelProps:{shrink:!0},inputRef:l},m,(n=S.slotProps)==null?void 0:n.baseTextField))}const Uye=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function vu(e){var t,n;const{item:r,applyValue:o,type:s,apiRef:i,focusElementRef:l,InputProps:a,clearButton:u,tabIndex:f,disabled:p}=e,m=le(e,Uye),v=_E(),[y,g]=c.useState((t=r.value)!=null?t:""),[C,b]=c.useState(!1),w=Kt(),S=ut(),k=c.useCallback(M=>{const E=M.target.value;g(String(E)),b(!0),v.start(S.filterDebounceMs,()=>{o(x({},r,{value:E})),b(!1)})},[o,r,S.filterDebounceMs,v]);return c.useEffect(()=>{var M;const E=(M=r.value)!=null?M:"";g(String(E))},[r.value]),D.jsx(S.slots.baseTextField,x({fullWidth:!0,id:w,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),value:y,onChange:k,variant:"standard",type:s||"text",InputLabelProps:{shrink:!0},inputRef:l,InputProps:x({},C||u?{endAdornment:C?D.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):u}:{},{disabled:p},a,{inputProps:x({max:s==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:f},a==null?void 0:a.inputProps)})},m,(n=S.slotProps)==null?void 0:n.baseTextField))}const Wye=["item","applyValue","type","apiRef","focusElementRef","getOptionLabel","getOptionValue","placeholder","tabIndex","label","isFilterActive","clearButton","InputLabelProps"],Gye=({column:{valueOptions:e,field:t},OptionComponent:n,getOptionLabel:r,getOptionValue:o,isSelectNative:s,baseSelectOptionProps:i})=>(typeof e=="function"?["",...e({field:t})]:["",...e||[]]).map(a=>{const u=o(a),f=r(a);return c.createElement(n,x({},i,{native:s,key:u,value:u}),f)}),Kye=oe("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function BO(e){var t,n,r,o,s,i,l,a;const{item:u,applyValue:f,type:p,apiRef:m,focusElementRef:v,getOptionLabel:y,getOptionValue:g,placeholder:C,tabIndex:b,label:w,clearButton:S}=e,k=le(e,Wye),[M,E]=c.useState((t=u.value)!=null?t:""),I=Kt(),R=Kt(),A=ut(),$=(n=(r=A.slotProps)==null||(r=r.baseSelect)==null?void 0:r.native)!=null?n:!0;let L=null;if(u.field){const B=m.current.getColumn(u.field);yc(B)&&(L=B)}const V=g||((o=L)==null?void 0:o.getOptionValue),j=y||((s=L)==null?void 0:s.getOptionLabel),_=c.useMemo(()=>{if(L)return typeof L.valueOptions=="function"?L.valueOptions({field:L.field}):L.valueOptions},[L]),T=c.useCallback(B=>{let O=B.target.value;O=eS(O,_,V),E(String(O)),f(x({},u,{value:O}))},[_,V,f,u]);if(c.useEffect(()=>{var B;let O;if(_!==void 0){if(O=eS(u.value,_,V),O!==u.value){f(x({},u,{value:O}));return}}else O=u.value;O=(B=O)!=null?B:"",E(String(O))},[u,_,f,V]),!yc(L)||!yc(L))return null;const F=w!=null?w:m.current.getLocaleText("filterPanelInputLabel");return D.jsxs(Kye,{children:[D.jsxs(A.slots.baseFormControl,{children:[D.jsx(A.slots.baseInputLabel,x({},(i=A.slotProps)==null?void 0:i.baseInputLabel,{id:R,htmlFor:I,shrink:!0,variant:"standard",children:F})),D.jsx(A.slots.baseSelect,x({id:I,label:F,labelId:R,value:M,onChange:T,variant:"standard",type:p||"text",inputProps:{tabIndex:b,ref:v,placeholder:C!=null?C:m.current.getLocaleText("filterPanelInputPlaceholder")},native:$},k,(l=A.slotProps)==null?void 0:l.baseSelect,{children:Gye({column:L,OptionComponent:A.slots.baseSelectOption,getOptionLabel:j,getOptionValue:V,isSelectNative:$,baseSelectOptionProps:(a=A.slotProps)==null?void 0:a.baseSelectOption})}))]}),S]})}const qye=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","InputLabelProps"],Yye=oe("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function Qye(e){var t,n,r,o;const{item:s,applyValue:i,apiRef:l,focusElementRef:a,clearButton:u,tabIndex:f,label:p}=e,m=le(e,qye),[v,y]=c.useState(s.value||""),g=ut(),C=Kt(),b=Kt(),w=((t=g.slotProps)==null?void 0:t.baseSelect)||{},S=(n=w.native)!=null?n:!0,k=((r=g.slotProps)==null?void 0:r.baseSelectOption)||{},M=c.useCallback(I=>{const R=I.target.value;y(R),i(x({},s,{value:R}))},[i,s]);c.useEffect(()=>{y(s.value||"")},[s.value]);const E=p!=null?p:l.current.getLocaleText("filterPanelInputLabel");return D.jsxs(Yye,{children:[D.jsxs(g.slots.baseFormControl,{fullWidth:!0,children:[D.jsx(g.slots.baseInputLabel,x({},(o=g.slotProps)==null?void 0:o.baseInputLabel,{id:C,shrink:!0,variant:"standard",children:E})),D.jsxs(g.slots.baseSelect,x({labelId:C,id:b,label:E,value:v,onChange:M,variant:"standard",native:S,displayEmpty:!0,inputProps:{ref:a,tabIndex:f}},m,w,{children:[D.jsx(g.slots.baseSelectOption,x({},k,{native:S,value:"",children:l.current.getLocaleText("filterValueAny")})),D.jsx(g.slots.baseSelectOption,x({},k,{native:S,value:"true",children:l.current.getLocaleText("filterValueTrue")})),D.jsx(g.slots.baseSelectOption,x({},k,{native:S,value:"false",children:l.current.getLocaleText("filterValueFalse")}))]}))]}),u]})}const Xye=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],zO=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),Zye=c.forwardRef(function(t,n){var r,o;const s=Vt(),i=ut(),l=nt(s,Or),a=nt(s,S5),u=c.useRef(null),f=c.useRef(null),{logicOperators:p=[So.And,So.Or],columnsSort:m,filterFormProps:v,getColumnForNewFilter:y,disableAddFilterButton:g=!1,disableRemoveAllButton:C=!1}=t,b=le(t,Xye),w=s.current.upsertFilterItem,S=c.useCallback(L=>{s.current.setFilterLogicOperator(L)},[s]),k=c.useCallback(()=>{let L;if(y&&typeof y=="function"){const V=y({currentFilters:(l==null?void 0:l.items)||[],columns:a});if(V===null)return null;L=a.find(({field:j})=>j===V)}else L=a.find(V=>{var j;return(j=V.filterOperators)==null?void 0:j.length});return L?zO(L):null},[l==null?void 0:l.items,a,y]),M=c.useCallback(()=>{if(y===void 0||typeof y!="function")return k();const L=l.items.length?l.items:[k()].filter(Boolean),V=y({currentFilters:L,columns:a});if(V===null)return null;const j=a.find(({field:_})=>_===V);return j?zO(j):null},[l.items,a,y,k]),E=c.useMemo(()=>l.items.length?l.items:(f.current||(f.current=k()),f.current?[f.current]:[]),[l.items,k]),I=E.length>1,R=()=>{const L=M();L&&s.current.upsertFilterItems([...E,L])},A=c.useCallback(L=>{const V=E.length===1;s.current.deleteFilterItem(L),V&&s.current.hideFilterPanel()},[s,E.length]),$=()=>{E.length===1&&E[0].value===void 0&&(s.current.deleteFilterItem(E[0]),s.current.hideFilterPanel()),s.current.setFilterModel(x({},l,{items:[]}))};return c.useEffect(()=>{p.length>0&&l.logicOperator&&!p.includes(l.logicOperator)&&S(p[0])},[p,S,l.logicOperator]),c.useEffect(()=>{E.length>0&&u.current.focus()},[E.length]),D.jsxs(iB,x({ref:n},b,{children:[D.jsx(oB,{children:E.map((L,V)=>D.jsx(jye,x({item:L,applyFilterChanges:w,deleteFilter:A,hasMultipleFilters:I,showMultiFilterOperators:V>0,multiFilterOperator:l.logicOperator,disableMultiFilterOperator:V!==1,applyMultiFilterOperatorChanges:S,focusElementRef:V===E.length-1?u:null,logicOperators:p,columnsSort:m},v),L.id==null?V:L.id))}),!i.disableMultipleColumnsFiltering&&!(g&&C)?D.jsxs(sB,{children:[g?D.jsx("span",{}):D.jsx(i.slots.baseButton,x({onClick:R,startIcon:D.jsx(i.slots.filterPanelAddIcon,{})},(r=i.slotProps)==null?void 0:r.baseButton,{children:s.current.getLocaleText("filterPanelAddFilter")})),C?null:D.jsx(i.slots.baseButton,x({onClick:$,startIcon:D.jsx(i.slots.filterPanelRemoveAllIcon,{})},(o=i.slotProps)==null?void 0:o.baseButton,{children:s.current.getLocaleText("filterPanelRemoveAll")}))]}):null]}))}),Jye=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function lB(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:s,color:i,error:l,helperText:a,size:u,variant:f}=e,p=le(e,Jye),m={color:i,error:l,helperText:a,size:u,variant:f},[v,y]=c.useState(t.value||[]),g=Kt(),C=ut();c.useEffect(()=>{var w;const S=(w=t.value)!=null?w:[];y(S.map(String))},[t.value]);const b=c.useCallback((w,S)=>{y(S.map(String)),n(x({},t,{value:[...S]}))},[n,t]);return D.jsx(Fh,x({multiple:!0,freeSolo:!0,options:[],filterOptions:(w,S)=>{const{inputValue:k}=S;return k==null||k===""?[]:[k]},id:g,value:v,onChange:b,renderTags:(w,S)=>w.map((k,M)=>D.jsx(C.slots.baseChip,x({variant:"outlined",size:"small",label:k},S({index:M})))),renderInput:w=>{var S;return D.jsx(C.slots.baseTextField,x({},w,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:x({},w.InputLabelProps,{shrink:!0}),inputRef:s,type:r||"text"},m,(S=C.slotProps)==null?void 0:S.baseTextField))}},p))}const ebe=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant","getOptionLabel","getOptionValue"],tbe=$N();function nbe(e){var t,n;const{item:r,applyValue:o,apiRef:s,focusElementRef:i,color:l,error:a,helperText:u,size:f,variant:p="standard",getOptionLabel:m,getOptionValue:v}=e,y=le(e,ebe),g={color:l,error:a,helperText:u,size:f,variant:p},C=Kt(),b=ut();let w=null;if(r.field){const $=s.current.getColumn(r.field);yc($)&&(w=$)}const S=v||((t=w)==null?void 0:t.getOptionValue),k=m||((n=w)==null?void 0:n.getOptionLabel),M=c.useCallback(($,L)=>S($)===S(L),[S]),E=c.useMemo(()=>{var $;return($=w)!=null&&$.valueOptions?typeof w.valueOptions=="function"?w.valueOptions({field:w.field}):w.valueOptions:[]},[w]),I=c.useMemo(()=>E==null?void 0:E.map(S),[E,S]),R=c.useMemo(()=>Array.isArray(r.value)?E!==void 0?r.value.map(L=>I==null?void 0:I.findIndex(V=>V===L)).filter(L=>L>=0).map(L=>E[L]):r.value:[],[r.value,E,I]);c.useEffect(()=>{(!Array.isArray(r.value)||R.length!==r.value.length)&&o(x({},r,{value:R.map(S)}))},[r,R,o,S]);const A=c.useCallback(($,L)=>{o(x({},r,{value:L.map(S)}))},[o,r,S]);return D.jsx(Fh,x({multiple:!0,options:E,isOptionEqualToValue:M,filterOptions:tbe,id:C,value:R,onChange:A,getOptionLabel:k,renderTags:($,L)=>$.map((V,j)=>D.jsx(b.slots.baseChip,x({variant:"outlined",size:"small",label:k(V)},L({index:j})))),renderInput:$=>{var L;return D.jsx(b.slots.baseTextField,x({},$,{label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:x({},$.InputLabelProps,{shrink:!0}),inputRef:i,type:"singleSelect"},g,(L=b.slotProps)==null?void 0:L.baseTextField))}},y))}const rbe=["hideMenu","options"],obe=["hideMenu","options"];function sbe(e){const t=Vt(),{hideMenu:n,options:r}=e,o=le(e,rbe);return D.jsx(Pr,x({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function ibe(e){const t=Vt(),{hideMenu:n,options:r}=e,o=le(e,obe);return D.jsx(Pr,x({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const lbe=["className","selectedRowCount"],abe=e=>{const{classes:t}=e;return Te({root:["selectedRowCount"]},jt,t)},cbe=Ir("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),ube=c.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,s=le(t,lbe),i=Vt(),l=ut(),a=abe(l),u=i.current.getLocaleText("footerRowSelected")(o);return D.jsx(cbe,x({ref:n,className:Ce(a.root,r),ownerState:l},s,{children:u}))}),dbe=c.forwardRef(function(t,n){var r,o;const s=Vt(),i=ut(),l=nt(s,Ohe),a=nt(s,rve),u=nt(s,p0),f=!i.hideFooterSelectedRowCount&&a>0?D.jsx(ube,{selectedRowCount:a}):D.jsx("div",{}),p=!i.hideFooterRowCount&&!i.pagination?D.jsx(i.slots.footerRowCount,x({},(r=i.slotProps)==null?void 0:r.footerRowCount,{rowCount:l,visibleRowCount:u})):null,m=i.pagination&&!i.hideFooterPagination&&i.slots.pagination&&D.jsx(i.slots.pagination,x({},(o=i.slotProps)==null?void 0:o.pagination));return D.jsxs(hge,x({ref:n},t,{children:[f,p,m]}))});function fbe(){var e,t;const n=ut();return D.jsxs(c.Fragment,{children:[D.jsx(n.slots.preferencesPanel,x({},(e=n.slotProps)==null?void 0:e.preferencesPanel)),n.slots.toolbar&&D.jsx(n.slots.toolbar,x({},(t=n.slotProps)==null?void 0:t.toolbar))]})}const pbe=c.forwardRef(function(t,n){return D.jsx(PE,x({ref:n},t,{children:D.jsx(zi,{})}))}),hbe=c.forwardRef(function(t,n){const o=Vt().current.getLocaleText("noRowsLabel");return D.jsx(PE,x({ref:n},t,{children:o}))}),mbe=oe(rce)(({theme:e})=>({[`& .${mc.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${mc.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),gbe=c.forwardRef(function(t,n){const r=Vt(),o=ut(),s=nt(r,Ps),i=nt(r,p0),l=c.useMemo(()=>{var v,y;return(v=(y=o.rowCount)!=null?y:i)!=null?v:0},[o.rowCount,i]),a=c.useMemo(()=>Math.floor(l/(s.pageSize||1)),[l,s.pageSize]),u=c.useCallback(v=>{const y=Number(v.target.value);r.current.setPageSize(y)},[r]),f=c.useCallback((v,y)=>{r.current.setPage(y)},[r]),m=(v=>{for(let y=0;y<o.pageSizeOptions.length;y+=1){const g=o.pageSizeOptions[y];if(typeof g=="number"){if(g===v)return!0}else if(g.value===v)return!0}return!1})(s.pageSize)?o.pageSizeOptions:[];return D.jsx(mbe,x({ref:n,component:"div",count:l,page:s.page<=a?s.page:a,rowsPerPageOptions:m,rowsPerPage:s.pageSize,onPageChange:f,onRowsPerPageChange:u},r.current.getLocaleText("MuiTablePagination"),t))}),vbe=["className","rowCount","visibleRowCount"],ybe=e=>{const{classes:t}=e;return Te({root:["rowCount"]},jt,t)},bbe=Ir("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),wbe=c.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:s}=t,i=le(t,vbe),l=Vt(),a=ut(),u=ybe(a);if(o===0)return null;const f=s<o?l.current.getLocaleText("footerTotalVisibleRows")(s,o):o.toLocaleString();return D.jsxs(bbe,x({ref:n,className:Ce(u.root,r),ownerState:a},i,{children:[l.current.getLocaleText("footerTotalRows")," ",f]}))}),dy=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=EE(e),n=nve(e)):(n=za(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},Uc=(e,t)=>{const n=dy(e,t);return c.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},tS={current:null};function Kh(e){return e.isInternal=!0,e}function fy(e){return e!==void 0&&e.isInternal===!0}function Cbe(e){return Kh((t,n)=>{const r=e(t,n);return r&&(o=>r(o.value,o.row,n,tS.current))})}function qh(e){return e.map(t=>x({},t,{getApplyFilterFn:Cbe(t.getApplyFilterFnV7),getApplyFilterFnV7:Kh(t.getApplyFilterFnV7)}))}function aB(e){return Kh((t,n,r)=>{const o=e(t,n,r);return o&&(s=>o(s.value,s.row,n,r))})}function cB(e){return{current:e.current.getPublicApi()}}const xbe=typeof window=="undefined"?globalThis:window,uB=xbe[atob("ZXZhbA==")];let nS;try{nS=uB("true")}catch(e){nS=!1}const rS=(e,t)=>{const n=x({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=ef(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},Sbe=Gi(["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"),Pbe=Gi("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),kbe=Gi("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),dB=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(Sbe(),o=[e.items[0]]):o=e.items;const s=r&&o.some(l=>l.id==null),i=o.some(l=>l.operator==null);return s&&Pbe(),i&&kbe(),i||s?x({},e,{items:o.map(l=>rS(l,n))}):e.items!==o?x({},e,{items:o}):e},VO=(e,t,n)=>r=>x({},r,{filterModel:dB(e,t,n)}),ca=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,fB=(e,t)=>{if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){var o;const v=n.valueParser;r=Array.isArray(e.value)?(o=e.value)==null?void 0:o.map(y=>v(y)):v(e.value)}else r=e.value;const{ignoreDiacritics:s}=t.current.rootProps;s&&(r=ca(r));const i=x({},e,{value:r}),l=n.filterOperators;if(!(l!=null&&l.length))throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const a=l.find(v=>v.value===i.operator);if(!a)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${i.operator}'.`);const u=!fy(a.getApplyFilterFn),f=!fy(a.getApplyFilterFnV7),p=cB(t);if(a.getApplyFilterFnV7&&!(u&&!f)){const v=a.getApplyFilterFnV7(i,n);return typeof v!="function"?null:{v7:!0,item:i,fn:y=>{let g=t.current.getRowValue(y,n);return s&&(g=ca(g)),v(g,y,n,p)}}}const m=a.getApplyFilterFn(i,n);return typeof m!="function"?null:{v7:!1,item:i,fn:v=>{const y=t.current.getCellParams(v,i.field);tS.current=p,s&&(y.value=ca(y.value));const g=m(y);return tS.current=null,g}}};let jO=1;const Ebe=(e,t,n)=>{const{items:r}=e,o=r.map(a=>fB(a,t)).filter(a=>!!a);if(o.length===0)return null;if(!nS||n)return(a,u)=>{const f={};for(let p=0;p<o.length;p+=1){const m=o[p];(!u||u(m.item.field))&&(f[m.item.id]=m.v7?m.fn(a):m.fn(t.current.getRowId(a)))}return f};const s=`(function filterItem$$(getRowId, appliers, row, shouldApplyFilter) {
336
+ ${o.map((a,u)=>`const shouldApply${u} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(a.item.field)});`).join(`
337
+ `)}
338
+
339
+ const result$$ = {
340
+ ${o.map((a,u)=>`${JSON.stringify(String(a.item.id))}:
341
+ !shouldApply${u} ?
342
+ false :
343
+ ${a.v7?`appliers[${u}].fn(row)`:`appliers[${u}].fn(getRowId(row))`},
344
+ `).join(`
345
+ `)}};
346
+
347
+ return result$$;
348
+ })`,i=uB(s.replaceAll("$$",String(jO))),l=(a,u)=>i(t.current.getRowId,o,a,u);return jO+=1,l},Ibe=(e,t)=>{var n,r,o;const s=(n=(r=e.quickFilterValues)==null?void 0:r.filter(Boolean))!=null?n:[];if(s.length===0)return null;const l=((o=e.quickFilterExcludeHiddenColumns)!=null?o:!1)?c0(t):ml(t),a=[],{ignoreDiacritics:u}=t.current.rootProps,f=cB(t);return l.forEach(p=>{const m=t.current.getColumn(p),v=m==null?void 0:m.getApplyQuickFilterFn,y=m==null?void 0:m.getApplyQuickFilterFnV7,g=!fy(v),C=!fy(y);y&&!(g&&!C)?a.push({column:m,appliers:s.map(b=>{const w=u?ca(b):b;return{v7:!0,fn:y(w,m,f)}})}):v&&a.push({column:m,appliers:s.map(b=>{const w=u?ca(b):b;return{v7:!1,fn:v(w,m,f)}})})}),function(m,v){const y={},g={};e:for(let b=0;b<s.length;b+=1){const w=s[b];for(let S=0;S<a.length;S+=1){const{column:k,appliers:M}=a[S],{field:E}=k;if(v&&!v(E))continue;const I=M[b];let R=t.current.getRowValue(m,k);if(I.fn!==null)if(I.v7){if(u&&(R=ca(R)),I.fn(R,m,k,f)){y[w]=!0;continue e}}else{var C;const A=(C=g[E])!=null?C:t.current.getCellParams(t.current.getRowId(m),E);if(u&&(A.value=ca(A.value)),g[E]=A,I.fn(A)){y[w]=!0;continue e}}}y[w]=!1}return y}},Mbe=(e,t,n)=>{const r=Ebe(e,t,n),o=Ibe(e,t);return function(i,l,a){var u,f;a.passingFilterItems=(u=r==null?void 0:r(i,l))!=null?u:null,a.passingQuickFilterValues=(f=o==null?void 0:o(i,l))!=null?f:null}},HO=e=>e!=null,_be=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>fB(r,t)!==null)),e.cleanedFilterItems),Tbe=(e,t,n,r,o)=>{const s=_be(o,r,n.items),i=e.filter(HO),l=t.filter(HO);if(i.length>0){var a;const f=m=>i.some(v=>v[m.id]);if(((a=n.logicOperator)!=null?a:hh().logicOperator)===So.And){if(!s.every(f))return!1}else if(!s.some(f))return!1}if(l.length>0&&n.quickFilterValues!=null){var u;const f=m=>l.some(v=>v[m]);if(((u=n.quickFilterLogicOperator)!=null?u:hh().quickFilterLogicOperator)===So.And){if(!n.quickFilterValues.every(f))return!1}else if(!n.quickFilterValues.some(f))return!1}return!0},UO=Kh(e=>{if(!e)return null;const t=new RegExp(Zg(e),"i");return(n,r,o,s)=>{let i=s.current.getRowFormattedValue(r,o);return s.current.ignoreDiacritics&&(i=ca(i)),i!=null?t.test(i.toString()):!1}}),pB=(e=!1)=>qh([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(Zg(n),"i");return o=>o!=null?r.test(String(o)):!1},InputComponent:ki},{value:"equals",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?r.compare(n,o.toString())===0:!1},InputComponent:ki},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${Zg(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:ki},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${Zg(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:ki},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t===""||t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!==""&&t!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(s=>r.compare(s,o.toString()||"")===0):!1},InputComponent:lB}]),ai={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:dve,type:"string",align:"left",filterOperators:pB(),renderEditCell:Lme,getApplyQuickFilterFn:aB(UO),getApplyQuickFilterFnV7:UO},$be=()=>qh([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t=e.value==="true";return n=>!!n===t},InputComponent:Qye}]);function Rbe({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const Obe=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},hB=x({},ai,{type:"boolean",align:"center",headerAlign:"center",renderCell:Sme,renderEditCell:Ime,sortComparator:J5,valueFormatter:Rbe,filterOperators:$be(),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>Obe(e)}),ql="__check__",rf=x({},hB,{field:ql,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,valueGetter:e=>uy(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>D.jsx(kve,x({},e)),renderCell:e=>D.jsx(xve,x({},e))}),v0="actions",Dbe=x({},ai,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:tge,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0}),TE="__detail_panel_toggle__",lo=e=>e.editRows,Abe=["selected","hovered","rowId","row","index","style","position","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","isLastVisible","focusedCellColumnIndexNotInRange","isNotVisible","focusedCell","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],Lbe=e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:s,classes:i}=e;return Te({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible",s==="auto"&&"row--dynamicHeight"]},jt,i)};function Fbe({width:e}){if(!e)return null;const t={width:e};return D.jsx("div",{className:`${ue.cell} ${ue.withBorderColor}`,style:t})}const Nbe=c.forwardRef(function(t,n){const{selected:r,hovered:o,rowId:s,row:i,index:l,style:a,position:u,rowHeight:f,className:p,visibleColumns:m,renderedColumns:v,containerWidth:y,firstColumnToRender:g,isLastVisible:C=!1,focusedCellColumnIndexNotInRange:b,isNotVisible:w,focusedCell:S,onClick:k,onDoubleClick:M,onMouseEnter:E,onMouseLeave:I,onMouseOut:R,onMouseOver:A}=t,$=le(t,Abe),L=Vt(),V=c.useRef(null),j=ut(),_=Uc(L,j),T=nt(L,vE),F=nt(L,Cs),B=nt(L,f0),O=nt(L,Wh),N=nt(L,lo),H=Et(V,n),K=l+O+2,Q={selected:r,hovered:o,isLastVisible:C,classes:j.classes,editing:L.current.getRowMode(s)===Cn.Edit,editable:j.editMode===ji.Row,rowHeight:f},J=Lbe(Q);c.useLayoutEffect(()=>{f==="auto"&&V.current&&typeof ResizeObserver=="undefined"&&L.current.unstable_storeRowHeightMeasurement(s,V.current.clientHeight,u)},[L,f,s,u]),c.useLayoutEffect(()=>{if(_.range){const Ge=L.current.getRowIndexRelativeToVisibleRows(s);Ge!=null&&L.current.unstable_setLastMeasuredRowIndex(Ge)}const be=V.current;if(!be||f!=="auto"||typeof ResizeObserver=="undefined")return;const Ne=new ResizeObserver(Ge=>{const[Ve]=Ge,Ue=Ve.borderBoxSize&&Ve.borderBoxSize.length>0?Ve.borderBoxSize[0].blockSize:Ve.contentRect.height;L.current.unstable_storeRowHeightMeasurement(s,Ue,u)});return Ne.observe(be),()=>Ne.disconnect()},[L,_.range,l,f,s,u]);const Y=c.useCallback((be,_e)=>Ne=>{Ne.target.nodeType===1&&!Ne.currentTarget.contains(Ne.target)||L.current.getRow(s)&&(L.current.publishEvent(be,L.current.getRowParams(s),Ne),_e&&_e(Ne))},[L,s]),X=c.useCallback(be=>{const _e=lme(be.target,ue.cell),Ne=_e==null?void 0:_e.getAttribute("data-field");if(Ne){if(Ne===rf.field||Ne===TE||Ne==="__reorder__"||L.current.getCellMode(s,Ne)===un.Edit)return;const Ge=L.current.getColumn(Ne);if((Ge==null?void 0:Ge.type)===v0)return}Y("rowClick",k)(be)},[L,k,Y,s]),{slots:ee,slotProps:se,disableColumnReorder:Z}=j,he=ee.cell===Jx?Jx:vme,ne=j.rowReordering,re=(be,_e)=>{var Ne,Ge;const Ve=Z&&be.disableReorder||!ne&&!!F.length&&B>1&&Object.keys(N).length>0,Ue=(Ne=(Ge=N[s])==null?void 0:Ge[be.field])!=null?Ne:null;let Le=!1;return b!==void 0&&m[b].field===be.field&&(Le=!0),D.jsx(he,x({column:be,width:_e.width,rowId:s,height:f,showRightBorder:_e.showRightBorder,align:be.align||"left",colIndex:_e.indexRelativeToAllColumns,colSpan:_e.colSpan,disableDragEvents:Ve,editCellState:Ue,isNotVisible:Le},se==null?void 0:se.cell),be.field)},me=nt(L,()=>x({},L.current.unstable_getRowInternalSizes(s)),gE);let ce=f;if(ce==="auto"&&me){let be=0;const _e=Object.entries(me).reduce((Ne,[Ge,Ve])=>/^base[A-Z]/.test(Ge)?(be+=1,Ve>Ne?Ve:Ne):Ne,0);_e>0&&be>1&&(ce=_e)}const Se=c.useMemo(()=>{if(w)return{opacity:0,width:0,height:0};const be=x({},a,{maxHeight:f==="auto"?"none":f,minHeight:ce});if(me!=null&&me.spacingTop){const _e=j.rowSpacingType==="border"?"borderTopWidth":"marginTop";be[_e]=me.spacingTop}if(me!=null&&me.spacingBottom){const _e=j.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let Ne=be[_e];typeof Ne!="number"&&(Ne=parseInt(Ne||"0",10)),Ne+=me.spacingBottom,be[_e]=Ne}return be},[w,f,a,ce,me,j.rowSpacingType]),Ee=L.current.unstable_applyPipeProcessors("rowClassName",[],s);if(typeof j.getRowClassName=="function"){var ae;const be=l-(((ae=_.range)==null?void 0:ae.firstRowIndex)||0),_e=x({},L.current.getRowParams(s),{isFirstVisible:be===0,isLastVisible:be===_.rows.length-1,indexRelativeToCurrentPage:be});Ee.push(j.getRowClassName(_e))}const Ie=Yge(1e4,20,80),ye=L.current.getRowNode(s);if(!ye)return null;const Me=ye.type,pe=[];for(let be=0;be<v.length;be+=1){const _e=v[be];let Ne=g+be;b!==void 0&&S&&(m[b].field===_e.field?Ne=b:Ne-=1);const Ge=L.current.unstable_getCellColSpanInfo(s,Ne);if(Ge&&!Ge.spannedByColSpan)if(Me!=="skeletonRow"){const{colSpan:Ve,width:Ue}=Ge.cellProps,Le={width:Ue,colSpan:Ve,showRightBorder:j.showCellVerticalBorder,indexRelativeToAllColumns:Ne};pe.push(re(_e,Le))}else{const{width:Ve}=Ge.cellProps,Ue=Math.round(Ie());pe.push(D.jsx(ee.skeletonCell,{width:Ve,contentWidth:Ue,field:_e.field,align:_e.align},_e.field))}}const fe=y-T,de=i?{onClick:X,onDoubleClick:Y("rowDoubleClick",M),onMouseEnter:Y("rowMouseEnter",E),onMouseLeave:Y("rowMouseLeave",I),onMouseOut:Y("rowMouseOut",R),onMouseOver:Y("rowMouseOver",A)}:null;return D.jsxs("div",x({ref:H,"data-id":s,"data-rowindex":l,role:"row",className:Ce(...Ee,J.root,p,o&&"Mui-hovered"),"aria-rowindex":K,"aria-selected":r,style:Se},de,$,{children:[pe,fe>0&&D.jsx(Fbe,{width:fe})]}))}),Bbe=g0(Nbe);function zbe({privateApiRef:e,props:t,children:n}){const r=c.useRef(e.current.getPublicApi());return D.jsx(b5.Provider,{value:t,children:D.jsx(w5.Provider,{value:e,children:D.jsx(y5.Provider,{value:r,children:n})})})}const Vbe=Kge()&&window.localStorage.getItem("DEBUG")!=null,cp=()=>{},jbe={debug:cp,info:cp,warn:cp,error:cp},WO=["debug","info","warn","error"];function GO(e,t,n=console){const r=WO.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return WO.reduce((s,i,l)=>(l>=r?s[i]=(...a)=>{const[u,...f]=a;n[i](`MUI: ${e} - ${u}`,...f)}:s[i]=cp,s),{})}const Hbe=(e,t)=>{const n=c.useCallback(r=>Vbe?GO(r,"debug",t.logger):t.logLevel?GO(r,t.logLevel.toString(),t.logger):jbe,[t.logLevel,t.logger]);At(e,{getLogger:n},"private")};class $E{static create(t){return new $E(t)}constructor(t){this.value=void 0,this.listeners=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(r=>r(n))},this.value=t,this.listeners=new Set}}let Ube=class{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),s=Array.from(r.regular.keys());for(let i=o.length-1;i>=0;i-=1){const l=o[i];r.highPriority.has(l)&&l.apply(this,n)}for(let i=0;i<s.length;i+=1){const l=s[i];r.regular.has(l)&&l.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...s){r.removeListener(t,o),n.apply(r,s)})}};const mB=Symbol("mui.api_private"),Wbe=e=>e.isPropagationStopped!==void 0;let KO=0;function Gbe(e){var t;const n=(t=e.current)==null?void 0:t[mB];if(n)return n;const r={},o={state:r,store:$E.create(r),instanceId:{id:KO}};return KO+=1,o.getPublicApi=()=>e.current,o.register=(s,i)=>{Object.keys(i).forEach(l=>{const a=i[l],u=o[l];if((u==null?void 0:u.spying)===!0?u.target=a:o[l]=a,s==="public"){const f=e.current,p=f[l];(p==null?void 0:p.spying)===!0?p.target=a:f[l]=a}})},o.register("private",{caches:{},eventManager:new Ube}),o}function Kbe(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[mB]:e.current}}function qbe(e,t){const n=c.useRef(),r=c.useRef();r.current||(r.current=Gbe(n)),n.current||(n.current=Kbe(r));const o=c.useCallback((...i)=>{const[l,a,u={}]=i;if(u.defaultMuiPrevented=!1,Wbe(u)&&u.isPropagationStopped())return;const f=t.signature===Li.DataGridPro?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(l,a,u,f)},[r,t.signature]),s=c.useCallback((i,l,a)=>{r.current.eventManager.on(i,l,a);const u=r.current;return()=>{u.eventManager.removeListener(i,l)}},[r]);return At(r,{subscribeEvent:s,publishEvent:o},"public"),c.useImperativeHandle(e,()=>n.current,[n]),c.useEffect(()=>{const i=r.current;return()=>{i.publishEvent("unmount")}},[r]),r}const Ybe=(e,t)=>{const n=c.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})};function vh(e){"@babel/helpers - typeof";return vh=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},vh(e)}function Qbe(e,t){if(vh(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(vh(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yh(e){var t=Qbe(e,"string");return vh(t)==="symbol"?t:String(t)}const Xbe=e=>{const t=c.useRef({}),n=c.useRef(!1),r=c.useCallback(f=>{n.current||!f||(n.current=!0,Object.values(f.appliers).forEach(p=>{p()}),n.current=!1)},[]),o=c.useCallback((f,p,m)=>{t.current[f]||(t.current[f]={processors:new Map,appliers:{}});const v=t.current[f];return v.processors.get(p)!==m&&(v.processors.set(p,m),r(v)),()=>{t.current[f].processors.set(p,null)}},[r]),s=c.useCallback((f,p,m)=>(t.current[f]||(t.current[f]={processors:new Map,appliers:{}}),t.current[f].appliers[p]=m,()=>{const v=t.current[f].appliers,y=le(v,[p].map(yh));t.current[f].appliers=y}),[]),i=c.useCallback(f=>{const p=t.current[f];r(p)},[r]),l=c.useCallback((...f)=>{const[p,m,v]=f;return t.current[p]?Array.from(t.current[p].processors.values()).reduce((g,C)=>C?C(g,v):g,m):m},[]),a={registerPipeProcessor:o,registerPipeApplier:s,requestPipeProcessorsApplication:i},u={unstable_applyPipeProcessors:l};At(e,a,"private"),At(e,u,"public")},mr=(e,t,n)=>{const r=c.useRef(),o=c.useRef(`mui-${Math.round(Math.random()*1e9)}`),s=c.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);Gh(()=>{s()});const i=c.useRef(!0);c.useEffect(()=>(i.current?i.current=!1:s(),()=>{r.current&&(r.current(),r.current=null)}),[s])},RE=(e,t,n)=>{const r=c.useRef(),o=c.useRef(`mui-${Math.round(Math.random()*1e9)}`),s=c.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);Gh(()=>{s()});const i=c.useRef(!0);c.useEffect(()=>(i.current?i.current=!1:s(),()=>{r.current&&(r.current(),r.current=null)}),[s])},py=(e,t,n,r)=>{const o=c.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);Gh(()=>{o()});const s=c.useRef(!0);c.useEffect(()=>{s.current?s.current=!1:o()},[o])},Lc="none",qO={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},Zbe=e=>{const t=c.useRef(new Map),n=c.useRef({}),r=c.useCallback((a,u,f)=>{const p=()=>{const y=n.current[u],g=le(y,[a].map(yh));n.current[u]=g};n.current[u]||(n.current[u]={});const m=n.current[u],v=m[a];return m[a]=f,!v||v===f||a===e.current.getActiveStrategy(qO[u])&&e.current.publishEvent("activeStrategyProcessorChange",u),p},[e]),o=c.useCallback((a,u)=>{const f=e.current.getActiveStrategy(qO[a]);if(f==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const p=n.current[a];if(!p||!p[f])throw new Error(`No processor found for processor "${a}" on strategy "${f}"`);const m=p[f];return m(u)},[e]),s=c.useCallback(a=>{var u;const p=Array.from(t.current.entries()).find(([,m])=>m.group!==a?!1:m.isAvailable());return(u=p==null?void 0:p[0])!=null?u:Lc},[]),i=c.useCallback((a,u,f)=>{t.current.set(u,{group:a,isAvailable:f}),e.current.publishEvent("strategyAvailabilityChange")},[e]);At(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:s,setStrategyAvailability:i},"private")},Jbe=(e,t)=>{const n=c.useRef({}),[,r]=c.useState(),o=c.useCallback(f=>{n.current[f.stateId]=f},[]),s=c.useCallback((f,p)=>{let m;if(W5(f)?m=f(e.current.state):m=f,e.current.state===m)return!1;let v=!1;const y=[];if(Object.keys(n.current).forEach(g=>{const C=n.current[g],b=C.stateSelector(e.current.state,e.current.instanceId),w=C.stateSelector(m,e.current.instanceId);w!==b&&(y.push({stateId:C.stateId,hasPropChanged:w!==C.propModel}),C.propModel!==void 0&&w!==C.propModel&&(v=!0))}),y.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${y[0].stateId}, therefore, you're not allowed to update ${y.map(g=>g.stateId).join(", ")} in the same transaction.`);if(v||(e.current.state=m,e.current.publishEvent&&e.current.publishEvent("stateChange",m),e.current.store.update(m)),y.length===1){const{stateId:g,hasPropChanged:C}=y[0],b=n.current[g],w=b.stateSelector(m,e.current.instanceId);if(b.propOnChange&&C){const S=t.signature===Li.DataGridPro?{api:e.current,reason:p}:{reason:p};b.propOnChange(w,S)}v||e.current.publishEvent(b.changeEvent,w,{reason:p})}return!v},[e,t.signature]),i=c.useCallback((f,p,m)=>e.current.setState(v=>x({},v,{[f]:p(v[f])}),m),[e]),l=c.useCallback(()=>r(()=>e.current.state),[e]),a={setState:s,forceUpdate:l},u={updateControlState:i,registerControlState:o};At(e,a,"public"),At(e,u,"private")},e0e=(e,t)=>{const n=qbe(e,t);return Hbe(n,t),Jbe(n,t),Xbe(n),Zbe(n),Ybe(n,t),n.current.register("private",{rootProps:t}),n},bo=(e,t,n)=>{const r=c.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)},t0e=/(\d+)-(\d+)-(\d+)/,n0e=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function yu(e,t,n,r){if(!e.value)return null;const[o,s,i,l,a]=e.value.match(n?n0e:t0e).slice(1).map(Number),u=new Date(o,s-1,i,l||0,a||0).getTime();return f=>{if(!f)return!1;if(r)return t(f.getTime(),u);const m=new Date(f).setHours(n?f.getHours():0,n?f.getMinutes():0,0,0);return t(m,u)}}const gB=e=>qh([{value:"is",getApplyFilterFnV7:t=>yu(t,(n,r)=>n===r,e),InputComponent:vu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFnV7:t=>yu(t,(n,r)=>n!==r,e),InputComponent:vu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFnV7:t=>yu(t,(n,r)=>n>r,e),InputComponent:vu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFnV7:t=>yu(t,(n,r)=>n>=r,e),InputComponent:vu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFnV7:t=>yu(t,(n,r)=>n<r,e,!e),InputComponent:vu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFnV7:t=>yu(t,(n,r)=>n<=r,e),InputComponent:vu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!=null,requiresFilterValue:!1}]);function vB({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(`
349
+ `))}function r0e({value:e,field:t,id:n}){return e?(vB({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""}function o0e({value:e,field:t,id:n}){return e?(vB({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""}const s0e=x({},ai,{type:"date",sortComparator:eB,valueFormatter:r0e,filterOperators:gB(),renderEditCell:F5,pastedValueParser:e=>new Date(e)}),i0e=x({},ai,{type:"dateTime",sortComparator:eB,valueFormatter:o0e,filterOperators:gB(!0),renderEditCell:F5,pastedValueParser:e=>new Date(e)}),Jl=e=>e==null?null:Number(e),YO=Kh(e=>e==null||Number.isNaN(e)||e===""?null:t=>Jl(t)===Jl(e)),l0e=()=>qh([{value:"=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>Jl(t)===e.value,InputComponent:ki,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>Jl(t)!==e.value,InputComponent:ki,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Jl(t)>e.value,InputComponent:ki,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Jl(t)>=e.value,InputComponent:ki,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Jl(t)<e.value,InputComponent:ki,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Jl(t)<=e.value,InputComponent:ki,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:lB,InputComponentProps:{type:"number"}}]),a0e=x({},ai,{type:"number",align:"right",headerAlign:"right",sortComparator:J5,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>Gge(e)?e.toLocaleString():e||"",filterOperators:l0e(),getApplyQuickFilterFn:aB(YO),getApplyQuickFilterFnV7:YO}),bu=e=>e==null||!kE(e)?e:e.value,c0e=()=>qh([{value:"is",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>bu(t)===bu(e.value),InputComponent:BO},{value:"not",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>bu(t)!==bu(e.value),InputComponent:BO},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(bu);return n=>t.includes(bu(n))},InputComponent:nbe}]),u0e=e=>typeof e[0]=="object",d0e=e=>kE(e)?e.value:e,f0e=e=>kE(e)?e.label:String(e),p0e=x({},ai,{type:"singleSelect",getOptionLabel:f0e,getOptionValue:d0e,valueFormatter(e){const{id:t,field:n,value:r,api:o}=e,s=e.api.getColumn(n);if(!yc(s))return"";let i;if(typeof s.valueOptions=="function"?i=s.valueOptions({id:t,row:t?o.getRow(t):null,field:n}):i=s.valueOptions,r==null)return"";if(!i)return r;if(!u0e(i))return s.getOptionLabel(r);const l=i.find(a=>s.getOptionValue(a)===r);return l?s.getOptionLabel(l):""},renderEditCell:Kme,filterOperators:c0e(),pastedValueParser:(e,t)=>{const n=t.colDef,r=n.valueOptions,o=typeof r=="function"?r({field:n.field}):r||[],s=n.getOptionValue;if(o.find(l=>s(l)===e))return e}}),yB="__default__",h0e=()=>({string:ai,number:a0e,date:s0e,dateTime:i0e,boolean:hB,singleSelect:p0e,[v0]:Dbe,[yB]:ai});function oS(e,t){return typeof e=="string"&&[t,`
350
+ `,"\r",'"'].some(n=>e.includes(n))?`"${e.replace(/"/g,'""')}"`:e}const bB=(e,t)=>{const{delimiterCharacter:n,ignoreValueFormatter:r}=t;let o;if(r){var s;const l=e.colDef.type;if(l==="number")o=String(e.value);else if(l==="date"||l==="dateTime"){var i;o=(i=e.value)==null?void 0:i.toISOString()}else typeof((s=e.value)==null?void 0:s.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return oS(o,n)};Gi(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);class sS{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.delimiterCharacter),t==null?this.rowString+="":typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.delimiterCharacter):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const m0e=({id:e,columns:t,getCellParams:n,delimiterCharacter:r,ignoreValueFormatter:o})=>{const s=new sS({delimiterCharacter:r});return t.forEach(i=>{const l=n(e,i.field);s.addValue(bB(l,{delimiterCharacter:r,ignoreValueFormatter:o}))}),s.getRowString()};function g0e(e){const{columns:t,rowIds:n,delimiterCharacter:r,includeHeaders:o,includeColumnGroupsHeaders:s,ignoreValueFormatter:i,apiRef:l}=e,a=n.reduce((v,y)=>`${v}${m0e({id:y,columns:t,getCellParams:l.current.getCellParams,delimiterCharacter:r,ignoreValueFormatter:i})}\r
351
+ `,"").trim();if(!o)return a;const u=t.filter(v=>v.field!==rf.field),f=[];if(s){const v=l.current.unstable_getAllGroupDetails();let y=0;const g=u.reduce((C,b)=>{const w=l.current.unstable_getColumnGroupPath(b.field);return C[b.field]=w,y=Math.max(y,w.length),C},{});for(let C=0;C<y;C+=1){const b=new sS({delimiterCharacter:r,sanitizeCellValue:oS});f.push(b),u.forEach(w=>{const S=(g[w.field]||[])[C],k=v[S];b.addValue(k?k.headerName||k.groupId:"")})}}const p=new sS({delimiterCharacter:r,sanitizeCellValue:oS});return u.forEach(v=>{p.addValue(v.headerName||v.field)}),f.push(p),`${`${f.map(v=>v.getRowString()).join(`\r
352
+ `)}\r
353
+ `}${a}`.trim()}function QO(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 v0e(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{QO(e)}):QO(e)}function y0e(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const b0e=(e,t)=>{const n=t.unstable_ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,s=c.useCallback(i=>{if(!((i.ctrlKey||i.metaKey)&&i.key==="c")||y0e(i.target))return;let l="";if(e.current.getSelectedRows().size>0)l=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o});else{const u=jo(e);if(u){const f=e.current.getCellParams(u.id,u.field);l=bB(f,{delimiterCharacter:o,ignoreValueFormatter:r})}}l=e.current.unstable_applyPipeProcessors("clipboardCopy",l),l&&(v0e(l),e.current.publishEvent("clipboardCopy",l))},[e,r,o]);Qge(e,e.current.rootElementRef,"keydown",s),In(e,"clipboardCopy",t.onClipboardCopy)},w0e=e=>x({},e,{columnMenu:{open:!1}}),C0e=e=>{const t=eo(e,"useGridColumnMenu"),n=c.useCallback(i=>{e.current.setState(a=>a.columnMenu.open&&a.columnMenu.field===i?a:(t.debug("Opening Column Menu"),x({},a,{columnMenu:{open:!0,field:i}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=c.useCallback(()=>{const i=Zx(e.current.state);if(i.field){const a=ef(e),u=oi(e),f=ml(e);let p=i.field;if(a[p]||(p=f[0]),u[p]===!1){const m=f.filter(y=>y===p?!0:u[y]!==!1),v=m.indexOf(p);p=m[v+1]||m[v-1]}e.current.setColumnHeaderFocus(p)}e.current.setState(a=>!a.columnMenu.open&&a.columnMenu.field===void 0?a:(t.debug("Hiding Column Menu"),x({},a,{columnMenu:x({},a.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=c.useCallback(i=>{t.debug("Toggle Column Menu");const l=Zx(e.current.state);!l.open||l.field!==i?n(i):r()},[e,t,n,r]);At(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),dt(e,"columnResizeStart",r),dt(e,"virtualScrollerWheel",e.current.hideColumnMenu),dt(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},wB=["maxWidth","minWidth","width","flex"];function x0e({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(i=>i.field)),o={all:{},frozenFields:[],freeze:i=>{const l=o.all[i];l&&l.frozen!==!0&&(o.all[i].frozen=!0,o.frozenFields.push(i))}};function s(){if(o.frozenFields.length===r.size)return;const i={min:{},max:{}};let l=e,a=t,u=0;o.frozenFields.forEach(f=>{l-=o.all[f].computedWidth,a-=o.all[f].flex});for(let f=0;f<n.length;f+=1){const p=n[f];if(o.all[p.field]&&o.all[p.field].frozen===!0)continue;let v=l/a*p.flex;v<p.minWidth?(u+=p.minWidth-v,v=p.minWidth,i.min[p.field]=!0):v>p.maxWidth&&(u+=p.maxWidth-v,v=p.maxWidth,i.max[p.field]=!0),o.all[p.field]={frozen:!1,computedWidth:v,flex:p.flex}}u<0?Object.keys(i.max).forEach(f=>{o.freeze(f)}):u>0?Object.keys(i.min).forEach(f=>{o.freeze(f)}):n.forEach(({field:f})=>{o.freeze(f)}),s()}return s(),o.all}const iS=(e,t)=>{const n={};let r=0,o=0;const s=[];e.orderedFields.forEach(l=>{const a=x({},e.lookup[l]);if(e.columnVisibilityModel[l]===!1)a.computedWidth=0;else{let u;a.flex&&a.flex>0?(r+=a.flex,u=0,s.push(a)):u=Rd(a.width||ai.width,a.minWidth||ai.minWidth,a.maxWidth||ai.maxWidth),o+=u,a.computedWidth=u}n[l]=a});const i=Math.max(t-o,0);if(r>0&&t>0){const l=x0e({initialFreeSpace:i,totalFlexUnits:r,flexColumns:s});Object.keys(l).forEach(a=>{n[a].computedWidth=l[a].computedWidth})}return x({},e,{lookup:n})},S0e=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const s={},i=[];for(let f=0;f<n.length;f+=1){const p=n[f];e.lookup[p]&&(s[p]=!0,i.push(p))}const l=i.length===0?e.orderedFields:[...i,...e.orderedFields.filter(f=>!s[f])],a=x({},e.lookup);for(let f=0;f<o.length;f+=1){const p=o[f],m=x({},a[p],{hasBeenResized:!0});Object.entries(r[p]).forEach(([v,y])=>{m[v]=y===-1?1/0:y}),a[p]=m}return x({},e,{orderedFields:l,lookup:a})};function XO(e,t){let n=e[yB];return t&&e[t]&&(n=e[t]),n}const _u=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,columnVisibilityModel:o=oi(e),keepOnlyColumnsToUpsert:s=!1})=>{var i,l,a;const u=!e.current.state.columns;let f;if(u)f={orderedFields:[],lookup:{},columnVisibilityModel:o};else{const y=vc(e.current.state);f={orderedFields:s?[]:[...y.orderedFields],lookup:x({},y.lookup),columnVisibilityModel:o}}let p={};s&&!u&&(p=Object.keys(f.lookup).reduce((y,g)=>x({},y,{[g]:!1}),{})),t.forEach(y=>{const{field:g}=y;p[g]=!0;let C=f.lookup[g];C==null?(C=x({},XO(r,y.type),{field:g,hasBeenResized:!1}),f.orderedFields.push(g)):s&&f.orderedFields.push(g),C&&C.type!==y.type&&(C=x({},XO(r,y.type),{field:g}));let b=C.hasBeenResized;wB.forEach(w=>{y[w]!==void 0&&(b=!0,y[w]===-1&&(y[w]=1/0))}),f.lookup[g]=x({},C,y,{hasBeenResized:b})}),s&&!u&&Object.keys(f.lookup).forEach(y=>{p[y]||delete f.lookup[y]});const m=e.current.unstable_applyPipeProcessors("hydrateColumns",f),v=S0e(m,n);return iS(v,(i=(l=(a=e.current).getRootDimensions)==null||(l=l.call(a))==null?void 0:l.viewportInnerSize.width)!=null?i:0)},ZO=e=>t=>x({},t,{columns:e});function lS({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let s=e;for(let i=n;i<r;i+=1)if(o[i]){const a=o[i].id,u=t.current.unstable_getCellColSpanInfo(a,e);u&&u.spannedByColSpan&&(s=u.leftVisibleCellIndex)}return s}function P0e({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:r,lastRowToRender:o,apiRef:s,visibleRows:i}){const l=Math.max(e-n,t);return lS({firstColumnToRender:l,apiRef:s,firstRowToRender:r,lastRowToRender:o,visibleRows:i})}function OE(e,t){const n=nf(e),r=Wh(e);return Math.floor(t*n)*((r!=null?r:0)+1)}const CB=h0e(),k0e=(e,t,n)=>{var r,o,s,i;const l=_u({apiRef:n,columnTypes:CB,columnsToUpsert:t.columns,initialState:(r=t.initialState)==null?void 0:r.columns,columnVisibilityModel:(o=(s=t.columnVisibilityModel)!=null?s:(i=t.initialState)==null||(i=i.columns)==null?void 0:i.columnVisibilityModel)!=null?o:{},keepOnlyColumnsToUpsert:!0});return x({},e,{columns:l})};function E0e(e,t){var n,r;const o=eo(e,"useGridColumns"),s=CB,i=c.useRef(t.columns),l=c.useRef(s);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:oi,changeEvent:"columnVisibilityModelChange"});const a=c.useCallback(_=>{o.debug("Updating columns state."),e.current.setState(ZO(_)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",_.orderedFields)},[o,e]),u=c.useCallback(_=>ef(e)[_],[e]),f=c.useCallback(()=>Ai(e),[e]),p=c.useCallback(()=>Ar(e),[e]),m=c.useCallback((_,T=!0)=>(T?Ar(e):Ai(e)).findIndex(B=>B.field===_),[e]),v=c.useCallback(_=>{const T=m(_);return $d(e)[T]},[e,m]),y=c.useCallback(_=>{oi(e)!==_&&(e.current.setState(F=>x({},F,{columns:_u({apiRef:e,columnTypes:s,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:_,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,s]),g=c.useCallback(_=>{const T=_u({apiRef:e,columnTypes:s,columnsToUpsert:_,initialState:void 0,keepOnlyColumnsToUpsert:!1});a(T)},[e,a,s]),C=c.useCallback((_,T)=>{var F;const B=oi(e),O=(F=B[_])!=null?F:!0;if(T!==O){const N=x({},B,{[_]:T});e.current.setColumnVisibilityModel(N)}},[e]),b=c.useCallback(_=>ml(e).findIndex(F=>F===_),[e]),w=c.useCallback((_,T)=>{const F=ml(e),B=b(_);if(B===T)return;o.debug(`Moving column ${_} to index ${T}`);const O=[...F],N=O.splice(B,1)[0];O.splice(T,0,N),a(x({},vc(e.current.state),{orderedFields:O}));const H={column:e.current.getColumn(_),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(_),oldIndex:B};e.current.publishEvent("columnIndexChange",H)},[e,o,a,b]),S=c.useCallback((_,T)=>{var F,B;o.debug(`Updating column ${_} width to ${T}`);const O=vc(e.current.state),N=O.lookup[_],H=x({},N,{width:T,hasBeenResized:!0});a(iS(x({},O,{lookup:x({},O.lookup,{[_]:H})}),(F=(B=e.current.getRootDimensions())==null?void 0:B.viewportInnerSize.width)!=null?F:0)),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(_),colDef:H,width:T})},[e,o,a]),k={getColumn:u,getAllColumns:f,getColumnIndex:m,getColumnPosition:v,getVisibleColumns:p,getColumnIndexRelativeToVisibleColumns:b,updateColumns:g,setColumnVisibilityModel:y,setColumnVisibility:C,setColumnWidth:S},M={setColumnIndex:w};At(e,k,"public"),At(e,M,t.signature===Li.DataGrid?"private":"public");const E=c.useCallback((_,T)=>{var F,B;const O={},N=oi(e);(!T.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((F=(B=t.initialState)==null||(B=B.columns)==null?void 0:B.columnVisibilityModel)!=null?F:{}).length>0||Object.keys(N).length>0)&&(O.columnVisibilityModel=N),O.orderedFields=ml(e);const K=Ai(e),Q={};return K.forEach(J=>{if(J.hasBeenResized){const Y={};wB.forEach(X=>{let ee=J[X];ee===1/0&&(ee=-1),Y[X]=ee}),Q[J.field]=Y}}),Object.keys(Q).length>0&&(O.dimensions=Q),x({},_,{columns:O})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),I=c.useCallback((_,T)=>{var F;const B=(F=T.stateToRestore.columns)==null?void 0:F.columnVisibilityModel,O=T.stateToRestore.columns;if(B==null&&O==null)return _;const N=_u({apiRef:e,columnTypes:s,columnsToUpsert:[],initialState:O,columnVisibilityModel:B,keepOnlyColumnsToUpsert:!1});return e.current.setState(ZO(N)),O!=null&&e.current.publishEvent("columnsChange",N.orderedFields),_},[e,s]),R=c.useCallback((_,T)=>{if(T===Ac.columns){var F;const B=t.slots.columnsPanel;return D.jsx(B,x({},(F=t.slotProps)==null?void 0:F.columnsPanel))}return _},[t.slots.columnsPanel,(r=t.slotProps)==null?void 0:r.columnsPanel]),A=c.useCallback(_=>t.disableColumnSelector?_:[..._,"columnMenuColumnsItem"],[t.disableColumnSelector]);mr(e,"columnMenu",A),mr(e,"exportState",E),mr(e,"restoreState",I),mr(e,"preferencePanel",R);const $=c.useRef(null);dt(e,"viewportInnerSizeChange",_=>{$.current!==_.width&&($.current=_.width,a(iS(vc(e.current.state),_.width)))});const V=c.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const _=_u({apiRef:e,columnTypes:s,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});a(_)},[e,o,a,s]);RE(e,"hydrateColumns",V);const j=c.useRef(!0);c.useEffect(()=>{if(j.current){j.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),i.current===t.columns&&l.current===s)return;const _=_u({apiRef:e,columnTypes:s,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});i.current=t.columns,l.current=s,a(_)},[o,e,a,t.columns,s]),c.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const I0e=.7,M0e=1.3,xB={compact:I0e,comfortable:M0e,standard:1},_0e=(e,t)=>x({},e,{density:{value:t.density,factor:xB[t.density]}}),T0e=(e,t)=>{const n=eo(e,"useDensity"),r=c.useCallback(s=>{n.debug(`Set grid density to ${s}`),e.current.setState(i=>{const l=CE(i),a={value:s,factor:xB[s]};return bc(l,a)?i:x({},i,{density:a})}),e.current.forceUpdate()},[n,e]);c.useEffect(()=>{e.current.setDensity(t.density)},[e,t.density]),At(e,{setDensity:r},"public")};function $0e(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),s=document.createElement("a");s.href=o,s.download=r,s.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI: exportAs not supported")}const SB=({apiRef:e,options:t})=>{const n=Ai(e);return t.fields?t.fields.reduce((o,s)=>{const i=n.find(l=>l.field===s);return i&&o.push(i),o},[]):(t.allColumns?n:Ar(e)).filter(o=>!o.disableExport)},R0e=({apiRef:e})=>{var t,n;const r=Hhe(e),o=ei(e),s=e.current.getSelectedRows(),i=r.filter(f=>o[f].type!=="footer"),l=tf(e),a=(l==null||(t=l.top)==null?void 0:t.map(f=>f.id))||[],u=(l==null||(n=l.bottom)==null?void 0:n.map(f=>f.id))||[];return i.unshift(...a),i.push(...u),s.size>0?i.filter(f=>s.has(f)):i},O0e=(e,t)=>{const n=eo(e,"useGridCsvExport"),r=t.unstable_ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,s=c.useCallback((u={})=>{var f,p,m;n.debug("Get data as CSV");const v=SB({apiRef:e,options:u}),g=((f=u.getRowsToExport)!=null?f:R0e)({apiRef:e});return g0e({columns:v,rowIds:g,delimiterCharacter:u.delimiter||",",includeHeaders:(p=u.includeHeaders)!=null?p:!0,includeColumnGroupsHeaders:(m=u.includeColumnGroupsHeaders)!=null?m:!0,ignoreValueFormatter:o,apiRef:e})},[n,e,o]),i=c.useCallback(u=>{n.debug("Export data as CSV");const f=s(u),p=new Blob([u!=null&&u.utf8WithBom?new Uint8Array([239,187,191]):"",f],{type:"text/csv"});$0e(p,"csv",u==null?void 0:u.fileName)},[n,s]);At(e,{getDataAsCsv:s,exportDataAsCsv:i},"public");const a=c.useCallback((u,f)=>{var p;return(p=f.csvOptions)!=null&&p.disableToolbarButton?u:[...u,{component:D.jsx(sbe,{options:f.csvOptions}),componentName:"csvExport"}]},[]);mr(e,"exportMenu",a)},D0e=(e,t)=>{var n,r;const o=x({},q5(t.autoPageSize),(n=t.paginationModel)!=null?n:(r=t.initialState)==null||(r=r.pagination)==null?void 0:r.paginationModel);return Y5(o.pageSize,t.signature),x({},e,{pagination:{paginationModel:o}})},Jg=(e,t,n)=>r=>{var o;let s=r.paginationModel;const i=(o=n==null?void 0:n.pageSize)!=null?o:s.pageSize,l=K5(e,i);n&&((n==null?void 0:n.page)!==s.page||(n==null?void 0:n.pageSize)!==s.pageSize)&&(s=n);const a=Jge(s.page,l);return a!==s.page&&(s=x({},s,{page:a})),Y5(s.pageSize,t),{paginationModel:s}},A0e=(e,t)=>{var n;const r=eo(e,"useGridPagination"),o=nt(e,p0),s=nt(e,nf),i=Math.floor(t.rowHeight*s);e.current.registerControlState({stateId:"pagination",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:Ps,changeEvent:"paginationModelChange"});const l=c.useCallback(g=>{const C=Ps(e);g!==C.page&&(r.debug(`Setting page to ${g}`),e.current.setPaginationModel({page:g,pageSize:C.pageSize}))},[e,r]),a=c.useCallback(g=>{const C=Ps(e);g!==C.pageSize&&(r.debug(`Setting page size to ${g}`),e.current.setPaginationModel({pageSize:g,page:C.page}))},[e,r]),u=c.useCallback(g=>{var C;const b=Ps(e);g!==b&&(r.debug("Setting 'paginationModel' to",g),e.current.updateControlState("pagination",Jg((C=t.rowCount)!=null?C:o,t.signature,g),"setPaginationModel"),e.current.forceUpdate())},[e,r,t.rowCount,t.signature,o]);At(e,{setPage:l,setPageSize:a,setPaginationModel:u},"public");const p=c.useCallback((g,C)=>{var b;const w=Ps(e);return!C.exportOnlyDirtyModels||t.paginationModel!=null||((b=t.initialState)==null||(b=b.pagination)==null?void 0:b.paginationModel)!=null||w.page!==0&&w.pageSize!==Zge(t.autoPageSize)?x({},g,{pagination:x({},g.pagination,{paginationModel:w})}):g},[e,t.paginationModel,(n=t.initialState)==null||(n=n.pagination)==null?void 0:n.paginationModel,t.autoPageSize]),m=c.useCallback((g,C)=>{var b,w,S;const k=(b=C.stateToRestore.pagination)!=null&&b.paginationModel?x({},q5(t.autoPageSize),(w=C.stateToRestore.pagination)==null?void 0:w.paginationModel):Ps(e);return e.current.updateControlState("pagination",Jg((S=t.rowCount)!=null?S:o,t.signature,k),"stateRestorePreProcessing"),g},[e,t.autoPageSize,t.rowCount,t.signature,o]);mr(e,"exportState",p),mr(e,"restoreState",m);const v=()=>{var g;const C=Ps(e);(g=e.current.virtualScrollerRef)!=null&&g.current&&e.current.scrollToIndexes({rowIndex:C.page*C.pageSize}),e.current.forceUpdate()},y=c.useCallback(()=>{const g=e.current.getRootDimensions();if(!t.autoPageSize||!g)return;const C=O5(e),b=Math.floor((g.viewportInnerSize.height-C.top-C.bottom)/i);e.current.setPageSize(b)},[e,t.autoPageSize,i]);dt(e,"viewportInnerSizeChange",y),dt(e,"paginationModelChange",v),c.useEffect(()=>{},[t.rowCount,t.paginationMode]),c.useEffect(()=>{var g;e.current.updateControlState("pagination",Jg((g=t.rowCount)!=null?g:o,t.signature,t.paginationModel))},[e,t.paginationModel,t.rowCount,t.paginationMode,o,t.signature]),c.useEffect(()=>{y()},[y])};function L0e(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function F0e(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const N0e=(e,t)=>{const n=eo(e,"useGridPrintExport"),r=c.useRef(null),o=c.useRef(null),s=c.useRef({}),i=c.useRef([]);c.useEffect(()=>{r.current=fn(e.current.rootElementRef.current)},[e]);const l=c.useCallback((y,g,C)=>new Promise(b=>{const w=SB({apiRef:e,options:{fields:y,allColumns:g}}).map(M=>M.field),S=Ai(e),k={};S.forEach(M=>{k[M.field]=w.includes(M.field)}),C&&(k[rf.field]=!0),e.current.setColumnVisibilityModel(k),b()}),[e]),a=c.useCallback(y=>{const C=y({apiRef:e}).map(b=>e.current.getRow(b));e.current.setRows(C)},[e]),u=c.useCallback((y,g)=>{var C,b;const w=x({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},g),S=y.contentDocument;if(!S)return;const k=gh(e.current.state),M=e.current.rootElementRef.current,E=M.cloneNode(!0),I=E.querySelector(`.${ue.main}`);I.style.overflow="visible",E.style.contain="size";const A=E.querySelector(`.${ue.columnHeaders}`).querySelector(`.${ue.columnHeadersInner}`);A.style.width="100%";let $=((C=M.querySelector(`.${ue.toolbarContainer}`))==null?void 0:C.offsetHeight)||0,L=((b=M.querySelector(`.${ue.footerContainer}`))==null?void 0:b.offsetHeight)||0;if(w.hideToolbar){var V;(V=E.querySelector(`.${ue.toolbarContainer}`))==null||V.remove(),$=0}if(w.hideFooter){var j;(j=E.querySelector(`.${ue.footerContainer}`))==null||j.remove(),L=0}const _=k.currentPageTotalHeight+OE(e,t.columnHeaderHeight)+$+L;if(E.style.height=`${_}px`,E.style.boxSizing="content-box",g!=null&&g.getRowsToExport){const O=E.querySelector(`.${ue.footerContainer}`);O.style.position="absolute",O.style.width="100%",O.style.top=`${_-L}px`}const T=document.createElement("div");T.appendChild(E),S.body.innerHTML=T.innerHTML;const F=typeof w.pageStyle=="function"?w.pageStyle():w.pageStyle;if(typeof F=="string"){const O=S.createElement("style");O.appendChild(S.createTextNode(F)),S.head.appendChild(O)}w.bodyClassName&&S.body.classList.add(...w.bodyClassName.split(" "));const B=[];if(w.copyStyles){const O=M.getRootNode(),H=(O.constructor.name==="ShadowRoot"?O:r.current).querySelectorAll("style, link[rel='stylesheet']");for(let K=0;K<H.length;K+=1){const Q=H[K];if(Q.tagName==="STYLE"){const J=S.createElement(Q.tagName),Y=Q.sheet;if(Y){let X="";for(let ee=0;ee<Y.cssRules.length;ee+=1)typeof Y.cssRules[ee].cssText=="string"&&(X+=`${Y.cssRules[ee].cssText}\r
354
+ `);J.appendChild(S.createTextNode(X)),S.head.appendChild(J)}}else if(Q.getAttribute("href")){const J=S.createElement(Q.tagName);for(let Y=0;Y<Q.attributes.length;Y+=1){const X=Q.attributes[Y];X&&J.setAttribute(X.nodeName,X.nodeValue||"")}B.push(new Promise(Y=>{J.addEventListener("load",()=>Y())})),S.head.appendChild(J)}}}Promise.all(B).then(()=>{y.contentWindow.print()})},[e,r,t.columnHeaderHeight]),f=c.useCallback(y=>{var g;r.current.body.removeChild(y),e.current.restoreState(o.current||{}),(g=o.current)!=null&&(g=g.columns)!=null&&g.columnVisibilityModel||e.current.setColumnVisibilityModel(s.current),e.current.unstable_setVirtualization(!0),e.current.setRows(i.current),o.current=null,s.current={},i.current=[]},[e]),m={exportDataAsPrint:c.useCallback(y=>ot(void 0,null,function*(){if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");if(o.current=e.current.exportState(),s.current=oi(e),i.current=e.current.getSortedRows(),t.pagination){const C=_5(e),b={page:0,pageSize:C};e.current.updateControlState("pagination",Jg(C,"DataGridPro",b)),e.current.forceUpdate()}yield l(y==null?void 0:y.fields,y==null?void 0:y.allColumns,y==null?void 0:y.includeCheckboxes),y!=null&&y.getRowsToExport&&a(y.getRowsToExport),e.current.unstable_setVirtualization(!1),yield L0e();const g=F0e(y==null?void 0:y.fileName);g.onload=()=>{u(g,y),g.contentWindow.matchMedia("print").addEventListener("change",b=>{b.matches===!1&&f(g)})},r.current.body.appendChild(g)}),[t,n,e,u,f,l,a])};At(e,m,"public");const v=c.useCallback((y,g)=>{var C;return(C=g.printOptions)!=null&&C.disableToolbarButton?y:[...y,{component:D.jsx(ibe,{options:g.printOptions}),componentName:"printExport"}]},[]);mr(e,"exportMenu",v)},B0e=(e,t,n)=>{var r,o,s;const i=(r=(o=t.filterModel)!=null?o:(s=t.initialState)==null||(s=s.filter)==null?void 0:s.filterModel)!=null?r:hh();return x({},e,{filter:{filterModel:dB(i,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},z0e=e=>e.filteredRowsLookup;function JO(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function V0e(){return a0(Object.values)}const j0e=(e,t)=>{var n,r;const o=eo(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:Or,changeEvent:"filterModelChange"});const s=c.useCallback(()=>{e.current.setState($=>{const L=Or($,e.current.instanceId),V=t.filterMode==="client"?Mbe(L,e,t.disableEval):null,j=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:V,filterModel:L!=null?L:hh()}),_=x({},$,{filter:x({},$.filter,j)}),T=JO(e,_);return x({},_,{visibleRowsLookup:T})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.disableEval]),i=c.useCallback(($,L)=>L==null||L.filterable===!1||t.disableColumnFilter?$:[...$,"columnMenuFilterItem"],[t.disableColumnFilter]),l=c.useCallback(()=>{s(),e.current.forceUpdate()},[e,s]),a=c.useCallback($=>{const L=Or(e),V=[...L.items],j=V.findIndex(_=>_.id===$.id);j===-1?V.push($):V[j]=$,e.current.setFilterModel(x({},L,{items:V}),"upsertFilterItem")},[e]),u=c.useCallback($=>{const L=Or(e),V=[...L.items];$.forEach(j=>{const _=$.findIndex(T=>T.id===j.id);_===-1?V.push(j):V[_]=j}),e.current.setFilterModel(x({},L,{items:$}),"upsertFilterItems")},[e]),f=c.useCallback($=>{const L=Or(e),V=L.items.filter(j=>j.id!==$.id);V.length!==L.items.length&&e.current.setFilterModel(x({},L,{items:V}),"deleteFilterItem")},[e]),p=c.useCallback(($,L,V)=>{if(o.debug("Displaying filter panel"),$){const j=Or(e),_=j.items.filter(O=>{var N;if(O.value!==void 0)return!(Array.isArray(O.value)&&O.value.length===0);const K=(N=e.current.getColumn(O.field).filterOperators)==null?void 0:N.find(J=>J.value===O.operator);return!(typeof(K==null?void 0:K.requiresFilterValue)=="undefined"?!0:K==null?void 0:K.requiresFilterValue)});let T;const F=_.find(O=>O.field===$),B=e.current.getColumn($);F?T=_:t.disableMultipleColumnsFiltering?T=[rS({field:$,operator:B.filterOperators[0].value},e)]:T=[..._,rS({field:$,operator:B.filterOperators[0].value},e)],e.current.setFilterModel(x({},j,{items:T}))}e.current.showPreferences(Ac.filters,L,V)},[e,o,t.disableMultipleColumnsFiltering]),m=c.useCallback(()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()},[e,o]),v=c.useCallback($=>{const L=Or(e);L.logicOperator!==$&&e.current.setFilterModel(x({},L,{logicOperator:$}),"changeLogicOperator")},[e]),y=c.useCallback($=>{const L=Or(e);bc(L.quickFilterValues,$)||e.current.setFilterModel(x({},L,{quickFilterValues:[...$]}))},[e]),g=c.useCallback(($,L)=>{Or(e)!==$&&(o.debug("Setting filter model"),e.current.updateControlState("filter",VO($,t.disableMultipleColumnsFiltering,e),L),e.current.unstable_applyFilters())},[e,o,t.disableMultipleColumnsFiltering]),C={setFilterLogicOperator:v,unstable_applyFilters:l,deleteFilterItem:f,upsertFilterItem:a,upsertFilterItems:u,setFilterModel:g,showFilterPanel:p,hideFilterPanel:m,setQuickFilterValues:y,ignoreDiacritics:t.ignoreDiacritics};At(e,C,"public");const b=c.useCallback(($,L)=>{var V;const j=Or(e);return!L.exportOnlyDirtyModels||t.filterModel!=null||((V=t.initialState)==null||(V=V.filter)==null?void 0:V.filterModel)!=null||!bc(j,hh())?x({},$,{filter:{filterModel:j}}):$},[e,t.filterModel,(n=t.initialState)==null||(n=n.filter)==null?void 0:n.filterModel]),w=c.useCallback(($,L)=>{var V;const j=(V=L.stateToRestore.filter)==null?void 0:V.filterModel;return j==null?$:(e.current.updateControlState("filter",VO(j,t.disableMultipleColumnsFiltering,e),"restoreState"),x({},$,{callbacks:[...$.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),S=c.useCallback(($,L)=>{if(L===Ac.filters){var V;const j=t.slots.filterPanel;return D.jsx(j,x({},(V=t.slotProps)==null?void 0:V.filterPanel))}return $},[t.slots.filterPanel,(r=t.slotProps)==null?void 0:r.filterPanel]),{getRowId:k}=t,M=mE(V0e),E=c.useCallback($=>{if(t.filterMode!=="client"||!$.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const L=aa(e),V={},{isRowMatchingFilters:j}=$,_={},T={passingFilterItems:null,passingQuickFilterValues:null},F=M.current(e.current.state.rows.dataRowIdToModelLookup);for(let N=0;N<F.length;N+=1){const H=F[N],K=k?k(H):H.id;j(H,void 0,T);const Q=Tbe([T.passingFilterItems],[T.passingQuickFilterValues],$.filterModel,e,_);V[K]=Q}const B="auto-generated-group-footer-root";return L[B]&&(V[B]=!0),{filteredRowsLookup:V,filteredDescendantCountLookup:{}}},[e,t.filterMode,k,M]);mr(e,"columnMenu",i),mr(e,"exportState",b),mr(e,"restoreState",w),mr(e,"preferencePanel",S),py(e,Lc,"filtering",E),py(e,Lc,"visibleRowsLookupCreation",z0e);const I=c.useCallback(()=>{o.debug("onColUpdated - GridColumns changed, applying filters");const $=Or(e),L=_he(e),V=$.items.filter(j=>j.field&&L[j.field]);V.length<$.items.length&&e.current.setFilterModel(x({},$,{items:V}))},[e,o]),R=c.useCallback($=>{$==="filtering"&&e.current.unstable_applyFilters()},[e]),A=c.useCallback(()=>{e.current.setState($=>x({},$,{visibleRowsLookup:JO(e,$)})),e.current.forceUpdate()},[e]);dt(e,"rowsSet",s),dt(e,"columnsChange",I),dt(e,"activeStrategyProcessorChange",R),dt(e,"rowExpansionChange",A),dt(e,"columnVisibilityModelChange",()=>{const $=Or(e);$.quickFilterValues&&$.quickFilterExcludeHiddenColumns&&e.current.unstable_applyFilters()}),Gh(()=>{e.current.unstable_applyFilters()}),Nt(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,o,t.filterModel])},H0e=e=>x({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),U0e=(e,t)=>{const n=eo(e,"useGridFocus"),r=c.useRef(null),o=c.useCallback((I,R)=>{I&&e.current.getRow(I.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(I.id,I.field),R)},[e]),s=c.useCallback((I,R)=>{const A=jo(e);(A==null?void 0:A.id)===I&&(A==null?void 0:A.field)===R||(e.current.setState($=>(n.debug(`Focusing on cell with id=${I} and field=${R}`),x({},$,{tabIndex:{cell:{id:I,field:R},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:I,field:R},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(I)&&(A&&o(A,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(I,R))))},[e,n,o]),i=c.useCallback((I,R={})=>{const A=jo(e);o(A,R),e.current.setState($=>(n.debug(`Focusing on column header with colIndex=${I}`),x({},$,{tabIndex:{columnHeader:{field:I},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:I},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),l=c.useCallback((I,R={})=>{const A=jo(e);o(A,R),e.current.setState($=>(n.debug(`Focusing on column header filter with colIndex=${I}`),x({},$,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:I},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:I},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),a=c.useCallback((I,R,A={})=>{const $=jo(e);$&&e.current.publishEvent("cellFocusOut",e.current.getCellParams($.id,$.field),A),e.current.setState(L=>x({},L,{tabIndex:{columnGroupHeader:{field:I,depth:R},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:I,depth:R},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),u=c.useCallback(()=>oy(e),[e]),f=c.useCallback((I,R,A)=>{let $=e.current.getColumnIndex(R);const L=Ar(e),V=dy(e,{pagination:t.pagination,paginationMode:t.paginationMode}),j=tf(e),_=[].concat(j.top||[],V.rows,j.bottom||[]);let T=_.findIndex(N=>N.id===I);A==="right"?$+=1:A==="left"?$-=1:T+=1,$>=L.length?(T+=1,T<_.length&&($=0)):$<0&&(T-=1,T>=0&&($=L.length-1)),T=Rd(T,0,_.length-1);const F=_[T];if(!F)return;const B=e.current.unstable_getCellColSpanInfo(F.id,$);B&&B.spannedByColSpan&&(A==="left"||A==="below"?$=B.leftVisibleCellIndex:A==="right"&&($=B.rightVisibleCellIndex)),$=Rd($,0,L.length-1);const O=L[$];e.current.setCellFocus(F.id,O.field)},[e,t.pagination,t.paginationMode]),p=c.useCallback(({id:I,field:R})=>{e.current.setCellFocus(I,R)},[e]),m=c.useCallback((I,R)=>{R.key==="Enter"||R.key==="Tab"||R.key==="Shift"||cy(R.key)||e.current.setCellFocus(I.id,I.field)},[e]),v=c.useCallback(({field:I},R)=>{R.target===R.currentTarget&&e.current.setColumnHeaderFocus(I,R)},[e]),y=c.useCallback(({fields:I,depth:R},A)=>{if(A.target!==A.currentTarget)return;const $=oy(e);$!==null&&$.depth===R&&I.includes($.field)||e.current.setColumnGroupHeaderFocus(I[0],R,A)},[e]),g=c.useCallback((I,R)=>{var A;(A=R.relatedTarget)!=null&&A.className.includes(ue.columnHeader)||(n.debug("Clearing focus"),e.current.setState($=>x({},$,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),C=c.useCallback(I=>{r.current=I},[]),b=c.useCallback(I=>{const R=r.current;r.current=null;const A=jo(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:I,cell:R}))return;if(!A){R&&e.current.setCellFocus(R.id,R.field);return}if((R==null?void 0:R.id)===A.id&&(R==null?void 0:R.field)===A.field)return;const L=e.current.getCellElement(A.id,A.field);L!=null&&L.contains(I.target)||(R?e.current.setCellFocus(R.id,R.field):(e.current.setState(V=>x({},V,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),o(A,I)))},[e,o]),w=c.useCallback(I=>{if(I.cellMode==="view")return;const R=jo(e);((R==null?void 0:R.id)!==I.id||(R==null?void 0:R.field)!==I.field)&&e.current.setCellFocus(I.id,I.field)},[e]),S=c.useCallback(()=>{const I=jo(e);I&&!e.current.getRow(I.id)&&e.current.setState(R=>x({},R,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[e]),k=Ye(()=>{const I=jo(e);if(!I)return;const R=dy(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(R.rows.find(L=>L.id===I.id))return;const $=Ar(e);e.current.setState(L=>x({},L,{tabIndex:{cell:{id:R.rows[0].id,field:$[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),M={setCellFocus:s,setColumnHeaderFocus:i,setColumnHeaderFilterFocus:l},E={moveFocusToRelativeCell:f,setColumnGroupHeaderFocus:a,getColumnGroupHeaderFocus:u};At(e,M,"public"),At(e,E,"private"),c.useEffect(()=>{const I=fn(e.current.rootElementRef.current);return I.addEventListener("mouseup",b),()=>{I.removeEventListener("mouseup",b)}},[e,b]),dt(e,"columnHeaderBlur",g),dt(e,"cellDoubleClick",p),dt(e,"cellMouseDown",C),dt(e,"cellKeyDown",m),dt(e,"cellModeChange",w),dt(e,"columnHeaderFocus",v),dt(e,"columnGroupHeaderFocus",y),dt(e,"rowsSet",S),dt(e,"paginationModelChange",k)};function W0e(e,t){const n=tf(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const tC=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(e<n)return e+1}else if(r==="ltr"&&e>t)return e-1;return null},nC=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(e>t)return e-1}else if(r==="ltr"&&e<n)return e+1;return null},G0e=(e,t)=>{const n=eo(e,"useGridKeyboardNavigation"),r=Uc(e,t).rows,o=yn(),s=c.useMemo(()=>W0e(e,r),[e,r]),i=t.signature!=="DataGrid"&&t.unstable_headerFilters,l=c.useCallback((b,w,S="left")=>{const k=za(e),M=e.current.unstable_getCellColSpanInfo(w,b);M&&M.spannedByColSpan&&(S==="left"?b=M.leftVisibleCellIndex:S==="right"&&(b=M.rightVisibleCellIndex));const E=k.findIndex(R=>R.id===w);n.debug(`Navigating to cell row ${E}, col ${b}`),e.current.scrollToIndexes({colIndex:b,rowIndex:E});const I=e.current.getVisibleColumns()[b].field;e.current.setCellFocus(w,I)},[e,n]),a=c.useCallback((b,w)=>{n.debug(`Navigating to header col ${b}`),e.current.scrollToIndexes({colIndex:b});const S=e.current.getVisibleColumns()[b].field;e.current.setColumnHeaderFocus(S,w)},[e,n]),u=c.useCallback((b,w)=>{n.debug(`Navigating to header filter col ${b}`),e.current.scrollToIndexes({colIndex:b});const S=e.current.getVisibleColumns()[b].field;e.current.setColumnHeaderFilterFocus(S,w)},[e,n]),f=c.useCallback((b,w,S)=>{n.debug(`Navigating to header col ${b}`),e.current.scrollToIndexes({colIndex:b});const{field:k}=e.current.getVisibleColumns()[b];e.current.setColumnGroupHeaderFocus(k,w,S)},[e,n]),p=c.useCallback(b=>{var w;return(w=s[b])==null?void 0:w.id},[s]),m=c.useCallback((b,w)=>{const S=w.currentTarget.querySelector(`.${ue.columnHeaderTitleContainerContent}`);if(!!S&&S.contains(w.target)&&b.field!==rf.field||!e.current.getRootDimensions())return;const E=e.current.getViewportPageSize(),I=b.field?e.current.getColumnIndex(b.field):0,R=s.length>0?0:null,A=s.length-1,$=0,L=Ar(e).length-1,V=Wh(e);let j=!0;switch(w.key){case"ArrowDown":{R!==null&&(i?u(I,w):l(I,p(R)));break}case"ArrowRight":{const _=nC({currentColIndex:I,firstColIndex:$,lastColIndex:L,direction:o.direction});_!==null&&a(_,w);break}case"ArrowLeft":{const _=tC({currentColIndex:I,firstColIndex:$,lastColIndex:L,direction:o.direction});_!==null&&a(_,w);break}case"ArrowUp":{V>0&&f(I,V-1,w);break}case"PageDown":{R!==null&&A!==null&&l(I,p(Math.min(R+E,A)));break}case"Home":{a($,w);break}case"End":{a(L,w);break}case"Enter":{(w.ctrlKey||w.metaKey)&&e.current.toggleColumnMenu(b.field);break}case" ":break;default:j=!1}j&&w.preventDefault()},[e,s.length,i,u,l,p,o.direction,a,f]),v=c.useCallback((b,w)=>{if(!e.current.getRootDimensions())return;const k=fve(e)===b.field,M=pve(e)===b.field;if(k||M||!cy(w.key))return;const E=e.current.getViewportPageSize(),I=b.field?e.current.getColumnIndex(b.field):0,R=0,A=s.length-1,$=0,L=Ar(e).length-1;let V=!0;switch(w.key){case"ArrowDown":{const j=p(R);j!=null&&l(I,j);break}case"ArrowRight":{const j=nC({currentColIndex:I,firstColIndex:$,lastColIndex:L,direction:o.direction});j!==null&&u(j,w);break}case"ArrowLeft":{const j=tC({currentColIndex:I,firstColIndex:$,lastColIndex:L,direction:o.direction});j!==null?u(j,w):e.current.setColumnHeaderFilterFocus(b.field,w);break}case"ArrowUp":{a(I,w);break}case"PageDown":{A!==null&&l(I,p(Math.min(R+E,A)));break}case"Home":{u($,w);break}case"End":{u(L,w);break}case" ":break;default:V=!1}V&&w.preventDefault()},[e,s.length,u,o.direction,a,l,p]),y=c.useCallback((b,w)=>{if(!e.current.getRootDimensions())return;const k=oy(e);if(k===null)return;const{field:M,depth:E}=k,{fields:I,depth:R,maxDepth:A}=b,$=e.current.getViewportPageSize(),L=e.current.getColumnIndex(M),V=M?e.current.getColumnIndex(M):0,j=0,_=s.length-1,T=0,F=Ar(e).length-1;let B=!0;switch(w.key){case"ArrowDown":{R===A-1?a(L,w):f(L,E+1,w);break}case"ArrowUp":{R>0&&f(L,E-1,w);break}case"ArrowRight":{const O=I.length-I.indexOf(M)-1;L+O+1<=F&&f(L+O+1,E,w);break}case"ArrowLeft":{const O=I.indexOf(M);L-O-1>=T&&f(L-O-1,E,w);break}case"PageDown":{_!==null&&l(V,p(Math.min(j+$,_)));break}case"Home":{f(T,E,w);break}case"End":{f(F,E,w);break}case" ":break;default:B=!1}B&&w.preventDefault()},[e,s.length,a,f,l,p]),g=c.useCallback((b,w)=>{if(!w.currentTarget.contains(w.target))return;const S=e.current.getCellParams(b.id,b.field);if(S.cellMode===un.Edit||!cy(w.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:w,cell:S}))return;const M=e.current.getRootDimensions();if(s.length===0||!M)return;const E=o.direction,I=e.current.getViewportPageSize(),R=b.field?e.current.getColumnIndex(b.field):0,A=s.findIndex(T=>T.id===b.id),$=0,L=s.length-1,V=0,j=Ar(e).length-1;let _=!0;switch(w.key){case"ArrowDown":{A<L&&l(R,p(A+1));break}case"ArrowUp":{A>$?l(R,p(A-1)):i?u(R,w):a(R,w);break}case"ArrowRight":{const T=nC({currentColIndex:R,firstColIndex:V,lastColIndex:j,direction:E});T!==null&&l(T,p(A),E==="rtl"?"left":"right");break}case"ArrowLeft":{const T=tC({currentColIndex:R,firstColIndex:V,lastColIndex:j,direction:E});T!==null&&l(T,p(A),E==="rtl"?"right":"left");break}case"Tab":{w.shiftKey&&R>V?l(R-1,p(A),"left"):!w.shiftKey&&R<j&&l(R+1,p(A),"right");break}case" ":{if(b.field===TE)break;const F=b.colDef;if(F&&F.type==="treeDataGroup")break;!w.shiftKey&&A<L&&l(R,p(Math.min(A+I,L)));break}case"PageDown":{A<L&&l(R,p(Math.min(A+I,L)));break}case"PageUp":{const T=Math.max(A-I,$);T!==A&&T>=$?l(R,p(T)):a(R,w);break}case"Home":{w.ctrlKey||w.metaKey||w.shiftKey?l(V,p($)):l(V,p(A));break}case"End":{w.ctrlKey||w.metaKey||w.shiftKey?l(j,p(L)):l(j,p(A));break}default:_=!1}_&&w.preventDefault()},[e,s,o.direction,l,p,i,u,a]),C=c.useCallback((b,{event:w})=>w.key===" "?!1:b,[]);mr(e,"canStartEditing",C),dt(e,"columnHeaderKeyDown",m),dt(e,"headerFilterKeyDown",v),dt(e,"columnGroupHeaderKeyDown",y),dt(e,"cellKeyDown",g)},K0e=(e,t)=>{var n,r;return x({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},q0e=(e,t)=>{var n;const r=eo(e,"useGridPreferencesPanel"),o=c.useRef(),s=c.useRef(),i=c.useCallback(()=>{r.debug("Hiding Preferences Panel");const m=mh(e.current.state);m.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:m.openedPanelValue}),e.current.setState(v=>x({},v,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,r]),l=c.useCallback(()=>{s.current=setTimeout(()=>clearTimeout(o.current),0)},[]),a=c.useCallback(()=>{o.current=setTimeout(i,100)},[i]),u=c.useCallback((m,v,y)=>{r.debug("Opening Preferences Panel"),l(),e.current.setState(g=>x({},g,{preferencePanel:x({},g.preferencePanel,{open:!0,openedPanelValue:m,panelId:v,labelId:y})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:m}),e.current.forceUpdate()},[r,l,e]);At(e,{showPreferences:u,hidePreferences:a},"public");const f=c.useCallback((m,v)=>{var y;const g=mh(e.current.state);return!v.exportOnlyDirtyModels||((y=t.initialState)==null?void 0:y.preferencePanel)!=null||g.open?x({},m,{preferencePanel:g}):m},[e,(n=t.initialState)==null?void 0:n.preferencePanel]),p=c.useCallback((m,v)=>{const y=v.stateToRestore.preferencePanel;return y!=null&&e.current.setState(g=>x({},g,{preferencePanel:y})),m},[e]);mr(e,"exportState",f),mr(e,"restoreState",p),c.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(s.current)},[])},Y0e=["id","field"],Q0e=["id","field"],X0e=Gi(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),Z0e=(e,t)=>{const[n,r]=c.useState({}),o=c.useRef(n),s=c.useRef({}),{processRowUpdate:i,onProcessRowUpdateError:l,cellModesModel:a,onCellModesModelChange:u}=t,f=_=>(...T)=>{t.editMode===ji.Cell&&_(...T)},p=c.useCallback((_,T)=>{const F=e.current.getCellParams(_,T);if(!e.current.isCellEditable(F))throw new Error(`MUI: The cell with id=${_} and field=${T} is not editable.`)},[e]),m=c.useCallback((_,T,F)=>{if(e.current.getCellMode(_,T)!==F)throw new Error(`MUI: The cell with id=${_} and field=${T} is not in ${F} mode.`)},[e]),v=c.useCallback((_,T)=>{if(!_.isEditable||_.cellMode===un.Edit)return;const F=x({},_,{reason:Gl.cellDoubleClick});e.current.publishEvent("cellEditStart",F,T)},[e]),y=c.useCallback((_,T)=>{if(_.cellMode===un.View||e.current.getCellMode(_.id,_.field)===un.View)return;const F=x({},_,{reason:Xs.cellFocusOut});e.current.publishEvent("cellEditStop",F,T)},[e]),g=c.useCallback((_,T)=>{if(_.cellMode===un.Edit){if(T.which===229)return;let F;if(T.key==="Escape"?F=Xs.escapeKeyDown:T.key==="Enter"?F=Xs.enterKeyDown:T.key==="Tab"&&(F=T.shiftKey?Xs.shiftTabKeyDown:Xs.tabKeyDown,T.preventDefault()),F){const B=x({},_,{reason:F});e.current.publishEvent("cellEditStop",B,T)}}else if(_.isEditable){let F;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:T,cellParams:_,editMode:"cell"}))return;if(z5(T)||(T.ctrlKey||T.metaKey)&&T.key==="v"?F=Gl.printableKeyDown:T.key==="Enter"?F=Gl.enterKeyDown:(T.key==="Delete"||T.key==="Backspace")&&(F=Gl.deleteKeyDown),F){const O=x({},_,{reason:F,key:T.key});e.current.publishEvent("cellEditStart",O,T)}}},[e]),C=c.useCallback(_=>{const{id:T,field:F,reason:B,key:O,colDef:N}=_,H={id:T,field:F};if(B===Gl.printableKeyDown)if(c.version.startsWith("17"))H.deleteValue=!0;else{const K=N.valueParser?N.valueParser(O):O;H.initialValue=K}else B===Gl.deleteKeyDown&&(H.deleteValue=!0);e.current.startCellEditMode(H)},[e]),b=c.useCallback(_=>{const{id:T,field:F,reason:B}=_;e.current.runPendingEditCellValueMutation(T,F);let O;B===Xs.enterKeyDown?O="below":B===Xs.tabKeyDown?O="right":B===Xs.shiftTabKeyDown&&(O="left");const N=B==="escapeKeyDown";e.current.stopCellEditMode({id:T,field:F,ignoreModifications:N,cellToFocusAfter:O})},[e]);dt(e,"cellDoubleClick",f(v)),dt(e,"cellFocusOut",f(y)),dt(e,"cellKeyDown",f(g)),dt(e,"cellEditStart",f(C)),dt(e,"cellEditStop",f(b)),In(e,"cellEditStart",t.onCellEditStart),In(e,"cellEditStop",t.onCellEditStop);const w=c.useCallback((_,T)=>{const F=lo(e.current.state);return F[_]&&F[_][T]?un.Edit:un.View},[e]),S=Ye(_=>{const T=_!==t.cellModesModel;u&&T&&u(_,{}),!(t.cellModesModel&&T)&&(r(_),o.current=_,e.current.publishEvent("cellModesModelChange",_))}),k=c.useCallback((_,T,F)=>{const B=x({},o.current);if(F!==null)B[_]=x({},B[_],{[T]:x({},F)});else{const O=B[_],N=le(O,[T].map(yh));B[_]=N,Object.keys(B[_]).length===0&&delete B[_]}S(B)},[S]),M=c.useCallback((_,T,F)=>{e.current.setState(B=>{const O=x({},B.editRows);return F!==null?O[_]=x({},O[_],{[T]:x({},F)}):(delete O[_][T],Object.keys(O[_]).length===0&&delete O[_]),x({},B,{editRows:O})}),e.current.forceUpdate()},[e]),E=c.useCallback(_=>{const{id:T,field:F}=_,B=le(_,Y0e);p(T,F),m(T,F,un.View),k(T,F,x({mode:un.Edit},B))},[p,m,k]),I=Ye(_=>{const{id:T,field:F,deleteValue:B,initialValue:O}=_;let N=e.current.getCellValue(T,F),H=!1;(B||O)&&(N=B?"":O,H=!0),M(T,F,{value:N,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:H}),e.current.setCellFocus(T,F)}),R=c.useCallback(_=>{const{id:T,field:F}=_,B=le(_,Q0e);m(T,F,un.Edit),k(T,F,x({mode:un.View},B))},[m,k]),A=Ye(_=>ot(void 0,null,function*(){const{id:T,field:F,ignoreModifications:B,cellToFocusAfter:O="none"}=_;m(T,F,un.Edit),e.current.runPendingEditCellValueMutation(T,F);const N=()=>{M(T,F,null),k(T,F,null),O!=="none"&&e.current.moveFocusToRelativeCell(T,F,O)};if(B){N();return}const H=lo(e.current.state),{error:K,isProcessingProps:Q}=H[T][F];if(K||Q){s.current[T][F].mode=un.Edit,k(T,F,{mode:un.Edit});return}const J=e.current.getRowWithUpdatedValuesFromCellEditing(T,F);if(i){const Y=X=>{s.current[T][F].mode=un.Edit,k(T,F,{mode:un.Edit}),l?l(X):X0e()};try{const X=e.current.getRow(T);Promise.resolve(i(J,X)).then(ee=>{e.current.updateRows([ee]),N()}).catch(Y)}catch(X){Y(X)}}else e.current.updateRows([J]),N()})),$=c.useCallback(_=>ot(void 0,null,function*(){var T;const{id:F,field:B,value:O,debounceMs:N,unstable_skipValueParser:H}=_;p(F,B),m(F,B,un.Edit);const K=e.current.getColumn(B),Q=e.current.getRow(F);let J=O;K.valueParser&&!H&&(J=K.valueParser(O,e.current.getCellParams(F,B)));let Y=lo(e.current.state),X=x({},Y[F][B],{value:J,changeReason:N?"debouncedSetEditCellValue":"setEditCellValue"});if(K.preProcessEditCellProps){const ee=O!==Y[F][B].value;X=x({},X,{isProcessingProps:!0}),M(F,B,X),X=yield Promise.resolve(K.preProcessEditCellProps({id:F,row:Q,props:X,hasChanged:ee}))}return e.current.getCellMode(F,B)===un.View?!1:(Y=lo(e.current.state),X=x({},X,{isProcessingProps:!1}),X.value=K.preProcessEditCellProps?Y[F][B].value:J,M(F,B,X),Y=lo(e.current.state),!((T=Y[F])!=null&&(T=T[B])!=null&&T.error))}),[e,p,m,M]),L=c.useCallback((_,T)=>{const F=e.current.getColumn(T),B=lo(e.current.state),O=e.current.getRow(_);if(!B[_]||!B[_][T])return e.current.getRow(_);const{value:N}=B[_][T];return F.valueSetter?F.valueSetter({value:N,row:O}):x({},O,{[T]:N})},[e]),V={getCellMode:w,startCellEditMode:E,stopCellEditMode:R},j={setCellEditingEditCellValue:$,getRowWithUpdatedValuesFromCellEditing:L};At(e,V,"public"),At(e,j,"private"),c.useEffect(()=>{a&&S(a)},[a,S]),c.useEffect(()=>{const _=ry(e),T=s.current;s.current=G5(n),Object.entries(n).forEach(([F,B])=>{Object.entries(B).forEach(([O,N])=>{var H,K;const Q=((H=T[F])==null||(H=H[O])==null?void 0:H.mode)||un.View,J=(K=_[F])!=null?K:F;N.mode===un.Edit&&Q===un.View?I(x({id:J,field:O},N)):N.mode===un.View&&Q===un.Edit&&A(x({id:J,field:O},N))})})},[e,n,I,A])},J0e=["id"],e1e=["id"],t1e=Gi(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),n1e=(e,t)=>{const[n,r]=c.useState({}),o=c.useRef(n),s=c.useRef({}),i=c.useRef(null),l=c.useRef(null),{processRowUpdate:a,onProcessRowUpdateError:u,rowModesModel:f,onRowModesModelChange:p}=t,m=O=>(...N)=>{t.editMode===ji.Row&&O(...N)},v=c.useCallback((O,N)=>{const H=e.current.getCellParams(O,N);if(!e.current.isCellEditable(H))throw new Error(`MUI: The cell with id=${O} and field=${N} is not editable.`)},[e]),y=c.useCallback((O,N)=>{if(e.current.getRowMode(O)!==N)throw new Error(`MUI: The row with id=${O} is not in ${N} mode.`)},[e]),g=c.useCallback((O,N)=>{if(!O.isEditable||e.current.getRowMode(O.id)===Cn.Edit)return;const H=e.current.getRowParams(O.id),K=x({},H,{field:O.field,reason:Kl.cellDoubleClick});e.current.publishEvent("rowEditStart",K,N)},[e]),C=c.useCallback(O=>{l.current=O},[]),b=c.useCallback((O,N)=>{O.isEditable&&e.current.getRowMode(O.id)!==Cn.View&&(l.current=null,i.current=setTimeout(()=>{var H;if(i.current=null,((H=l.current)==null?void 0:H.id)!==O.id){if(!e.current.getRow(O.id)||e.current.getRowMode(O.id)===Cn.View)return;const K=e.current.getRowParams(O.id),Q=x({},K,{field:O.field,reason:rl.rowFocusOut});e.current.publishEvent("rowEditStop",Q,N)}}))},[e]);c.useEffect(()=>()=>{clearTimeout(i.current)},[]);const w=c.useCallback((O,N)=>{if(O.cellMode===Cn.Edit){if(N.which===229)return;let H;if(N.key==="Escape")H=rl.escapeKeyDown;else if(N.key==="Enter")H=rl.enterKeyDown;else if(N.key==="Tab"){const K=c0(e).filter(Q=>e.current.getColumn(Q).type===v0?!0:e.current.isCellEditable(e.current.getCellParams(O.id,Q)));if(N.shiftKey?O.field===K[0]&&(H=rl.shiftTabKeyDown):O.field===K[K.length-1]&&(H=rl.tabKeyDown),N.preventDefault(),!H){const Q=K.findIndex(Y=>Y===O.field),J=K[N.shiftKey?Q-1:Q+1];e.current.setCellFocus(O.id,J)}}if(H){const K=x({},e.current.getRowParams(O.id),{reason:H,field:O.field});e.current.publishEvent("rowEditStop",K,N)}}else if(O.isEditable){let H;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:N,cellParams:O,editMode:"row"}))return;if(z5(N)||(N.ctrlKey||N.metaKey)&&N.key==="v"?H=Kl.printableKeyDown:N.key==="Enter"?H=Kl.enterKeyDown:(N.key==="Delete"||N.key==="Backspace")&&(H=Kl.deleteKeyDown),H){const Q=e.current.getRowParams(O.id),J=x({},Q,{field:O.field,key:N.key,reason:H});e.current.publishEvent("rowEditStart",J,N)}}},[e]),S=c.useCallback(O=>{const{id:N,field:H,reason:K,key:Q,columns:J}=O,Y={id:N,fieldToFocus:H};if(K===Kl.printableKeyDown)if(c.version.startsWith("17"))Y.deleteValue=!!H;else{const X=J.find(ee=>ee.field===H);Y.initialValue=X.valueParser?X.valueParser(Q):Q}else K===Kl.deleteKeyDown&&(Y.deleteValue=!!H);e.current.startRowEditMode(Y)},[e]),k=c.useCallback(O=>{const{id:N,reason:H,field:K}=O;e.current.runPendingEditCellValueMutation(N);let Q;H===rl.enterKeyDown?Q="below":H===rl.tabKeyDown?Q="right":H===rl.shiftTabKeyDown&&(Q="left");const J=H==="escapeKeyDown";e.current.stopRowEditMode({id:N,ignoreModifications:J,field:K,cellToFocusAfter:Q})},[e]);dt(e,"cellDoubleClick",m(g)),dt(e,"cellFocusIn",m(C)),dt(e,"cellFocusOut",m(b)),dt(e,"cellKeyDown",m(w)),dt(e,"rowEditStart",m(S)),dt(e,"rowEditStop",m(k)),In(e,"rowEditStart",t.onRowEditStart),In(e,"rowEditStop",t.onRowEditStop);const M=c.useCallback(O=>{if(t.editMode===ji.Cell)return Cn.View;const N=lo(e.current.state);return N[O]&&Object.keys(N[O]).length>0?Cn.Edit:Cn.View},[e,t.editMode]),E=Ye(O=>{const N=O!==t.rowModesModel;p&&N&&p(O,{}),!(t.rowModesModel&&N)&&(r(O),o.current=O,e.current.publishEvent("rowModesModelChange",O))}),I=c.useCallback((O,N)=>{const H=x({},o.current);N!==null?H[O]=x({},N):delete H[O],E(H)},[E]),R=c.useCallback((O,N)=>{e.current.setState(H=>{const K=x({},H.editRows);return N!==null?K[O]=N:delete K[O],x({},H,{editRows:K})}),e.current.forceUpdate()},[e]),A=c.useCallback((O,N,H)=>{e.current.setState(K=>{const Q=x({},K.editRows);return H!==null?Q[O]=x({},Q[O],{[N]:x({},H)}):(delete Q[O][N],Object.keys(Q[O]).length===0&&delete Q[O]),x({},K,{editRows:Q})}),e.current.forceUpdate()},[e]),$=c.useCallback(O=>{const{id:N}=O,H=le(O,J0e);y(N,Cn.View),I(N,x({mode:Cn.Edit},H))},[y,I]),L=Ye(O=>{const{id:N,fieldToFocus:H,deleteValue:K,initialValue:Q}=O,Y=ml(e).reduce((X,ee)=>{if(!e.current.getCellParams(N,ee).isEditable)return X;let Z=e.current.getCellValue(N,ee),he=!1;return H===ee&&(K||Q)&&(Z=K?"":Q,he=!0),X[ee]={value:Z,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:he},X},{});R(N,Y),H&&e.current.setCellFocus(N,H)}),V=c.useCallback(O=>{const{id:N}=O,H=le(O,e1e);y(N,Cn.Edit),I(N,x({mode:Cn.View},H))},[y,I]),j=Ye(O=>{const{id:N,ignoreModifications:H,field:K,cellToFocusAfter:Q="none"}=O;e.current.runPendingEditCellValueMutation(N);const J=()=>{Q!=="none"&&K&&e.current.moveFocusToRelativeCell(N,K,Q),R(N,null),I(N,null)};if(H){J();return}const Y=lo(e.current.state),X=e.current.getRow(N);if(Object.values(Y[N]).some(he=>he.isProcessingProps)){s.current[N].mode=Cn.Edit;return}if(Object.values(Y[N]).some(he=>he.error)){s.current[N].mode=Cn.Edit,I(N,{mode:Cn.Edit});return}const Z=e.current.getRowWithUpdatedValuesFromRowEditing(N);if(a){const he=ne=>{s.current[N].mode=Cn.Edit,I(N,{mode:Cn.Edit}),u?u(ne):t1e()};try{Promise.resolve(a(Z,X)).then(ne=>{e.current.updateRows([ne]),J()}).catch(he)}catch(ne){he(ne)}}else e.current.updateRows([Z]),J()}),_=c.useCallback(O=>{const{id:N,field:H,value:K,debounceMs:Q,unstable_skipValueParser:J}=O;v(N,H);const Y=e.current.getColumn(H),X=e.current.getRow(N);let ee=K;Y.valueParser&&!J&&(ee=Y.valueParser(K,e.current.getCellParams(N,H)));let se=lo(e.current.state),Z=x({},se[N][H],{value:ee,changeReason:Q?"debouncedSetEditCellValue":"setEditCellValue"});return Y.preProcessEditCellProps||A(N,H,Z),new Promise(he=>{const ne=[];if(Y.preProcessEditCellProps){const re=Z.value!==se[N][H].value;Z=x({},Z,{isProcessingProps:!0}),A(N,H,Z);const me=se[N],ce=le(me,[H].map(yh)),Se=Promise.resolve(Y.preProcessEditCellProps({id:N,row:X,props:Z,hasChanged:re,otherFieldsProps:ce})).then(Ee=>{if(e.current.getRowMode(N)===Cn.View){he(!1);return}se=lo(e.current.state),Ee=x({},Ee,{isProcessingProps:!1}),Ee.value=Y.preProcessEditCellProps?se[N][H].value:ee,A(N,H,Ee)});ne.push(Se)}Object.entries(se[N]).forEach(([re,me])=>{if(re===H)return;const ce=e.current.getColumn(re);if(!ce.preProcessEditCellProps)return;me=x({},me,{isProcessingProps:!0}),A(N,re,me),se=lo(e.current.state);const Se=se[N],Ee=le(Se,[re].map(yh)),ae=Promise.resolve(ce.preProcessEditCellProps({id:N,row:X,props:me,hasChanged:!1,otherFieldsProps:Ee})).then(Ie=>{if(e.current.getRowMode(N)===Cn.View){he(!1);return}Ie=x({},Ie,{isProcessingProps:!1}),A(N,re,Ie)});ne.push(ae)}),Promise.all(ne).then(()=>{e.current.getRowMode(N)===Cn.Edit?(se=lo(e.current.state),he(!se[N][H].error)):he(!1)})})},[e,v,A]),T=c.useCallback(O=>{const N=lo(e.current.state),H=e.current.getRow(O);if(!N[O])return e.current.getRow(O);let K=x({},H);return Object.entries(N[O]).forEach(([Q,J])=>{const Y=e.current.getColumn(Q);Y.valueSetter?K=Y.valueSetter({value:J.value,row:K}):K[Q]=J.value}),K},[e]),F={getRowMode:M,startRowEditMode:$,stopRowEditMode:V},B={setRowEditingEditCellValue:_,getRowWithUpdatedValuesFromRowEditing:T};At(e,F,"public"),At(e,B,"private"),c.useEffect(()=>{f&&E(f)},[f,E]),c.useEffect(()=>{const O=ry(e),N=s.current;s.current=G5(n),Object.entries(n).forEach(([H,K])=>{var Q,J;const Y=((Q=N[H])==null?void 0:Q.mode)||Cn.View,X=(J=O[H])!=null?J:H;K.mode===Cn.Edit&&Y===Cn.View?L(x({id:X},K)):K.mode===Cn.View&&Y===Cn.Edit&&j(x({id:X},K))})},[e,n,L,j])},r1e=e=>x({},e,{editRows:{}}),o1e=(e,t)=>{Z0e(e,t),n1e(e,t);const n=c.useRef({}),{isCellEditable:r}=t,o=c.useCallback(m=>ph(m.rowNode)||!m.colDef.editable||!m.colDef.renderEditCell?!1:r?r(m):!0,[r]),s=(m,v,y,g)=>{if(!y){g();return}if(n.current[m]||(n.current[m]={}),n.current[m][v]){const[w]=n.current[m][v];clearTimeout(w)}const C=()=>{const[w]=n.current[m][v];clearTimeout(w),g(),delete n.current[m][v]},b=setTimeout(()=>{g(),delete n.current[m][v]},y);n.current[m][v]=[b,C]};c.useEffect(()=>{const m=n.current;return()=>{Object.entries(m).forEach(([v,y])=>{Object.keys(y).forEach(g=>{const[C]=m[v][g];clearTimeout(C),delete m[v][g]})})}},[]);const i=c.useCallback((m,v)=>{if(n.current[m]){if(!v)Object.keys(n.current[m]).forEach(y=>{const[,g]=n.current[m][y];g()});else if(n.current[m][v]){const[,y]=n.current[m][v];y()}}},[]),l=c.useCallback(m=>{const{id:v,field:y,debounceMs:g}=m;return new Promise(C=>{s(v,y,g,()=>ot(void 0,null,function*(){const b=t.editMode===ji.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(v,y)===un.Edit){const w=yield b(m);C(w)}}))})},[e,t.editMode]),a=c.useCallback((m,v)=>t.editMode===ji.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(m,v):e.current.getRowWithUpdatedValuesFromRowEditing(m),[e,t.editMode]),u=c.useCallback((m,v)=>{var y,g;return(y=(g=lo(e.current.state)[m])==null?void 0:g[v])!=null?y:null},[e]),f={isCellEditable:o,setEditCellValue:l,getRowWithUpdatedValues:a,unstable_getEditCellMeta:u},p={runPendingEditCellValueMutation:i};At(e,f,"public"),At(e,p,"private")},s1e=(e,t,n)=>(n.current.caches.rows=Xg({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),x({},e,{rows:R5({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),i1e=(e,t)=>{const n=eo(e,"useGridRows"),r=Uc(e,t),o=c.useRef(Date.now()),s=_E(),i=c.useCallback(j=>{const _=aa(e)[j];if(_)return _;const T=e.current.getRowNode(j);return T&&ph(T)?{[od]:j}:null},[e]),l=t.getRowId,a=c.useCallback(j=>od in j?j[od]:l?l(j):j.id,[l]),u=c.useMemo(()=>r.rows.reduce((j,{id:_},T)=>(j[_]=T,j),{}),[r.rows]),f=c.useCallback(({cache:j,throttle:_})=>{const T=()=>{o.current=Date.now(),e.current.setState(B=>x({},B,{rows:R5({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:ei(e),previousTreeDepths:PO(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(s.clear(),e.current.caches.rows=j,!_){T();return}const F=t.throttleRowsMs-(Date.now()-o.current);if(F>0){s.start(F,T);return}T()},[t.throttleRowsMs,t.rowCount,t.loading,e,s]),p=c.useCallback(j=>{n.debug(`Updating all rows, new length ${j.length}`);const _=Xg({rows:j,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),T=e.current.caches.rows;_.rowsBeforePartialUpdates=T.rowsBeforePartialUpdates,f({cache:_,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,f,e]),m=c.useCallback(j=>{if(t.signature===Li.DataGrid&&j.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(`
355
+ `));const _=[];j.forEach(F=>{const B=iy(F,t.getRowId,"A row was provided without id when calling updateRows():"),O=e.current.getRowNode(B);if((O==null?void 0:O.type)==="pinnedRow"){const N=e.current.caches.pinnedRows,H=N.idLookup[B];H&&(N.idLookup[B]=x({},H,F))}else _.push(F)});const T=Jhe({updates:_,getRowId:t.getRowId,previousCache:e.current.caches.rows});f({cache:T,throttle:!0})},[t.signature,t.getRowId,f,e]),v=c.useCallback(()=>{const j=yg(e),_=aa(e);return new Map(j.map(T=>{var F;return[T,(F=_[T])!=null?F:{}]}))},[e]),y=c.useCallback(()=>d0(e),[e]),g=c.useCallback(()=>yg(e),[e]),C=c.useCallback(j=>u[j],[u]),b=c.useCallback((j,_)=>{const T=e.current.getRowNode(j);if(!T)throw new Error(`MUI: No row with id #${j} found`);if(T.type!=="group")throw new Error("MUI: Only group nodes can be expanded or collapsed");const F=x({},T,{childrenExpanded:_});e.current.setState(B=>x({},B,{rows:x({},B.rows,{tree:x({},B.rows.tree,{[j]:F})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",F)},[e]),w=c.useCallback(j=>{var _;return(_=ei(e)[j])!=null?_:null},[e]),S=c.useCallback(({skipAutoGeneratedRows:j=!0,groupId:_,applySorting:T,applyFiltering:F})=>{const B=ei(e);let O;if(T){const N=B[_];if(!N)return[];const H=yE(e);O=[];const K=H.findIndex(Q=>Q===_)+1;for(let Q=K;Q<H.length&&B[H[Q]].depth>N.depth;Q+=1){const J=H[Q];(!j||!ph(B[J]))&&O.push(J)}}else O=xE(B,_,j);if(F){const N=I5(e);O=O.filter(H=>N[H]!==!1)}return O},[e]),k=c.useCallback((j,_)=>{const T=e.current.getRowNode(j);if(!T)throw new Error(`MUI: No row with id #${j} found`);if(T.parent!==ao)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if(T.type!=="leaf")throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState(F=>{const B=ei(F,e.current.instanceId)[ao],O=B.children,N=O.findIndex(K=>K===j);if(N===-1||N===_)return F;n.debug(`Moving row ${j} to index ${_}`);const H=[...O];return H.splice(_,0,H.splice(N,1)[0]),x({},F,{rows:x({},F.rows,{tree:x({},F.rows.tree,{[ao]:x({},B,{children:H})})})})}),e.current.publishEvent("rowsSet")},[e,n]),M=c.useCallback((j,_)=>{if(t.signature===Li.DataGrid&&_.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
356
+ `));if(_.length===0)return;if(f0(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const F=x({},ei(e)),B=x({},aa(e)),O=x({},ry(e)),N=F[ao],H=[...N.children];for(let Q=0;Q<_.length;Q+=1){const J=_[Q],Y=iy(J,t.getRowId,"A row was provided without id when calling replaceRows()."),[X]=H.splice(j+Q,1,Y);delete B[X],delete O[X],delete F[X];const ee={id:Y,depth:0,parent:ao,type:"leaf",groupingKey:null};B[Y]=J,O[Y]=Y,F[Y]=ee}F[ao]=x({},N,{children:H});const K=H.filter(Q=>F[Q].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=B,e.current.caches.rows.dataRowIdToIdLookup=O,e.current.setState(Q=>x({},Q,{rows:x({},Q.rows,{dataRowIdToModelLookup:B,dataRowIdToIdLookup:O,dataRowIds:K,tree:F})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),E={getRow:i,getRowId:a,getRowModels:v,getRowsCount:y,getAllRowIds:g,setRows:p,updateRows:m,getRowNode:w,getRowIndexRelativeToVisibleRows:C,unstable_replaceRows:M},I={setRowIndex:k,setRowChildrenExpansion:b,getRowGroupChildren:S},R=c.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let j;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?j=x({},e.current.caches.rows,{updates:{type:"full",rows:yg(e)}}):j=Xg({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),f({cache:j,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,f]),A=c.useCallback(j=>{j==="rowTreeCreation"&&R()},[R]),$=c.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==Dhe(e)&&R()},[e,R]);dt(e,"activeStrategyProcessorChange",A),dt(e,"strategyAvailabilityChange",$);const L=c.useCallback(()=>{e.current.setState(j=>{const _=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:ei(j,e.current.instanceId),treeDepths:PO(j,e.current.instanceId),dataRowIds:yg(j,e.current.instanceId),dataRowIdToModelLookup:aa(j,e.current.instanceId),dataRowIdToIdLookup:ry(j,e.current.instanceId)});return x({},j,{rows:x({},j.rows,_,{totalTopLevelRowCount:$5({tree:_.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);RE(e,"hydrateRows",L),At(e,E,"public"),At(e,I,t.signature===Li.DataGrid?"private":"public");const V=c.useRef(!0);c.useEffect(()=>{if(V.current){V.current=!1;return}const j=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,_=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,T=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(j){_||(e.current.setState(F=>x({},F,{rows:x({},F.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),T||(e.current.setState(F=>x({},F,{rows:x({},F.rows,{totalRowCount:Math.max(t.rowCount||0,F.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,F.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),f({cache:Xg({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1})},[t.rows,t.rowCount,t.getRowId,t.loading,n,f,e])},l1e=e=>{const t={[ao]:x({},Xhe(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:ao,type:"leaf",groupingKey:null}}return{groupingName:Lc,tree:t,treeDepths:{0:e.length},dataRowIds:e}},a1e=({previousTree:e,actions:t})=>{const n=x({},e),r={};for(let i=0;i<t.remove.length;i+=1){const l=t.remove[i];r[l]=!0,delete n[l]}for(let i=0;i<t.insert.length;i+=1){const l=t.insert[i];n[l]={id:l,depth:0,parent:ao,type:"leaf",groupingKey:null}}const o=n[ao];let s=[...o.children,...t.insert];return Object.values(r).length&&(s=s.filter(i=>!r[i])),n[ao]=x({},o,{children:s}),{groupingName:Lc,tree:n,treeDepths:{0:s.length},dataRowIds:s}},c1e=e=>e.updates.type==="full"?l1e(e.updates.rows):a1e({previousTree:e.previousTree,actions:e.updates.actions}),u1e=e=>{py(e,Lc,"rowTreeCreation",c1e)},PB=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],d1e=(e,t)=>{var n;return x({},e,{rowSelection:t.rowSelection?(n=PB(t.rowSelectionModel))!=null?n:[]:[]})},f1e=(e,t)=>{const n=eo(e,"useGridSelection"),r=_=>(...T)=>{t.rowSelection&&_(...T)},o=c.useMemo(()=>PB(t.rowSelectionModel,xs(e.current.state)),[e,t.rowSelectionModel]),s=c.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:xs,changeEvent:"rowSelectionChange"});const{checkboxSelection:i,disableMultipleRowSelection:l,disableRowSelectionOnClick:a,isRowSelectable:u}=t,f=!l||i,p=Uc(e,t),m=c.useCallback(_=>{var T;let F=_;const B=(T=s.current)!=null?T:_,O=e.current.isRowSelected(_);if(O){const N=Rp(e),H=N.findIndex(Q=>Q===B),K=N.findIndex(Q=>Q===F);if(H===K)return;H>K?F=N[K+1]:F=N[K-1]}s.current=_,e.current.selectRowRange({startId:B,endId:F},!O)},[e]),v=c.useCallback(_=>{if(t.signature===Li.DataGrid&&!t.checkboxSelection&&Array.isArray(_)&&_.length>1)throw new Error(["MUI: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(`
357
+ `));xs(e.current.state)!==_&&(n.debug("Setting selection model"),e.current.setState(F=>x({},F,{rowSelection:t.rowSelection?_:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),y=c.useCallback(_=>xs(e.current.state).includes(_),[e]),g=c.useCallback(_=>{if(u&&!u(e.current.getRowParams(_)))return!1;const T=e.current.getRowNode(_);return!((T==null?void 0:T.type)==="footer"||(T==null?void 0:T.type)==="pinnedRow")},[e,u]),C=c.useCallback(()=>ove(e),[e]),b=c.useCallback((_,T=!0,F=!1)=>{if(e.current.isRowSelectable(_))if(s.current=_,F)n.debug(`Setting selection for row ${_}`),e.current.setRowSelectionModel(T?[_]:[]);else{n.debug(`Toggling selection for row ${_}`);const O=xs(e.current.state).filter(H=>H!==_);T&&O.push(_),(O.length<2||f)&&e.current.setRowSelectionModel(O)}},[e,n,f]),w=c.useCallback((_,T=!0,F=!1)=>{n.debug("Setting selection for several rows");const B=_.filter(H=>e.current.isRowSelectable(H));let O;if(F)O=T?B:[];else{const H=x({},uy(e));B.forEach(K=>{T?H[K]=K:delete H[K]}),O=Object.values(H)}(O.length<2||f)&&e.current.setRowSelectionModel(O)},[e,n,f]),S=c.useCallback(({startId:_,endId:T},F=!0,B=!1)=>{if(!e.current.getRow(_)||!e.current.getRow(T))return;n.debug(`Expanding selection from row ${_} to row ${T}`);const O=Rp(e),N=O.indexOf(_),H=O.indexOf(T),[K,Q]=N>H?[H,N]:[N,H],J=O.slice(K,Q+1);e.current.selectRows(J,F,B)},[e,n]),k={selectRow:b,setRowSelectionModel:v,getSelectedRows:C,isRowSelected:y,isRowSelectable:g},M={selectRows:w,selectRowRange:S};At(e,k,"public"),At(e,M,t.signature===Li.DataGrid?"private":"public");const E=c.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const _=xs(e.current.state),T=aa(e),F=x({},uy(e));let B=!1;_.forEach(O=>{T[O]||(delete F[O],B=!0)}),B&&e.current.setRowSelectionModel(Object.values(F))},[e,t.keepNonExistentRowsSelected]),I=c.useCallback((_,T)=>{const F=T.metaKey||T.ctrlKey,B=!i&&!F&&!Vme(T),O=!f||B,N=e.current.isRowSelected(_);O?e.current.selectRow(_,B?!0:!N,!0):e.current.selectRow(_,!N,!1)},[e,f,i]),R=c.useCallback((_,T)=>{var F;if(a)return;const B=(F=T.target.closest(`.${ue.cell}`))==null?void 0:F.getAttribute("data-field");if(B===rf.field||B===TE)return;if(B){const N=e.current.getColumn(B);if((N==null?void 0:N.type)===v0)return}e.current.getRowNode(_.id).type!=="pinnedRow"&&(T.shiftKey&&(f||i)?m(_.id):I(_.id,T))},[a,f,i,e,m,I]),A=c.useCallback((_,T)=>{if(f&&T.shiftKey){var F;(F=window.getSelection())==null||F.removeAllRanges()}},[f]),$=c.useCallback((_,T)=>{T.nativeEvent.shiftKey?m(_.id):e.current.selectRow(_.id,_.value)},[e,m]),L=c.useCallback(_=>{const F=t.checkboxSelectionVisibleOnly&&t.pagination?X5(e):Rp(e);e.current.selectRows(F,_.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),V=c.useCallback((_,T)=>{if(e.current.getCellMode(_.id,_.field)!==un.Edit&&T.currentTarget.contains(T.target)){if(cy(T.key)&&T.shiftKey){const F=jo(e);if(F&&F.id!==_.id){T.preventDefault();const B=e.current.isRowSelected(F.id);if(!f){e.current.selectRow(F.id,!B,!0);return}const O=e.current.getRowIndexRelativeToVisibleRows(F.id),N=e.current.getRowIndexRelativeToVisibleRows(_.id);let H,K;O>N?B?(H=N,K=O-1):(H=N,K=O):B?(H=O+1,K=N):(H=O,K=N);const Q=p.rows.slice(H,K+1).map(J=>J.id);e.current.selectRows(Q,!B);return}}if(T.key===" "&&T.shiftKey){T.preventDefault(),I(_.id,T);return}T.key==="a"&&(T.ctrlKey||T.metaKey)&&(T.preventDefault(),w(e.current.getAllRowIds(),!0))}},[e,I,w,p.rows,f]);dt(e,"sortedRowsSet",r(E)),dt(e,"rowClick",r(R)),dt(e,"rowSelectionCheckboxChange",r($)),dt(e,"headerSelectionCheckboxChange",L),dt(e,"cellMouseDown",r(A)),dt(e,"cellKeyDown",r(V)),c.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),c.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const j=o!=null;c.useEffect(()=>{if(j||!t.rowSelection)return;const _=xs(e.current.state);if(g){const T=_.filter(F=>g(F));T.length<_.length&&e.current.setRowSelectionModel(T)}},[e,g,j,t.rowSelection]),c.useEffect(()=>{if(!t.rowSelection||j)return;const _=xs(e.current.state);!f&&_.length>1&&e.current.setRowSelectionModel([])},[e,f,i,j,t.rowSelection])},kB={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorEquals:"Equals",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"},p1e=e=>{const{classes:t}=e;return c.useMemo(()=>Te({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},jt,t),[t])},h1e=(e,t)=>{const n={classes:t.classes},r=p1e(n),o=c.useCallback(s=>{const i=x({},rf,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),l=t.checkboxSelection,a=s.lookup[ql]!=null;return l&&!a?(s.lookup[ql]=i,s.orderedFields=[ql,...s.orderedFields]):!l&&a?(delete s.lookup[ql],s.orderedFields=s.orderedFields.filter(u=>u!==ql)):l&&a&&(s.lookup[ql]=x({},i,s.lookup[ql])),s},[e,r,t.checkboxSelection]);mr(e,"hydrateColumns",o)},m1e=(e,t)=>{var n,r,o;const s=(n=(r=t.sortModel)!=null?r:(o=t.initialState)==null||(o=o.sorting)==null?void 0:o.sortModel)!=null?n:[];return x({},e,{sorting:{sortModel:Z5(s,t.disableMultipleColumnsSorting),sortedRows:[]}})},g1e=(e,t)=>{var n;const r=eo(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:Cs,changeEvent:"sortModelChange"});const o=c.useCallback((E,I)=>{const R=Cs(e),A=R.findIndex(L=>L.field===E);let $=[...R];return A>-1?I?$.splice(A,1,I):$.splice(A,1):$=[...R,I],$},[e]),s=c.useCallback((E,I)=>{var R;const $=Cs(e).find(V=>V.field===E.field);if($){var L;const V=I===void 0?_O((L=E.sortingOrder)!=null?L:t.sortingOrder,$.sort):I;return V==null?void 0:x({},$,{sort:V})}return{field:E.field,sort:I===void 0?_O((R=E.sortingOrder)!=null?R:t.sortingOrder):I}},[e,t.sortingOrder]),i=c.useCallback((E,I)=>I==null||I.sortable===!1?E:(I.sortingOrder||t.sortingOrder).some(A=>!!A)?[...E,"columnMenuSortItem"]:E,[t.sortingOrder]),l=c.useCallback(()=>{e.current.setState(E=>{if(t.sortingMode==="server")return r.debug("Skipping sorting rows as sortingMode = server"),x({},E,{sorting:x({},E.sorting,{sortedRows:xE(ei(e),ao,!1)})});const I=Cs(E,e.current.instanceId),R=cve(I,e),A=e.current.applyStrategyProcessor("sorting",{sortRowList:R});return x({},E,{sorting:x({},E.sorting,{sortedRows:A})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,r,t.sortingMode]),a=c.useCallback(E=>{Cs(e)!==E&&(r.debug("Setting sort model"),e.current.setState(MO(E,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,r,t.disableMultipleColumnsSorting]),u=c.useCallback((E,I,R)=>{if(!E.sortable)return;const A=s(E,I);let $;!R||t.disableMultipleColumnsSorting?$=A?[A]:[]:$=o(E.field,A),e.current.setSortModel($)},[e,o,s,t.disableMultipleColumnsSorting]),f=c.useCallback(()=>Cs(e),[e]),p=c.useCallback(()=>bE(e).map(I=>I.model),[e]),m=c.useCallback(()=>yE(e),[e]),v=c.useCallback(E=>e.current.getSortedRowIds()[E],[e]);At(e,{getSortModel:f,getSortedRows:p,getSortedRowIds:m,getRowIdFromRowIndex:v,setSortModel:a,sortColumn:u,applySorting:l},"public");const g=c.useCallback((E,I)=>{var R;const A=Cs(e);return!I.exportOnlyDirtyModels||t.sortModel!=null||((R=t.initialState)==null||(R=R.sorting)==null?void 0:R.sortModel)!=null||A.length>0?x({},E,{sorting:{sortModel:A}}):E},[e,t.sortModel,(n=t.initialState)==null||(n=n.sorting)==null?void 0:n.sortModel]),C=c.useCallback((E,I)=>{var R;const A=(R=I.stateToRestore.sorting)==null?void 0:R.sortModel;return A==null?E:(e.current.setState(MO(A,t.disableMultipleColumnsSorting)),x({},E,{callbacks:[...E.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),b=c.useCallback(E=>{const I=ei(e),R=I[ao],A=E.sortRowList?E.sortRowList(R.children.map($=>I[$])):[...R.children];return R.footerId!=null&&A.push(R.footerId),A},[e]);mr(e,"exportState",g),mr(e,"restoreState",C),py(e,Lc,"sorting",b);const w=c.useCallback(({colDef:E},I)=>{const R=I.shiftKey||I.metaKey||I.ctrlKey;u(E,void 0,R)},[u]),S=c.useCallback(({colDef:E},I)=>{Fme(I.key)&&!I.ctrlKey&&!I.metaKey&&u(E,void 0,I.shiftKey)},[u]),k=c.useCallback(()=>{const E=Cs(e),I=ef(e);if(E.length>0){const R=E.filter(A=>I[A.field]);R.length<E.length&&e.current.setSortModel(R)}},[e]),M=c.useCallback(E=>{E==="sorting"&&e.current.applySorting()},[e]);mr(e,"columnMenu",i),dt(e,"columnHeaderClick",w),dt(e,"columnHeaderKeyDown",S),dt(e,"rowsSet",e.current.applySorting),dt(e,"columnsChange",k),dt(e,"activeStrategyProcessorChange",M),Gh(()=>{e.current.applySorting()}),Nt(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function eD(e){const{clientHeight:t,scrollTop:n,offsetHeight:r,offsetTop:o}=e,s=o+r;if(r>t)return o;if(s-t>n)return s-t;if(o<n)return o}const v1e=(e,t)=>{const n=yn(),r=eo(e,"useGridScroll"),o=e.current.columnHeadersElementRef,s=e.current.virtualScrollerRef,i=nt(e,za),l=c.useCallback(p=>{const m=d0(e),v=Ar(e);if(!(p.rowIndex==null)&&m===0||v.length===0)return!1;r.debug(`Scrolling to cell at row ${p.rowIndex}, col: ${p.colIndex} `);let g={};if(p.colIndex!=null){const S=$d(e);let k;if(typeof p.rowIndex!="undefined"){var C;const M=(C=i[p.rowIndex])==null?void 0:C.id,E=e.current.unstable_getCellColSpanInfo(M,p.colIndex);E&&!E.spannedByColSpan&&(k=E.cellProps.width)}typeof k=="undefined"&&(k=v[p.colIndex].computedWidth),g.left=eD({clientHeight:s.current.clientWidth,scrollTop:Math.abs(s.current.scrollLeft),offsetHeight:k,offsetTop:S[p.colIndex]})}if(p.rowIndex!=null){var b,w;const S=gh(e.current.state),k=eve(e),M=tve(e),E=t.pagination?p.rowIndex-k*M:p.rowIndex,I=S.positions[E+1]?S.positions[E+1]-S.positions[E]:S.currentPageTotalHeight-S.positions[E],R=((b=s.current.querySelector(`.${ue["pinnedRows--top"]}`))==null?void 0:b.clientHeight)||0,A=((w=s.current.querySelector(`.${ue["pinnedRows--bottom"]}`))==null?void 0:w.clientHeight)||0;g.top=eD({clientHeight:s.current.clientHeight-R-A,scrollTop:s.current.scrollTop,offsetHeight:I,offsetTop:S.positions[E]})}return g=e.current.unstable_applyPipeProcessors("scrollToIndexes",g,p),typeof g.left!==void 0||typeof g.top!==void 0?(e.current.scroll(g),!0):!1},[r,e,s,t.pagination,i]),a=c.useCallback(p=>{if(s.current&&p.left!=null&&o.current){const m=n.direction==="rtl"?-1:1;o.current.scrollLeft=p.left,s.current.scrollLeft=m*p.left,r.debug(`Scrolling left: ${p.left}`)}s.current&&p.top!=null&&(s.current.scrollTop=p.top,r.debug(`Scrolling top: ${p.top}`)),r.debug("Scrolling, updating container, and viewport")},[s,n.direction,o,r]),u=c.useCallback(()=>s!=null&&s.current?{top:s.current.scrollTop,left:s.current.scrollLeft}:{top:0,left:0},[s]);At(e,{scroll:a,scrollToIndexes:l,getScrollPosition:u},"public")};function y1e(e,t){In(e,"columnHeaderClick",t.onColumnHeaderClick),In(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),In(e,"columnHeaderOver",t.onColumnHeaderOver),In(e,"columnHeaderOut",t.onColumnHeaderOut),In(e,"columnHeaderEnter",t.onColumnHeaderEnter),In(e,"columnHeaderLeave",t.onColumnHeaderLeave),In(e,"cellClick",t.onCellClick),In(e,"cellDoubleClick",t.onCellDoubleClick),In(e,"cellKeyDown",t.onCellKeyDown),In(e,"preferencePanelClose",t.onPreferencePanelClose),In(e,"preferencePanelOpen",t.onPreferencePanelOpen),In(e,"menuOpen",t.onMenuOpen),In(e,"menuClose",t.onMenuClose),In(e,"rowDoubleClick",t.onRowDoubleClick),In(e,"rowClick",t.onRowClick),In(e,"stateChange",t.onStateChange)}const b1e=({content:e,container:t,scrollBarSize:n})=>{const r=e.width>t.width,o=e.height>t.height;let s=!1,i=!1;return(r||o)&&(s=r,i=e.height+(s?n:0)>t.height,i&&(s=e.width+n>t.width)),{hasScrollX:s,hasScrollY:i}};function w1e(e,t){const n=eo(e,"useResizeContainer"),r=c.useRef(!1),o=c.useRef(null),s=c.useRef(null),i=nt(e,gh),l=nt(e,nf),a=Math.floor(t.rowHeight*l),u=OE(e,t.columnHeaderHeight),f=c.useCallback(()=>{var I;const R=(I=e.current.rootElementRef)==null?void 0:I.current,A=vE(e),$=O5(e);if(!o.current)return;let L;if(t.scrollbarSize!=null)L=t.scrollbarSize;else if(!A||!R)L=0;else{const N=fn(R).createElement("div");N.style.width="99px",N.style.height="99px",N.style.position="absolute",N.style.overflow="scroll",N.className="scrollDiv",R.appendChild(N),L=N.offsetWidth-N.clientWidth,R.removeChild(N)}let V,j,_;if(t.autoHeight)_=!1,j=Math.round(A)>Math.round(o.current.width),V={width:o.current.width,height:i.currentPageTotalHeight+(j?L:0)};else{V={width:o.current.width,height:Math.max(o.current.height-u,0)};const O=b1e({content:{width:Math.round(A),height:i.currentPageTotalHeight},container:{width:Math.round(V.width),height:V.height-$.top-$.bottom},scrollBarSize:L});_=O.hasScrollY,j=O.hasScrollX}const T={width:V.width-(_?L:0),height:V.height-(j?L:0)},F={viewportOuterSize:V,viewportInnerSize:T,hasScrollX:j,hasScrollY:_,scrollBarSize:L},B=s.current;s.current=F,(F.viewportInnerSize.width!==(B==null?void 0:B.viewportInnerSize.width)||F.viewportInnerSize.height!==(B==null?void 0:B.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",F.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,i.currentPageTotalHeight,u]),[p,m]=c.useState(),v=c.useMemo(()=>Aa(m,60),[]),y=c.useRef();Nt(()=>{p&&(f(),e.current.publishEvent("debouncedResize",o.current))},[e,p,f]);const g=c.useCallback(()=>{e.current.computeSizeAndPublishResizeEvent()},[e]),C=c.useCallback(()=>s.current,[]),b=c.useCallback(()=>{const I=e.current.getRootDimensions();if(!I)return 0;const R=dy(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const $=e.current.getRenderContext(),L=$.lastRowIndex-$.firstRowIndex;return Math.min(L-1,R.rows.length)}const A=Math.floor(I.viewportInnerSize.height/a);return Math.min(A,R.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,a]),w=c.useCallback(()=>{var I,R,A;const $=(I=e.current.mainElementRef)==null?void 0:I.current;if(!$)return;const V=Jo($).getComputedStyle($),j=parseFloat(V.height)||0,_=parseFloat(V.width)||0,T=j!==((R=y.current)==null?void 0:R.height),F=_!==((A=y.current)==null?void 0:A.width);if(!y.current||T||F){const B={width:_,height:j};e.current.publishEvent("resize",B),y.current=B}},[e]),S={resize:g,getRootDimensions:C},k={getViewportPageSize:b,updateGridDimensionsRef:f,computeSizeAndPublishResizeEvent:w};At(e,S,"public"),At(e,k,"private");const M=c.useRef(!0),E=c.useCallback(I=>{o.current=I;const R=/jsdom/.test(window.navigator.userAgent);if(I.height===0&&!r.current&&!t.autoHeight&&!R&&(n.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
358
+ `)),r.current=!0),I.width===0&&!r.current&&!R&&(n.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
359
+ `)),r.current=!0),M.current){m(I),M.current=!1;return}v(I)},[t.autoHeight,v,n]);Nt(()=>f(),[f]),In(e,"sortedRowsSet",f),In(e,"paginationModelChange",f),In(e,"columnsChange",f),dt(e,"resize",E),In(e,"debouncedResize",t.onResize)}const C1e=["style"],x1e=["style"];function sd(e,t,n=0,r=t.length){if(t.length<=0)return-1;if(n>=r)return n;const o=n+Math.floor((r-n)/2),s=t[o];return e<=s?sd(e,t,n,o):sd(e,t,o+1,r)}function S1e(e,t,n){let r=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=r,r*=2;return sd(e,t,Math.floor(n/2),Math.min(n,t.length))}const ea=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[Rd(e-n,r,o),Rd(t+n,r,o)],EB=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,P1e={maxSize:3},k1e=e=>{var t,n;const r=Ba(),o=ut(),s=nt(r,Ar),i=nt(r,gve),l=nt(r,rB),{ref:a,onRenderZonePositioning:u,renderZoneMinColumnIndex:f=0,renderZoneMaxColumnIndex:p=s.length,getRowProps:m}=e,v=yn(),y=nt(r,$d),g=nt(r,vE),C=nt(r,jo),b=nt(r,sy),w=nt(r,gh),S=nt(r,uy),k=Uc(r,o),M=c.useRef(null),E=c.useRef(null),I=Et(a,E),[R,A]=c.useState(null),$=c.useRef(R),L=c.useRef({top:0,left:0}),[V,j]=c.useState({width:null,height:null}),_=c.useRef(g),[T,F]=c.useState(null),B=c.useRef(Object.create(null)),O=c.useRef(),N=c.useRef(),H=c.useRef(a0((ae,Ie,ye,Me,pe,fe)=>{let de;const be=ae.slice(Ie,ye);return fe>-1&&(Ie>fe&&fe>=Me||ye<fe&&fe<pe)&&(de=fe),{focusedCellColumnIndexNotInRange:de,renderedColumns:be}},P1e)),K=c.useMemo(()=>C!==null?s.findIndex(ae=>ae.field===C.field):-1,[C,s]),Q=c.useCallback(ae=>{var Ie,ye;const Me=r.current.getLastMeasuredRowIndex();let pe=Me===1/0;(Ie=k.range)!=null&&Ie.lastRowIndex&&!pe&&(pe=Me>=k.range.lastRowIndex);const fe=Rd(Me-(((ye=k.range)==null?void 0:ye.firstRowIndex)||0),0,w.positions.length);return pe||w.positions[fe]>=ae?sd(ae,w.positions):S1e(ae,w.positions,fe)},[r,(t=k.range)==null?void 0:t.firstRowIndex,(n=k.range)==null?void 0:n.lastRowIndex,w.positions]),J=c.useCallback(()=>{if(!i)return{firstRowIndex:0,lastRowIndex:k.rows.length,firstColumnIndex:0,lastColumnIndex:s.length};const{top:ae,left:Ie}=L.current,ye=Math.min(Q(ae),w.positions.length-1),Me=o.autoHeight?ye+k.rows.length:Q(ae+V.height);let pe=0,fe=y.length;if(l){let de=!1;const[be,_e]=ea({firstIndex:ye,lastIndex:Me,minFirstIndex:0,maxLastIndex:k.rows.length,buffer:o.rowBuffer});for(let Ne=be;Ne<_e&&!de;Ne+=1){const Ge=k.rows[Ne];de=r.current.rowHasAutoHeight(Ge.id)}de||(pe=sd(Math.abs(Ie),y),fe=sd(Math.abs(Ie)+V.width,y))}return{firstRowIndex:ye,lastRowIndex:Me,firstColumnIndex:pe,lastColumnIndex:fe}},[i,l,Q,w.positions.length,o.autoHeight,o.rowBuffer,k.rows,y,s.length,r,V]);Nt(()=>{i?(E.current.scrollLeft=0,E.current.scrollTop=0):M.current.style.transform="translate3d(0px, 0px, 0px)"},[i]),Nt(()=>{j({width:E.current.clientWidth,height:E.current.clientHeight})},[w.currentPageTotalHeight]);const Y=c.useCallback(()=>{E.current&&j({width:E.current.clientWidth,height:E.current.clientHeight})},[]);dt(r,"debouncedResize",Y);const X=c.useCallback(ae=>{const[Ie,ye]=ea({firstIndex:ae.firstRowIndex,lastIndex:ae.lastRowIndex,minFirstIndex:0,maxLastIndex:k.rows.length,buffer:o.rowBuffer}),[Me]=ea({firstIndex:ae.firstColumnIndex,lastIndex:ae.lastColumnIndex,minFirstIndex:f,maxLastIndex:p,buffer:o.columnBuffer}),pe=lS({firstColumnToRender:Me,apiRef:r,firstRowToRender:Ie,lastRowToRender:ye,visibleRows:k.rows}),fe=v.direction==="ltr"?1:-1,de=gh(r.current.state).positions[Ie],be=fe*$d(r)[pe];M.current.style.transform=`translate3d(${be}px, ${de}px, 0px)`,typeof u=="function"&&u({top:de,left:be})},[r,k.rows,u,f,p,o.columnBuffer,o.rowBuffer,v.direction]),ee=c.useCallback(()=>$.current,[]),se=c.useCallback(ae=>{if($.current&&EB(ae,$.current)){X(ae);return}A(ae),X(ae);const[Ie,ye]=ea({firstIndex:ae.firstRowIndex,lastIndex:ae.lastRowIndex,minFirstIndex:0,maxLastIndex:k.rows.length,buffer:o.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:Ie,lastRowToRender:ye}),$.current=ae},[r,A,$,k.rows.length,o.rowBuffer,X]);Nt(()=>{if(V.width==null)return;const ae=J();se(ae);const{top:Ie,left:ye}=L.current,Me={top:Ie,left:ye,renderContext:ae};r.current.publishEvent("scrollPositionChange",Me)},[r,J,V.width,se]);const Z=Ye(ae=>{const{scrollTop:Ie,scrollLeft:ye}=ae.currentTarget;if(L.current.top=Ie,L.current.left=ye,!$.current||Ie<0||v.direction==="ltr"&&ye<0||v.direction==="rtl"&&ye>0)return;const Me=i?J():$.current,pe=Math.abs(Me.firstRowIndex-$.current.firstRowIndex),fe=Math.abs(Me.lastRowIndex-$.current.lastRowIndex),de=Math.abs(Me.firstColumnIndex-$.current.firstColumnIndex),be=Math.abs(Me.lastColumnIndex-$.current.lastColumnIndex),_e=pe>=o.rowThreshold||fe>=o.rowThreshold||de>=o.columnThreshold||be>=o.columnThreshold||_.current!==g;r.current.publishEvent("scrollPositionChange",{top:Ie,left:ye,renderContext:_e?Me:$.current},ae),_e&&(zd.flushSync(()=>{se(Me)}),_.current=g)}),he=Ye(ae=>{r.current.publishEvent("virtualScrollerWheel",{},ae)}),ne=Ye(ae=>{r.current.publishEvent("virtualScrollerTouchMove",{},ae)}),re=c.useMemo(()=>C!==null?k.rows.findIndex(ae=>ae.id===C.id):-1,[C,k.rows]);dt(r,"rowMouseOver",(ae,Ie)=>{var ye;Ie.currentTarget.contains(Ie.relatedTarget)||F((ye=ae.id)!=null?ye:null)}),dt(r,"rowMouseOut",(ae,Ie)=>{Ie.currentTarget.contains(Ie.relatedTarget)||F(null)});const me=(ae={renderContext:R})=>{var Ie;const{onRowRender:ye,renderContext:Me,minFirstColumn:pe=f,maxLastColumn:fe=p,availableSpace:de=V.width,rowIndexOffset:be=0,position:_e="center"}=ae;if(!Me||de==null)return null;const Ne=i?o.rowBuffer:0,Ge=i?o.columnBuffer:0,[Ve,Ue]=ea({firstIndex:Me.firstRowIndex,lastIndex:Me.lastRowIndex,minFirstIndex:0,maxLastIndex:k.rows.length,buffer:Ne}),Le=[];if(ae.rows)ae.rows.forEach(gt=>{Le.push(gt),r.current.calculateColSpan({rowId:gt.id,minFirstColumn:pe,maxLastColumn:fe,columns:s})});else{if(!k.range)return null;for(let gt=Ve;gt<Ue;gt+=1){const Rt=k.rows[gt];Le.push(Rt),r.current.calculateColSpan({rowId:Rt.id,minFirstColumn:pe,maxLastColumn:fe,columns:s})}}let ht=!1;if(re>-1){const gt=k.rows[re];(Ve>re||Ue<re)&&(ht=!0,re>Ve?Le.push(gt):Le.unshift(gt),r.current.calculateColSpan({rowId:gt.id,minFirstColumn:pe,maxLastColumn:fe,columns:s}))}const[Zt,Pt]=ea({firstIndex:Me.firstColumnIndex,lastIndex:Me.lastColumnIndex,minFirstIndex:pe,maxLastIndex:fe,buffer:Ge}),wt=lS({firstColumnToRender:Zt,apiRef:r,firstRowToRender:Ve,lastRowToRender:Ue,visibleRows:k.rows});let Xe=!1;(wt>K||Pt<K)&&(Xe=!0);const{focusedCellColumnIndexNotInRange:Oe,renderedColumns:qe}=H.current(s,wt,Pt,pe,fe,Xe?K:-1),mt=((Ie=o.slotProps)==null?void 0:Ie.row)||{},{style:vt}=mt,Tt=le(mt,C1e);(O.current!==m||N.current!==vt)&&(B.current=Object.create(null));const Qt=[];let Pn=!1;for(let gt=0;gt<Le.length;gt+=1){var bn;const{id:Rt,model:vr}=Le[gt],ir=ht&&C.id===Rt,Tl=ht?Ve+gt===k.rows.length:Ve+gt===k.rows.length-1,as=r.current.rowHasAutoHeight(Rt)?"auto":r.current.unstable_getRowHeight(Rt);let Tn;S[Rt]==null?Tn=!1:Tn=r.current.isRowSelectable(Rt),ye&&ye(Rt);const an=C!==null&&C.id===Rt?C.field:null,yr=Oe!==void 0&&s[Oe],ho=yr&&an?[yr,...qe]:qe;let cs=null;b!==null&&b.id===Rt&&(cs=r.current.getCellParams(Rt,b.field).cellMode==="view"?b.field:null);const lr=typeof m=="function"&&m(Rt,vr)||{},{style:Oo}=lr,hi=le(lr,x1e);if(!B.current[Rt]){const Nr=x({},Oo,vt);B.current[Rt]=Nr}let Mr=be+((k==null||(bn=k.range)==null?void 0:bn.firstRowIndex)||0)+Ve+gt;ht&&(C==null?void 0:C.id)===Rt?(Mr=re,Pn=!0):Pn&&(Mr-=1),Qt.push(D.jsx(o.slots.row,x({row:vr,rowId:Rt,focusedCellColumnIndexNotInRange:Oe,isNotVisible:ir,rowHeight:as,focusedCell:an,tabbableCell:cs,renderedColumns:ho,visibleColumns:s,firstColumnToRender:wt,lastColumnToRender:Pt,selected:Tn,index:Mr,containerWidth:de,isLastVisible:Tl,position:_e},hi,Tt,{hovered:T===Rt,style:B.current[Rt]}),Rt))}return O.current=m,N.current=vt,Qt},ce=V.width&&g>=V.width,Se=c.useMemo(()=>{const ae=Math.max(w.currentPageTotalHeight,1);let Ie=!1;E!=null&&E.current&&ae<=(E==null?void 0:E.current.clientHeight)&&(Ie=!0);const ye={width:ce?g:"auto",height:ae,minHeight:Ie?"100%":"auto"};return o.autoHeight&&k.rows.length===0&&(ye.height=D5(r,o.rowHeight)),ye},[r,E,g,w.currentPageTotalHeight,ce,o.autoHeight,o.rowHeight,k.rows.length]);c.useEffect(()=>{r.current.publishEvent("virtualScrollerContentSizeChange")},[r,Se]);const Ee=c.useMemo(()=>{const ae={};return ce||(ae.overflowX="hidden"),o.autoHeight&&(ae.overflowY="hidden"),ae},[ce,o.autoHeight]);return r.current.register("private",{getRenderContext:ee}),{renderContext:R,updateRenderZonePosition:X,getRows:me,getRootProps:(ae={})=>x({ref:I,onScroll:Z,onWheel:he,onTouchMove:ne},ae,{style:ae.style?x({},ae.style,Ee):Ee,role:"presentation"}),getContentProps:({style:ae}={})=>({style:ae?x({},ae,Se):Se,role:"presentation"}),getRenderZoneProps:()=>({ref:M,role:"rowgroup"})}},E1e=e=>{const{classes:t,headerAlign:n,isDragging:r,showColumnBorder:o,groupId:s}=e;return Te({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",o&&"columnHeader--showColumnBorder",o&&"columnHeader--withRightBorder","withBorderColor",s===null?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},jt,t)};function I1e(e){var t;const{groupId:n,width:r,depth:o,maxDepth:s,fields:i,height:l,colIndex:a,hasFocus:u,tabIndex:f,isLastColumn:p}=e,m=ut(),v=c.useRef(null),y=Vt(),g=nt(y,P5),C=n?g[n]:{},{headerName:b=n!=null?n:"",description:w="",headerAlign:S=void 0}=C;let k;const M=n&&((t=g[n])==null?void 0:t.renderHeaderGroup),E=c.useMemo(()=>({groupId:n,headerName:b,description:w,depth:o,maxDepth:s,fields:i,colIndex:a,isLastColumn:p}),[n,b,w,o,s,i,a,p]);n&&M&&(k=M(E));const I=m.showColumnVerticalBorder,R=x({},e,{classes:m.classes,showColumnBorder:I,headerAlign:S,depth:o,isDragging:!1}),A=b!=null?b:n,$=Kt(),L=n===null?`empty-group-cell-${$}`:n,V=E1e(R);c.useLayoutEffect(()=>{if(u){const B=v.current.querySelector('[tabindex="0"]')||v.current;B==null||B.focus()}},[y,u]);const j=c.useCallback(F=>B=>{B.currentTarget.contains(B.target)&&y.current.publishEvent(F,E,B)},[y,E]),_=c.useMemo(()=>({onKeyDown:j("columnGroupHeaderKeyDown"),onFocus:j("columnGroupHeaderFocus"),onBlur:j("columnGroupHeaderBlur")}),[j]),T=typeof C.headerClassName=="function"?C.headerClassName(E):C.headerClassName;return D.jsx(U5,x({ref:v,classes:V,columnMenuOpen:!1,colIndex:a,height:l,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:f,isDraggable:!1,headerComponent:k,headerClassName:T,description:w,elementId:L,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:A,"aria-colspan":i.length,"data-fields":`|-${i.join("-|-")}-|`},_))}const tD=oe("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function M1e(e){return!!e.target}const _1e=e=>{const{innerRef:t,minColumnIndex:n=0,visibleColumns:r,sortColumnLookup:o,filterColumnLookup:s,columnPositions:i,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:a,columnHeaderFocus:u,columnGroupHeaderFocus:f,densityFactor:p,headerGroupingMaxDepth:m,columnMenuState:v,columnVisibility:y,columnGroupsHeaderStructure:g,hasOtherElementInTabSequence:C}=e,b=yn(),[w,S]=c.useState(""),[k,M]=c.useState(""),E=Ba(),I=nt(E,rB),R=ut(),A=c.useRef(null),$=Et(t,A),[L,V]=c.useState(null),j=c.useRef(L),_=c.useRef(0),T=Uc(E,R),F=OE(E,R.columnHeaderHeight),B=Math.floor(R.columnHeaderHeight*p),O=c.useCallback(ne=>{L&&ne&&EB(L,ne)||V(ne)},[L]);c.useEffect(()=>{E.current.columnHeadersContainerElementRef.current.scrollLeft=0},[E]);const N=c.useRef(a0(P0e,{equalityCheck:(ne,re)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(me=>ne[me]===re[me])})),H=c.useCallback(ne=>{const[re,me]=ea({firstIndex:ne.firstRowIndex,lastIndex:ne.lastRowIndex,minFirstIndex:0,maxLastIndex:T.rows.length,buffer:R.rowBuffer}),ce=N.current({firstColumnIndex:ne.firstColumnIndex,minColumnIndex:n,columnBuffer:R.columnBuffer,firstRowToRender:re,lastRowToRender:me,apiRef:E,visibleRows:T.rows}),Se=b.direction==="ltr"?1:-1,Ee=ce>0?_.current-Se*i[ce]:_.current;A.current.style.transform=`translate3d(${-Ee}px, 0px, 0px)`},[i,n,R.columnBuffer,E,T.rows,R.rowBuffer,b.direction]);c.useLayoutEffect(()=>{L&&H(L)},[L,H]);const K=c.useCallback(({left:ne,renderContext:re=null},me)=>{var ce,Se;if(!A.current||_.current===ne&&((ce=j.current)==null?void 0:ce.firstColumnIndex)===(re==null?void 0:re.firstColumnIndex)&&((Se=j.current)==null?void 0:Se.lastColumnIndex)===(re==null?void 0:re.lastColumnIndex))return;_.current=ne;let Ee=!1;re!==j.current||!j.current?(M1e(me)?(zd.flushSync(()=>{O(re)}),Ee=!0):O(re),j.current=re):Ee=!0,re&&Ee&&H(re)},[H,O]),Q=c.useCallback(ne=>M(ne.field),[]),J=c.useCallback(()=>M(""),[]),Y=c.useCallback(ne=>S(ne.field),[]),X=c.useCallback(()=>S(""),[]);dt(E,"columnResizeStart",Q),dt(E,"columnResizeStop",J),dt(E,"columnHeaderDragStart",Y),dt(E,"columnHeaderDragEnd",X),dt(E,"scrollPositionChange",K);const ee=ne=>{const{renderContext:re=L,minFirstColumn:me=n,maxLastColumn:ce=r.length}=ne||{};if(!re)return null;const[Se,Ee]=ea({firstIndex:re.firstRowIndex,lastIndex:re.lastRowIndex,minFirstIndex:0,maxLastIndex:T.rows.length,buffer:R.rowBuffer}),ae=I?N.current({firstColumnIndex:re.firstColumnIndex,minColumnIndex:me,columnBuffer:R.columnBuffer,apiRef:E,firstRowToRender:Se,lastRowToRender:Ee,visibleRows:T.rows}):0,Ie=I?Math.min(re.lastColumnIndex+R.columnBuffer,ce):ce;return{renderedColumns:r.slice(ae,Ie),firstColumnToRender:ae,lastColumnToRender:Ie,minFirstColumn:me,maxLastColumn:ce}},se=(ne,re={})=>{const me=ee(ne);if(me==null)return null;const{renderedColumns:ce,firstColumnToRender:Se}=me,Ee=[];for(let ae=0;ae<ce.length;ae+=1){const Ie=ce[ae],ye=Se+ae,Me=ye===0,pe=l!==null&&l.field===Ie.field||Me&&!C?0:-1,fe=u!==null&&u.field===Ie.field,de=v.open&&v.field===Ie.field;Ee.push(D.jsx(Bge,x({},o[Ie.field],{columnMenuOpen:de,filterItemsCounter:s[Ie.field]&&s[Ie.field].length,headerHeight:B,isDragging:Ie.field===w,colDef:Ie,colIndex:ye,isResizing:k===Ie.field,hasFocus:fe,tabIndex:pe},re),Ie.field))}return D.jsx(tD,{role:"row","aria-rowindex":m+1,ownerState:R,children:Ee})},Z=ne=>{if(m===0)return null;const re=ee(ne);if(re==null||re.renderedColumns.length===0)return null;const{firstColumnToRender:me,lastColumnToRender:ce}=re,Se=[],Ee=[];for(let ye=0;ye<m;ye+=1){var ae,Ie;const Me=g[ye],pe=r[me].field,fe=(ae=E.current.unstable_getColumnGroupPath(pe)[ye])!=null?ae:null,de=Me.findIndex(({groupId:Pt,columnFields:wt})=>Pt===fe&&wt.includes(pe)),be=r[ce-1].field,_e=(Ie=E.current.unstable_getColumnGroupPath(be)[ye])!=null?Ie:null,Ne=Me.findIndex(({groupId:Pt,columnFields:wt})=>Pt===_e&&wt.includes(be)),Ge=Me.slice(de,Ne+1).map(Pt=>x({},Pt,{columnFields:Pt.columnFields.filter(wt=>y[wt]!==!1)})).filter(Pt=>Pt.columnFields.length>0),Ve=Ge[0].columnFields.indexOf(pe),Le=Ge[0].columnFields.slice(0,Ve).reduce((Pt,wt)=>{var Xe;const Oe=E.current.getColumn(wt);return Pt+((Xe=Oe.computedWidth)!=null?Xe:0)},0);let ht=me;const Zt=Ge.map(({groupId:Pt,columnFields:wt})=>{const Xe=f!==null&&f.depth===ye&&wt.includes(f.field),Oe=a!==null&&a.depth===ye&&wt.includes(a.field)?0:-1,qe={groupId:Pt,width:wt.reduce((mt,vt)=>mt+E.current.getColumn(vt).computedWidth,0),fields:wt,colIndex:ht,hasFocus:Xe,tabIndex:Oe};return ht+=wt.length,qe});Ee.push({leftOverflow:Le,elements:Zt})}return Ee.forEach((ye,Me)=>{Se.push(D.jsx(tD,{style:{height:`${B}px`,transform:`translateX(-${ye.leftOverflow}px)`},role:"row","aria-rowindex":Me+1,ownerState:R,children:ye.elements.map(({groupId:pe,width:fe,fields:de,colIndex:be,hasFocus:_e,tabIndex:Ne},Ge)=>D.jsx(I1e,{groupId:pe,width:fe,fields:de,colIndex:be,depth:Me,isLastColumn:be===r.length-de.length,maxDepth:Ee.length,height:B,hasFocus:_e,tabIndex:Ne},Ge))},Me))}),Se},he={minHeight:F,maxHeight:F,lineHeight:`${B}px`};return{renderContext:L,getColumnHeaders:se,getColumnsToRender:ee,getColumnGroupHeaders:Z,isDragging:!!w,getRootProps:(ne={})=>x({style:he},ne),getInnerProps:()=>({ref:$,role:"rowgroup"}),headerHeight:B}},T1e=["className"],$1e=e=>{const{classes:t}=e;return Te({root:["columnHeaders","withBorderColor"]},jt,t)},R1e=Ir("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({position:"relative",overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",borderBottom:"1px solid",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),O1e=c.forwardRef(function(t,n){const{className:r}=t,o=le(t,T1e),s=ut(),i=$1e(s);return D.jsx(R1e,x({ref:n,className:Ce(r,i.root),ownerState:s},o,{role:"presentation"}))}),D1e=["isDragging","className"],A1e=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return Te({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},jt,r)},L1e=Ir("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${ue.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${ue.columnHeaderDropZone} .${ue.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${ue["columnHeadersInner--scrollable"]} .${ue.columnHeader}:last-child`]:{borderRight:"none"}})),F1e=c.forwardRef(function(t,n){var r,o;const{isDragging:s,className:i}=t,l=le(t,D1e),a=Vt(),u=ut(),f=x({},u,{isDragging:s,hasScrollX:(r=(o=a.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1}),p=A1e(f);return D.jsx(L1e,x({ref:n,className:Ce(i,p.root),ownerState:f},l))}),N1e=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],B1e=c.forwardRef(function(t,n){const{innerRef:r,visibleColumns:o,sortColumnLookup:s,filterColumnLookup:i,columnPositions:l,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:u,columnHeaderFocus:f,columnGroupHeaderFocus:p,densityFactor:m,headerGroupingMaxDepth:v,columnMenuState:y,columnVisibility:g,columnGroupsHeaderStructure:C,hasOtherElementInTabSequence:b}=t,w=le(t,N1e),{isDragging:S,getRootProps:k,getInnerProps:M,getColumnHeaders:E,getColumnGroupHeaders:I}=_1e({innerRef:r,visibleColumns:o,sortColumnLookup:s,filterColumnLookup:i,columnPositions:l,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:u,columnHeaderFocus:f,columnGroupHeaderFocus:p,densityFactor:m,headerGroupingMaxDepth:v,columnMenuState:y,columnVisibility:g,columnGroupsHeaderStructure:C,hasOtherElementInTabSequence:b});return D.jsx(O1e,x({ref:n},k(w),{children:D.jsxs(F1e,x({isDragging:S},M(),{children:[I(),E()]}))}))}),z1e=g0(B1e),V1e=c.forwardRef(function(t,n){const o=Vt().current.getLocaleText("noResultsOverlayLabel");return D.jsx(PE,x({ref:n},t,{children:o}))}),j1e=["sortingOrder"],H1e=c.memo(function(t){const{sortingOrder:n}=t,r=le(t,j1e),o=ut(),[s]=n,i=s==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return i?D.jsx(i,x({},r)):null}),U1e=["native"];function W1e(e){let{native:t}=e,n=le(e,U1e);return t?D.jsx("option",x({},n)):D.jsx(Pr,x({},n))}const G1e={BooleanCellTrueIcon:Fve,BooleanCellFalseIcon:eC,ColumnMenuIcon:Ove,OpenFilterButtonIcon:Eve,FilterPanelDeleteIcon:eC,ColumnFilteredIcon:DO,ColumnSelectorIcon:Mve,ColumnUnsortedIcon:H1e,ColumnSortedAscendingIcon:TO,ColumnSortedDescendingIcon:$O,ColumnResizeIcon:_ve,DensityCompactIcon:Tve,DensityStandardIcon:$ve,DensityComfortableIcon:Rve,ExportIcon:Lve,MoreActionsIcon:Nve,TreeDataCollapseIcon:OO,TreeDataExpandIcon:RO,GroupingCriteriaCollapseIcon:OO,GroupingCriteriaExpandIcon:RO,DetailPanelExpandIcon:AO,DetailPanelCollapseIcon:Dve,RowReorderIcon:LO,QuickFilterIcon:Ive,QuickFilterClearIcon:eC,ColumnMenuHideIcon:Bve,ColumnMenuSortAscendingIcon:TO,ColumnMenuSortDescendingIcon:$O,ColumnMenuFilterIcon:DO,ColumnMenuManageColumnsIcon:zve,ColumnMenuClearIcon:Vve,LoadIcon:Ave,FilterPanelAddIcon:AO,FilterPanelRemoveAllIcon:jve,ColumnReorderIcon:LO},K1e=x({},G1e,{BaseCheckbox:NN,BaseTextField:Na,BaseFormControl:KN,BaseSelect:mk,BaseSwitch:f4,BaseButton:Yn,BaseIconButton:hr,BaseInputAdornment:Cl,BaseTooltip:Ml,BasePopper:Fa,BaseInputLabel:t4,BaseSelectOption:W1e,BaseChip:Eb}),q1e=K1e,Y1e=x({},q1e,{Cell:Jx,SkeletonCell:sge,ColumnHeaderFilterIconButton:yve,ColumnMenu:rye,ColumnHeaders:z1e,Footer:dbe,FooterRowCount:wbe,Toolbar:null,PreferencesPanel:$ye,LoadingOverlay:pbe,NoResultsOverlay:V1e,NoRowsOverlay:hbe,Pagination:gbe,FilterPanel:Zye,ColumnsPanel:kye,Panel:Tye,Row:Bbe}),IB=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>x({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function Q1e({defaultSlots:e,slots:t,components:n}){const r=t!=null?t:n?IB(n):null;if(!r||Object.keys(r).length===0)return e;const o=x({},e);return Object.keys(r).forEach(s=>{const i=s;r[i]!==void 0&&(o[i]=r[i])}),o}const X1e=["components","componentsProps"];function Z1e(e){var t;const n=Object.keys(e);if(!n.some(s=>s.startsWith("aria-")||s.startsWith("data-")))return e;const r={},o=(t=e.forwardedProps)!=null?t:{};for(let s=0;s<n.length;s+=1){const i=n[s];i.startsWith("aria-")||i.startsWith("data-")?o[i]=e[i]:r[i]=e[i]}return r.forwardedProps=o,r}function J1e(e){return c.useMemo(()=>{const{components:t,componentsProps:n}=e,r=le(e,X1e);return[t,n,Z1e(r)]},[e])}const ewe={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},y0={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,rowSelection:!0,density:"standard",disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleRowSelection:!1,disableMultipleColumnsSorting:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:ji.Cell,filterMode:"client",filterDebounceMs:150,columnHeaderHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:"client",rowHeight:52,pageSizeOptions:[25,50,100],rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingOrder:["asc","desc",null],sortingMode:"client",throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1,unstable_ignoreValueFormatterDuringExport:!1,clipboardCopyCellDelimiter:" ",rowPositionsDebounceMs:166},twe=IB(Y1e),nwe=e=>{const[t,n,r]=J1e(je({props:e,name:"MuiDataGrid"})),o=c.useMemo(()=>x({},kB,r.localeText),[r.localeText]),s=c.useMemo(()=>Q1e({defaultSlots:twe,slots:r.slots,components:t}),[t,r.slots]);return c.useMemo(()=>{var i;return x({},y0,r,{localeText:o,slots:s,slotProps:(i=r.slotProps)!=null?i:n},ewe)},[r,o,s,n])},rwe=e=>x({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),nD=(e,t,n)=>typeof e=="number"&&e>0?e:t,owe=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,s=c.useRef(Object.create(null)),i=c.useRef(-1),l=c.useRef(!1),a=nt(e,nf),u=nt(e,Or),f=nt(e,Q5),p=nt(e,Cs),m=Uc(e,t),v=nt(e,tf),y=nD(t.rowHeight,y0.rowHeight),g=Math.floor(y*a),C=c.useCallback(()=>{var V,j;l.current=!1;const _=B=>{s.current[B.id]||(s.current[B.id]={sizes:{baseCenter:g},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:O,needsFirstMeasurement:N,sizes:H}=s.current[B.id];let K=typeof g=="number"&&g>0?g:52;const Q=H.baseCenter;if(O)K=Q;else if(n){const se=n(x({},B,{densityFactor:a}));if(se==="auto"){if(N){const Z=o?o(x({},B,{densityFactor:a})):g;K=Z!=null?Z:g}else K=Q;l.current=!0,s.current[B.id].autoHeight=!0}else K=nD(se,g),s.current[B.id].needsFirstMeasurement=!1,s.current[B.id].autoHeight=!1}else s.current[B.id].needsFirstMeasurement=!1;const J={};for(const se in H)/^base[A-Z]/.test(se)&&(J[se]=H[se]);if(J.baseCenter=K,r){var Y,X;const se=e.current.getRowIndexRelativeToVisibleRows(B.id),Z=r(x({},B,{isFirstVisible:se===0,isLastVisible:se===m.rows.length-1,indexRelativeToCurrentPage:se}));J.spacingTop=(Y=Z.top)!=null?Y:0,J.spacingBottom=(X=Z.bottom)!=null?X:0}const ee=e.current.unstable_applyPipeProcessors("rowHeight",J,B);return s.current[B.id].sizes=ee,ee},T=[],F=m.rows.reduce((B,O)=>{T.push(B);let N=0,H=0;const K=_(O);for(const Q in K){const J=K[Q];/^base[A-Z]/.test(Q)?N=J>N?J:N:H+=J}return B+N+H},0);v==null||(V=v.top)==null||V.forEach(B=>{_(B)}),v==null||(j=v.bottom)==null||j.forEach(B=>{_(B)}),e.current.setState(B=>x({},B,{rowsMeta:{currentPageTotalHeight:F,positions:T}})),l.current||(i.current=1/0),e.current.forceUpdate()},[e,m.rows,g,n,r,o,v,a]),b=c.useCallback(V=>{const j=s.current[V];return j?j.sizes.baseCenter:g},[g]),w=V=>{var j;return(j=s.current[V])==null?void 0:j.sizes},S=c.useCallback((V,j)=>{s.current[V].sizes.baseCenter=j,s.current[V].isResized=!0,s.current[V].needsFirstMeasurement=!1,C()},[C]),k=c.useMemo(()=>Aa(C,t.rowPositionsDebounceMs),[C,t.rowPositionsDebounceMs]),M=c.useCallback((V,j,_)=>{if(!s.current[V]||!s.current[V].autoHeight)return;const T=s.current[V].sizes[`base${Pe(_)}`]!==j;s.current[V].needsFirstMeasurement=!1,s.current[V].sizes[`base${Pe(_)}`]=j,T&&k()},[k]),E=c.useCallback(V=>{var j;return((j=s.current[V])==null?void 0:j.autoHeight)||!1},[]),I=c.useCallback(()=>i.current,[]),R=c.useCallback(V=>{l.current&&V>i.current&&(i.current=V)},[]),A=c.useCallback(()=>{s.current={},C()},[C]);c.useEffect(()=>{C()},[g,u,f,p,C]),RE(e,"rowHeight",C);const $={unstable_setLastMeasuredRowIndex:R,unstable_getRowHeight:b,unstable_getRowInternalSizes:w,unstable_setRowHeight:S,unstable_storeRowHeightMeasurement:M,resetRowHeights:A},L={getLastMeasuredRowIndex:I,rowHasAutoHeight:E};At(e,$,"public"),At(e,L,"private")},swe=e=>{const t=c.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=c.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(i=>{i()}),e.current.forceUpdate()},[e]);At(e,{exportState:t,restoreState:n},"public")},iwe=e=>{const t=c.useRef({}),n=c.useCallback((u,f,p)=>{const m=t.current;m[u]||(m[u]={}),m[u][f]=p},[]),r=c.useCallback((u,f)=>{var p;return(p=t.current[u])==null?void 0:p[f]},[]),o=c.useCallback(u=>{const{columnIndex:f,rowId:p,minFirstColumnIndex:m,maxLastColumnIndex:v,columns:y}=u,g=y.length,C=y[f],b=typeof C.colSpan=="function"?C.colSpan(e.current.getCellParams(p,C.field)):C.colSpan;if(!b||b===1)return n(p,f,{spannedByColSpan:!1,cellProps:{colSpan:1,width:C.computedWidth}}),{colSpan:1};let w=C.computedWidth;for(let S=1;S<b;S+=1){const k=f+S;if(k>=m&&k<v){const M=y[k];w+=M.computedWidth,n(p,f+S,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(f+b,g-1),leftVisibleCellIndex:f})}n(p,f,{spannedByColSpan:!1,cellProps:{colSpan:b,width:w}})}return{colSpan:b}},[e,n]),s=c.useCallback(({rowId:u,minFirstColumn:f,maxLastColumn:p,columns:m})=>{for(let v=f;v<p;v+=1){const y=o({columnIndex:v,rowId:u,minFirstColumnIndex:f,maxLastColumnIndex:p,columns:m});y.colSpan>1&&(v+=y.colSpan-1)}},[o]),i={unstable_getCellColSpanInfo:r},l={calculateColSpan:s};At(e,i,"public"),At(e,l,"private");const a=c.useCallback(()=>{t.current={}},[]);dt(e,"columnOrderChange",a)},MB=(e,t,n)=>{if(A5(e)){if(n[e.field]!==void 0)throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
360
+ `));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(s=>{MB(s,[...t,r],n)})},aS=e=>{if(!e)return{};const t={};return e.forEach(n=>{MB(n,[],t)}),t},cS=(e,t,n)=>{const r=a=>{var u;return(u=t[a])!=null?u:[]},o=[],s=Math.max(...e.map(a=>r(a).length)),i=(a,u,f)=>bc(r(a).slice(0,f+1),r(u).slice(0,f+1)),l=(a,u)=>!!(n!=null&&n.left&&n.left.includes(a)&&!n.left.includes(u)||n!=null&&n.right&&!n.right.includes(a)&&n.right.includes(u));for(let a=0;a<s;a+=1){const u=e.reduce((f,p)=>{var m;const v=(m=r(p)[a])!=null?m:null;if(f.length===0)return[{columnFields:[p],groupId:v}];const y=f[f.length-1],g=y.columnFields[y.columnFields.length-1];return y.groupId!==v||!i(g,p,a)||l(g,p)?[...f,{columnFields:[p],groupId:v}]:[...f.slice(0,f.length-1),{columnFields:[...y.columnFields,p],groupId:v}]},[]);o.push(u)}return o},lwe=["groupId","children"],DE=e=>{let t={};return e.forEach(n=>{if(A5(n))return;const{groupId:r,children:o}=n,s=le(n,lwe);if(!r)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");o||console.warn(`MUI: group groupId=${r} has no children.`);const i=x({},s,{groupId:r}),l=DE(o);if(l[r]!==void 0||t[r]!==void 0)throw new Error(`MUI: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=x({},t,l,{[r]:i})}),x({},t)},awe=(e,t,n)=>{var r,o,s,i;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const l=ml(n),a=c0(n),u=DE((o=t.columnGroupingModel)!=null?o:[]),f=aS((s=t.columnGroupingModel)!=null?s:[]),p=cS(l,f,(i=n.current.state.pinnedColumns)!=null?i:{}),m=a.length===0?0:Math.max(...a.map(v=>{var y,g;return(y=(g=f[v])==null?void 0:g.length)!=null?y:0}));return x({},e,{columnGrouping:{lookup:u,unwrappedGroupingModel:f,headerStructure:p,maxDepth:m}})},cwe=(e,t)=>{var n;const r=c.useCallback(a=>{var u;return(u=The(e)[a])!=null?u:[]},[e]),o=c.useCallback(()=>P5(e),[e]);At(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const i=c.useCallback(()=>{var a;const u=aS((a=t.columnGroupingModel)!=null?a:[]);e.current.setState(f=>{var p,m,v;const y=(p=(m=f.columns)==null?void 0:m.orderedFields)!=null?p:[],g=(v=f.pinnedColumns)!=null?v:{},C=cS(y,u,g);return x({},f,{columnGrouping:x({},f.columnGrouping,{headerStructure:C})})})},[e,t.columnGroupingModel]),l=c.useCallback(a=>{var u,f,p,m;if(!((u=t.experimentalFeatures)!=null&&u.columnGrouping))return;const v=(f=(p=(m=e.current).getPinnedColumns)==null?void 0:p.call(m))!=null?f:{},y=ml(e),g=c0(e),C=DE(a!=null?a:[]),b=aS(a!=null?a:[]),w=cS(y,b,v),S=g.length===0?0:Math.max(...g.map(k=>{var M,E;return(M=(E=b[k])==null?void 0:E.length)!=null?M:0}));e.current.setState(k=>x({},k,{columnGrouping:{lookup:C,unwrappedGroupingModel:b,headerStructure:w,maxDepth:S}}))},[e,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);dt(e,"columnIndexChange",i),dt(e,"columnsChange",()=>{l(t.columnGroupingModel)}),dt(e,"columnVisibilityModelChange",()=>{l(t.columnGroupingModel)}),c.useEffect(()=>{l(t.columnGroupingModel)},[l,t.columnGroupingModel])},uwe=(e,t)=>{const n=e0e(e,t);return h1e(n,t),u1e(n),bo(d1e,n,t),bo(k0e,n,t),bo(s1e,n,t),bo(r1e,n,t),bo(H0e,n,t),bo(m1e,n,t),bo(K0e,n,t),bo(B0e,n,t),bo(_0e,n,t),bo(D0e,n,t),bo(rwe,n,t),bo(w0e,n,t),bo(awe,n,t),bo(hve,n,t),G0e(n,t),f1e(n,t),E0e(n,t),i1e(n,t),dme(n,t),iwe(n),cwe(n,t),o1e(n,t),U0e(n,t),q0e(n,t),j0e(n,t),g1e(n,t),T0e(n,t),A0e(n,t),owe(n,t),v1e(n,t),C0e(n),O0e(n,t),N0e(n,t),b0e(n,t),w1e(n,t),y1e(n,t),swe(n),mve(n,t),n},dwe=e=>{const{classes:t}=e;return Te({root:["virtualScroller"]},jt,t)},fwe=Ir("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"},zIndex:0}),pwe=c.forwardRef(function(t,n){const r=ut(),o=dwe(r);return D.jsx(fwe,x({ref:n},t,{className:Ce(o.root,t.className),ownerState:r}))}),hwe=(e,t)=>{const{classes:n}=e;return Te({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},jt,n)},mwe=Ir("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),gwe=c.forwardRef(function(t,n){var r;const o=ut(),s=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",i=hwe(o,s);return D.jsx(mwe,x({ref:n},t,{ownerState:o,className:Ce(i.root,t.className)}))}),vwe=["className"],ywe=e=>{const{classes:t}=e;return Te({root:["virtualScrollerRenderZone"]},jt,t)},bwe=Ir("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),wwe=c.forwardRef(function(t,n){const{className:r}=t,o=le(t,vwe),s=ut(),i=ywe(s);return D.jsx(bwe,x({ref:n,className:Ce(i.root,r),ownerState:s},o))}),Cwe=["className"],xwe=c.forwardRef(function(t,n){const{className:r}=t,o=le(t,Cwe),{getRootProps:s,getContentProps:i,getRenderZoneProps:l,getRows:a}=k1e({ref:n});return D.jsxs(pwe,x({className:r},s(o),{children:[D.jsx(ome,{}),D.jsx(gwe,x({},i(),{children:D.jsx(wwe,x({},l(),{children:a()}))}))]}))}),_B=c.forwardRef(function(t,n){const r=nwe(t),o=uwe(r.apiRef,r);return D.jsx(zbe,{privateApiRef:o,props:r,children:D.jsxs(uge,x({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[D.jsx(fbe,{}),D.jsx(Yhe,{VirtualScrollerComponent:xwe}),D.jsx(Qhe,{})]}))})}),TB=c.memo(_B);y0.filterDebounceMs;y0.filterDebounceMs;_B.propTypes={apiRef:W.shape({current:W.object.isRequired}),"aria-label":W.string,"aria-labelledby":W.string,autoHeight:W.bool,autoPageSize:W.bool,cellModesModel:W.object,checkboxSelection:W.bool,classes:W.object,clipboardCopyCellDelimiter:W.string,columnBuffer:W.number,columnGroupingModel:W.arrayOf(W.object),columnHeaderHeight:W.number,columns:hq(W.array.isRequired),columnThreshold:W.number,columnVisibilityModel:W.object,components:W.object,componentsProps:W.object,density:W.oneOf(["comfortable","compact","standard"]),disableColumnFilter:W.bool,disableColumnMenu:W.bool,disableColumnSelector:W.bool,disableDensitySelector:W.bool,disableEval:W.bool,disableRowSelectionOnClick:W.bool,disableVirtualization:W.bool,editMode:W.oneOf(["cell","row"]),experimentalFeatures:W.shape({ariaV7:W.bool,columnGrouping:W.bool,warnIfFocusStateIsNotSynced:W.bool}),filterDebounceMs:W.number,filterMode:W.oneOf(["client","server"]),filterModel:W.shape({items:W.arrayOf(W.shape({field:W.string.isRequired,id:W.oneOfType([W.number,W.string]),operator:W.string.isRequired,value:W.any})).isRequired,logicOperator:W.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:W.bool,quickFilterLogicOperator:W.oneOf(["and","or"]),quickFilterValues:W.array}),forwardedProps:W.object,getCellClassName:W.func,getDetailPanelContent:W.func,getEstimatedRowHeight:W.func,getRowClassName:W.func,getRowHeight:W.func,getRowId:W.func,getRowSpacing:W.func,hideFooter:W.bool,hideFooterPagination:W.bool,hideFooterSelectedRowCount:W.bool,ignoreDiacritics:W.bool,initialState:W.object,isCellEditable:W.func,isRowSelectable:W.func,keepNonExistentRowsSelected:W.bool,loading:W.bool,localeText:W.object,logger:W.shape({debug:W.func.isRequired,error:W.func.isRequired,info:W.func.isRequired,warn:W.func.isRequired}),logLevel:W.oneOf(["debug","error","info","warn",!1]),nonce:W.string,onCellClick:W.func,onCellDoubleClick:W.func,onCellEditStart:W.func,onCellEditStop:W.func,onCellKeyDown:W.func,onCellModesModelChange:W.func,onClipboardCopy:W.func,onColumnHeaderClick:W.func,onColumnHeaderDoubleClick:W.func,onColumnHeaderEnter:W.func,onColumnHeaderLeave:W.func,onColumnHeaderOut:W.func,onColumnHeaderOver:W.func,onColumnOrderChange:W.func,onColumnVisibilityModelChange:W.func,onFilterModelChange:W.func,onMenuClose:W.func,onMenuOpen:W.func,onPaginationModelChange:W.func,onPreferencePanelClose:W.func,onPreferencePanelOpen:W.func,onProcessRowUpdateError:W.func,onResize:W.func,onRowClick:W.func,onRowDoubleClick:W.func,onRowEditCommit:W.func,onRowEditStart:W.func,onRowEditStop:W.func,onRowModesModelChange:W.func,onRowSelectionModelChange:W.func,onSortModelChange:W.func,onStateChange:W.func,pageSizeOptions:W.arrayOf(W.oneOfType([W.number,W.shape({label:W.string.isRequired,value:W.number.isRequired})]).isRequired),pagination:e=>e.pagination===!1?new Error(["MUI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join(`
361
+ `)):null,paginationMode:W.oneOf(["client","server"]),paginationModel:W.shape({page:W.number.isRequired,pageSize:W.number.isRequired}),processRowUpdate:W.func,rowBuffer:W.number,rowCount:W.number,rowHeight:W.number,rowModesModel:W.object,rowPositionsDebounceMs:W.number,rows:W.arrayOf(W.object).isRequired,rowSelection:W.bool,rowSelectionModel:W.oneOfType([W.arrayOf(W.oneOfType([W.number,W.string]).isRequired),W.number,W.string]),rowSpacingType:W.oneOf(["border","margin"]),rowThreshold:W.number,scrollbarSize:W.number,showCellVerticalBorder:W.bool,showColumnVerticalBorder:W.bool,slotProps:W.object,slots:W.object,sortingMode:W.oneOf(["client","server"]),sortingOrder:W.arrayOf(W.oneOf(["asc","desc"])),sortModel:W.arrayOf(W.shape({field:W.string.isRequired,sort:W.oneOf(["asc","desc"])})),sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),unstable_ignoreValueFormatterDuringExport:W.oneOfType([W.shape({clipboardExport:W.bool,csvExport:W.bool}),W.bool])};const Swe={},Pwe=(e,t)=>{var n;return{components:{MuiDataGrid:{defaultProps:{localeText:x({},e,{MuiTablePagination:(t==null||(n=t.components)==null||(n=n.MuiTablePagination)==null?void 0:n.defaultProps)||{}})}}}}},kwe=Pwe(kB,Swe),rC="Actions";function Yh(u){var f=u,{columns:e,initialState:t={},actions:n,actionsProps:r,initializing:o,noRows:s,error:i,compact:l}=f,a=Ft(f,["columns","initialState","actions","actionsProps","initializing","noRows","error","compact"]);const{width:p}=Nb(),m=yn(),v=mhe(),[y,g]=c.useState(0),C=c.useMemo(()=>{const{localeText:E}=kwe.components.MuiDataGrid.defaultProps,I=e.map(R=>{var _;const{type:A}=R;(!A||A==="string")&&((_=R.filterOperators)!=null||(R.filterOperators=pB().map(F=>F.value.includes("Empty")?F:[F,st(xe(st(xe({},F),{value:"!"+F.value,getApplyFilterFn(B,O){const N=F.getApplyFilterFn(B,O);return N&&rt.negate(N)}}),F.getApplyFilterFnV7&&{getApplyFilterFnV7(B,O){var H;const N=(H=F.getApplyFilterFnV7)==null?void 0:H.call(F,B,O);return N?rt.negate(N):null}}),{label:"(not) "+(E["filterOperator"+rt.upperFirst(F.value)]||F.value)})]).flat()));const{mergeRender:$}=R;if(!$)return R;const T=$,{other:L,override:V}=T,j=Ft(T,["other","override"]);return st(xe({},R),{originalRenderCell:R.renderCell||!0,renderCell(F){const{columns:B}=F.api.store.getSnapshot(),O=B.columnVisibilityModel[L]===!1;return c.createElement(ze,{},R.renderCell?R.renderCell(F):F.formattedValue,O&&c.createElement(ze,xe(xe({},l&&{lineHeight:"1em",fontSize:"smaller"}),j),M(xe(xe({},B.lookup[L]),V),F.row)))}})});return n&&I.push(xe({field:rC,width:40*y,headerName:"",align:"center",headerAlign:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell(R){const A=n(xe(xe({},R.row),R));return setTimeout(()=>g(A.length)),c.createElement(ze,{whiteSpace:"nowrap"},...A)}},r)),I},[e,n,y]),b=c.useMemo(()=>{if(!p)return;const E=jc(C.map(({field:R,hideUnder:A,hidden:$})=>($||A&&p<(typeof A=="number"?A:m.breakpoints.values[A]))&&R)),I=Object.fromEntries(E.map(R=>[R,!1]));return rt.merge(t,{columns:{columnVisibilityModel:I}}),E},[C]),[w,S]=c.useState({}),k=c.useRef({});if(c.useEffect(()=>{const{current:{id:E,setCurRow:I}}=k;I==null||I(rt.find(a.rows,{id:E}))}),!b)return null;return c.createElement(c.Fragment,{},i&&c.createElement(kr,{severity:"error"},i),o&&c.createElement(ze,{position:"relative"},c.createElement(Vv,{sx:{position:"absolute",width:"calc(100% - 2px)",borderRadius:1,m:"1px 1px"}})),c.createElement(TB,st(xe({initialState:t,style:{height:0,flex:"auto"},density:l?"compact":"standard",columns:C,apiRef:v,slots:xe({},(s||o)&&{noRowsOverlay:()=>o?null:c.createElement(Hh,{},s)}),onCellClick({field:E,row:I}){if(E===rC)return;const R=v.current.getVisibleColumns().length,A=C.filter($=>$.renderCell||$.field===rC||I[$.field]!==void 0);A.length<=R||Ro({title:"Details",onClose(){k.current={}},Content(){const[$,L]=c.useState(I),V=c.useRef(I);$&&(V.current=$);const j=V.current;return k.current={id:j.id,setCurRow:L},c.createElement(ze,{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(8em,1fr))",gap:"1em",gridAutoFlow:"dense",minWidth:"max(16em, 40vw)",sx:{opacity:$?void 0:.5}},A.map(_=>c.createElement(ze,{key:_.field,gridColumn:_.flex&&"1/-1"},c.createElement(ze,{bgcolor:"#0003",p:1},_.headerName||_.field),c.createElement(qr,{minHeight:"2.5em",px:1,wordBreak:"break-word"},M(_,j)))))}})}},a),{onColumnVisibilityModelChange:E=>S(E),columnVisibilityModel:xe(xe(xe({},Object.fromEntries(b.map(E=>[E,!1]))),a.columnVisibilityModel),w)})));function M(E,I){const R=v.current;let A=I[E.field];E.valueGetter&&(A=E.valueGetter({value:A,api:R,row:I,field:E.field,id:I.id}));const $=E.originalRenderCell||E.renderCell;return $&&$!==!0?$(xe({value:A,row:I,api:R},I)):E.valueFormatter?E.valueFormatter(xe({value:A},I)):A}}const $B=`🇦🇨|AC|Ascension Island
362
+ 🇦🇩|AD|Andorra
363
+ 🇦🇪|AE|United Arab Emirates
364
+ 🇦🇫|AF|Afghanistan
365
+ 🇦🇬|AG|Antigua & Barbuda
366
+ 🇦🇮|AI|Anguilla
367
+ 🇦🇱|AL|Albania
368
+ 🇦🇲|AM|Armenia
369
+ 🇦🇴|AO|Angola
370
+ 🇦🇶|AQ|Antarctica
371
+ 🇦🇷|AR|Argentina
372
+ 🇦🇸|AS|American Samoa
373
+ 🇦🇹|AT|Austria
374
+ 🇦🇺|AU|Australia
375
+ 🇦🇼|AW|Aruba
376
+ 🇦🇽|AX|Åland Islands
377
+ 🇦🇿|AZ|Azerbaijan
378
+ 🇧🇦|BA|Bosnia & Herzegovina
379
+ 🇧🇧|BB|Barbados
380
+ 🇧🇩|BD|Bangladesh
381
+ 🇧🇪|BE|Belgium
382
+ 🇧🇫|BF|Burkina Faso
383
+ 🇧🇬|BG|Bulgaria
384
+ 🇧🇭|BH|Bahrain
385
+ 🇧🇮|BI|Burundi
386
+ 🇧🇯|BJ|Benin
387
+ 🇧🇱|BL|St. Barthélemy
388
+ 🇧🇲|BM|Bermuda
389
+ 🇧🇳|BN|Brunei
390
+ 🇧🇴|BO|Bolivia
391
+ 🇧🇶|BQ|Caribbean Netherlands
392
+ 🇧🇷|BR|Brazil
393
+ 🇧🇸|BS|Bahamas
394
+ 🇧🇹|BT|Bhutan
395
+ 🇧🇻|BV|Bouvet Island
396
+ 🇧🇼|BW|Botswana
397
+ 🇧🇾|BY|Belarus
398
+ 🇧🇿|BZ|Belize
399
+ 🇨🇦|CA|Canada
400
+ 🇨🇨|CC|Cocos (Keeling) Islands
401
+ 🇨🇩|CD|Congo - Kinshasa
402
+ 🇨🇫|CF|Central African Republic
403
+ 🇨🇬|CG|Congo - Brazzaville
404
+ 🇨🇭|CH|Switzerland
405
+ 🇨🇮|CI|Côte d'Ivoire
406
+ 🇨🇰|CK|Cook Islands
407
+ 🇨🇱|CL|Chile
408
+ 🇨🇲|CM|Cameroon
409
+ 🇨🇳|CN|China
410
+ 🇨🇴|CO|Colombia
411
+ 🇨🇵|CP|Clipperton Island
412
+ 🇨🇷|CR|Costa Rica
413
+ 🇨🇺|CU|Cuba
414
+ 🇨🇻|CV|Cape Verde
415
+ 🇨🇼|CW|Curaçao
416
+ 🇨🇽|CX|Christmas Island
417
+ 🇨🇾|CY|Cyprus
418
+ 🇨🇿|CZ|Czechia
419
+ 🇩🇪|DE|Germany
420
+ 🇩🇬|DG|Diego Garcia
421
+ 🇩🇯|DJ|Djibouti
422
+ 🇩🇰|DK|Denmark
423
+ 🇩🇲|DM|Dominica
424
+ 🇩🇴|DO|Dominican Republic
425
+ 🇩🇿|DZ|Algeria
426
+ 🇪🇦|EA|Ceuta & Melilla
427
+ 🇪🇨|EC|Ecuador
428
+ 🇪🇪|EE|Estonia
429
+ 🇪🇬|EG|Egypt
430
+ 🇪🇭|EH|Western Sahara
431
+ 🇪🇷|ER|Eritrea
432
+ 🇪🇸|ES|Spain
433
+ 🇪🇹|ET|Ethiopia
434
+ 🇫🇮|FI|Finland
435
+ 🇫🇯|FJ|Fiji
436
+ 🇫🇰|FK|Falkland Islands
437
+ 🇫🇲|FM|Micronesia
438
+ 🇫🇴|FO|Faroe Islands
439
+ 🇫🇷|FR|France
440
+ 🇬🇦|GA|Gabon
441
+ 🇬🇧|GB|United Kingdom
442
+ 🇬🇩|GD|Grenada
443
+ 🇬🇪|GE|Georgia
444
+ 🇬🇫|GF|French Guiana
445
+ 🇬🇬|GG|Guernsey
446
+ 🇬🇭|GH|Ghana
447
+ 🇬🇮|GI|Gibraltar
448
+ 🇬🇱|GL|Greenland
449
+ 🇬🇲|GM|Gambia
450
+ 🇬🇳|GN|Guinea
451
+ 🇬🇵|GP|Guadeloupe
452
+ 🇬🇶|GQ|Equatorial Guinea
453
+ 🇬🇷|GR|Greece
454
+ 🇬🇸|GS|South Georgia & South Sandwich Islands
455
+ 🇬🇹|GT|Guatemala
456
+ 🇬🇺|GU|Guam
457
+ 🇬🇼|GW|Guinea-Bissau
458
+ 🇬🇾|GY|Guyana
459
+ 🇭🇰|HK|Hong Kong SAR China
460
+ 🇭🇲|HM|Heard & McDonald Islands
461
+ 🇭🇳|HN|Honduras
462
+ 🇭🇷|HR|Croatia
463
+ 🇭🇹|HT|Haiti
464
+ 🇭🇺|HU|Hungary
465
+ 🇮🇨|IC|Canary Islands
466
+ 🇮🇩|ID|Indonesia
467
+ 🇮🇪|IE|Ireland
468
+ 🇮🇱|IL|Israel
469
+ 🇮🇲|IM|Isle of Man
470
+ 🇮🇳|IN|India
471
+ 🇮🇴|IO|British Indian Ocean Territory
472
+ 🇮🇶|IQ|Iraq
473
+ 🇮🇷|IR|Iran
474
+ 🇮🇸|IS|Iceland
475
+ 🇮🇹|IT|Italy
476
+ 🇯🇪|JE|Jersey
477
+ 🇯🇲|JM|Jamaica
478
+ 🇯🇴|JO|Jordan
479
+ 🇯🇵|JP|Japan
480
+ 🇰🇪|KE|Kenya
481
+ 🇰🇬|KG|Kyrgyzstan
482
+ 🇰🇭|KH|Cambodia
483
+ 🇰🇮|KI|Kiribati
484
+ 🇰🇲|KM|Comoros
485
+ 🇰🇳|KN|St. Kitts & Nevis
486
+ 🇰🇵|KP|North Korea
487
+ 🇰🇷|KR|South Korea
488
+ 🇰🇼|KW|Kuwait
489
+ 🇰🇾|KY|Cayman Islands
490
+ 🇰🇿|KZ|Kazakhstan
491
+ 🇱🇦|LA|Laos
492
+ 🇱🇧|LB|Lebanon
493
+ 🇱🇨|LC|St. Lucia
494
+ 🇱🇮|LI|Liechtenstein
495
+ 🇱🇰|LK|Sri Lanka
496
+ 🇱🇷|LR|Liberia
497
+ 🇱🇸|LS|Lesotho
498
+ 🇱🇹|LT|Lithuania
499
+ 🇱🇺|LU|Luxembourg
500
+ 🇱🇻|LV|Latvia
501
+ 🇱🇾|LY|Libya
502
+ 🇲🇦|MA|Morocco
503
+ 🇲🇨|MC|Monaco
504
+ 🇲🇩|MD|Moldova
505
+ 🇲🇪|ME|Montenegro
506
+ 🇲🇫|MF|St. Martin
507
+ 🇲🇬|MG|Madagascar
508
+ 🇲🇭|MH|Marshall Islands
509
+ 🇲🇰|MK|North Macedonia
510
+ 🇲🇱|ML|Mali
511
+ 🇲🇲|MM|Myanmar (Burma)
512
+ 🇲🇳|MN|Mongolia
513
+ 🇲🇴|MO|Macao SAR China
514
+ 🇲🇵|MP|Northern Mariana Islands
515
+ 🇲🇶|MQ|Martinique
516
+ 🇲🇷|MR|Mauritania
517
+ 🇲🇸|MS|Montserrat
518
+ 🇲🇹|MT|Malta
519
+ 🇲🇺|MU|Mauritius
520
+ 🇲🇻|MV|Maldives
521
+ 🇲🇼|MW|Malawi
522
+ 🇲🇽|MX|Mexico
523
+ 🇲🇾|MY|Malaysia
524
+ 🇲🇿|MZ|Mozambique
525
+ 🇳🇦|NA|Namibia
526
+ 🇳🇨|NC|New Caledonia
527
+ 🇳🇪|NE|Niger
528
+ 🇳🇫|NF|Norfolk Island
529
+ 🇳🇬|NG|Nigeria
530
+ 🇳🇮|NI|Nicaragua
531
+ 🇳🇱|NL|Netherlands
532
+ 🇳🇴|NO|Norway
533
+ 🇳🇵|NP|Nepal
534
+ 🇳🇷|NR|Nauru
535
+ 🇳🇺|NU|Niue
536
+ 🇳🇿|NZ|New Zealand
537
+ 🇴🇲|OM|Oman
538
+ 🇵🇦|PA|Panama
539
+ 🇵🇪|PE|Peru
540
+ 🇵🇫|PF|French Polynesia
541
+ 🇵🇬|PG|Papua New Guinea
542
+ 🇵🇭|PH|Philippines
543
+ 🇵🇰|PK|Pakistan
544
+ 🇵🇱|PL|Poland
545
+ 🇵🇲|PM|St. Pierre & Miquelon
546
+ 🇵🇳|PN|Pitcairn Islands
547
+ 🇵🇷|PR|Puerto Rico
548
+ 🇵🇸|PS|Palestinian Territories
549
+ 🇵🇹|PT|Portugal
550
+ 🇵🇼|PW|Palau
551
+ 🇵🇾|PY|Paraguay
552
+ 🇶🇦|QA|Qatar
553
+ 🇷🇪|RE|Réunion
554
+ 🇷🇴|RO|Romania
555
+ 🇷🇸|RS|Serbia
556
+ 🇷🇺|RU|Russia
557
+ 🇷🇼|RW|Rwanda
558
+ 🇸🇦|SA|Saudi Arabia
559
+ 🇸🇧|SB|Solomon Islands
560
+ 🇸🇨|SC|Seychelles
561
+ 🇸🇩|SD|Sudan
562
+ 🇸🇪|SE|Sweden
563
+ 🇸🇬|SG|Singapore
564
+ 🇸🇭|SH|St. Helena
565
+ 🇸🇮|SI|Slovenia
566
+ 🇸🇯|SJ|Svalbard & Jan Mayen
567
+ 🇸🇰|SK|Slovakia
568
+ 🇸🇱|SL|Sierra Leone
569
+ 🇸🇲|SM|San Marino
570
+ 🇸🇳|SN|Senegal
571
+ 🇸🇴|SO|Somalia
572
+ 🇸🇷|SR|Suriname
573
+ 🇸🇸|SS|South Sudan
574
+ 🇸🇹|ST|São Tomé & Príncipe
575
+ 🇸🇻|SV|El Salvador
576
+ 🇸🇽|SX|Sint Maarten
577
+ 🇸🇾|SY|Syria
578
+ 🇸🇿|SZ|Eswatini
579
+ 🇹🇦|TA|Tristan da Cunha
580
+ 🇹🇨|TC|Turks & Caicos Islands
581
+ 🇹🇩|TD|Chad
582
+ 🇹🇫|TF|French Southern Territories
583
+ 🇹🇬|TG|Togo
584
+ 🇹🇭|TH|Thailand
585
+ 🇹🇯|TJ|Tajikistan
586
+ 🇹🇰|TK|Tokelau
587
+ 🇹🇱|TL|Timor-Leste
588
+ 🇹🇲|TM|Turkmenistan
589
+ 🇹🇳|TN|Tunisia
590
+ 🇹🇴|TO|Tonga
591
+ 🇹🇷|TR|Türkiye
592
+ 🇹🇹|TT|Trinidad & Tobago
593
+ 🇹🇻|TV|Tuvalu
594
+ 🇹🇼|TW|Taiwan
595
+ 🇹🇿|TZ|Tanzania
596
+ 🇺🇦|UA|Ukraine
597
+ 🇺🇬|UG|Uganda
598
+ 🇺🇲|UM|U.S. Outlying Islands
599
+ 🇺🇳|UN|United Nations
600
+ 🇺🇸|US|United States
601
+ 🇺🇾|UY|Uruguay
602
+ 🇺🇿|UZ|Uzbekistan
603
+ 🇻🇦|VA|Vatican City
604
+ 🇻🇨|VC|St. Vincent & Grenadines
605
+ 🇻🇪|VE|Venezuela
606
+ 🇻🇬|VG|British Virgin Islands
607
+ 🇻🇮|VI|U.S. Virgin Islands
608
+ 🇻🇳|VN|Vietnam
609
+ 🇻🇺|VU|Vanuatu
610
+ 🇼🇫|WF|Wallis & Futuna
611
+ 🇼🇸|WS|Samoa
612
+ 🇽🇰|XK|Kosovo
613
+ 🇾🇪|YE|Yemen
614
+ 🇾🇹|YT|Mayotte
615
+ 🇿🇦|ZA|South Africa
616
+ 🇿🇲|ZM|Zambia
617
+ 🇿🇼|ZW|Zimbabwe`.split(`
618
+ `).map(e=>{const[t,n,r]=e.split("|");return{flag:t,code:n,name:r}}),Ewe="AD,AE,AF,AG,AI,AL,AM,AO,AQ,AR,AS,AT,AU,AW,AX,AZ,BA,BB,BD,BE,BF,BG,BH,BI,BJ,BL,BM,BN,BO,BQ,BR,BS,BT,BV,BW,BY,BZ,CA,CD,CF,CG,CH,CI,CK,CL,CM,CN,CO,CR,CU,CV,CW,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,EG,ER,ES,ET,FI,FJ,FK,FM,FO,FR,GA,GB,GD,GE,GF,GG,GH,GI,GL,GM,GN,GP,GQ,GR,GT,GU,GW,GY,HK,HN,HR,HT,HU,ID,IE,IL,IM,IN,IO,IQ,IR,IS,IT,JE,JM,JO,JP,KE,KG,KH,KI,KM,KN,KP,KR,KW,KY,KZ,LA,LB,LC,LI,LK,LR,LS,LT,LU,LV,LY,MA,MC,MD,ME,MF,MG,MH,MK,ML,MM,MN,MO,MP,MQ,MR,MS,MT,MU,MV,MW,MX,MY,MZ,NA,NC,NE,NF,NG,NI,NL,NO,NP,NR,NU,NZ,OM,PA,PE,PF,PG,PH,PK,PL,PM,PR,PS,PT,PW,PY,QA,RE,RO,RS,RU,RW,SA,SB,SC,SD,SE,SG,SI,SK,SL,SM,SN,SO,SR,SS,ST,SV,SX,SY,SZ,TC,TD,TG,TH,TJ,TK,TL,TM,TN,TO,TR,TT,TV,TW,TZ,UA,"+"UG,UM,US,UY,UZ,VA,VC,VE,VG,VI,VN,VU,WF,WS,YE,YT,ZA,ZM,ZW".split(",");var AE={},Iwe=et;Object.defineProperty(AE,"__esModule",{value:!0});var LE=AE.default=void 0,Mwe=Iwe(tt()),_we=Ze(),Twe=(0,Mwe.default)((0,_we.jsx)("path",{d:"M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v-5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2zm0 13H4v-2h16v2zm0-5H4V4h16v6z"}),"CardMembership");LE=AE.default=Twe;var FE={},$we=et;Object.defineProperty(FE,"__esModule",{value:!0});var NE=FE.default=void 0,Rwe=$we(tt()),Owe=Ze(),Dwe=(0,Rwe.default)((0,Owe.jsx)("path",{d:"M3 10h11v2H3v-2zm0-2h11V6H3v2zm0 8h7v-2H3v2zm15.01-3.13.71-.71c.39-.39 1.02-.39 1.41 0l.71.71c.39.39.39 1.02 0 1.41l-.71.71-2.12-2.12zm-.71.71-5.3 5.3V21h2.12l5.3-5.3-2.12-2.12z"}),"EditNote");NE=FE.default=Dwe;var BE={},Awe=et;Object.defineProperty(BE,"__esModule",{value:!0});var zE=BE.default=void 0,Lwe=Awe(tt()),Fwe=Ze(),Nwe=(0,Lwe.default)((0,Fwe.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");zE=BE.default=Nwe;var VE={},Bwe=et;Object.defineProperty(VE,"__esModule",{value:!0});var jE=VE.default=void 0,zwe=Bwe(tt()),Vwe=Ze(),jwe=(0,zwe.default)((0,Vwe.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");jE=VE.default=jwe;var HE={},Hwe=et;Object.defineProperty(HE,"__esModule",{value:!0});var _l=HE.default=void 0,Uwe=Hwe(tt()),Wwe=Ze(),Gwe=(0,Uwe.default)((0,Wwe.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");_l=HE.default=Gwe;var UE={},Kwe=et;Object.defineProperty(UE,"__esModule",{value:!0});var WE=UE.default=void 0,qwe=Kwe(tt()),Ywe=Ze(),Qwe=(0,qwe.default)((0,Ywe.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");WE=UE.default=Qwe;var GE={},Xwe=et;Object.defineProperty(GE,"__esModule",{value:!0});var RB=GE.default=void 0,Zwe=Xwe(tt()),Jwe=Ze(),eCe=(0,Zwe.default)((0,Jwe.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");RB=GE.default=eCe;var KE={},tCe=et;Object.defineProperty(KE,"__esModule",{value:!0});var OB=KE.default=void 0,nCe=tCe(tt()),rCe=Ze(),oCe=(0,nCe.default)((0,rCe.jsx)("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"}),"Undo");OB=KE.default=oCe;const sCe=["localeText"],uS=c.createContext(null),qE=function(t){var n;const{localeText:r}=t,o=le(t,sCe),{utils:s,localeText:i}=(n=c.useContext(uS))!=null?n:{utils:void 0,localeText:void 0},l=je({props:o,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:u,dateFormats:f,dateLibInstance:p,adapterLocale:m,localeText:v}=l,y=c.useMemo(()=>x({},v,i,r),[v,i,r]),g=c.useMemo(()=>{if(!u)return s||null;const w=new u({locale:m,formats:f,instance:p});if(!w.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
619
+ `));return w},[u,m,f,p,s]),C=c.useMemo(()=>g?{minDate:g.date("1900-01-01T00:00:00.000"),maxDate:g.date("2099-12-31T00:00:00.000")}:null,[g]),b=c.useMemo(()=>({utils:g,defaultDates:C,localeText:y}),[C,g,y]);return D.jsx(uS.Provider,{value:b,children:a})},iCe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:x({},e)}}}}),DB={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},lCe=DB;iCe(DB);const Wc=()=>{const e=c.useContext(uS);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
620
+ `));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
621
+ `));const t=c.useMemo(()=>x({},lCe,e.localeText),[e.localeText]);return c.useMemo(()=>x({},e,{localeText:t}),[e,t])},rn=()=>Wc().utils,Qh=()=>Wc().defaultDates,ls=()=>Wc().localeText,Va=e=>{const t=rn(),n=c.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},aCe=bt(D.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),cCe=bt(D.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),uCe=bt(D.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),dCe=bt(D.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");bt(D.jsxs(c.Fragment,{children:[D.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),D.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");const fCe=bt(D.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),pCe=bt(D.jsxs(c.Fragment,{children:[D.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),D.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),hCe=bt(D.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function mCe(e){return Ke("MuiPickersArrowSwitcher",e)}We("MuiPickersArrowSwitcher",["root","spacer","button"]);const gCe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],vCe=["ownerState"],yCe=["ownerState"],bCe=oe("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),wCe=oe("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),rD=oe(hr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>x({},e.hidden&&{visibility:"hidden"})),CCe=e=>{const{classes:t}=e;return Te({root:["root"],spacer:["spacer"],button:["button"]},mCe,t)},AB=c.forwardRef(function(t,n){var r,o,s,i;const a=yn().direction==="rtl",u=je({props:t,name:"MuiPickersArrowSwitcher"}),{children:f,className:p,slots:m,slotProps:v,isNextDisabled:y,isNextHidden:g,onGoToNext:C,nextLabel:b,isPreviousDisabled:w,isPreviousHidden:S,onGoToPrevious:k,previousLabel:M}=u,E=le(u,gCe),I=u,R=CCe(I),A={isDisabled:y,isHidden:g,goTo:C,label:b},$={isDisabled:w,isHidden:S,goTo:k,label:M},L=(r=m==null?void 0:m.previousIconButton)!=null?r:rD,V=qt({elementType:L,externalSlotProps:v==null?void 0:v.previousIconButton,additionalProps:{size:"medium",title:$.label,"aria-label":$.label,disabled:$.isDisabled,edge:"end",onClick:$.goTo},ownerState:x({},I,{hidden:$.isHidden}),className:R.button}),j=(o=m==null?void 0:m.nextIconButton)!=null?o:rD,_=qt({elementType:j,externalSlotProps:v==null?void 0:v.nextIconButton,additionalProps:{size:"medium",title:A.label,"aria-label":A.label,disabled:A.isDisabled,edge:"start",onClick:A.goTo},ownerState:x({},I,{hidden:A.isHidden}),className:R.button}),T=(s=m==null?void 0:m.leftArrowIcon)!=null?s:cCe,F=qt({elementType:T,externalSlotProps:v==null?void 0:v.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),B=le(F,vCe),O=(i=m==null?void 0:m.rightArrowIcon)!=null?i:uCe,N=qt({elementType:O,externalSlotProps:v==null?void 0:v.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),H=le(N,yCe);return D.jsxs(bCe,x({ref:n,className:Ce(R.root,p),ownerState:I},E,{children:[D.jsx(L,x({},V,{children:a?D.jsx(O,x({},H)):D.jsx(T,x({},B))})),f?D.jsx(qn,{variant:"subtitle1",component:"span",children:f}):D.jsx(wCe,{className:R.spacer,ownerState:I}),D.jsx(j,x({},_,{children:a?D.jsx(T,x({},B)):D.jsx(O,x({},H))}))]}))}),Ii=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),xCe=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n!=null?n:r;let s;if(e!=null)s=e;else if(o.includes(t))s=t;else if(o.length>0)s=o[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:o,openTo:s}},LB=["hours","minutes","seconds"],Od=e=>LB.includes(e),Yl=e=>LB.includes(e)||e==="meridiem",SCe=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,bh=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,PCe=(e,t,n,r)=>{const o=bh(r.getHours(e),t,n);return r.setHours(e,o)},oD=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Xh=(e,t)=>(n,r)=>e?t.isAfter(n,r):oD(n,t)>oD(r,t),sD=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return Ii(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:Ii(n,["minutes"])?o.minutes:Ii(n,["seconds"])?o.seconds:Ii(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:Ii(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`};function Zh({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:s,focusedView:i,onFocusedViewChange:l}){var a,u;const f=c.useRef(n),p=c.useRef(o),m=c.useRef(o.includes(n)?n:o[0]),[v,y]=Qr({name:"useViews",state:"view",controlled:r,default:m.current}),g=c.useRef(s?v:null),[C,b]=Qr({name:"useViews",state:"focusedView",controlled:i,default:g.current});c.useEffect(()=>{(f.current&&f.current!==n||p.current&&p.current.some($=>!o.includes($)))&&(y(o.includes(n)?n:o[0]),p.current=o,f.current=n)},[n,y,v,o]);const w=o.indexOf(v),S=(a=o[w-1])!=null?a:null,k=(u=o[w+1])!=null?u:null,M=Ye(($,L)=>{b(L?$:V=>$===V?null:V),l==null||l($,L)}),E=Ye($=>{$!==v&&(y($),M($,!0),t&&t($))}),I=Ye(()=>{k&&E(k),M(k,!0)}),R=Ye(($,L,V)=>{const j=L==="finish",_=V?o.indexOf(V)<o.length-1:!!k;e($,j&&_?"partial":L),j&&I()}),A=Ye(($,L,V)=>{e($,L?"partial":"finish",V),L&&(E(L),M(L,!0))});return{view:v,setView:E,focusedView:C,setFocusedView:M,nextView:k,previousView:S,defaultView:o.includes(n)?n:o[0],goToNextView:I,setValueAndGoToNextView:R,setValueAndGoToView:A}}function kCe(e,{disableFuture:t,maxDate:n,timezone:r}){const o=rn();return c.useMemo(()=>{const s=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isBefore(s,n)?s:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function ECe(e,{disablePast:t,minDate:n,timezone:r}){const o=rn();return c.useMemo(()=>{const s=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isAfter(s,n)?s:n);return!o.isBefore(i,e)},[t,n,e,o,r])}function YE(e,t,n,r){const o=rn(),s=SCe(e,o),i=c.useCallback(l=>{const a=e==null?null:PCe(e,l,!!t,o);n(a,r!=null?r:"partial")},[t,e,n,r,o]);return{meridiemMode:s,handleMeridiemChange:i}}const wh=36,b0=2,w0=320,ICe=280,C0=334,FB=232,up=48,x0=oe("div")({overflow:"hidden",width:w0,maxHeight:C0,display:"flex",flexDirection:"column",margin:"0 auto"});function MCe(e){return Ke("MuiTimeClock",e)}We("MuiTimeClock",["root","arrowSwitcher"]);const Dd=220,Fi=36,Ch={x:Dd/2,y:Dd/2},NB={x:Ch.x,y:0},_Ce=NB.x-Ch.x,TCe=NB.y-Ch.y,$Ce=e=>e*(180/Math.PI),BB=(e,t,n)=>{const r=t-Ch.x,o=n-Ch.y,s=Math.atan2(_Ce,TCe)-Math.atan2(r,o);let i=$Ce(s);i=Math.round(i/e)*e,i%=360;const l=Math.floor(i/e)||0,a=ys(r,2)+ys(o,2),u=Math.sqrt(a);return{value:l,distance:u}},RCe=(e,t,n=1)=>{const r=n*6;let{value:o}=BB(r,e,t);return o=o*n%60,o},OCe=(e,t,n)=>{const{value:r,distance:o}=BB(30,e,t);let s=r||12;return n?s%=12:o<Dd/2-Fi&&(s+=12,s%=24),s};function DCe(e){return Ke("MuiClockPointer",e)}We("MuiClockPointer",["root","thumb"]);const ACe=["className","hasSelected","isInner","type","viewValue"],LCe=e=>{const{classes:t}=e;return Te({root:["root"],thumb:["thumb"]},DCe,t)},FCe=oe("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>x({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),NCe=oe("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>x({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Fi/2}px)`,border:`${(Fi-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function BCe(e){const t=je({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:s}=t,i=le(t,ACe),l=c.useRef(o);c.useEffect(()=>{l.current=o},[o]);const a=x({},t,{shouldAnimate:l.current!==o}),u=LCe(a),f=()=>{let m=360/(o==="hours"?12:60)*s;return o==="hours"&&s>12&&(m-=360),{height:Math.round((r?.26:.4)*Dd),transform:`rotateZ(${m}deg)`}};return D.jsx(FCe,x({style:f(),className:Ce(n,u.root),ownerState:a},i,{children:D.jsx(NCe,{ownerState:a,className:u.thumb})}))}function zCe(e){return Ke("MuiClock",e)}We("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const Op=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:s,utils:i,timezone:l})=>{const a=i.startOfDay(i.dateWithTimezone(void 0,l));n&&i.isBefore(o,a)&&(o=a),t&&i.isAfter(r,a)&&(r=a);let u=e,f=e;for(i.isBefore(e,o)&&(u=o,f=null),i.isAfter(e,r)&&(f&&(f=r),u=null);u||f;){if(u&&i.isAfter(u,r)&&(u=null),f&&i.isBefore(f,o)&&(f=null),u){if(!s(u))return u;u=i.addDays(u,1)}if(f){if(!s(f))return f;f=i.addDays(f,-1)}}return null},VCe=(e,t)=>t==null||!e.isValid(t)?null:t,Fs=(e,t,n)=>t==null||!e.isValid(t)?n:t,jCe=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),QE=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},dS=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},XE=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),dl=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},HCe=["year","month","day"],id=e=>HCe.includes(e),iD=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Ii(n,["year"])?o.year:Ii(n,["month"])?o.month:Ii(n,["day"])?o.dayOfMonth:Ii(n,["month","year"])?`${o.month} ${o.year}`:Ii(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},UCe=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},WCe=e=>{const{classes:t}=e;return Te({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},zCe,t)},GCe=oe("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),KCe=oe("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),qCe=oe("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),YCe=oe("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>x({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),QCe=oe("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),XCe=oe(hr,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>x({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:Fi},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),ZCe=oe(hr,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>x({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:Fi},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),lD=oe(qn,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function JCe(e){const t=je({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:s,value:i,handleMeridiemChange:l,isTimeDisabled:a,meridiemMode:u,minutesStep:f=1,onChange:p,selectedId:m,type:v,viewValue:y,disabled:g,readOnly:C,className:b}=t,w=t,S=rn(),k=ls(),M=c.useRef(!1),E=WCe(w),I=a(y,v),R=!n&&v==="hours"&&(y<1||y>12),A=(N,H)=>{g||C||a(N,v)||p(N,H)},$=(N,H)=>{let{offsetX:K,offsetY:Q}=N;if(K===void 0){const Y=N.target.getBoundingClientRect();K=N.changedTouches[0].clientX-Y.left,Q=N.changedTouches[0].clientY-Y.top}const J=v==="seconds"||v==="minutes"?RCe(K,Q,f):OCe(K,Q,!!n);A(J,H)},L=N=>{M.current=!0,$(N,"shallow")},V=N=>{M.current&&($(N,"finish"),M.current=!1)},j=N=>{N.buttons>0&&$(N.nativeEvent,"shallow")},_=N=>{M.current&&(M.current=!1),$(N.nativeEvent,"finish")},T=c.useMemo(()=>v==="hours"?!0:y%5===0,[v,y]),F=v==="minutes"?f:1,B=c.useRef(null);Nt(()=>{o&&B.current.focus()},[o]);const O=N=>{if(!M.current)switch(N.key){case"Home":A(0,"partial"),N.preventDefault();break;case"End":A(v==="minutes"?59:23,"partial"),N.preventDefault();break;case"ArrowUp":A(y+F,"partial"),N.preventDefault();break;case"ArrowDown":A(y-F,"partial"),N.preventDefault();break}};return D.jsxs(GCe,{className:Ce(b,E.root),children:[D.jsxs(KCe,{className:E.clock,children:[D.jsx(YCe,{onTouchMove:L,onTouchEnd:V,onMouseUp:_,onMouseMove:j,ownerState:{disabled:g},className:E.squareMask}),!I&&D.jsxs(c.Fragment,{children:[D.jsx(QCe,{className:E.pin}),i!=null&&D.jsx(BCe,{type:v,viewValue:y,isInner:R,hasSelected:T})]}),D.jsx(qCe,{"aria-activedescendant":m,"aria-label":k.clockLabelText(v,i,S),ref:B,role:"listbox",onKeyDown:O,tabIndex:0,className:E.wrapper,children:s})]}),n&&r&&D.jsxs(c.Fragment,{children:[D.jsx(XCe,{onClick:C?void 0:()=>l("am"),disabled:g||u===null,ownerState:w,className:E.amButton,title:dl(S,"am"),children:D.jsx(lD,{variant:"caption",className:E.meridiemText,children:dl(S,"am")})}),D.jsx(ZCe,{disabled:g||u===null,onClick:C?void 0:()=>l("pm"),ownerState:w,className:E.pmButton,title:dl(S,"pm"),children:D.jsx(lD,{variant:"caption",className:E.meridiemText,children:dl(S,"pm")})})]})]})}function exe(e){return Ke("MuiClockNumber",e)}const wg=We("MuiClockNumber",["root","selected","disabled"]),txe=["className","disabled","index","inner","label","selected"],nxe=e=>{const{classes:t,selected:n,disabled:r}=e;return Te({root:["root",n&&"selected",r&&"disabled"]},exe,t)},rxe=oe("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${wg.disabled}`]:t.disabled},{[`&.${wg.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>x({height:Fi,width:Fi,position:"absolute",left:`calc((100% - ${Fi}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${wg.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${wg.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&x({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function zB(e){const t=je({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:s,label:i,selected:l}=t,a=le(t,txe),u=t,f=nxe(u),p=o%12/12*Math.PI*2-Math.PI/2,m=(Dd-Fi-2)/2*(s?.65:1),v=Math.round(Math.cos(p)*m),y=Math.round(Math.sin(p)*m);return D.jsx(rxe,x({className:Ce(n,f.root),"aria-disabled":r?!0:void 0,"aria-selected":l?!0:void 0,role:"option",style:{transform:`translate(${v}px, ${y+(Dd-Fi)/2}px`},ownerState:u},a,{children:i}))}const oxe=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:s})=>{const i=t?s.getHours(t):null,l=[],a=e?1:0,u=e?12:23,f=p=>i===null?!1:e?p===12?i===12||i===0:i===p||i-12===p:i===p;for(let p=a;p<=u;p+=1){let m=p.toString();p===0&&(m="00");const v=!e&&(p===0||p>12);m=s.formatNumber(m);const y=f(p);l.push(D.jsx(zB,{id:y?o:void 0,index:p,inner:v,selected:y,disabled:r(p),label:m,"aria-label":n(m)},p))}return l},aD=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const s=e.formatNumber;return[[5,s("05")],[10,s("10")],[15,s("15")],[20,s("20")],[25,s("25")],[30,s("30")],[35,s("35")],[40,s("40")],[45,s("45")],[50,s("50")],[55,s("55")],[0,s("00")]].map(([i,l],a)=>{const u=i===t;return D.jsx(zB,{label:l,id:u?o:void 0,index:a+1,inner:!1,disabled:n(i),selected:u,"aria-label":r(l)},i)})},ZE=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var s,i;const l=rn(),a=c.useRef(n),u=(s=t!=null?t:a.current)!=null?s:o.emptyValue,f=c.useMemo(()=>o.getTimezone(l,u),[l,o,u]),p=Ye(g=>f==null?g:o.setTimezone(l,f,g)),m=(i=e!=null?e:f)!=null?i:"default",v=c.useMemo(()=>o.setTimezone(l,m,u),[o,l,m,u]),y=Ye((g,...C)=>{const b=p(g);r==null||r(b,...C)});return{value:v,handleValueChange:y,timezone:m}},of=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:s})=>{const[i,l]=Qr({name:e,state:"value",controlled:n,default:r!=null?r:s.emptyValue}),a=Ye((u,...f)=>{l(u),o==null||o(u,...f)});return ZE({timezone:t,value:i,defaultValue:void 0,onChange:a,valueManager:s})},ti={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},sxe=e=>Math.max(...e.map(t=>{var n;return(n=ti[t.type])!=null?n:1})),qf=(e,t,n)=>{if(t===ti.year)return e.startOfYear(n);if(t===ti.month)return e.startOfMonth(n);if(t===ti.day)return e.startOfDay(n);let r=n;return t<ti.minutes&&(r=e.setMinutes(r,0)),t<ti.seconds&&(r=e.setSeconds(r,0)),t<ti.milliseconds&&(r=e.setMilliseconds(r,0)),r},ixe=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{var s;let i=o?o():qf(t,n,XE(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=qf(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=qf(t,n,e.maxDate));const l=Xh((s=e.disableIgnoringDatePartForTimeValidation)!=null?s:!1,t);return e.minTime!=null&&l(e.minTime,i)&&(i=qf(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:dS(t,i,e.minTime))),e.maxTime!=null&&l(i,e.maxTime)&&(i=qf(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:dS(t,i,e.maxTime))),i},VB=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
622
+ `));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},lxe=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},S0=(e,t,n)=>{const r=[],o=e.dateWithTimezone(void 0,t),s=e.startOfWeek(o),i=e.endOfWeek(o);let l=s;for(;e.isBefore(l,i);)r.push(l),l=e.addDays(l,1);return r.map(a=>e.formatByString(a,n))},jB=(e,t,n,r)=>{switch(n){case"month":return QE(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return S0(e,t,r);case"meridiem":{const o=e.dateWithTimezone(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(s=>e.formatByString(s,r))}default:return[]}},HB=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length<n;)r=`0${r}`;return r},UB=(e,t,n,r,o)=>{if(o.type==="day"&&o.contentType==="digit-with-letter"){const i=e.setDate(r.longestMonth,n);return e.formatByString(i,o.format)}const s=n.toString();return o.hasLeadingZerosInInput?HB(e,s,o.maxLength):s},axe=(e,t,n,r,o,s,i)=>{const l=lxe(r),a=r==="Home",u=r==="End",f=n.value===""||a||u,p=()=>{const v=o[n.type]({currentDate:s,format:n.format,contentType:n.contentType}),y=w=>UB(e,t,w,v,n),g=n.type==="minutes"&&i!=null&&i.minutesStep?i.minutesStep:1;let b=parseInt(n.value,10)+l*g;if(f){if(n.type==="year"&&!u&&!a)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);l>0||a?b=v.minimum:b=v.maximum}return b%g!==0&&((l<0||a)&&(b+=g-(g+b)%g),(l>0||u)&&(b-=b%g)),b>v.maximum?y(v.minimum+(b-v.maximum-1)%(v.maximum-v.minimum+1)):b<v.minimum?y(v.maximum-(v.minimum-b-1)%(v.maximum-v.minimum+1)):y(b)},m=()=>{const v=jB(e,t,n.type,n.format);if(v.length===0)return n.value;if(f)return l>0||a?v[0]:v[v.length-1];const g=(v.indexOf(n.value)+v.length+l)%v.length;return v[g]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?p():m()},JE=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},Uu=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),WB=(e,t)=>{let n=0,r=t?1:0;const o=[];for(let s=0;s<e.length;s+=1){const i=e[s],l=JE(i,t?"input-rtl":"input-ltr"),a=`${i.startSeparator}${l}${i.endSeparator}`,u=Uu(a).length,f=a.length,p=Uu(l),m=r+l.indexOf(p[0])+i.startSeparator.length,v=m+p.length;o.push(x({},i,{start:n,end:n+u,startInInput:m,endInInput:v})),n+=u,r+=f}return o},cxe=(e,t,n,r,o)=>{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType});case"day":return n.fieldDayPlaceholder();case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType});case"hours":return n.fieldHoursPlaceholder();case"minutes":return n.fieldMinutesPlaceholder();case"seconds":return n.fieldSecondsPlaceholder();case"meridiem":return n.fieldMeridiemPlaceholder();default:return o}},cD=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),GB=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,KB=(e,t,n,r,o)=>{if(n!=="digit")return!1;const s=e.dateWithTimezone(void 0,t);switch(r){case"year":return GB(e,t,o)?e.formatByString(e.setYear(s,1),o)==="0001":e.formatByString(e.setYear(s,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(s),o).length>1;case"day":return e.formatByString(e.startOfMonth(s),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(s),o).length>1;case"hours":return e.formatByString(e.setHours(s,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(s,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(s,1),o).length>1;default:throw new Error("Invalid section type")}},uxe=(e,t)=>{const n=[],{start:r,end:o}=e.escapedCharacters,s=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let i=null;for(;i=s.exec(t);)n.push({start:i.index,end:s.lastIndex-1});return n},uD=(e,t,n,r,o,s,i,l)=>{let a="";const u=[],f=e.date(),p=S=>{if(S==="")return null;const k=VB(e,S),M=KB(e,t,k.contentType,k.type,S),E=i?M:k.contentType==="digit",I=o!=null&&e.isValid(o);let R=I?e.formatByString(o,S):"",A=null;if(E)if(M)A=R===""?e.formatByString(f,S).length:R.length;else{if(k.maxLength==null)throw new Error(`MUI: The token ${S} should have a 'maxDigitNumber' property on it's adapter`);A=k.maxLength,I&&(R=HB(e,R,A))}return u.push(x({},k,{format:S,maxLength:A,value:R,placeholder:cxe(e,t,n,k,S),hasLeadingZeros:M,hasLeadingZerosInFormat:M,hasLeadingZerosInInput:E,startSeparator:u.length===0?a:"",endSeparator:"",modified:!1})),null};let m=10,v=r,y=e.expandFormat(r);for(;y!==v;)if(v=y,y=e.expandFormat(v),m-=1,m<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const g=y,C=uxe(e,g),b=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((S,k)=>k.length-S.length).join("|")})`,"g");let w="";for(let S=0;S<g.length;S+=1){const k=C.find(A=>A.start<=S&&A.end>=S),M=g[S],E=k!=null,I=`${w}${g.slice(S)}`,R=b.test(I);!E&&M.match(/([A-Za-z]+)/)&&R?(w=I.slice(0,b.lastIndex),S+=b.lastIndex-1):E&&(k==null?void 0:k.start)===S||(k==null?void 0:k.end)===S||(p(w),w="",u.length===0?a+=M:u[u.length-1].endSeparator+=M)}return p(w),u.map(S=>{const k=M=>{let E=M;return l&&E!==null&&E.includes(" ")&&(E=`⁩${E}⁦`),s==="spacious"&&["/",".","-"].includes(E)&&(E=` ${E} `),E};return S.startSeparator=k(S.startSeparator),S.endSeparator=k(S.endSeparator),S})},dxe=(e,t)=>{const n=t.some(l=>l.type==="day"),r=[],o=[];for(let l=0;l<t.length;l+=1){const a=t[l];n&&a.type==="weekDay"||(r.push(a.format),o.push(JE(a,"non-input")))}const s=r.join(" "),i=o.join(" ");return e.parse(i,s)},fxe=(e,t)=>{const r=e.map(o=>{const s=JE(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${s}${o.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},pxe=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:s,longestMonth:i}=QE(e,n).reduce((l,a)=>{const u=e.getDaysInMonth(a);return u>l.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:a}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:GB(e,t,l)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:l})=>({minimum:1,maximum:l!=null&&e.isValid(l)?e.getDaysInMonth(l):s,longestMonth:i}),weekDay:({format:l,contentType:a})=>{if(a==="digit"){const u=S0(e,t,l).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const a=e.getHours(o);return e.formatByString(e.endOfDay(n),l)!==a.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),l))}:{minimum:0,maximum:a}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}},hxe=(e,t,n,r,o)=>{switch(n.type){case"year":return e.setYear(o,e.getYear(r));case"month":return e.setMonth(o,e.getMonth(r));case"weekDay":{const s=S0(e,t,n.format),i=e.formatByString(r,n.format),l=s.indexOf(i),u=s.indexOf(n.value)-l;return e.addDays(r,u)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const s=e.getHours(r)<12,i=e.getHours(o);return s&&i>=12?e.addHours(o,-12):!s&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(r));case"minutes":return e.setMinutes(o,e.getMinutes(r));case"seconds":return e.setSeconds(o,e.getSeconds(r));default:return o}},dD={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},fD=(e,t,n,r,o,s)=>[...r].sort((i,l)=>dD[i.type]-dD[l.type]).reduce((i,l)=>!s||l.modified?hxe(e,t,l,n,i):i,o),mxe=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,gxe=(e,t)=>{const n={};if(!t)return e.forEach((a,u)=>{const f=u===0?null:u-1,p=u===e.length-1?null:u+1;n[u]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let s=0,i=0,l=e.length-1;for(;l>=0;){i=e.findIndex((a,u)=>{var f;return u>=s&&((f=a.endSeparator)==null?void 0:f.includes(" "))&&a.endSeparator!==" / "}),i===-1&&(i=e.length-1);for(let a=i;a>=s;a-=1)o[a]=l,r[l]=a,l-=1;s=i+1}return e.forEach((a,u)=>{const f=o[u],p=f===0?null:r[f-1],m=f===e.length-1?null:r[f+1];n[u]={leftIndex:p,rightIndex:m}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},vxe=["value","referenceDate"],rs={emptyValue:null,getTodayValue:XE,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=le(e,vxe);return t!=null&&r.utils.isValid(t)?t:n!=null?n:ixe(r)},cleanValue:VCe,areValuesEqual:jCe,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},yxe={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:WB(o(t),r),getValueStrFromSections:fxe,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},eI=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>x({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})},tI=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const s=c.useMemo(()=>rs.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:ti.day,timezone:o,getTodayDate:()=>XE(n,o,"date")}),[]);return e!=null?e:s},bxe=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],wxe=e=>{const{classes:t}=e;return Te({root:["root"],arrowSwitcher:["arrowSwitcher"]},MCe,t)},Cxe=oe(x0,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),xxe=oe(AB,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),Sxe=["hours","minutes"],Pxe=c.forwardRef(function(t,n){const r=rn(),o=je({props:t,name:"MuiTimeClock"}),{ampm:s=r.is12HourCycleInCurrentLocale(),ampmInClock:i=!1,autoFocus:l,components:a,componentsProps:u,slots:f,slotProps:p,value:m,defaultValue:v,referenceDate:y,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:C,minTime:b,disableFuture:w,disablePast:S,minutesStep:k=1,shouldDisableClock:M,shouldDisableTime:E,showViewSwitcher:I,onChange:R,view:A,views:$=Sxe,openTo:L,onViewChange:V,focusedView:j,onFocusedViewChange:_,className:T,disabled:F,readOnly:B,timezone:O}=o,N=le(o,bxe),H=f!=null?f:eI(a),K=p!=null?p:u,{value:Q,handleValueChange:J,timezone:Y}=of({name:"TimeClock",timezone:O,value:m,defaultValue:v,onChange:R,valueManager:rs}),X=tI({value:Q,referenceDate:y,utils:r,props:o,timezone:Y}),ee=ls(),se=Va(Y),{view:Z,setView:he,previousView:ne,nextView:re,setValueAndGoToNextView:me}=Zh({view:A,views:$,openTo:L,onViewChange:V,onChange:J,focusedView:j,onFocusedViewChange:_}),{meridiemMode:ce,handleMeridiemChange:Se}=YE(X,s,me),Ee=c.useCallback((pe,fe)=>{const de=Xh(g,r),be=fe==="hours"||fe==="minutes"&&$.includes("seconds"),_e=({start:Ge,end:Ve})=>!(b&&de(b,Ve)||C&&de(Ge,C)||w&&de(Ge,se)||S&&de(se,be?Ve:Ge)),Ne=(Ge,Ve=1)=>{if(Ge%Ve!==0||M!=null&&M(Ge,fe))return!1;if(E)switch(fe){case"hours":return!E(r.setHours(X,Ge),"hours");case"minutes":return!E(r.setMinutes(X,Ge),"minutes");case"seconds":return!E(r.setSeconds(X,Ge),"seconds");default:return!1}return!0};switch(fe){case"hours":{const Ge=bh(pe,ce,s),Ve=r.setHours(X,Ge),Ue=r.setSeconds(r.setMinutes(Ve,0),0),Le=r.setSeconds(r.setMinutes(Ve,59),59);return!_e({start:Ue,end:Le})||!Ne(Ge)}case"minutes":{const Ge=r.setMinutes(X,pe),Ve=r.setSeconds(Ge,0),Ue=r.setSeconds(Ge,59);return!_e({start:Ve,end:Ue})||!Ne(pe,k)}case"seconds":{const Ge=r.setSeconds(X,pe);return!_e({start:Ge,end:Ge})||!Ne(pe)}default:throw new Error("not supported")}},[s,X,g,C,ce,b,k,M,E,r,w,S,se,$]),ae=Kt(),Ie=c.useMemo(()=>{switch(Z){case"hours":{const pe=(fe,de)=>{const be=bh(fe,ce,s);me(r.setHours(X,be),de)};return{onChange:pe,viewValue:r.getHours(X),children:oxe({value:Q,utils:r,ampm:s,onChange:pe,getClockNumberText:ee.hoursClockNumberText,isDisabled:fe=>F||Ee(fe,"hours"),selectedId:ae})}}case"minutes":{const pe=r.getMinutes(X),fe=(de,be)=>{me(r.setMinutes(X,de),be)};return{viewValue:pe,onChange:fe,children:aD({utils:r,value:pe,onChange:fe,getClockNumberText:ee.minutesClockNumberText,isDisabled:de=>F||Ee(de,"minutes"),selectedId:ae})}}case"seconds":{const pe=r.getSeconds(X),fe=(de,be)=>{me(r.setSeconds(X,de),be)};return{viewValue:pe,onChange:fe,children:aD({utils:r,value:pe,onChange:fe,getClockNumberText:ee.secondsClockNumberText,isDisabled:de=>F||Ee(de,"seconds"),selectedId:ae})}}default:throw new Error("You must provide the type for ClockView")}},[Z,r,Q,s,ee.hoursClockNumberText,ee.minutesClockNumberText,ee.secondsClockNumberText,ce,me,X,Ee,ae,F]),ye=o,Me=wxe(ye);return D.jsxs(Cxe,x({ref:n,className:Ce(Me.root,T),ownerState:ye},N,{children:[D.jsx(JCe,x({autoFocus:l!=null?l:!!j,ampmInClock:i&&$.includes("hours"),value:Q,type:Z,ampm:s,minutesStep:k,isTimeDisabled:Ee,meridiemMode:ce,handleMeridiemChange:Se,selectedId:ae,disabled:F,readOnly:B},Ie)),I&&D.jsx(xxe,{className:Me.arrowSwitcher,slots:H,slotProps:K,onGoToPrevious:()=>he(ne),isPreviousDisabled:!ne,previousLabel:ee.openPreviousView,onGoToNext:()=>he(re),isNextDisabled:!re,nextLabel:ee.openNextView,ownerState:ye})]}))});function kxe(e){return Ke("MuiDigitalClock",e)}const Exe=We("MuiDigitalClock",["root","list","item"]),Ixe=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],Mxe=e=>{const{classes:t}=e;return Te({root:["root"],list:["list"],item:["item"]},kxe,t)},_xe=oe(x0,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:FB})),Txe=oe(Qd,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),$xe=oe(Pr,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:lt(e.palette.primary.main,e.palette.action.focusOpacity)}})),Rxe=c.forwardRef(function(t,n){var r,o,s;const i=rn(),l=c.useRef(null),a=Et(n,l),u=je({props:t,name:"MuiDigitalClock"}),{ampm:f=i.is12HourCycleInCurrentLocale(),timeStep:p=30,autoFocus:m,components:v,componentsProps:y,slots:g,slotProps:C,value:b,defaultValue:w,referenceDate:S,disableIgnoringDatePartForTimeValidation:k=!1,maxTime:M,minTime:E,disableFuture:I,disablePast:R,minutesStep:A=1,shouldDisableClock:$,shouldDisableTime:L,onChange:V,view:j,openTo:_,onViewChange:T,focusedView:F,onFocusedViewChange:B,className:O,disabled:N,readOnly:H,views:K=["hours"],skipDisabled:Q=!1,timezone:J}=u,Y=le(u,Ixe),{value:X,handleValueChange:ee,timezone:se}=of({name:"DigitalClock",timezone:J,value:b,defaultValue:w,onChange:V,valueManager:rs}),Z=ls(),he=Va(se),ne=c.useMemo(()=>x({},u,{alreadyRendered:!!l.current}),[u]),re=Mxe(ne),me=(r=(o=g==null?void 0:g.digitalClockItem)!=null?o:v==null?void 0:v.DigitalClockItem)!=null?r:$xe,ce=qt({elementType:me,externalSlotProps:(s=C==null?void 0:C.digitalClockItem)!=null?s:y==null?void 0:y.digitalClockItem,ownerState:{},className:re.item}),Se=tI({value:X,referenceDate:S,utils:i,props:u,timezone:se}),Ee=Ye(pe=>ee(pe,"finish","hours")),{setValueAndGoToNextView:ae}=Zh({view:j,views:K,openTo:_,onViewChange:T,onChange:Ee,focusedView:F,onFocusedViewChange:B}),Ie=Ye(pe=>{ae(pe,"finish")});c.useEffect(()=>{if(l.current===null)return;const pe=l.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!pe)return;const fe=pe.offsetTop;l.current.scrollTop=fe-4});const ye=c.useCallback(pe=>{const fe=Xh(k,i),de=()=>!(E&&fe(E,pe)||M&&fe(pe,M)||I&&fe(pe,he)||R&&fe(he,pe)),be=()=>i.getMinutes(pe)%A!==0||$!=null&&$(i.toJsDate(pe).getTime(),"hours")?!1:L?!L(pe,"hours"):!0;return!de()||!be()},[k,i,E,M,I,he,R,A,$,L]),Me=c.useMemo(()=>{const pe=i.startOfDay(Se);return[pe,...Array.from({length:Math.ceil(24*60/p)-1},(fe,de)=>i.addMinutes(pe,p*(de+1)))]},[Se,p,i]);return D.jsx(_xe,x({ref:a,className:Ce(re.root,O),ownerState:ne},Y,{children:D.jsx(Txe,{autoFocusItem:m||!!F,role:"listbox","aria-label":Z.timePickerToolbarTitle,className:re.list,children:Me.map(pe=>{if(Q&&ye(pe))return null;const fe=i.isEqual(pe,X);return D.jsx(me,x({onClick:()=>!H&&Ie(pe),selected:fe,disabled:N||ye(pe),disableRipple:H,role:"option","aria-disabled":H,"aria-selected":fe},ce,{children:i.format(pe,f?"fullTime12h":"fullTime24h")}),i.toISO(pe))})})}))});function Oxe(e){return Ke("MuiMultiSectionDigitalClock",e)}We("MuiMultiSectionDigitalClock",["root"]);function Dxe(e){return Ke("MuiMultiSectionDigitalClock",e)}const Axe=We("MuiMultiSectionDigitalClock",["root","item"]),Lxe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],Fxe=e=>{const{classes:t}=e;return Te({root:["root"],item:["item"]},Dxe,t)},Nxe=oe(Qd,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:FB,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"&:hover":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),Bxe=oe(Pr,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:up,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:lt(e.palette.primary.main,e.palette.action.focusOpacity)}})),zxe=c.forwardRef(function(t,n){var r;const o=c.useRef(null),s=Et(n,o),i=c.useRef(null),l=je({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:a,onChange:u,className:f,disabled:p,readOnly:m,items:v,active:y,slots:g,slotProps:C,skipDisabled:b}=l,w=le(l,Lxe),S=c.useMemo(()=>x({},l,{alreadyRendered:!!o.current}),[l]),k=Fxe(S),M=(r=g==null?void 0:g.digitalClockSectionItem)!=null?r:Bxe;return c.useEffect(()=>{if(o.current===null)return;const E=o.current.querySelector('[role="option"][aria-selected="true"]');if(!E||i.current===E){i.current!==E&&(i.current=E);return}i.current=E,y&&a&&E.focus();const I=E.offsetTop;o.current.scrollTop=I-4}),D.jsx(Nxe,x({ref:s,className:Ce(k.root,f),ownerState:S,autoFocusItem:a&&y,role:"listbox"},w,{children:v.map(E=>{var I,R;if(b&&(I=E.isDisabled)!=null&&I.call(E,E.value))return null;const A=E.isSelected(E.value);return D.jsx(M,x({onClick:()=>!m&&u(E.value),selected:A,disabled:p||((R=E.isDisabled)==null?void 0:R.call(E,E.value)),disableRipple:m,role:"option","aria-disabled":m,"aria-label":E.ariaLabel,"aria-selected":A},C==null?void 0:C.digitalClockSectionItem,{children:E.label}),E.label)})}))}),Vxe=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:s,timeStep:i})=>{const l=t?n.getHours(t):null,a=[],u=p=>l===null?!1:r?p===12?l===12||l===0:l===p||l-12===p:l===p,f=r?11:23;for(let p=0;p<=f;p+=i){let m=n.format(n.setHours(e,p),r?"hours12h":"hours24h");const v=s(parseInt(m,10).toString());m=n.formatNumber(m),a.push({value:p,label:m,isSelected:u,isDisabled:o,ariaLabel:v})}return a},pD=({value:e,isDisabled:t,timeStep:n,resolveLabel:r,resolveAriaLabel:o,hasValue:s=!0})=>{const i=l=>e===null?!1:s&&e===l;return[...Array.from({length:Math.ceil(60/n)},(l,a)=>{const u=n*a;return{value:u,label:r(u),isDisabled:t,isSelected:i,ariaLabel:o(u.toString())}})]},jxe=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],Hxe=e=>{const{classes:t}=e;return Te({root:["root"]},Oxe,t)},Uxe=oe(x0,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),Wxe=c.forwardRef(function(t,n){const r=rn(),o=je({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:s=r.is12HourCycleInCurrentLocale(),timeSteps:i,autoFocus:l,components:a,componentsProps:u,slots:f,slotProps:p,value:m,defaultValue:v,referenceDate:y,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:C,minTime:b,disableFuture:w,disablePast:S,minutesStep:k=1,shouldDisableClock:M,shouldDisableTime:E,onChange:I,view:R,views:A=["hours","minutes"],openTo:$,onViewChange:L,focusedView:V,onFocusedViewChange:j,className:_,disabled:T,readOnly:F,skipDisabled:B=!1,timezone:O}=o,N=le(o,jxe),{value:H,handleValueChange:K,timezone:Q}=of({name:"MultiSectionDigitalClock",timezone:O,value:m,defaultValue:v,onChange:I,valueManager:rs}),J=ls(),Y=Va(Q),X=c.useMemo(()=>x({hours:1,minutes:5,seconds:5},i),[i]),ee=tI({value:H,referenceDate:y,utils:r,props:o,timezone:Q}),se=Ye((fe,de,be)=>K(fe,de,be)),Z=c.useMemo(()=>!s||!A.includes("hours")||A.includes("meridiem")?A:[...A,"meridiem"],[s,A]),{view:he,setValueAndGoToView:ne,focusedView:re}=Zh({view:R,views:Z,openTo:$,onViewChange:L,onChange:se,focusedView:V,onFocusedViewChange:j}),me=Ye(fe=>{ne(fe,null,"meridiem")}),{meridiemMode:ce,handleMeridiemChange:Se}=YE(ee,s,me,"finish"),Ee=c.useCallback((fe,de)=>{const be=Xh(g,r),_e=de==="hours"||de==="minutes"&&Z.includes("seconds"),Ne=({start:Ve,end:Ue})=>!(b&&be(b,Ue)||C&&be(Ve,C)||w&&be(Ve,Y)||S&&be(Y,_e?Ue:Ve)),Ge=(Ve,Ue=1)=>{if(Ve%Ue!==0||M!=null&&M(Ve,de))return!1;if(E)switch(de){case"hours":return!E(r.setHours(ee,Ve),"hours");case"minutes":return!E(r.setMinutes(ee,Ve),"minutes");case"seconds":return!E(r.setSeconds(ee,Ve),"seconds");default:return!1}return!0};switch(de){case"hours":{const Ve=bh(fe,ce,s),Ue=r.setHours(ee,Ve),Le=r.setSeconds(r.setMinutes(Ue,0),0),ht=r.setSeconds(r.setMinutes(Ue,59),59);return!Ne({start:Le,end:ht})||!Ge(Ve)}case"minutes":{const Ve=r.setMinutes(ee,fe),Ue=r.setSeconds(Ve,0),Le=r.setSeconds(Ve,59);return!Ne({start:Ue,end:Le})||!Ge(fe,k)}case"seconds":{const Ve=r.setSeconds(ee,fe);return!Ne({start:Ve,end:Ve})||!Ge(fe)}default:throw new Error("not supported")}},[s,ee,g,C,ce,b,k,M,E,r,w,S,Y,Z]),ae=Ye((fe,de)=>{const be=Z.indexOf(fe),_e=Z[be+1];ne(de,_e,fe)}),Ie=c.useCallback(fe=>{switch(fe){case"hours":return{onChange:de=>{const be=bh(de,ce,s);ae("hours",r.setHours(ee,be))},items:Vxe({now:Y,value:H,ampm:s,utils:r,isDisabled:de=>T||Ee(de,"hours"),timeStep:X.hours,resolveAriaLabel:J.hoursClockNumberText})};case"minutes":return{onChange:de=>{ae("minutes",r.setMinutes(ee,de))},items:pD({value:r.getMinutes(ee),isDisabled:de=>T||Ee(de,"minutes"),resolveLabel:de=>r.format(r.setMinutes(Y,de),"minutes"),timeStep:X.minutes,hasValue:!!H,resolveAriaLabel:J.minutesClockNumberText})};case"seconds":return{onChange:de=>{ae("seconds",r.setSeconds(ee,de))},items:pD({value:r.getSeconds(ee),isDisabled:de=>T||Ee(de,"seconds"),resolveLabel:de=>r.format(r.setSeconds(Y,de),"seconds"),timeStep:X.seconds,hasValue:!!H,resolveAriaLabel:J.secondsClockNumberText})};case"meridiem":{const de=dl(r,"am"),be=dl(r,"pm");return{onChange:Se,items:[{value:"am",label:de,isSelected:()=>!!H&&ce==="am",ariaLabel:de},{value:"pm",label:be,isSelected:()=>!!H&&ce==="pm",ariaLabel:be}]}}default:throw new Error(`Unknown view: ${fe} found.`)}},[Y,H,s,r,X.hours,X.minutes,X.seconds,J.hoursClockNumberText,J.minutesClockNumberText,J.secondsClockNumberText,ce,ae,ee,T,Ee,Se]),ye=c.useMemo(()=>Z.reduce((fe,de)=>x({},fe,{[de]:Ie(de)}),{}),[Z,Ie]),Me=o,pe=Hxe(Me);return D.jsx(Uxe,x({ref:n,className:Ce(pe.root,_),ownerState:Me,role:"group"},N,{children:Object.entries(ye).map(([fe,de])=>D.jsx(zxe,{items:de.items,onChange:de.onChange,active:he===fe,autoFocus:l!=null?l:re===fe,disabled:T,readOnly:F,slots:f!=null?f:a,slotProps:p!=null?p:u,skipDisabled:B,"aria-label":J.selectViewText(fe)},fe))}))});function Gxe(e){return Ke("MuiPickersDay",e)}const Za=We("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Kxe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],qxe=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:s,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:l,classes:a}=e,u=i&&!l;return Te({root:["root",t&&!u&&"selected",s&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&l&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Gxe,a)},qB=({theme:e,ownerState:t})=>x({},e.typography.caption,{width:wh,height:wh,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:lt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Za.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Za.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Za.disabled}:not(.${Za.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Za.disabled}&.${Za.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${b0}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${Za.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),YB=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},Yxe=oe(ui,{name:"MuiPickersDay",slot:"Root",overridesResolver:YB})(qB),Qxe=oe("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:YB})(({theme:e,ownerState:t})=>x({},qB({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),Yf=()=>{},Xxe=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:s,day:i,disabled:l=!1,disableHighlightToday:a=!1,disableMargin:u=!1,isAnimating:f,onClick:p,onDaySelect:m,onFocus:v=Yf,onBlur:y=Yf,onKeyDown:g=Yf,onMouseDown:C=Yf,onMouseEnter:b=Yf,outsideCurrentMonth:w,selected:S=!1,showDaysOutsideCurrentMonth:k=!1,children:M,today:E=!1}=r,I=le(r,Kxe),R=x({},r,{autoFocus:o,disabled:l,disableHighlightToday:a,disableMargin:u,selected:S,showDaysOutsideCurrentMonth:k,today:E}),A=qxe(R),$=rn(),L=c.useRef(null),V=Et(L,n);Nt(()=>{o&&!l&&!f&&!w&&L.current.focus()},[o,l,f,w]);const j=T=>{C(T),w&&T.preventDefault()},_=T=>{l||m(i),w&&T.currentTarget.focus(),p&&p(T)};return w&&!k?D.jsx(Qxe,{className:Ce(A.root,A.hiddenDaySpacingFiller,s),ownerState:R,role:I.role}):D.jsx(Yxe,x({className:Ce(A.root,s),ref:V,centerRipple:!0,disabled:l,tabIndex:S?0:-1,onKeyDown:T=>g(T,i),onFocus:T=>v(T,i),onBlur:T=>y(T,i),onMouseEnter:T=>b(T,i),onClick:_,onMouseDown:j},I,{ownerState:R,children:M||$.format(i,"dayOfMonth")}))}),Zxe=c.memo(Xxe);function QB(e,t,n,r){const{value:o,onError:s}=e,i=Wc(),l=c.useRef(r),a=t({adapter:i,value:o,props:e});return c.useEffect(()=>{s&&!n(a,l.current)&&s(a,o),l.current=a},[n,s,l,a,o]),a}const Jxe=e=>{const t=rn(),n=ls(),r=Wc(),s=yn().direction==="rtl",{valueManager:i,fieldValueManager:l,valueType:a,validator:u,internalProps:f,internalProps:{value:p,defaultValue:m,referenceDate:v,onChange:y,format:g,formatDensity:C="dense",selectedSections:b,onSelectedSectionsChange:w,shouldRespectLeadingZeros:S=!1,timezone:k}}=e,{timezone:M,value:E,handleValueChange:I}=ZE({timezone:k,value:p,defaultValue:m,onChange:y,valueManager:i}),R=c.useMemo(()=>pxe(t,M),[t,M]),A=c.useCallback((Y,X=null)=>l.getSectionsFromValue(t,Y,X,s,ee=>uD(t,M,n,g,ee,C,S,s)),[l,g,n,s,S,t,C,M]),$=c.useMemo(()=>l.getValueStrFromSections(A(i.emptyValue),s),[l,A,i.emptyValue,s]),[L,V]=c.useState(()=>{const Y=A(E),X={sections:Y,value:E,referenceValue:i.emptyValue,tempValueStrAndroid:null},ee=sxe(Y),se=i.getInitialReferenceValue({referenceDate:v,value:E,utils:t,props:f,granularity:ee,timezone:M});return x({},X,{referenceValue:se})}),[j,_]=Qr({controlled:b,default:null,name:"useField",state:"selectedSectionIndexes"}),T=Y=>{_(Y),w==null||w(Y),V(X=>x({},X,{selectedSectionQuery:null}))},F=c.useMemo(()=>{if(j==null)return null;if(j==="all")return{startIndex:0,endIndex:L.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof j=="number")return{startIndex:j,endIndex:j};if(typeof j=="string"){const Y=L.sections.findIndex(X=>X.type===j);return{startIndex:Y,endIndex:Y}}return j},[j,L.sections]),B=({value:Y,referenceValue:X,sections:ee})=>{if(V(Z=>x({},Z,{sections:ee,value:Y,referenceValue:X,tempValueStrAndroid:null})),i.areValuesEqual(t,L.value,Y))return;const se={validationError:u({adapter:r,value:Y,props:x({},f,{value:Y,timezone:M})})};I(Y,se)},O=(Y,X)=>{const ee=[...L.sections];return ee[Y]=x({},ee[Y],{value:X,modified:!0}),WB(ee,s)},N=()=>{B({value:i.emptyValue,referenceValue:L.referenceValue,sections:A(i.emptyValue)})},H=()=>{if(F==null)return;const Y=L.sections[F.startIndex],X=l.getActiveDateManager(t,L,Y),se=X.getSections(L.sections).filter(re=>re.value!=="").length===(Y.value===""?0:1),Z=O(F.startIndex,""),he=se?null:t.date(new Date("")),ne=X.getNewValuesFromNewActiveDate(he);(he!=null&&!t.isValid(he))!=(X.date!=null&&!t.isValid(X.date))?B(x({},ne,{sections:Z})):V(re=>x({},re,ne,{sections:Z,tempValueStrAndroid:null}))},K=Y=>{const X=(Z,he)=>{const ne=t.parse(Z,g);if(ne==null||!t.isValid(ne))return null;const re=uD(t,M,n,g,ne,C,S,s);return fD(t,M,ne,re,he,!1)},ee=l.parseValueStr(Y,L.referenceValue,X),se=l.updateReferenceValue(t,ee,L.referenceValue);B({value:ee,referenceValue:se,sections:A(ee,L.sections)})},Q=({activeSection:Y,newSectionValue:X,shouldGoToNextSection:ee})=>{ee&&F&&F.startIndex<L.sections.length-1?T(F.startIndex+1):F&&F.startIndex!==F.endIndex&&T(F.startIndex);const se=l.getActiveDateManager(t,L,Y),Z=O(F.startIndex,X),he=se.getSections(Z),ne=dxe(t,he);let re,me;if(ne!=null&&t.isValid(ne)){const ce=fD(t,M,ne,he,se.referenceDate,!0);re=se.getNewValuesFromNewActiveDate(ce),me=!0}else re=se.getNewValuesFromNewActiveDate(ne),me=(ne!=null&&!t.isValid(ne))!=(se.date!=null&&!t.isValid(se.date));return me?B(x({},re,{sections:Z})):V(ce=>x({},ce,re,{sections:Z,tempValueStrAndroid:null}))},J=Y=>V(X=>x({},X,{tempValueStrAndroid:Y}));return c.useEffect(()=>{const Y=A(L.value);V(X=>x({},X,{sections:Y}))},[g,t.locale]),c.useEffect(()=>{let Y=!1;i.areValuesEqual(t,L.value,E)?Y=i.getTimezone(t,L.value)!==i.getTimezone(t,E):Y=!0,Y&&V(X=>x({},X,{value:E,referenceValue:l.updateReferenceValue(t,E,X.referenceValue),sections:A(E)}))},[E]),{state:L,selectedSectionIndexes:F,setSelectedSections:T,clearValue:N,clearActiveSection:H,updateSectionValue:Q,updateValueFromValueStr:K,setTempAndroidValueStr:J,sectionsValueBoundaries:R,placeholder:$,timezone:M}},eSe=5e3,wu=e=>e.saveQuery!=null,tSe=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const s=rn(),[i,l]=c.useState(null),a=Ye(()=>l(null));c.useEffect(()=>{var v;i!=null&&((v=e[i.sectionIndex])==null?void 0:v.type)!==i.sectionType&&a()},[e,i,a]),c.useEffect(()=>{if(i!=null){const v=setTimeout(()=>a(),eSe);return()=>{window.clearTimeout(v)}}return()=>{}},[i,a]);const u=({keyPressed:v,sectionIndex:y},g,C)=>{const b=v.toLowerCase(),w=e[y];if(i!=null&&(!C||C(i.value))&&i.sectionIndex===y){const k=`${i.value}${b}`,M=g(k,w);if(!wu(M))return l({sectionIndex:y,value:k,sectionType:w.type}),M}const S=g(b,w);return wu(S)&&!S.saveQuery?(a(),null):(l({sectionIndex:y,value:b,sectionType:w.type}),wu(S)?null:S)},f=v=>{const y=(b,w,S)=>{const k=w.filter(M=>M.toLowerCase().startsWith(S));return k.length===0?{saveQuery:!1}:{sectionValue:k[0],shouldGoToNextSection:k.length===1}},g=(b,w,S,k)=>{const M=E=>jB(s,o,w.type,E);if(w.contentType==="letter")return y(w.format,M(w.format),b);if(S&&k!=null&&VB(s,S).contentType==="letter"){const E=M(S),I=y(S,E,b);return wu(I)?{saveQuery:!1}:x({},I,{sectionValue:k(I.sectionValue,E)})}return{saveQuery:!1}};return u(v,(b,w)=>{switch(w.type){case"month":{const S=k=>cD(s,k,s.formats.month,w.format);return g(b,w,s.formats.month,S)}case"weekDay":{const S=(k,M)=>M.indexOf(k).toString();return g(b,w,s.formats.weekday,S)}case"meridiem":return g(b,w);default:return{saveQuery:!1}}})},p=v=>{const y=(C,b)=>{const w=+`${C}`,S=n[b.type]({currentDate:null,format:b.format,contentType:b.contentType});if(w>S.maximum)return{saveQuery:!1};if(w<S.minimum)return{saveQuery:!0};const k=+`${C}0`>S.maximum||C.length===S.maximum.toString().length;return{sectionValue:UB(s,o,w,S,b),shouldGoToNextSection:k}};return u(v,(C,b)=>{if(b.contentType==="digit"||b.contentType==="digit-with-letter")return y(C,b);if(b.type==="month"){const w=KB(s,o,"digit","month","MM"),S=y(C,{type:b.type,format:"MM",hasLeadingZerosInFormat:w,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(wu(S))return S;const k=cD(s,S.sectionValue,"MM",b.format);return x({},S,{sectionValue:k})}if(b.type==="weekDay"){const w=y(C,b);if(wu(w))return w;const S=S0(s,o,b.format)[Number(w.sectionValue)-1];return x({},w,{sectionValue:S})}return{saveQuery:!1}},C=>!Number.isNaN(Number(C)))};return{applyCharacterEditing:Ye(v=>{const y=e[v.sectionIndex],C=!Number.isNaN(Number(v.keyPressed))?p(v):f(v);C==null?r(null):t({activeSection:y,newSectionValue:C.sectionValue,shouldGoToNextSection:C.shouldGoToNextSection})}),resetCharacterQuery:a}};function nSe(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const rSe=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},hy=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?hy(t.shadowRoot):t:null},oSe="@media (pointer: fine)",sSe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],iSe=e=>{const t=rn(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:s,clearActiveSection:i,updateSectionValue:l,updateValueFromValueStr:a,setTempAndroidValueStr:u,sectionsValueBoundaries:f,placeholder:p,timezone:m}=Jxe(e),{inputRef:v,internalProps:y,internalProps:{readOnly:g=!1,unstableFieldRef:C,minutesStep:b},forwardedProps:{onClick:w,onKeyDown:S,onFocus:k,onBlur:M,onMouseUp:E,onPaste:I,error:R,clearable:A,onClear:$,disabled:L},fieldValueManager:V,valueManager:j,validator:_}=e,T=le(e.forwardedProps,sSe),{applyCharacterEditing:F,resetCharacterQuery:B}=tSe({sections:n.sections,updateSectionValue:l,sectionsValueBoundaries:f,setTempAndroidValueStr:u,timezone:m}),O=c.useRef(null),N=Et(v,O),H=c.useRef(void 0),Q=yn().direction==="rtl",J=c.useMemo(()=>gxe(n.sections,Q),[n.sections,Q]),Y=()=>{var pe;if(g){o(null);return}const fe=(pe=O.current.selectionStart)!=null?pe:0;let de;fe<=n.sections[0].startInInput||fe>=n.sections[n.sections.length-1].endInInput?de=1:de=n.sections.findIndex(_e=>_e.startInInput-_e.startSeparator.length>fe);const be=de===-1?n.sections.length-1:de-1;o(be)},X=Ye((pe,...fe)=>{pe.isDefaultPrevented()||(w==null||w(pe,...fe),Y())}),ee=Ye(pe=>{E==null||E(pe),pe.preventDefault()}),se=Ye((...pe)=>{k==null||k(...pe);const fe=O.current;window.clearTimeout(H.current),H.current=setTimeout(()=>{!fe||fe!==O.current||r!=null||g||(fe.value.length&&Number(fe.selectionEnd)-Number(fe.selectionStart)===fe.value.length?o("all"):Y())})}),Z=Ye((...pe)=>{M==null||M(...pe),o(null)}),he=Ye(pe=>{if(I==null||I(pe),g){pe.preventDefault();return}const fe=pe.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const de=n.sections[r.startIndex],be=/^[a-zA-Z]+$/.test(fe),_e=/^[0-9]+$/.test(fe),Ne=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(fe);if(de.contentType==="letter"&&be||de.contentType==="digit"&&_e||de.contentType==="digit-with-letter"&&Ne)return;if(be||_e){pe.preventDefault();return}}pe.preventDefault(),B(),a(fe)}),ne=Ye(pe=>{if(g)return;const fe=pe.target.value;if(fe===""){B(),s();return}const de=pe.nativeEvent.data,be=de&&de.length>1,_e=be?de:fe,Ne=Uu(_e);if(r==null||be){a(be?de:Ne);return}let Ge;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&Ne.length===1)Ge=Ne;else{const Ve=Uu(V.getValueStrFromSections(n.sections,Q));let Ue=-1,Le=-1;for(let wt=0;wt<Ve.length;wt+=1)Ue===-1&&Ve[wt]!==Ne[wt]&&(Ue=wt),Le===-1&&Ve[Ve.length-wt-1]!==Ne[Ne.length-wt-1]&&(Le=wt);const ht=n.sections[r.startIndex];if(Ue<ht.start||Ve.length-Le-1>ht.end)return;const Pt=Ne.length-Ve.length+ht.end-Uu(ht.endSeparator||"").length;Ge=Ne.slice(ht.start+Uu(ht.startSeparator||"").length,Pt)}if(Ge.length===0){mxe()?u(_e):(B(),i());return}F({keyPressed:Ge,sectionIndex:r.startIndex})}),re=Ye(pe=>{switch(S==null||S(pe),!0){case(pe.key==="a"&&(pe.ctrlKey||pe.metaKey)):{pe.preventDefault(),o("all");break}case pe.key==="ArrowRight":{if(pe.preventDefault(),r==null)o(J.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const fe=J.neighbors[r.startIndex].rightIndex;fe!==null&&o(fe)}break}case pe.key==="ArrowLeft":{if(pe.preventDefault(),r==null)o(J.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const fe=J.neighbors[r.startIndex].leftIndex;fe!==null&&o(fe)}break}case pe.key==="Delete":{if(pe.preventDefault(),g)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?s():i(),B();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(pe.key):{if(pe.preventDefault(),g||r==null)break;const fe=n.sections[r.startIndex],de=V.getActiveDateManager(t,n,fe),be=axe(t,m,fe,pe.key,f,de.date,{minutesStep:b});l({activeSection:fe,newSectionValue:be,shouldGoToNextSection:!1});break}}});Nt(()=>{if(!O.current)return;if(r==null){O.current.scrollLeft&&(O.current.scrollLeft=0);return}const pe=n.sections[r.startIndex],fe=n.sections[r.endIndex];let de=pe.startInInput,be=fe.endInInput;if(r.shouldSelectBoundarySelectors&&(de-=pe.startSeparator.length,be+=fe.endSeparator.length),de!==O.current.selectionStart||be!==O.current.selectionEnd){const _e=O.current.scrollTop;O.current===hy(document)&&O.current.setSelectionRange(de,be),O.current.scrollTop=_e}});const me=QB(x({},y,{value:n.value,timezone:m}),_,j.isSameError,j.defaultErrorState),ce=c.useMemo(()=>R!==void 0?R:j.hasError(me),[j,me,R]);c.useEffect(()=>{!ce&&!r&&B()},[n.referenceValue,r,ce]),c.useEffect(()=>(O.current&&O.current===document.activeElement&&o("all"),()=>window.clearTimeout(H.current)),[]),c.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(B(),i())},[n.tempValueStrAndroid]);const Se=c.useMemo(()=>{var pe;return(pe=n.tempValueStrAndroid)!=null?pe:V.getValueStrFromSections(n.sections,Q)},[n.sections,V,n.tempValueStrAndroid,Q]),Ee=c.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),ae=O.current&&O.current===hy(document),Ie=j.areValuesEqual(t,n.value,j.emptyValue),ye=!ae&&Ie;c.useImperativeHandle(C,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var pe,fe;const de=(pe=O.current.selectionStart)!=null?pe:0,be=(fe=O.current.selectionEnd)!=null?fe:0;if(de===0&&be===0)return null;const _e=de<=n.sections[0].startInInput?1:n.sections.findIndex(Ne=>Ne.startInInput-Ne.startSeparator.length>de);return _e===-1?n.sections.length-1:_e-1},setSelectedSections:pe=>o(pe)}));const Me=Ye((pe,...fe)=>{var de;pe.preventDefault(),$==null||$(pe,...fe),s(),O==null||(de=O.current)==null||de.focus(),o(0)});return x({placeholder:p,autoComplete:"off",disabled:!!L},T,{value:ye?"":Se,inputMode:Ee,readOnly:g,onClick:X,onFocus:se,onBlur:Z,onPaste:he,onChange:ne,onKeyDown:re,onMouseUp:ee,onClear:Me,error:ce,ref:N,clearable:!!(A&&!Ie&&!g&&!L)})},XB=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:o,shouldDisableYear:s,disablePast:i,disableFuture:l,timezone:a}=e,u=n.utils.dateWithTimezone(void 0,a),f=Fs(n.utils,e.minDate,n.defaultDates.minDate),p=Fs(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(s&&s(t)):return"shouldDisableYear";case!!(l&&n.utils.isAfterDay(t,u)):return"disableFuture";case!!(i&&n.utils.isBeforeDay(t,u)):return"disablePast";case!!(f&&n.utils.isBeforeDay(t,f)):return"minDate";case!!(p&&n.utils.isAfterDay(t,p)):return"maxDate";default:return null}},fS=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],pS=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],ZB=["minDateTime","maxDateTime"],lSe=[...fS,...pS,...ZB],JB=e=>lSe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),aSe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],cSe=(e,t)=>{const n=x({},e),r={},o=s=>{n.hasOwnProperty(s)&&(r[s]=n[s],delete n[s])};return aSe.forEach(o),t==="date"?fS.forEach(o):t==="time"?pS.forEach(o):t==="date-time"&&(fS.forEach(o),pS.forEach(o),ZB.forEach(o)),{forwardedProps:n,internalProps:r}},uSe=oe(zN)({[`& .${_p.container}`]:{outline:0},[`& .${_p.paper}`]:{outline:0,minWidth:w0}}),dSe=oe(VN)({"&:first-of-type":{padding:0}});function fSe(e){var t,n;const{children:r,onDismiss:o,open:s,slots:i,slotProps:l}=e,a=(t=i==null?void 0:i.dialog)!=null?t:uSe,u=(n=i==null?void 0:i.mobileTransition)!=null?n:Kd;return D.jsx(a,x({open:s,onClose:o},l==null?void 0:l.dialog,{TransitionComponent:u,TransitionProps:l==null?void 0:l.mobileTransition,PaperComponent:i==null?void 0:i.mobilePaper,PaperProps:l==null?void 0:l.mobilePaper,children:D.jsx(dSe,{children:r})}))}function pSe(e){return Ke("MuiPickersPopper",e)}We("MuiPickersPopper",["root","paper"]);const hSe="@media (prefers-reduced-motion: reduce)",ld=typeof navigator!="undefined"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),hD=ld&&ld[1]?parseInt(ld[1],10):null,mD=ld&&ld[2]?parseInt(ld[2],10):null,mSe=hD&&hD<10||mD&&mD<13||!1,e3=()=>Lb(hSe,{defaultMatches:!1})||mSe,gSe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],vSe=e=>{const{classes:t}=e;return Te({root:["root"],paper:["paper"]},pSe,t)},ySe=oe(Fa,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),bSe=oe(Vs,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>x({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function wSe(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function CSe(e,t){const n=c.useRef(!1),r=c.useRef(!1),o=c.useRef(null),s=c.useRef(!1);c.useEffect(()=>{if(!e)return;function a(){s.current=!0}return document.addEventListener("mousedown",a,!0),document.addEventListener("touchstart",a,!0),()=>{document.removeEventListener("mousedown",a,!0),document.removeEventListener("touchstart",a,!0),s.current=!1}},[e]);const i=Ye(a=>{if(!s.current)return;const u=r.current;r.current=!1;const f=fn(o.current);if(!o.current||"clientX"in a&&wSe(a,f))return;if(n.current){n.current=!1;return}let p;a.composedPath?p=a.composedPath().indexOf(o.current)>-1:p=!f.documentElement.contains(a.target)||o.current.contains(a.target),!p&&!u&&t(a)}),l=()=>{r.current=!0};return c.useEffect(()=>{if(e){const a=fn(o.current),u=()=>{n.current=!0};return a.addEventListener("touchstart",i),a.addEventListener("touchmove",u),()=>{a.removeEventListener("touchstart",i),a.removeEventListener("touchmove",u)}}},[e,i]),c.useEffect(()=>{if(e){const a=fn(o.current);return a.addEventListener("click",i),()=>{a.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,l,l]}const xSe=c.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:s,paperSlotProps:i,paperClasses:l,onPaperClick:a,onPaperTouchStart:u}=e,f=le(e,gSe),p=x({},o,{placement:r}),m=qt({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:l,ownerState:p});return D.jsx(n,x({},f,m,{onClick:v=>{var y;a(v),(y=m.onClick)==null||y.call(m,v)},onTouchStart:v=>{var y;u(v),(y=m.onTouchStart)==null||y.call(m,v)},ownerState:p,children:s}))});function SSe(e){var t,n,r,o;const s=je({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:l,containerRef:a=null,shouldRestoreFocus:u,onBlur:f,onDismiss:p,open:m,role:v,placement:y,slots:g,slotProps:C,reduceAnimations:b}=s;c.useEffect(()=>{function N(H){m&&(H.key==="Escape"||H.key==="Esc")&&p()}return document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N)}},[p,m]);const w=c.useRef(null);c.useEffect(()=>{v==="tooltip"||u&&!u()||(m?w.current=hy(document):w.current&&w.current instanceof HTMLElement&&setTimeout(()=>{w.current instanceof HTMLElement&&w.current.focus()}))},[m,v,u]);const[S,k,M]=CSe(m,f!=null?f:p),E=c.useRef(null),I=Et(E,a),R=Et(I,S),A=s,$=vSe(A),L=e3(),V=b!=null?b:L,j=N=>{N.key==="Escape"&&(N.stopPropagation(),p())},_=((t=g==null?void 0:g.desktopTransition)!=null?t:V)?Kd:ah,T=(n=g==null?void 0:g.desktopTrapFocus)!=null?n:rk,F=(r=g==null?void 0:g.desktopPaper)!=null?r:bSe,B=(o=g==null?void 0:g.popper)!=null?o:ySe,O=qt({elementType:B,externalSlotProps:C==null?void 0:C.popper,additionalProps:{transition:!0,role:v,open:m,anchorEl:i,placement:y,onKeyDown:j},className:$.root,ownerState:s});return D.jsx(B,x({},O,{children:({TransitionProps:N,placement:H})=>D.jsx(T,x({open:m,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:v==="tooltip",isEnabled:()=>!0},C==null?void 0:C.desktopTrapFocus,{children:D.jsx(_,x({},N,C==null?void 0:C.desktopTransition,{children:D.jsx(xSe,{PaperComponent:F,ownerState:A,popperPlacement:H,ref:R,onPaperClick:k,onPaperTouchStart:M,paperClasses:$.paper,paperSlotProps:C==null?void 0:C.desktopPaper,children:l})}))}))}))}function t3(e){return Ke("MuiPickersToolbar",e)}We("MuiPickersToolbar",["root","content"]);const PSe=e=>{const{classes:t,isLandscape:n}=e;return Te({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},t3,t)},kSe=oe("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>x({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),ESe=oe("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),ISe=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiPickersToolbar"}),{children:o,className:s,toolbarTitle:i,hidden:l,titleId:a}=r,u=r,f=PSe(u);return l?null:D.jsxs(kSe,{ref:n,className:Ce(f.root,s),ownerState:u,children:[D.jsx(qn,{color:"text.secondary",variant:"overline",id:a,children:i}),D.jsx(ESe,{className:f.content,ownerState:u,children:o})]})});function MSe(e){return Ke("MuiPickersToolbarText",e)}const gD=We("MuiPickersToolbarText",["root","selected"]),_Se=["className","selected","value"],TSe=e=>{const{classes:t,selected:n}=e;return Te({root:["root",n&&"selected"]},MSe,t)},$Se=oe(qn,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${gD.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${gD.selected}`]:{color:(e.vars||e).palette.text.primary}})),n3=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiPickersToolbarText"}),{className:o,value:s}=r,i=le(r,_Se),l=TSe(r);return D.jsx($Se,x({ref:n,className:Ce(o,l.root),component:"span"},i,{children:s}))}),RSe=["align","className","selected","typographyClassName","value","variant","width"],OSe=e=>{const{classes:t}=e;return Te({root:["root"]},t3,t)},DSe=oe(Yn,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Ul=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:s,selected:i,typographyClassName:l,value:a,variant:u,width:f}=r,p=le(r,RSe),m=OSe(r);return D.jsx(DSe,x({variant:"text",ref:n,className:Ce(s,m.root)},f?{sx:{width:f}}:{},p,{children:D.jsx(n3,{align:o,className:l,variant:u,value:a,selected:i})}))}),ASe=({open:e,onOpen:t,onClose:n})=>{const r=c.useRef(typeof e=="boolean").current,[o,s]=c.useState(!1);c.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");s(e)}},[r,e]);const i=c.useCallback(l=>{r||s(l),l&&t&&t(),!l&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},LSe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,s=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?s?!0:n(r.lastPublishedValue):!1},FSe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:s}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&s?i?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},NSe=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},BSe=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:s,onChange:i,value:l,defaultValue:a,closeOnSelect:u=r==="desktop",selectedSections:f,onSelectedSectionsChange:p,timezone:m}=e,{current:v}=c.useRef(a),{current:y}=c.useRef(l!==void 0),g=rn(),C=Wc(),[b,w]=Qr({controlled:f,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:S,setIsOpen:k}=ASe(e),[M,E]=c.useState(()=>{let se;return l!==void 0?se=l:v!==void 0?se=v:se=t.emptyValue,{draft:se,lastPublishedValue:se,lastCommittedValue:se,lastControlledValue:l,hasBeenModifiedSinceMount:!1}}),{timezone:I,handleValueChange:R}=ZE({timezone:m,value:l,defaultValue:v,onChange:i,valueManager:t});QB(x({},e,{value:M.draft,timezone:I}),o,t.isSameError,t.defaultErrorState);const A=Ye(se=>{const Z={action:se,dateState:M,hasChanged:me=>!t.areValuesEqual(g,se.value,me),isControlled:y,closeOnSelect:u},he=LSe(Z),ne=FSe(Z),re=NSe(Z);if(E(me=>x({},me,{draft:se.value,lastPublishedValue:he?se.value:me.lastPublishedValue,lastCommittedValue:ne?se.value:me.lastCommittedValue,hasBeenModifiedSinceMount:!0})),he){const ce={validationError:se.name==="setValueFromField"?se.context.validationError:o({adapter:C,value:se.value,props:x({},e,{value:se.value,timezone:I})})};se.name==="setValueFromShortcut"&&se.shortcut!=null&&(ce.shortcut=se.shortcut),R(se.value,ce)}ne&&s&&s(se.value),re&&k(!1)});if(l!==void 0&&(M.lastControlledValue===void 0||!t.areValuesEqual(g,M.lastControlledValue,l))){const se=t.areValuesEqual(g,M.draft,l);E(Z=>x({},Z,{lastControlledValue:l},se?{}:{lastCommittedValue:l,lastPublishedValue:l,draft:l,hasBeenModifiedSinceMount:!0}))}const $=Ye(()=>{A({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),L=Ye(()=>{A({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),V=Ye(()=>{A({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),j=Ye(()=>{A({value:M.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),_=Ye(()=>{A({value:t.getTodayValue(g,I,n),name:"setValueFromAction",pickerAction:"today"})}),T=Ye(()=>k(!0)),F=Ye(()=>k(!1)),B=Ye((se,Z="partial")=>A({name:"setValueFromView",value:se,selectionState:Z})),O=Ye((se,Z,he)=>A({name:"setValueFromShortcut",value:se,changeImportance:Z!=null?Z:"accept",shortcut:he})),N=Ye((se,Z)=>A({name:"setValueFromField",value:se,context:Z})),H=Ye(se=>{w(se),p==null||p(se)}),K={onClear:$,onAccept:L,onDismiss:V,onCancel:j,onSetToday:_,onOpen:T,onClose:F},Q={value:M.draft,onChange:N,selectedSections:b,onSelectedSectionsChange:H},J=c.useMemo(()=>t.cleanValue(g,M.draft),[g,t,M.draft]),Y={value:J,onChange:B,onClose:F,open:S,onSelectedSectionsChange:H},ee=x({},K,{value:J,onChange:B,onSelectShortcut:O,isValid:se=>{const Z=o({adapter:C,value:se,props:x({},e,{value:se,timezone:I})});return!t.hasError(Z)}});return{open:S,fieldProps:Q,viewProps:Y,layoutProps:ee,actions:K}},zSe=["className","sx"],VSe=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:s,open:i,onSelectedSectionsChange:l,onClose:a}=t,{views:u,openTo:f,onViewChange:p,disableOpenPicker:m,viewRenderers:v,timezone:y}=e,g=le(e,zSe),{view:C,setView:b,defaultView:w,focusedView:S,setFocusedView:k,setValueAndGoToNextView:M}=Zh({view:void 0,views:u,openTo:f,onChange:s,onViewChange:p,autoFocus:o}),{hasUIView:E,viewModeLookup:I}=c.useMemo(()=>u.reduce((_,T)=>{let F;return m?F="field":v[T]!=null?F="UI":F="field",_.viewModeLookup[T]=F,F==="UI"&&(_.hasUIView=!0),_},{hasUIView:!1,viewModeLookup:{}}),[m,v,u]),R=c.useMemo(()=>u.reduce((_,T)=>v[T]!=null&&Od(T)?_+1:_,0),[v,u]),A=I[C],$=Ye(()=>A==="UI"),[L,V]=c.useState(A==="UI"?C:null);return L!==C&&I[C]==="UI"&&V(C),Nt(()=>{A==="field"&&i&&(a(),setTimeout(()=>{r==null||r.current.focus(),l(C)}))},[C]),Nt(()=>{if(!i)return;let _=C;A==="field"&&L!=null&&(_=L),_!==w&&I[_]==="UI"&&I[w]==="UI"&&(_=w),_!==C&&b(_),k(_,!0)},[i]),{hasUIView:E,shouldRestoreFocus:$,layoutProps:{views:u,view:L,onViewChange:b},renderCurrentView:()=>{if(L==null)return null;const _=v[L];return _==null?null:_(x({},g,n,t,{views:u,timezone:y,onChange:M,view:L,onViewChange:b,focusedView:S,onFocusedViewChange:k,showViewSwitcher:R>1,timeViewsCount:R}))}}};function vD(){return typeof window=="undefined"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const jSe=(e,t)=>{const[n,r]=c.useState(vD);return Nt(()=>{const s=()=>{r(vD())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),nSe(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},HSe=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,s=jSe(n.views,o);return{layoutProps:x({},n,t,{isLandscape:s,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},r3=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
623
+ `):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};r3(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const o3=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:s,validator:i,autoFocusView:l})=>{const a=BSe({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),u=VSe({props:e,inputRef:o,additionalViewProps:s,autoFocusView:l,propsFromPickerValue:a.viewProps}),f=HSe({props:e,wrapperVariant:r,propsFromPickerValue:a.layoutProps,propsFromPickerViews:u.layoutProps});return{open:a.open,actions:a.actions,fieldProps:a.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:f.layoutProps}};function s3(e){return Ke("MuiPickersLayout",e)}const oC=We("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),USe=["onAccept","onClear","onCancel","onSetToday","actions"];function WSe(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:s}=e,i=le(e,USe),l=ls();if(s==null||s.length===0)return null;const a=s==null?void 0:s.map(u=>{switch(u){case"clear":return D.jsx(Yn,{onClick:n,children:l.clearButtonLabel},u);case"cancel":return D.jsx(Yn,{onClick:r,children:l.cancelButtonLabel},u);case"accept":return D.jsx(Yn,{onClick:t,children:l.okButtonLabel},u);case"today":return D.jsx(Yn,{onClick:o,children:l.todayButtonLabel},u);default:return null}});return D.jsx(zre,x({},i,{children:a}))}const GSe=["items","changeImportance","isLandscape","onChange","isValid"],KSe=["getValue"];function qSe(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,s=le(e,GSe);if(t==null||t.length===0)return null;const i=t.map(l=>{let{getValue:a}=l,u=le(l,KSe);const f=a({isValid:o});return{label:u.label,onClick:()=>{r(f,n,u)},disabled:!o(f)}});return D.jsx(Nh,x({dense:!0,sx:[{maxHeight:C0,maxWidth:200,overflow:"auto"},...Array.isArray(s.sx)?s.sx:[s.sx]]},s,{children:i.map(l=>D.jsx(fk,{children:D.jsx(Eb,x({},l))},l.label))}))}function YSe(e){return e.view!==null}const QSe=e=>{const{classes:t,isLandscape:n}=e;return Te({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},s3,t)},XSe=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:s,onCancel:i,onSetToday:l,view:a,views:u,onViewChange:f,value:p,onChange:m,onSelectShortcut:v,isValid:y,isLandscape:g,disabled:C,readOnly:b,children:w,components:S,componentsProps:k,slots:M,slotProps:E}=e,I=M!=null?M:eI(S),R=E!=null?E:k,A=QSe(e),$=(t=I==null?void 0:I.actionBar)!=null?t:WSe,L=qt({elementType:$,externalSlotProps:R==null?void 0:R.actionBar,additionalProps:{onAccept:o,onClear:s,onCancel:i,onSetToday:l,actions:r==="desktop"?[]:["cancel","accept"],className:A.actionBar},ownerState:x({},e,{wrapperVariant:r})}),V=D.jsx($,x({},L)),j=I==null?void 0:I.toolbar,_=qt({elementType:j,externalSlotProps:R==null?void 0:R.toolbar,additionalProps:{isLandscape:g,onChange:m,value:p,view:a,onViewChange:f,views:u,disabled:C,readOnly:b,className:A.toolbar},ownerState:x({},e,{wrapperVariant:r})}),T=YSe(_)&&j?D.jsx(j,x({},_)):null,F=w,B=I==null?void 0:I.tabs,O=a&&B?D.jsx(B,x({view:a,onViewChange:f},R==null?void 0:R.tabs)):null,N=(n=I==null?void 0:I.shortcuts)!=null?n:qSe,H=qt({elementType:N,externalSlotProps:R==null?void 0:R.shortcuts,additionalProps:{isValid:y,isLandscape:g,onChange:v,className:A.shortcuts},ownerState:{isValid:y,isLandscape:g,onChange:v,className:A.shortcuts,wrapperVariant:r}}),K=a&&N?D.jsx(N,x({},H)):null;return{toolbar:T,content:F,tabs:O,actionBar:V,shortcuts:K}},ZSe=XSe,JSe=e=>{const{isLandscape:t,classes:n}=e;return Te({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},s3,n)},i3=oe("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${oC.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${oC.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${oC.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));i3.propTypes={as:W.elementType,ownerState:W.shape({isLandscape:W.bool.isRequired}).isRequired,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object])};const ePe=oe("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),l3=function(t){const n=je({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:s,actionBar:i,shortcuts:l}=ZSe(n),{sx:a,className:u,isLandscape:f,ref:p,wrapperVariant:m}=n,v=n,y=JSe(v);return D.jsxs(i3,{ref:p,sx:a,className:Ce(u,y.root),ownerState:v,children:[f?l:r,f?r:l,D.jsx(ePe,{className:y.contentWrapper,children:m==="desktop"?D.jsxs(c.Fragment,{children:[o,s]}):D.jsxs(c.Fragment,{children:[s,o]})}),i]})},tPe=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:o,minutesStep:s,shouldDisableClock:i,shouldDisableTime:l,disableIgnoringDatePartForTimeValidation:a=!1,disablePast:u,disableFuture:f,timezone:p}=n,m=e.utils.dateWithTimezone(void 0,p),v=Xh(a,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&v(r,t)):return"minTime";case!!(o&&v(t,o)):return"maxTime";case!!(f&&e.utils.isAfter(t,m)):return"disableFuture";case!!(u&&e.utils.isBefore(t,m)):return"disablePast";case!!(l&&l(t,"hours")):return"shouldDisableTime-hours";case!!(l&&l(t,"minutes")):return"shouldDisableTime-minutes";case!!(l&&l(t,"seconds")):return"shouldDisableTime-seconds";case!!(i&&i(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(i&&i(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(i&&i(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(s&&e.utils.getMinutes(t)%s!==0):return"minutesStep";default:return null}},nI=({props:e,value:t,adapter:n})=>{const r=XB({adapter:n,value:t,props:e});return r!==null?r:tPe({adapter:n,value:t,props:e})},nPe=e=>Ke("MuiPickersSlideTransition",e),bs=We("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),rPe=["children","className","reduceAnimations","slideDirection","transKey","classes"],oPe=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Te(r,nPe,t)},sPe=oe(tk,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${bs["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${bs["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${bs.slideEnterActive}`]:t.slideEnterActive},{[`.${bs.slideExit}`]:t.slideExit},{[`.${bs["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${bs["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${bs["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${bs["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${bs.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${bs.slideExit}`]:{transform:"translate(0%)"},[`& .${bs["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${bs["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function iPe(e){const t=je({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=le(t,rPe),l=oPe(t),a=yn();if(o)return D.jsx("div",{className:Ce(l.root,r),children:n});const u={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return D.jsx(sPe,{className:Ce(l.root,r),childFactory:f=>c.cloneElement(f,{classNames:u}),role:"presentation",children:D.jsx(lZ,x({mountOnEnter:!0,unmountOnExit:!0,timeout:a.transitions.duration.complex,classNames:u},i,{children:n}),s)})}const a3=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i,timezone:l})=>{const a=Wc();return c.useCallback(u=>XB({adapter:a,value:u,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i,timezone:l}})!==null,[a,e,t,n,r,o,s,i,l])},lPe=e=>Ke("MuiDayCalendar",e);We("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const aPe=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],cPe=["ownerState"],uPe=e=>{const{classes:t}=e;return Te({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},lPe,t)},c3=(wh+b0*2)*6,dPe=oe("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fPe=oe("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),pPe=oe(qn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),hPe=oe(qn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),mPe=oe(qn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>x({},e.typography.caption,{width:wh,height:wh,padding:0,margin:`0 ${b0}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),gPe=oe("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:c3}),vPe=oe(iPe,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:c3}),yPe=oe("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),bPe=oe("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${b0}px 0`,display:"flex",justifyContent:"center"});function wPe(e){var t,n,r;let{parentProps:o,day:s,focusableDay:i,selectedDays:l,isDateDisabled:a,currentMonthNumber:u,isViewFocused:f}=e,p=le(e,aPe);const{disabled:m,disableHighlightToday:v,isMonthSwitchingAnimating:y,showDaysOutsideCurrentMonth:g,components:C,componentsProps:b,slots:w,slotProps:S,timezone:k}=o,M=rn(),E=Va(k),I=i!==null&&M.isSameDay(s,i),R=l.some(B=>M.isSameDay(B,s)),A=M.isSameDay(s,E),$=(t=(n=w==null?void 0:w.day)!=null?n:C==null?void 0:C.Day)!=null?t:Zxe,L=qt({elementType:$,externalSlotProps:(r=S==null?void 0:S.day)!=null?r:b==null?void 0:b.day,additionalProps:x({disableHighlightToday:v,showDaysOutsideCurrentMonth:g,role:"gridcell",isAnimating:y,"data-timestamp":M.toJsDate(s).valueOf()},p),ownerState:x({},o,{day:s,selected:R})}),V=le(L,cPe),j=c.useMemo(()=>m||a(s),[m,a,s]),_=c.useMemo(()=>M.getMonth(s)!==u,[M,s,u]),T=c.useMemo(()=>{const B=M.startOfMonth(M.setMonth(s,u));return g?M.isSameDay(s,M.startOfWeek(B)):M.isSameDay(s,B)},[u,s,g,M]),F=c.useMemo(()=>{const B=M.endOfMonth(M.setMonth(s,u));return g?M.isSameDay(s,M.endOfWeek(B)):M.isSameDay(s,B)},[u,s,g,M]);return D.jsx($,x({},V,{day:s,disabled:j,autoFocus:f&&I,today:A,outsideCurrentMonth:_,isFirstVisibleCell:T,isLastVisibleCell:F,selected:R,tabIndex:I?0:-1,"aria-selected":R,"aria-current":A?"date":void 0}))}function CPe(e){const t=je({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:o,selectedDays:s,focusedDay:i,loading:l,onSelectedDaysChange:a,onMonthSwitchingAnimationEnd:u,readOnly:f,reduceAnimations:p,renderLoading:m=()=>D.jsx("span",{children:"..."}),slideDirection:v,TransitionProps:y,disablePast:g,disableFuture:C,minDate:b,maxDate:w,shouldDisableDate:S,shouldDisableMonth:k,shouldDisableYear:M,dayOfWeekFormatter:E,hasFocus:I,onFocusedViewChange:R,gridLabelId:A,displayWeekNumber:$,fixedWeekNumber:L,autoFocus:V,timezone:j}=t,_=Va(j),T=rn(),F=uPe(t),O=yn().direction==="rtl",N=E||((ye,Me)=>T.format(Me,"weekdayShort").charAt(0).toUpperCase()),H=a3({shouldDisableDate:S,shouldDisableMonth:k,shouldDisableYear:M,minDate:b,maxDate:w,disablePast:g,disableFuture:C,timezone:j}),K=ls(),[Q,J]=Qr({name:"DayCalendar",state:"hasFocus",controlled:I,default:V!=null?V:!1}),[Y,X]=c.useState(()=>i||_),ee=Ye(ye=>{f||a(ye)}),se=ye=>{H(ye)||(n(ye),X(ye),R==null||R(!0),J(!0))},Z=Ye((ye,Me)=>{switch(ye.key){case"ArrowUp":se(T.addDays(Me,-7)),ye.preventDefault();break;case"ArrowDown":se(T.addDays(Me,7)),ye.preventDefault();break;case"ArrowLeft":{const pe=T.addDays(Me,O?1:-1),fe=T.addMonths(Me,O?1:-1),de=Op({utils:T,date:pe,minDate:O?pe:T.startOfMonth(fe),maxDate:O?T.endOfMonth(fe):pe,isDateDisabled:H,timezone:j});se(de||pe),ye.preventDefault();break}case"ArrowRight":{const pe=T.addDays(Me,O?-1:1),fe=T.addMonths(Me,O?-1:1),de=Op({utils:T,date:pe,minDate:O?T.startOfMonth(fe):pe,maxDate:O?pe:T.endOfMonth(fe),isDateDisabled:H,timezone:j});se(de||pe),ye.preventDefault();break}case"Home":se(T.startOfWeek(Me)),ye.preventDefault();break;case"End":se(T.endOfWeek(Me)),ye.preventDefault();break;case"PageUp":se(T.addMonths(Me,1)),ye.preventDefault();break;case"PageDown":se(T.addMonths(Me,-1)),ye.preventDefault();break}}),he=Ye((ye,Me)=>se(Me)),ne=Ye((ye,Me)=>{Q&&T.isSameDay(Y,Me)&&(R==null||R(!1))}),re=T.getMonth(o),me=c.useMemo(()=>s.filter(ye=>!!ye).map(ye=>T.startOfDay(ye)),[T,s]),ce=re,Se=c.useMemo(()=>c.createRef(),[ce]),Ee=T.startOfWeek(_),ae=c.useMemo(()=>{const ye=T.startOfMonth(o),Me=T.endOfMonth(o);return H(Y)||T.isAfterDay(Y,Me)||T.isBeforeDay(Y,ye)?Op({utils:T,date:Y,minDate:ye,maxDate:Me,disablePast:g,disableFuture:C,isDateDisabled:H,timezone:j}):Y},[o,C,g,Y,H,T,j]),Ie=c.useMemo(()=>{const ye=T.setTimezone(o,j),Me=T.getWeekArray(ye);let pe=T.addMonths(ye,1);for(;L&&Me.length<L;){const fe=T.getWeekArray(pe),de=T.isSameDay(Me[Me.length-1][0],fe[0][0]);fe.slice(de?1:0).forEach(be=>{Me.length<L&&Me.push(be)}),pe=T.addMonths(pe,1)}return Me},[o,L,T,j]);return D.jsxs(dPe,{role:"grid","aria-labelledby":A,className:F.root,children:[D.jsxs(fPe,{role:"row",className:F.header,children:[$&&D.jsx(hPe,{variant:"caption",role:"columnheader","aria-label":K.calendarWeekNumberHeaderLabel,className:F.weekNumberLabel,children:K.calendarWeekNumberHeaderText}),UCe(T,_).map((ye,Me)=>{var pe;const fe=T.format(ye,"weekdayShort");return D.jsx(pPe,{variant:"caption",role:"columnheader","aria-label":T.format(T.addDays(Ee,Me),"weekday"),className:F.weekDayLabel,children:(pe=N==null?void 0:N(fe,ye))!=null?pe:fe},fe+Me.toString())})]}),l?D.jsx(gPe,{className:F.loadingContainer,children:m()}):D.jsx(vPe,x({transKey:ce,onExited:u,reduceAnimations:p,slideDirection:v,className:Ce(r,F.slideTransition)},y,{nodeRef:Se,children:D.jsx(yPe,{ref:Se,role:"rowgroup",className:F.monthContainer,children:Ie.map((ye,Me)=>D.jsxs(bPe,{role:"row",className:F.weekContainer,"aria-rowindex":Me+1,children:[$&&D.jsx(mPe,{className:F.weekNumber,role:"rowheader","aria-label":K.calendarWeekNumberAriaLabelText(T.getWeekNumber(ye[0])),children:K.calendarWeekNumberText(T.getWeekNumber(ye[0]))}),ye.map((pe,fe)=>D.jsx(wPe,{parentProps:t,day:pe,selectedDays:me,focusableDay:ae,onKeyDown:Z,onFocus:he,onBlur:ne,onDaySelect:ee,isDateDisabled:H,currentMonthNumber:re,isViewFocused:Q,"aria-colindex":fe+1},pe.toString()))]},`week-${ye[0]}`))})}))]})}const xPe=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return x({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return x({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const s=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return x({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:s&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:s?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},SPe=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:o,disablePast:s,disableSwitchToMonthOnDayFocus:i=!1,maxDate:l,minDate:a,onMonthChange:u,reduceAnimations:f,shouldDisableDate:p,timezone:m}=e,v=Va(m),y=rn(),g=c.useRef(xPe(!!f,i,y)).current,C=c.useMemo(()=>{let R=null;return n?R=n:r&&(R=y.startOfMonth(r)),rs.getInitialReferenceValue({value:t,utils:y,timezone:m,props:e,referenceDate:R,granularity:ti.day})},[]),[b,w]=c.useReducer(g,{isMonthSwitchingAnimating:!1,focusedDay:y.isValid(t)?t:v,currentMonth:y.startOfMonth(C),slideDirection:"left"}),S=c.useCallback(R=>{w(x({type:"changeMonth"},R)),u&&u(R.newMonth)},[u]),k=c.useCallback(R=>{const A=R;y.isSameMonth(A,b.currentMonth)||S({newMonth:y.startOfMonth(A),direction:y.isAfterDay(A,b.currentMonth)?"left":"right"})},[b.currentMonth,S,y]),M=a3({shouldDisableDate:p,minDate:a,maxDate:l,disableFuture:o,disablePast:s,timezone:m}),E=c.useCallback(()=>{w({type:"finishMonthSwitchingAnimation"})},[]),I=Ye((R,A)=>{M(R)||w({type:"changeFocusedDay",focusedDay:R,withoutMonthSwitchingAnimation:A})});return{referenceDate:C,calendarState:b,changeMonth:k,changeFocusedDay:I,isDateDisabled:M,onMonthSwitchingAnimationEnd:E,handleChangeMonth:S}},PPe=["ownerState"],kPe=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:o,slotProps:s,components:i,componentsProps:l})=>{var a,u,f,p,m,v;const y=ls(),g=(a=(u=o==null?void 0:o.clearButton)!=null?u:i==null?void 0:i.ClearButton)!=null?a:hr,C=qt({elementType:g,externalSlotProps:(f=s==null?void 0:s.clearButton)!=null?f:l==null?void 0:l.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:y.fieldClearLabel}}),b=le(C,PPe),w=(p=(m=o==null?void 0:o.clearIcon)!=null?m:i==null?void 0:i.ClearIcon)!=null?p:hCe,S=qt({elementType:w,externalSlotProps:(v=s==null?void 0:s.clearIcon)!=null?v:l==null?void 0:l.clearIcon,ownerState:{}}),k=x({},n,{endAdornment:e?D.jsxs(c.Fragment,{children:[D.jsx(Cl,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:D.jsx(g,x({},b,{onClick:r,children:D.jsx(w,x({fontSize:"small"},S))}))}),n==null?void 0:n.endAdornment]}):n==null?void 0:n.endAdornment}),M=x({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:k,fieldProps:M}},EPe=e=>{var t,n,r,o,s,i,l,a;const u=rn(),f=Qh(),m=((t=e.ampm)!=null?t:u.is12HourCycleInCurrentLocale())?u.formats.keyboardDateTime12h:u.formats.keyboardDateTime24h;return x({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:m,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Fs(u,(s=e.minDateTime)!=null?s:e.minDate,f.minDate),maxDate:Fs(u,(i=e.maxDateTime)!=null?i:e.maxDate,f.maxDate),minTime:(l=e.minDateTime)!=null?l:e.minTime,maxTime:(a=e.maxDateTime)!=null?a:e.maxTime})},IPe=({props:e,inputRef:t})=>{const n=EPe(e),{forwardedProps:r,internalProps:o}=cSe(n,"date-time");return iSe({inputRef:t,forwardedProps:r,internalProps:o,valueManager:rs,fieldValueManager:yxe,validator:nI,valueType:"date-time"})},MPe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],_Pe=["inputRef"],TPe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],u3=c.forwardRef(function(t,n){var r,o,s;const i=je({props:t,name:"MuiDateTimeField"}),{components:l,componentsProps:a,slots:u,slotProps:f,InputProps:p,inputProps:m}=i,v=le(i,MPe),y=i,g=(r=(o=u==null?void 0:u.textField)!=null?o:l==null?void 0:l.TextField)!=null?r:Na,C=qt({elementType:g,externalSlotProps:(s=f==null?void 0:f.textField)!=null?s:a==null?void 0:a.textField,externalForwardedProps:v,ownerState:y}),{inputRef:b}=C,w=le(C,_Pe);w.inputProps=x({},m,w.inputProps),w.InputProps=x({},p,w.InputProps);const S=IPe({props:w,inputRef:b}),{ref:k,onPaste:M,onKeyDown:E,inputMode:I,readOnly:R,clearable:A,onClear:$}=S,L=le(S,TPe),{InputProps:V,fieldProps:j}=kPe({onClear:$,clearable:A,fieldProps:L,InputProps:L.InputProps,slots:u,slotProps:f,components:l,componentsProps:a});return D.jsx(g,x({ref:n},j,{InputProps:x({},V,{readOnly:R}),inputProps:x({},L.inputProps,{inputMode:I,onPaste:M,onKeyDown:E,ref:k})}))}),$Pe=e=>Ke("MuiPickersFadeTransitionGroup",e);We("MuiPickersFadeTransitionGroup",["root"]);const RPe=e=>{const{classes:t}=e;return Te({root:["root"]},$Pe,t)},OPe=oe(tk,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function d3(e){const t=je({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=RPe(t),l=yn();return o?n:D.jsx(OPe,{className:Ce(i.root,r),children:D.jsx(Kd,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},s)})}function DPe(e){return Ke("MuiPickersMonth",e)}const Cg=We("MuiPickersMonth",["root","monthButton","disabled","selected"]),APe=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],LPe=e=>{const{disabled:t,selected:n,classes:r}=e;return Te({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},DPe,r)},FPe=oe("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),NPe=oe("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Cg.disabled}`]:t.disabled},{[`&.${Cg.selected}`]:t.selected}]})(({theme:e})=>x({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Cg.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Cg.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),BPe=c.memo(function(t){const n=je({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:o,disabled:s,selected:i,value:l,tabIndex:a,onClick:u,onKeyDown:f,onFocus:p,onBlur:m,"aria-current":v,"aria-label":y}=n,g=le(n,APe),C=c.useRef(null),b=LPe(n);return Nt(()=>{if(r){var w;(w=C.current)==null||w.focus()}},[r]),D.jsx(FPe,x({className:b.root,ownerState:n},g,{children:D.jsx(NPe,{ref:C,disabled:s,type:"button",role:"radio",tabIndex:s?-1:a,"aria-current":v,"aria-checked":i,"aria-label":y,onClick:w=>u(w,l),onKeyDown:w=>f(w,l),onFocus:w=>p(w,l),onBlur:w=>m(w,l),className:b.monthButton,ownerState:n,children:o})}))});function zPe(e){return Ke("MuiMonthCalendar",e)}We("MuiMonthCalendar",["root"]);const VPe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],jPe=e=>{const{classes:t}=e;return Te({root:["root"]},zPe,t)};function HPe(e,t){const n=rn(),r=Qh(),o=je({props:e,name:t});return x({disableFuture:!1,disablePast:!1},o,{minDate:Fs(n,o.minDate,r.minDate),maxDate:Fs(n,o.maxDate,r.maxDate)})}const UPe=oe("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:w0,boxSizing:"border-box"}),WPe=c.forwardRef(function(t,n){const r=HPe(t,"MuiMonthCalendar"),{className:o,value:s,defaultValue:i,referenceDate:l,disabled:a,disableFuture:u,disablePast:f,maxDate:p,minDate:m,onChange:v,shouldDisableMonth:y,readOnly:g,disableHighlightToday:C,autoFocus:b=!1,onMonthFocus:w,hasFocus:S,onFocusedViewChange:k,monthsPerRow:M=3,timezone:E,gridLabelId:I}=r,R=le(r,VPe),{value:A,handleValueChange:$,timezone:L}=of({name:"MonthCalendar",timezone:E,value:s,defaultValue:i,onChange:v,valueManager:rs}),V=Va(L),j=Wd(),_=rn(),T=c.useMemo(()=>rs.getInitialReferenceValue({value:A,utils:_,props:r,timezone:L,referenceDate:l,granularity:ti.month}),[]),F=r,B=jPe(F),O=c.useMemo(()=>_.getMonth(V),[_,V]),N=c.useMemo(()=>A!=null?_.getMonth(A):C?null:_.getMonth(T),[A,_,C,T]),[H,K]=c.useState(()=>N||O),[Q,J]=Qr({name:"MonthCalendar",state:"hasFocus",controlled:S,default:b!=null?b:!1}),Y=Ye(re=>{J(re),k&&k(re)}),X=c.useCallback(re=>{const me=_.startOfMonth(f&&_.isAfter(V,m)?V:m),ce=_.startOfMonth(u&&_.isBefore(V,p)?V:p),Se=_.startOfMonth(re);return _.isBefore(Se,me)||_.isAfter(Se,ce)?!0:y?y(Se):!1},[u,f,p,m,V,y,_]),ee=Ye((re,me)=>{if(g)return;const ce=_.setMonth(A!=null?A:T,me);$(ce)}),se=Ye(re=>{X(_.setMonth(A!=null?A:T,re))||(K(re),Y(!0),w&&w(re))});c.useEffect(()=>{K(re=>N!==null&&re!==N?N:re)},[N]);const Z=Ye((re,me)=>{switch(re.key){case"ArrowUp":se((12+me-3)%12),re.preventDefault();break;case"ArrowDown":se((12+me+3)%12),re.preventDefault();break;case"ArrowLeft":se((12+me+(j.direction==="ltr"?-1:1))%12),re.preventDefault();break;case"ArrowRight":se((12+me+(j.direction==="ltr"?1:-1))%12),re.preventDefault();break}}),he=Ye((re,me)=>{se(me)}),ne=Ye((re,me)=>{H===me&&Y(!1)});return D.jsx(UPe,x({ref:n,className:Ce(B.root,o),ownerState:F,role:"radiogroup","aria-labelledby":I},R,{children:QE(_,A!=null?A:T).map(re=>{const me=_.getMonth(re),ce=_.format(re,"monthShort"),Se=_.format(re,"month"),Ee=me===N,ae=a||X(re);return D.jsx(BPe,{selected:Ee,value:me,onClick:ee,onKeyDown:Z,autoFocus:Q&&me===H,disabled:ae,tabIndex:me===H?0:-1,onFocus:he,onBlur:ne,"aria-current":O===me?"date":void 0,"aria-label":Se,monthsPerRow:M,children:ce},ce)})}))});function GPe(e){return Ke("MuiPickersYear",e)}const xg=We("MuiPickersYear",["root","yearButton","selected","disabled"]),KPe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],qPe=e=>{const{disabled:t,selected:n,classes:r}=e;return Te({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},GPe,r)},YPe=oe("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),QPe=oe("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${xg.disabled}`]:t.disabled},{[`&.${xg.selected}`]:t.selected}]})(({theme:e})=>x({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:lt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${xg.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${xg.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),XPe=c.memo(function(t){const n=je({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:s,disabled:i,selected:l,value:a,tabIndex:u,onClick:f,onKeyDown:p,onFocus:m,onBlur:v,"aria-current":y}=n,g=le(n,KPe),C=c.useRef(null),b=qPe(n);return c.useEffect(()=>{r&&C.current.focus()},[r]),D.jsx(YPe,x({className:Ce(b.root,o),ownerState:n},g,{children:D.jsx(QPe,{ref:C,disabled:i,type:"button",role:"radio",tabIndex:i?-1:u,"aria-current":y,"aria-checked":l,onClick:w=>f(w,a),onKeyDown:w=>p(w,a),onFocus:w=>m(w,a),onBlur:w=>v(w,a),className:b.yearButton,ownerState:n,children:s})}))});function ZPe(e){return Ke("MuiYearCalendar",e)}We("MuiYearCalendar",["root"]);const JPe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],eke=e=>{const{classes:t}=e;return Te({root:["root"]},ZPe,t)};function tke(e,t){var n;const r=rn(),o=Qh(),s=je({props:e,name:t});return x({disablePast:!1,disableFuture:!1},s,{yearsPerRow:(n=s.yearsPerRow)!=null?n:3,minDate:Fs(r,s.minDate,o.minDate),maxDate:Fs(r,s.maxDate,o.maxDate)})}const nke=oe("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:w0,maxHeight:ICe,boxSizing:"border-box",position:"relative"}),rke=c.forwardRef(function(t,n){const r=tke(t,"MuiYearCalendar"),{autoFocus:o,className:s,value:i,defaultValue:l,referenceDate:a,disabled:u,disableFuture:f,disablePast:p,maxDate:m,minDate:v,onChange:y,readOnly:g,shouldDisableYear:C,disableHighlightToday:b,onYearFocus:w,hasFocus:S,onFocusedViewChange:k,yearsPerRow:M,timezone:E,gridLabelId:I}=r,R=le(r,JPe),{value:A,handleValueChange:$,timezone:L}=of({name:"YearCalendar",timezone:E,value:i,defaultValue:l,onChange:y,valueManager:rs}),V=Va(L),j=Wd(),_=rn(),T=c.useMemo(()=>rs.getInitialReferenceValue({value:A,utils:_,props:r,timezone:L,referenceDate:a,granularity:ti.year}),[]),F=r,B=eke(F),O=c.useMemo(()=>_.getYear(V),[_,V]),N=c.useMemo(()=>A!=null?_.getYear(A):b?null:_.getYear(T),[A,_,b,T]),[H,K]=c.useState(()=>N||O),[Q,J]=Qr({name:"YearCalendar",state:"hasFocus",controlled:S,default:o!=null?o:!1}),Y=Ye(ce=>{J(ce),k&&k(ce)}),X=c.useCallback(ce=>{if(p&&_.isBeforeYear(ce,V)||f&&_.isAfterYear(ce,V)||v&&_.isBeforeYear(ce,v)||m&&_.isAfterYear(ce,m))return!0;if(!C)return!1;const Se=_.startOfYear(ce);return C(Se)},[f,p,m,v,V,C,_]),ee=Ye((ce,Se)=>{if(g)return;const Ee=_.setYear(A!=null?A:T,Se);$(Ee)}),se=Ye(ce=>{X(_.setYear(A!=null?A:T,ce))||(K(ce),Y(!0),w==null||w(ce))});c.useEffect(()=>{K(ce=>N!==null&&ce!==N?N:ce)},[N]);const Z=Ye((ce,Se)=>{switch(ce.key){case"ArrowUp":se(Se-M),ce.preventDefault();break;case"ArrowDown":se(Se+M),ce.preventDefault();break;case"ArrowLeft":se(Se+(j.direction==="ltr"?-1:1)),ce.preventDefault();break;case"ArrowRight":se(Se+(j.direction==="ltr"?1:-1)),ce.preventDefault();break}}),he=Ye((ce,Se)=>{se(Se)}),ne=Ye((ce,Se)=>{H===Se&&Y(!1)}),re=c.useRef(null),me=Et(n,re);return c.useEffect(()=>{if(o||re.current===null)return;const ce=re.current.querySelector('[tabindex="0"]');if(!ce)return;const Se=ce.offsetHeight,Ee=ce.offsetTop,ae=re.current.clientHeight,Ie=re.current.scrollTop,ye=Ee+Se;Se>ae||Ee<Ie||(re.current.scrollTop=ye-ae/2-Se/2)},[o]),D.jsx(nke,x({ref:me,className:Ce(B.root,s),ownerState:F,role:"radiogroup","aria-labelledby":I},R,{children:_.getYearRange(v,m).map(ce=>{const Se=_.getYear(ce),Ee=Se===N,ae=u||X(ce);return D.jsx(XPe,{selected:Ee,value:Se,onClick:ee,onKeyDown:Z,autoFocus:Q&&Se===H,disabled:ae,tabIndex:Se===H?0:-1,onFocus:he,onBlur:ne,"aria-current":O===Se?"date":void 0,yearsPerRow:M,children:_.format(ce,"year")},_.format(ce,"year"))})}))}),oke=e=>Ke("MuiPickersCalendarHeader",e),ske=We("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),ike=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],lke=["ownerState"],ake=e=>{const{classes:t}=e;return Te({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},oke,t)},cke=oe("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),uke=oe("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>x({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),dke=oe("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),fke=oe(hr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>x({marginRight:"auto"},e.view==="year"&&{[`.${ske.switchViewIcon}`]:{transform:"rotate(180deg)"}})),pke=oe(aCe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),hke=c.forwardRef(function(t,n){var r,o,s,i;const l=ls(),a=rn(),u=je({props:t,name:"MuiPickersCalendarHeader"}),{slots:f,slotProps:p,components:m,currentMonth:v,disabled:y,disableFuture:g,disablePast:C,maxDate:b,minDate:w,onMonthChange:S,onViewChange:k,view:M,reduceAnimations:E,views:I,labelId:R,className:A,timezone:$}=u,L=le(u,ike),V=u,j=ake(u),_=(r=(o=f==null?void 0:f.switchViewButton)!=null?o:m==null?void 0:m.SwitchViewButton)!=null?r:fke,T=qt({elementType:_,externalSlotProps:p==null?void 0:p.switchViewButton,additionalProps:{size:"small","aria-label":l.calendarViewSwitchingButtonAriaLabel(M)},ownerState:V,className:j.switchViewButton}),F=(s=(i=f==null?void 0:f.switchViewIcon)!=null?i:m==null?void 0:m.SwitchViewIcon)!=null?s:pke,B=qt({elementType:F,externalSlotProps:p==null?void 0:p.switchViewIcon,ownerState:void 0,className:j.switchViewIcon}),O=le(B,lke),N=()=>S(a.addMonths(v,1),"left"),H=()=>S(a.addMonths(v,-1),"right"),K=kCe(v,{disableFuture:g,maxDate:b,timezone:$}),Q=ECe(v,{disablePast:C,minDate:w,timezone:$}),J=()=>{if(!(I.length===1||!k||y))if(I.length===2)k(I.find(Y=>Y!==M)||I[0]);else{const Y=I.indexOf(M)!==0?0:1;k(I[Y])}};return I.length===1&&I[0]==="year"?null:D.jsxs(cke,x({},L,{ownerState:V,className:Ce(A,j.root),ref:n,children:[D.jsxs(uke,{role:"presentation",onClick:J,ownerState:V,"aria-live":"polite",className:j.labelContainer,children:[D.jsx(d3,{reduceAnimations:E,transKey:a.format(v,"monthAndYear"),children:D.jsx(dke,{id:R,ownerState:V,className:j.label,children:a.format(v,"monthAndYear")})}),I.length>1&&!y&&D.jsx(_,x({},T,{children:D.jsx(F,x({},O))}))]}),D.jsx(Kd,{in:M==="day",children:D.jsx(AB,{slots:f,slotProps:p,onGoToPrevious:H,isPreviousDisabled:Q,previousLabel:l.previousMonth,onGoToNext:N,isNextDisabled:K,nextLabel:l.nextMonth})})]}))}),mke=e=>Ke("MuiDateCalendar",e);We("MuiDateCalendar",["root","viewTransitionContainer"]);const gke=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],vke=e=>{const{classes:t}=e;return Te({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},mke,t)};function yke(e,t){var n,r,o,s,i,l,a;const u=rn(),f=Qh(),p=e3(),m=je({props:e,name:t});return x({},m,{loading:(n=m.loading)!=null?n:!1,disablePast:(r=m.disablePast)!=null?r:!1,disableFuture:(o=m.disableFuture)!=null?o:!1,openTo:(s=m.openTo)!=null?s:"day",views:(i=m.views)!=null?i:["year","day"],reduceAnimations:(l=m.reduceAnimations)!=null?l:p,renderLoading:(a=m.renderLoading)!=null?a:()=>D.jsx("span",{children:"..."}),minDate:Fs(u,m.minDate,f.minDate),maxDate:Fs(u,m.maxDate,f.maxDate)})}const bke=oe(x0,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:C0}),wke=oe(d3,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),f3=c.forwardRef(function(t,n){var r,o,s;const i=rn(),l=Kt(),a=yke(t,"MuiDateCalendar"),{autoFocus:u,onViewChange:f,value:p,defaultValue:m,referenceDate:v,disableFuture:y,disablePast:g,defaultCalendarMonth:C,onChange:b,onYearChange:w,onMonthChange:S,reduceAnimations:k,shouldDisableDate:M,shouldDisableMonth:E,shouldDisableYear:I,view:R,views:A,openTo:$,className:L,disabled:V,readOnly:j,minDate:_,maxDate:T,disableHighlightToday:F,focusedView:B,onFocusedViewChange:O,showDaysOutsideCurrentMonth:N,fixedWeekNumber:H,dayOfWeekFormatter:K,components:Q,componentsProps:J,slots:Y,slotProps:X,loading:ee,renderLoading:se,displayWeekNumber:Z,yearsPerRow:he,monthsPerRow:ne,timezone:re}=a,me=le(a,gke),{value:ce,handleValueChange:Se,timezone:Ee}=of({name:"DateCalendar",timezone:re,value:p,defaultValue:m,onChange:b,valueManager:rs}),{view:ae,setView:Ie,focusedView:ye,setFocusedView:Me,goToNextView:pe,setValueAndGoToNextView:fe}=Zh({view:R,views:A,openTo:$,onChange:Se,onViewChange:f,autoFocus:u,focusedView:B,onFocusedViewChange:O}),{referenceDate:de,calendarState:be,changeFocusedDay:_e,changeMonth:Ne,handleChangeMonth:Ge,isDateDisabled:Ve,onMonthSwitchingAnimationEnd:Ue}=SPe({value:ce,defaultCalendarMonth:C,referenceDate:v,reduceAnimations:k,onMonthChange:S,minDate:_,maxDate:T,shouldDisableDate:M,disablePast:g,disableFuture:y,timezone:Ee}),Le=V&&ce||_,ht=V&&ce||T,Zt=`${l}-grid-label`,Pt=ye!==null,wt=(r=(o=Y==null?void 0:Y.calendarHeader)!=null?o:Q==null?void 0:Q.CalendarHeader)!=null?r:hke,Xe=qt({elementType:wt,externalSlotProps:(s=X==null?void 0:X.calendarHeader)!=null?s:J==null?void 0:J.calendarHeader,additionalProps:{views:A,view:ae,currentMonth:be.currentMonth,onViewChange:Ie,onMonthChange:(gt,Rt)=>Ge({newMonth:gt,direction:Rt}),minDate:Le,maxDate:ht,disabled:V,disablePast:g,disableFuture:y,reduceAnimations:k,timezone:Ee,labelId:Zt,slots:Y,slotProps:X},ownerState:a}),Oe=Ye(gt=>{const Rt=i.startOfMonth(gt),vr=i.endOfMonth(gt),ir=Ve(gt)?Op({utils:i,date:gt,minDate:i.isBefore(_,Rt)?Rt:_,maxDate:i.isAfter(T,vr)?vr:T,disablePast:g,disableFuture:y,isDateDisabled:Ve,timezone:Ee}):gt;ir?(fe(ir,"finish"),S==null||S(Rt)):(pe(),Ne(Rt)),_e(ir,!0)}),qe=Ye(gt=>{const Rt=i.startOfYear(gt),vr=i.endOfYear(gt),ir=Ve(gt)?Op({utils:i,date:gt,minDate:i.isBefore(_,Rt)?Rt:_,maxDate:i.isAfter(T,vr)?vr:T,disablePast:g,disableFuture:y,isDateDisabled:Ve,timezone:Ee}):gt;ir?(fe(ir,"finish"),w==null||w(ir)):(pe(),Ne(Rt)),_e(ir,!0)}),mt=Ye(gt=>Se(gt&&dS(i,gt,ce!=null?ce:de),"finish"));c.useEffect(()=>{ce!=null&&i.isValid(ce)&&Ne(ce)},[ce]);const vt=a,Tt=vke(vt),Yt={disablePast:g,disableFuture:y,maxDate:T,minDate:_},Qt={disableHighlightToday:F,readOnly:j,disabled:V,timezone:Ee,gridLabelId:Zt},Pn=c.useRef(ae);c.useEffect(()=>{Pn.current!==ae&&(ye===Pn.current&&Me(ae,!0),Pn.current=ae)},[ye,Me,ae]);const bn=c.useMemo(()=>[ce],[ce]);return D.jsxs(bke,x({ref:n,className:Ce(Tt.root,L),ownerState:vt},me,{children:[D.jsx(wt,x({},Xe)),D.jsx(wke,{reduceAnimations:k,className:Tt.viewTransitionContainer,transKey:ae,ownerState:vt,children:D.jsxs("div",{children:[ae==="year"&&D.jsx(rke,x({},Yt,Qt,{value:ce,onChange:qe,shouldDisableYear:I,hasFocus:Pt,onFocusedViewChange:gt=>Me("year",gt),yearsPerRow:he,referenceDate:de})),ae==="month"&&D.jsx(WPe,x({},Yt,Qt,{hasFocus:Pt,className:L,value:ce,onChange:Oe,shouldDisableMonth:E,onFocusedViewChange:gt=>Me("month",gt),monthsPerRow:ne,referenceDate:de})),ae==="day"&&D.jsx(CPe,x({},be,Yt,Qt,{onMonthSwitchingAnimationEnd:Ue,onFocusedDayChange:_e,reduceAnimations:k,selectedDays:bn,onSelectedDaysChange:mt,shouldDisableDate:M,shouldDisableMonth:E,shouldDisableYear:I,hasFocus:Pt,onFocusedViewChange:gt=>Me("day",gt),showDaysOutsideCurrentMonth:N,fixedWeekNumber:H,dayOfWeekFormatter:K,displayWeekNumber:Z,components:Q,componentsProps:J,slots:Y,slotProps:X,loading:ee,renderLoading:se}))]})})]}))}),Cke=["props","getOpenDialogAriaText"],xke=["ownerState"],Ske=["ownerState"],Pke=e=>{var t,n,r,o,s;let{props:i,getOpenDialogAriaText:l}=e,a=le(e,Cke);const{slots:u,slotProps:f,className:p,sx:m,format:v,formatDensity:y,timezone:g,label:C,inputRef:b,readOnly:w,disabled:S,autoFocus:k,localeText:M,reduceAnimations:E}=i,I=rn(),R=c.useRef(null),A=c.useRef(null),$=Kt(),L=(t=f==null||(n=f.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:V,actions:j,hasUIView:_,layoutProps:T,renderCurrentView:F,shouldRestoreFocus:B,fieldProps:O}=o3(x({},a,{props:i,inputRef:R,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),N=(r=u.inputAdornment)!=null?r:Cl,H=qt({elementType:N,externalSlotProps:f==null?void 0:f.inputAdornment,additionalProps:{position:"end"},ownerState:i}),K=le(H,xke),Q=(o=u.openPickerButton)!=null?o:hr,J=qt({elementType:Q,externalSlotProps:f==null?void 0:f.openPickerButton,additionalProps:{disabled:S||w,onClick:V?j.onClose:j.onOpen,"aria-label":l(O.value,I),edge:K.position},ownerState:i}),Y=le(J,Ske),X=u.openPickerIcon,ee=u.field,se=qt({elementType:ee,externalSlotProps:f==null?void 0:f.field,additionalProps:x({},O,L&&{id:$},{readOnly:w,disabled:S,className:p,sx:m,format:v,formatDensity:y,timezone:g,label:C,autoFocus:k&&!i.open,focused:V?!0:void 0}),ownerState:i});_&&(se.InputProps=x({},se.InputProps,{ref:A,[`${K.position}Adornment`]:D.jsx(N,x({},K,{children:D.jsx(Q,x({},Y,{children:D.jsx(X,x({},f==null?void 0:f.openPickerIcon))}))}))}));const Z=x({textField:u.textField,clearIcon:u.clearIcon,clearButton:u.clearButton},se.slots),he=(s=u.layout)!=null?s:l3,ne=Et(R,se.inputRef,b);let re=$;L&&(C?re=`${$}-label`:re=void 0);const me=x({},f,{toolbar:x({},f==null?void 0:f.toolbar,{titleId:$}),popper:x({"aria-labelledby":re},f==null?void 0:f.popper)});return{renderPicker:()=>D.jsxs(qE,{localeText:M,children:[D.jsx(ee,x({},se,{slots:Z,slotProps:me,inputRef:ne})),D.jsx(SSe,x({role:"dialog",placement:"bottom-start",anchorEl:A.current},j,{open:V,slots:u,slotProps:me,shouldRestoreFocus:B,reduceAnimations:E,children:D.jsx(he,x({},T,me==null?void 0:me.layout,{slots:u,slotProps:me,children:F()}))}))]})}},ad=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:m,minDate:v,maxDate:y,shouldDisableDate:g,shouldDisableMonth:C,shouldDisableYear:b,reduceAnimations:w,onMonthChange:S,monthsPerRow:k,onYearChange:M,yearsPerRow:E,defaultCalendarMonth:I,components:R,componentsProps:A,slots:$,slotProps:L,loading:V,renderLoading:j,disableHighlightToday:_,readOnly:T,disabled:F,showDaysOutsideCurrentMonth:B,dayOfWeekFormatter:O,sx:N,autoFocus:H,fixedWeekNumber:K,displayWeekNumber:Q,timezone:J})=>D.jsx(f3,{view:e,onViewChange:t,views:n.filter(id),focusedView:r&&id(r)?r:null,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:m,minDate:v,maxDate:y,shouldDisableDate:g,shouldDisableMonth:C,shouldDisableYear:b,reduceAnimations:w,onMonthChange:S,monthsPerRow:k,onYearChange:M,yearsPerRow:E,defaultCalendarMonth:I,components:R,componentsProps:A,slots:$,slotProps:L,loading:V,renderLoading:j,disableHighlightToday:_,readOnly:T,disabled:F,showDaysOutsideCurrentMonth:B,dayOfWeekFormatter:O,sx:N,autoFocus:H,fixedWeekNumber:K,displayWeekNumber:Q,timezone:J}),kke=["props","getOpenDialogAriaText"],Eke=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:s}=e,i=le(e,kke);const{slots:l,slotProps:a,className:u,sx:f,format:p,formatDensity:m,timezone:v,label:y,inputRef:g,readOnly:C,disabled:b,localeText:w}=o,S=rn(),k=c.useRef(null),M=Kt(),E=(t=a==null||(n=a.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:I,actions:R,layoutProps:A,renderCurrentView:$,fieldProps:L}=o3(x({},i,{props:o,inputRef:k,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),V=l.field,j=qt({elementType:V,externalSlotProps:a==null?void 0:a.field,additionalProps:x({},L,E&&{id:M},!(b||C)&&{onClick:R.onOpen,onKeyDown:rSe(R.onOpen)},{readOnly:C!=null?C:!0,disabled:b,className:u,sx:f,format:p,formatDensity:m,timezone:v,label:y}),ownerState:o});j.inputProps=x({},j.inputProps,{"aria-label":s(L.value,S)});const _=x({textField:l.textField},j.slots),T=(r=l.layout)!=null?r:l3,F=Et(k,j.inputRef,g);let B=M;E&&(y?B=`${M}-label`:B=void 0);const O=x({},a,{toolbar:x({},a==null?void 0:a.toolbar,{titleId:M}),mobilePaper:x({"aria-labelledby":B},a==null?void 0:a.mobilePaper)});return{renderPicker:()=>D.jsxs(qE,{localeText:w,children:[D.jsx(V,x({},j,{slots:_,slotProps:O,inputRef:F})),D.jsx(fSe,x({},R,{open:I,slots:l,slotProps:O,children:D.jsx(T,x({},A,O==null?void 0:O.layout,{slots:l,slotProps:O,children:$()}))}))]})}},sC=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:m,minTime:v,maxTime:y,shouldDisableTime:g,shouldDisableClock:C,minutesStep:b,ampm:w,ampmInClock:S,components:k,componentsProps:M,slots:E,slotProps:I,readOnly:R,disabled:A,sx:$,autoFocus:L,showViewSwitcher:V,disableIgnoringDatePartForTimeValidation:j,timezone:_})=>D.jsx(Pxe,{view:e,onViewChange:t,focusedView:n&&Od(n)?n:null,onFocusedViewChange:r,views:o.filter(Od),value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:m,minTime:v,maxTime:y,shouldDisableTime:g,shouldDisableClock:C,minutesStep:b,ampm:w,ampmInClock:S,components:k,componentsProps:M,slots:E,slotProps:I,readOnly:R,disabled:A,sx:$,autoFocus:L,showViewSwitcher:V,disableIgnoringDatePartForTimeValidation:j,timezone:_}),Ike=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:m,minTime:v,maxTime:y,shouldDisableTime:g,shouldDisableClock:C,minutesStep:b,ampm:w,components:S,componentsProps:k,slots:M,slotProps:E,readOnly:I,disabled:R,sx:A,autoFocus:$,disableIgnoringDatePartForTimeValidation:L,timeSteps:V,skipDisabled:j,timezone:_})=>D.jsx(Rxe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Od),value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:m,minTime:v,maxTime:y,shouldDisableTime:g,shouldDisableClock:C,minutesStep:b,ampm:w,components:S,componentsProps:k,slots:M,slotProps:E,readOnly:I,disabled:R,sx:A,autoFocus:$,disableIgnoringDatePartForTimeValidation:L,timeStep:V==null?void 0:V.minutes,skipDisabled:j,timezone:_}),Mke=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:m,minTime:v,maxTime:y,shouldDisableTime:g,shouldDisableClock:C,minutesStep:b,ampm:w,components:S,componentsProps:k,slots:M,slotProps:E,readOnly:I,disabled:R,sx:A,autoFocus:$,disableIgnoringDatePartForTimeValidation:L,timeSteps:V,skipDisabled:j,timezone:_})=>D.jsx(Wxe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Od),value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:m,minTime:v,maxTime:y,shouldDisableTime:g,shouldDisableClock:C,minutesStep:b,ampm:w,components:S,componentsProps:k,slots:M,slotProps:E,readOnly:I,disabled:R,sx:A,autoFocus:$,disableIgnoringDatePartForTimeValidation:L,timeSteps:V,skipDisabled:j,timezone:_}),_ke=["views","format"],p3=(e,t)=>{let{views:n,format:r}=t,o=le(t,_ke);if(r)return r;const s=[],i=[];if(n.forEach(u=>{Od(u)?i.push(u):s.push(u)}),i.length===0)return iD(e,x({views:s},o),!1);if(s.length===0)return sD(e,x({views:i},o));const l=sD(e,x({views:i},o));return`${iD(e,x({views:s},o),!1)} ${l}`},Tke=(e,t,n)=>n?t.filter(r=>!Yl(r)||r==="hours"):e?[...t,"meridiem"]:t,$ke=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function Rke({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e!=null?e:24,s=x({hours:1,minutes:5,seconds:5},n),i=$ke(s,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:s,shouldRenderTimeInASingleColumn:i,views:Tke(t,r,i)}}function Oke(e){return Ke("MuiDateTimePickerTabs",e)}We("MuiDateTimePickerTabs",["root"]);const Dke=e=>id(e)?"date":"time",Ake=e=>e==="date"?"day":"hours",Lke=e=>{const{classes:t}=e;return Te({root:["root"]},Oke,t)},Fke=oe(gk,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${qg.indicator}`]:{bottom:"auto",top:0}}})),Nke=function(t){const n=je({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=D.jsx(fCe,{}),onViewChange:o,timeIcon:s=D.jsx(pCe,{}),view:i,hidden:l=typeof window=="undefined"||window.innerHeight<667}=n,a=ls(),u=Lke(n),f=(p,m)=>{o(Ake(m))};return l?null:D.jsxs(Fke,{ownerState:n,variant:"fullWidth",value:Dke(i),onChange:f,className:u.root,children:[D.jsx(Uv,{value:"date","aria-label":a.dateTableLabel,icon:D.jsx(c.Fragment,{children:r})}),D.jsx(Uv,{value:"time","aria-label":a.timeTableLabel,icon:D.jsx(c.Fragment,{children:s})})]})};function Bke(e){return Ke("MuiDateTimePickerToolbar",e)}const iC=We("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),zke=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],Vke=e=>{const{classes:t,theme:n,isLandscape:r}=e,o={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Te(o,Bke,t)},h3=oe(ISe,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({paddingLeft:t.toolbarVariant==="desktop"&&!t.isLandscape?24:16,paddingRight:t.toolbarVariant==="desktop"&&!t.isLandscape?0:16,borderBottom:t.toolbarVariant==="desktop"?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:t.toolbarVariant==="desktop"&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));h3.propTypes={as:W.elementType,classes:W.object,className:W.string,isLandscape:W.bool.isRequired,isMobileKeyboardViewOpen:W.bool,landscapeDirection:W.oneOf(["column","row"]),ownerState:W.object.isRequired,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),toggleMobileKeyboardView:W.func,toolbarTitle:W.node,viewType:W.oneOf(["date","time"])};const jke=oe("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),m3=oe("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return x({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&x({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),Hke=oe("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>x({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));m3.propTypes={as:W.elementType,ownerState:W.object.isRequired,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object])};const yD=oe(n3,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),Uke=oe("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${iC.ampmLabel}`]:t.ampmLabel},{[`&.${iC.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>x({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${iC.ampmLabel}`]:{fontSize:17}}));function Wke(e){const t=je({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,onChange:s,view:i,isLandscape:l,onViewChange:a,toolbarFormat:u,toolbarPlaceholder:f="––",views:p,disabled:m,readOnly:v,toolbarVariant:y="mobile"}=t,g=le(t,zke),C=t,b=rn(),{meridiemMode:w,handleMeridiemChange:S}=YE(o,n,s),k=!!(n&&!r),M=y==="desktop",E=ls(),I=yn(),R=Vke(x({},C,{theme:I})),A=L=>n?b.format(L,"hours12h"):b.format(L,"hours24h"),$=c.useMemo(()=>o?u?b.formatByString(o,u):b.format(o,"shortDate"):f,[o,u,f,b]);return D.jsxs(h3,x({toolbarTitle:E.dateTimePickerToolbarTitle,isLandscape:l,className:R.root},g,{ownerState:C,children:[D.jsxs(jke,{className:R.dateContainer,ownerState:C,children:[p.includes("year")&&D.jsx(Ul,{tabIndex:-1,variant:"subtitle1",onClick:()=>a("year"),selected:i==="year",value:o?b.format(o,"year"):"–"}),p.includes("day")&&D.jsx(Ul,{tabIndex:-1,variant:M?"h5":"h4",onClick:()=>a("day"),selected:i==="day",value:$})]}),D.jsxs(m3,{className:R.timeContainer,ownerState:C,children:[D.jsxs(Hke,{className:R.timeDigitsContainer,ownerState:C,children:[p.includes("hours")&&D.jsx(Ul,{variant:M?"h5":"h3",width:M&&!l?up:void 0,onClick:()=>a("hours"),selected:i==="hours",value:o?A(o):"--"}),p.includes("minutes")&&D.jsxs(c.Fragment,{children:[D.jsx(yD,{variant:M?"h5":"h3",value:":",className:R.separator,ownerState:C}),D.jsx(Ul,{variant:M?"h5":"h3",width:M&&!l?up:void 0,onClick:()=>a("minutes"),selected:i==="minutes",value:o?b.format(o,"minutes"):"--"})]}),p.includes("seconds")&&D.jsxs(c.Fragment,{children:[D.jsx(yD,{variant:M?"h5":"h3",value:":",className:R.separator,ownerState:C}),D.jsx(Ul,{variant:M?"h5":"h3",width:M&&!l?up:void 0,onClick:()=>a("seconds"),selected:i==="seconds",value:o?b.format(o,"seconds"):"--"})]})]}),k&&!M&&D.jsxs(Uke,{className:R.ampmSelection,ownerState:C,children:[D.jsx(Ul,{variant:"subtitle2",selected:w==="am",typographyClassName:R.ampmLabel,value:dl(b,"am"),onClick:v?void 0:()=>S("am"),disabled:m}),D.jsx(Ul,{variant:"subtitle2",selected:w==="pm",typographyClassName:R.ampmLabel,value:dl(b,"pm"),onClick:v?void 0:()=>S("pm"),disabled:m})]}),n&&M&&D.jsx(Ul,{variant:"h5",onClick:()=>a("meridiem"),selected:i==="meridiem",value:o&&w?dl(b,w):"--",width:up})]})]}))}function g3(e,t){var n,r,o,s,i,l,a,u,f,p,m;const v=rn(),y=Qh(),g=je({props:e,name:t}),C=(n=g.ampm)!=null?n:v.is12HourCycleInCurrentLocale(),b=c.useMemo(()=>{var k;return((k=g.localeText)==null?void 0:k.toolbarTitle)==null?g.localeText:x({},g.localeText,{dateTimePickerToolbarTitle:g.localeText.toolbarTitle})},[g.localeText]),w=(r=g.slots)!=null?r:eI(g.components),S=(o=g.slotProps)!=null?o:g.componentsProps;return x({},g,xCe({views:g.views,openTo:g.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:C,localeText:b,orientation:(s=g.orientation)!=null?s:"portrait",disableIgnoringDatePartForTimeValidation:(i=g.disableIgnoringDatePartForTimeValidation)!=null?i:!!(g.minDateTime||g.maxDateTime||g.disablePast||g.disableFuture),disableFuture:(l=g.disableFuture)!=null?l:!1,disablePast:(a=g.disablePast)!=null?a:!1,minDate:Fs(v,(u=g.minDateTime)!=null?u:g.minDate,y.minDate),maxDate:Fs(v,(f=g.maxDateTime)!=null?f:g.maxDate,y.maxDate),minTime:(p=g.minDateTime)!=null?p:g.minTime,maxTime:(m=g.maxDateTime)!=null?m:g.maxTime,slots:x({toolbar:Wke,tabs:Nke},w),slotProps:x({},S,{toolbar:x({ampm:C},S==null?void 0:S.toolbar)})})}const Gke=oe("div")({display:"flex",margin:"0 auto"}),Ja=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:m,minDate:v,minTime:y,maxDate:g,maxTime:C,shouldDisableDate:b,shouldDisableMonth:w,shouldDisableYear:S,shouldDisableTime:k,shouldDisableClock:M,reduceAnimations:E,minutesStep:I,ampm:R,onMonthChange:A,monthsPerRow:$,onYearChange:L,yearsPerRow:V,defaultCalendarMonth:j,components:_,componentsProps:T,slots:F,slotProps:B,loading:O,renderLoading:N,disableHighlightToday:H,readOnly:K,disabled:Q,showDaysOutsideCurrentMonth:J,dayOfWeekFormatter:Y,sx:X,autoFocus:ee,fixedWeekNumber:se,displayWeekNumber:Z,timezone:he,disableIgnoringDatePartForTimeValidation:ne,timeSteps:re,skipDisabled:me,timeViewsCount:ce,shouldRenderTimeInASingleColumn:Se})=>{var Ee,ae;const Ie=!!((Ee=Pb((ae=B==null?void 0:B.actionBar)!=null?ae:T==null?void 0:T.actionBar,{}))!=null&&(Ee=Ee.actions)!=null&&Ee.length),ye={view:Yl(e)?e:"hours",onViewChange:t,focusedView:r&&Yl(r)?r:null,onFocusedViewChange:o,views:n.filter(Yl),value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:m,minTime:y,maxTime:C,shouldDisableTime:k,shouldDisableClock:M,minutesStep:I,ampm:R,components:_,componentsProps:T,slots:F,slotProps:B,readOnly:K,disabled:Q,autoFocus:ee,disableIgnoringDatePartForTimeValidation:ne,timeSteps:re,skipDisabled:me,timezone:he};return D.jsxs(c.Fragment,{children:[D.jsxs(Gke,{children:[D.jsx(f3,{view:id(e)?e:"day",onViewChange:t,views:n.filter(id),focusedView:r&&id(r)?r:null,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:m,minDate:v,maxDate:g,shouldDisableDate:b,shouldDisableMonth:w,shouldDisableYear:S,reduceAnimations:E,onMonthChange:A,monthsPerRow:$,onYearChange:L,yearsPerRow:V,defaultCalendarMonth:j,components:_,componentsProps:T,slots:F,slotProps:B,loading:O,renderLoading:N,disableHighlightToday:H,readOnly:K,disabled:Q,showDaysOutsideCurrentMonth:J,dayOfWeekFormatter:Y,sx:X,autoFocus:ee,fixedWeekNumber:se,displayWeekNumber:Z,timezone:he}),ce>0&&D.jsxs(c.Fragment,{children:[D.jsx(Pd,{orientation:"vertical"}),Se?Ike(x({},ye,{view:"hours",views:["hours"],focusedView:r&&Yl(r)?"hours":null,sx:x({width:"auto",[`&.${Exe.root}`]:{maxHeight:C0}},Array.isArray(X)?X:[X])})):Mke(x({},ye,{view:Yl(e)?e:"hours",views:n.filter(Yl),focusedView:r&&Yl(r)?r:null,sx:x({borderBottom:0,width:"auto",[`.${Axe.root}`]:{maxHeight:"100%"}},Array.isArray(X)?X:[X])}))]})]}),Ie&&D.jsx(Pd,{})]})},v3=c.forwardRef(function(t,n){var r,o,s,i,l,a,u;const f=ls(),p=rn(),m=g3(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:v,thresholdToRenderTimeInASingleColumn:y,views:g,timeSteps:C}=Rke(m),b=!m.viewRenderers||Object.keys(m.viewRenderers).length===0,w=b?{day:Ja,month:Ja,year:Ja,hours:Ja,minutes:Ja,seconds:Ja,meridiem:Ja}:x({day:ad,month:ad,year:ad,hours:null,minutes:null,seconds:null,meridiem:null},m.viewRenderers),S=(r=m.ampmInClock)!=null?r:!0,k=b?["accept"]:[],M=x({},m,{viewRenderers:w,format:p3(p,m),views:g,yearsPerRow:(o=m.yearsPerRow)!=null?o:4,ampmInClock:S,timeSteps:C,thresholdToRenderTimeInASingleColumn:y,shouldRenderTimeInASingleColumn:v,slots:x({field:u3,openPickerIcon:dCe},m.slots),slotProps:x({},m.slotProps,{field:I=>{var R;return x({},Pb((R=m.slotProps)==null?void 0:R.field,I),JB(m),{ref:n})},toolbar:x({hidden:!0,ampmInClock:S,toolbarVariant:b?"desktop":"mobile"},(s=m.slotProps)==null?void 0:s.toolbar),tabs:x({hidden:!0},(i=m.slotProps)==null?void 0:i.tabs),actionBar:x({actions:k},(l=m.slotProps)==null?void 0:l.actionBar)})}),{renderPicker:E}=Pke({props:M,valueManager:rs,valueType:"date-time",getOpenDialogAriaText:(a=(u=M.localeText)==null?void 0:u.openDatePickerDialogue)!=null?a:f.openDatePickerDialogue,validator:nI});return E()});v3.propTypes={ampm:W.bool,ampmInClock:W.bool,autoFocus:W.bool,className:W.string,closeOnSelect:W.bool,components:W.object,componentsProps:W.object,dayOfWeekFormatter:W.func,defaultCalendarMonth:W.any,defaultValue:W.any,disabled:W.bool,disableFuture:W.bool,disableHighlightToday:W.bool,disableIgnoringDatePartForTimeValidation:W.bool,disableOpenPicker:W.bool,disablePast:W.bool,displayWeekNumber:W.bool,fixedWeekNumber:W.number,format:W.string,formatDensity:W.oneOf(["dense","spacious"]),inputRef:AF,label:W.node,loading:W.bool,localeText:W.object,maxDate:W.any,maxDateTime:W.any,maxTime:W.any,minDate:W.any,minDateTime:W.any,minTime:W.any,minutesStep:W.number,monthsPerRow:W.oneOf([3,4]),onAccept:W.func,onChange:W.func,onClose:W.func,onError:W.func,onMonthChange:W.func,onOpen:W.func,onSelectedSectionsChange:W.func,onViewChange:W.func,onYearChange:W.func,open:W.bool,openTo:W.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:W.oneOf(["landscape","portrait"]),readOnly:W.bool,reduceAnimations:W.bool,referenceDate:W.any,renderLoading:W.func,selectedSections:W.oneOfType([W.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),W.number,W.shape({endIndex:W.number.isRequired,startIndex:W.number.isRequired})]),shouldDisableClock:W.func,shouldDisableDate:W.func,shouldDisableMonth:W.func,shouldDisableTime:W.func,shouldDisableYear:W.func,showDaysOutsideCurrentMonth:W.bool,skipDisabled:W.bool,slotProps:W.object,slots:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),thresholdToRenderTimeInASingleColumn:W.number,timeSteps:W.shape({hours:W.number,minutes:W.number,seconds:W.number}),timezone:W.string,value:W.any,view:W.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:W.shape({day:W.func,hours:W.func,meridiem:W.func,minutes:W.func,month:W.func,seconds:W.func,year:W.func}),views:W.arrayOf(W.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:W.oneOf([3,4])};const y3=c.forwardRef(function(t,n){var r,o,s,i,l;const a=ls(),u=rn(),f=g3(t,"MuiMobileDateTimePicker"),p=x({day:ad,month:ad,year:ad,hours:sC,minutes:sC,seconds:sC},f.viewRenderers),m=(r=f.ampmInClock)!=null?r:!1,v=x({},f,{viewRenderers:p,format:p3(u,f),ampmInClock:m,slots:x({field:u3},f.slots),slotProps:x({},f.slotProps,{field:g=>{var C;return x({},Pb((C=f.slotProps)==null?void 0:C.field,g),JB(f),{ref:n})},toolbar:x({hidden:!1,ampmInClock:m},(o=f.slotProps)==null?void 0:o.toolbar),tabs:x({hidden:!1},(s=f.slotProps)==null?void 0:s.tabs)})}),{renderPicker:y}=Eke({props:v,valueManager:rs,valueType:"date-time",getOpenDialogAriaText:(i=(l=v.localeText)==null?void 0:l.openDatePickerDialogue)!=null?i:a.openDatePickerDialogue,validator:nI});return y()});y3.propTypes={ampm:W.bool,ampmInClock:W.bool,autoFocus:W.bool,className:W.string,closeOnSelect:W.bool,components:W.object,componentsProps:W.object,dayOfWeekFormatter:W.func,defaultCalendarMonth:W.any,defaultValue:W.any,disabled:W.bool,disableFuture:W.bool,disableHighlightToday:W.bool,disableIgnoringDatePartForTimeValidation:W.bool,disableOpenPicker:W.bool,disablePast:W.bool,displayWeekNumber:W.bool,fixedWeekNumber:W.number,format:W.string,formatDensity:W.oneOf(["dense","spacious"]),inputRef:AF,label:W.node,loading:W.bool,localeText:W.object,maxDate:W.any,maxDateTime:W.any,maxTime:W.any,minDate:W.any,minDateTime:W.any,minTime:W.any,minutesStep:W.number,monthsPerRow:W.oneOf([3,4]),onAccept:W.func,onChange:W.func,onClose:W.func,onError:W.func,onMonthChange:W.func,onOpen:W.func,onSelectedSectionsChange:W.func,onViewChange:W.func,onYearChange:W.func,open:W.bool,openTo:W.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:W.oneOf(["landscape","portrait"]),readOnly:W.bool,reduceAnimations:W.bool,referenceDate:W.any,renderLoading:W.func,selectedSections:W.oneOfType([W.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),W.number,W.shape({endIndex:W.number.isRequired,startIndex:W.number.isRequired})]),shouldDisableClock:W.func,shouldDisableDate:W.func,shouldDisableMonth:W.func,shouldDisableTime:W.func,shouldDisableYear:W.func,showDaysOutsideCurrentMonth:W.bool,slotProps:W.object,slots:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),timezone:W.string,value:W.any,view:W.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:W.shape({day:W.func,hours:W.func,minutes:W.func,month:W.func,seconds:W.func,year:W.func}),views:W.arrayOf(W.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:W.oneOf([3,4])};const Kke=["desktopModeMediaQuery"],qke=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=oSe}=r,s=le(r,Kke);return Lb(o,{defaultMatches:!0})?D.jsx(v3,x({ref:n},s)):D.jsx(y3,x({ref:n},s))});var b3={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(sn,function(){var n=1e3,r=6e4,o=36e5,s="millisecond",i="second",l="minute",a="hour",u="day",f="week",p="month",m="quarter",v="year",y="date",g="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_){var T=["th","st","nd","rd"],F=_%100;return"["+_+(T[(F-20)%10]||T[F]||T[0])+"]"}},S=function(_,T,F){var B=String(_);return!B||B.length>=T?_:""+Array(T+1-B.length).join(F)+_},k={s:S,z:function(_){var T=-_.utcOffset(),F=Math.abs(T),B=Math.floor(F/60),O=F%60;return(T<=0?"+":"-")+S(B,2,"0")+":"+S(O,2,"0")},m:function _(T,F){if(T.date()<F.date())return-_(F,T);var B=12*(F.year()-T.year())+(F.month()-T.month()),O=T.clone().add(B,p),N=F-O<0,H=T.clone().add(B+(N?-1:1),p);return+(-(B+(F-O)/(N?O-H:H-O))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:p,y:v,w:f,d:u,D:y,h:a,m:l,s:i,ms:s,Q:m}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},M="en",E={};E[M]=w;var I="$isDayjsObject",R=function(_){return _ instanceof V||!(!_||!_[I])},A=function _(T,F,B){var O;if(!T)return M;if(typeof T=="string"){var N=T.toLowerCase();E[N]&&(O=N),F&&(E[N]=F,O=N);var H=T.split("-");if(!O&&H.length>1)return _(H[0])}else{var K=T.name;E[K]=T,O=K}return!B&&O&&(M=O),O||!B&&M},$=function(_,T){if(R(_))return _.clone();var F=typeof T=="object"?T:{};return F.date=_,F.args=arguments,new V(F)},L=k;L.l=A,L.i=R,L.w=function(_,T){return $(_,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var V=function(){function _(F){this.$L=A(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[I]=!0}var T=_.prototype;return T.parse=function(F){this.$d=function(B){var O=B.date,N=B.utc;if(O===null)return new Date(NaN);if(L.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var H=O.match(C);if(H){var K=H[2]-1||0,Q=(H[7]||"0").substring(0,3);return N?new Date(Date.UTC(H[1],K,H[3]||1,H[4]||0,H[5]||0,H[6]||0,Q)):new Date(H[1],K,H[3]||1,H[4]||0,H[5]||0,H[6]||0,Q)}}return new Date(O)}(F),this.init()},T.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},T.$utils=function(){return L},T.isValid=function(){return this.$d.toString()!==g},T.isSame=function(F,B){var O=$(F);return this.startOf(B)<=O&&O<=this.endOf(B)},T.isAfter=function(F,B){return $(F)<this.startOf(B)},T.isBefore=function(F,B){return this.endOf(B)<$(F)},T.$g=function(F,B,O){return L.u(F)?this[B]:this.set(O,F)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(F,B){var O=this,N=!!L.u(B)||B,H=L.p(F),K=function(he,ne){var re=L.w(O.$u?Date.UTC(O.$y,ne,he):new Date(O.$y,ne,he),O);return N?re:re.endOf(u)},Q=function(he,ne){return L.w(O.toDate()[he].apply(O.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(ne)),O)},J=this.$W,Y=this.$M,X=this.$D,ee="set"+(this.$u?"UTC":"");switch(H){case v:return N?K(1,0):K(31,11);case p:return N?K(1,Y):K(0,Y+1);case f:var se=this.$locale().weekStart||0,Z=(J<se?J+7:J)-se;return K(N?X-Z:X+(6-Z),Y);case u:case y:return Q(ee+"Hours",0);case a:return Q(ee+"Minutes",1);case l:return Q(ee+"Seconds",2);case i:return Q(ee+"Milliseconds",3);default:return this.clone()}},T.endOf=function(F){return this.startOf(F,!1)},T.$set=function(F,B){var O,N=L.p(F),H="set"+(this.$u?"UTC":""),K=(O={},O[u]=H+"Date",O[y]=H+"Date",O[p]=H+"Month",O[v]=H+"FullYear",O[a]=H+"Hours",O[l]=H+"Minutes",O[i]=H+"Seconds",O[s]=H+"Milliseconds",O)[N],Q=N===u?this.$D+(B-this.$W):B;if(N===p||N===v){var J=this.clone().set(y,1);J.$d[K](Q),J.init(),this.$d=J.set(y,Math.min(this.$D,J.daysInMonth())).$d}else K&&this.$d[K](Q);return this.init(),this},T.set=function(F,B){return this.clone().$set(F,B)},T.get=function(F){return this[L.p(F)]()},T.add=function(F,B){var O,N=this;F=Number(F);var H=L.p(B),K=function(Y){var X=$(N);return L.w(X.date(X.date()+Math.round(Y*F)),N)};if(H===p)return this.set(p,this.$M+F);if(H===v)return this.set(v,this.$y+F);if(H===u)return K(1);if(H===f)return K(7);var Q=(O={},O[l]=r,O[a]=o,O[i]=n,O)[H]||1,J=this.$d.getTime()+F*Q;return L.w(J,this)},T.subtract=function(F,B){return this.add(-1*F,B)},T.format=function(F){var B=this,O=this.$locale();if(!this.isValid())return O.invalidDate||g;var N=F||"YYYY-MM-DDTHH:mm:ssZ",H=L.z(this),K=this.$H,Q=this.$m,J=this.$M,Y=O.weekdays,X=O.months,ee=O.meridiem,se=function(ne,re,me,ce){return ne&&(ne[re]||ne(B,N))||me[re].slice(0,ce)},Z=function(ne){return L.s(K%12||12,ne,"0")},he=ee||function(ne,re,me){var ce=ne<12?"AM":"PM";return me?ce.toLowerCase():ce};return N.replace(b,function(ne,re){return re||function(me){switch(me){case"YY":return String(B.$y).slice(-2);case"YYYY":return L.s(B.$y,4,"0");case"M":return J+1;case"MM":return L.s(J+1,2,"0");case"MMM":return se(O.monthsShort,J,X,3);case"MMMM":return se(X,J);case"D":return B.$D;case"DD":return L.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return se(O.weekdaysMin,B.$W,Y,2);case"ddd":return se(O.weekdaysShort,B.$W,Y,3);case"dddd":return Y[B.$W];case"H":return String(K);case"HH":return L.s(K,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return he(K,Q,!0);case"A":return he(K,Q,!1);case"m":return String(Q);case"mm":return L.s(Q,2,"0");case"s":return String(B.$s);case"ss":return L.s(B.$s,2,"0");case"SSS":return L.s(B.$ms,3,"0");case"Z":return H}return null}(ne)||H.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(F,B,O){var N,H=this,K=L.p(B),Q=$(F),J=(Q.utcOffset()-this.utcOffset())*r,Y=this-Q,X=function(){return L.m(H,Q)};switch(K){case v:N=X()/12;break;case p:N=X();break;case m:N=X()/3;break;case f:N=(Y-J)/6048e5;break;case u:N=(Y-J)/864e5;break;case a:N=Y/o;break;case l:N=Y/r;break;case i:N=Y/n;break;default:N=Y}return O?N:L.a(N)},T.daysInMonth=function(){return this.endOf(p).$D},T.$locale=function(){return E[this.$L]},T.locale=function(F,B){if(!F)return this.$L;var O=this.clone(),N=A(F,B,!0);return N&&(O.$L=N),O},T.clone=function(){return L.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},_}(),j=V.prototype;return $.prototype=j,[["$ms",s],["$s",i],["$m",l],["$H",a],["$W",u],["$M",p],["$y",v],["$D",y]].forEach(function(_){j[_[1]]=function(T){return this.$g(T,_[0],_[1])}}),$.extend=function(_,T){return _.$i||(_(T,V,$),_.$i=!0),$},$.locale=A,$.isDayjs=R,$.unix=function(_){return $(1e3*_)},$.en=E[M],$.Ls=E,$.p={},$})})(b3);var Yke=b3.exports;const $r=di(Yke);function Qke(o){var s=o,{onChange:e,error:t,helperText:n}=s,r=Ft(s,["onChange","error","helperText"]);return c.createElement(ze,{},c.createElement(qke,st(xe({},Xb(r,i=>i&&i instanceof Date?$r(i):i!=null?i:null)),{sx:xe({width:"100%",color:"error.main"},r.sx),onChange(i){e(i&&new Date(i),{was:r.value,event:void 0})}})),n&&c.createElement(qd,{error:t},n))}function xh(f){var p=f,{label:e,helperText:t,fields:n,value:r,onChange:o,onError:s,setApi:i,reorder:l,prepend:a}=p,u=Ft(p,["label","helperText","fields","value","onChange","onError","setApi","reorder","prepend"]);const m=c.useMemo(()=>(r||[]).map((b,w)=>dfe(xe({},b),b.hasOwnProperty("id")?{$idx:w}:{id:w})),[JSON.stringify(r)]),v={fields:n.map(M=>{var E=M,{$width:b,$column:w,$type:S}=E,k=Ft(E,["$width","$column","$type"]);var I;return rt.defaults(k,(I=bD[S])==null?void 0:I.field)})};i==null||i({isEqual:j4});const[y,g]=c.useState();return c.createElement(c.Fragment,{},e&&c.createElement(YN,{sx:{ml:1}},e),t&&c.createElement(qd,{},t),c.createElement(ze,xe({},u),c.createElement(TB,{rows:m,sx:{".MuiDataGrid-virtualScroller":{minHeight:"3em"}},hideFooterSelectedRowCount:!0,hideFooter:!0,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}},columns:[...n.map(b=>{var S,k;const w=(S=bD[b.$type])==null?void 0:S.column;return xe(xe(xe({field:b.k,headerName:(k=b.headerName)!=null?k:typeof b.label=="string"?b.label:t5(b.k),disableColumnMenu:!0},w),b.$width?{[b.$width>=8?"width":"flex"]:b.$width}:!(w!=null&&w.width)&&!(w!=null&&w.flex)&&{flex:1}),b.$column)}),{field:"",type:"actions",width:90,headerAlign:"center",renderHeader(){const b="Add";return c.createElement(c.Fragment,{},c.createElement(mn,{icon:zE,title:b,size:"small",onClick:w=>uh({form:v,title:b}).then(S=>{if(!S)return;const k=(r==null?void 0:r.slice())||[];a?k.unshift(S):k.push(S),C(k,w)})}),y!==void 0&&c.createElement(mn,{icon:OB,title:"Undo",size:"small",onClick:w=>C(y,w)}))},getActions({row:b}){const{$idx:w=b.id}=b,S="Modify";return[c.createElement(bg,{icon:c.createElement(jE),label:S,title:S,onClick(k){uh({values:b,form:v,title:S}).then(M=>{M&&C(r.map((E,I)=>I===w?M:E),k)})}}),c.createElement(bg,{icon:c.createElement(_l),label:"Delete",showInMenu:l,onClick:k=>C(r.filter((M,E)=>E!==w),k)}),l&&w&&c.createElement(bg,{icon:c.createElement(WE),label:"Move up",showInMenu:!0,onClick:k=>C(fO(r.slice(),w,w-1),k)}),l&&w<m.length-1&&c.createElement(bg,{icon:c.createElement(RB),label:"Move down",showInMenu:!0,onClick:k=>C(fO(r.slice(),w,w+1),k)})].filter(Boolean)}}]})));function C(b,w){o(b,{was:r,event:w}),g(r)}}const bD={dateTime:{field:{comp:Qke},column:{type:"dateTime",minWidth:90,flex:.5,valueGetter:({value:e})=>e&&new Date(e),renderCell:({value:e})=>e&&c.createElement(ze,{},e.toLocaleDateString(),c.createElement("br"),e.toLocaleTimeString())}}};var rI={},Xke=et;Object.defineProperty(rI,"__esModule",{value:!0});var w3=rI.default=void 0,Zke=Xke(tt()),Jke=Ze(),eEe=(0,Zke.default)((0,Jke.jsx)("path",{d:"M5 17h14v2H5zm7-12L5.33 15h13.34z"}),"Eject");w3=rI.default=eEe;var oI={},tEe=et;Object.defineProperty(oI,"__esModule",{value:!0});var C3=oI.default=void 0,nEe=tEe(tt()),rEe=Ze(),oEe=(0,nEe.default)((0,rEe.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"}),"CreateNewFolder");C3=oI.default=oEe;var sI={},sEe=et;Object.defineProperty(sI,"__esModule",{value:!0});var x3=sI.default=void 0,iEe=sEe(tt()),lEe=Ze(),aEe=(0,iEe.default)((0,lEe.jsx)("path",{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}),"VerticalAlignTop");x3=sI.default=aEe;const cEe=["element"];function uEe(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}function dEe(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 S3=c.createContext({});function fEe(e){const t=c.useRef(null);return c.useEffect(()=>{t.current=e},[e]),t.current}const wD=()=>{};function pEe(e){const[,t]=c.useState(),{registerDescendant:n=wD,unregisterDescendant:r=wD,descendants:o=[],parentId:s=null}=c.useContext(S3),i=uEe(o,u=>u.element===e.element),l=fEe(o),a=o.some((u,f)=>l&&l[f]&&l[f].element!==u.element);return Nt(()=>{if(e.element)return n(x({},e,{index:i})),()=>{r(e.element)};t({})},[n,r,i,a,e]),{parentId:s,index:i}}function P3(e){const{children:t,id:n}=e,[r,o]=c.useState([]),s=c.useCallback(a=>{let{element:u}=a,f=le(a,cEe);o(p=>{if(p.length===0)return[x({},f,{element:u,index:0})];const m=dEe(p,u);let v;if(p[m]&&p[m].element===u)v=p;else{const y=x({},f,{element:u,index:m});v=p.slice(),v.splice(m,0,y)}return v.forEach((y,g)=>{y.index=g}),v})},[]),i=c.useCallback(a=>{o(u=>u.filter(f=>a!==f.element))},[]),l=c.useMemo(()=>({descendants:r,registerDescendant:s,unregisterDescendant:i,parentId:n}),[r,s,i,n]);return D.jsx(S3.Provider,{value:l,children:t})}const k3={instance:null,multiSelect:!1,disabledItemsFocusable:!1,treeId:void 0,icons:{defaultCollapseIcon:null,defaultExpandIcon:null,defaultParentIcon:null,defaultEndIcon:null}},E3=c.createContext(k3),I3=()=>c.useContext(E3);function hEe(e){const{instance:t,multiSelect:n}=I3(),r=t?t.isNodeExpandable(e):!1,o=t?t.isNodeExpanded(e):!1,s=t?t.isNodeFocused(e):!1,i=t?t.isNodeSelected(e):!1,l=t?t.isNodeDisabled(e):!1;return{disabled:l,expanded:o,selected:i,focused:s,handleExpansion:p=>{if(t&&!l){s||t.focusNode(p,e);const m=n&&(p.shiftKey||p.ctrlKey||p.metaKey);r&&!(m&&t.isNodeExpanded(e))&&t.toggleNodeExpansion(p,e)}},handleSelection:p=>{t&&!l&&(s||t.focusNode(p,e),n&&(p.shiftKey||p.ctrlKey||p.metaKey)?p.shiftKey?t.selectRange(p,{end:e}):t.selectNode(p,e,!0):t.selectNode(p,e))},preventSelection:p=>{(p.shiftKey||p.ctrlKey||p.metaKey||l)&&p.preventDefault()}}}const mEe=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],M3=c.forwardRef(function(t,n){const{classes:r,className:o,displayIcon:s,expansionIcon:i,icon:l,label:a,nodeId:u,onClick:f,onMouseDown:p}=t,m=le(t,mEe),{disabled:v,expanded:y,selected:g,focused:C,handleExpansion:b,handleSelection:w,preventSelection:S}=hEe(u),k=l||i||s,M=I=>{S(I),p&&p(I)},E=I=>{b(I),w(I),f&&f(I)};return D.jsxs("div",x({},m,{className:Ce(o,r.root,y&&r.expanded,g&&r.selected,C&&r.focused,v&&r.disabled),onClick:E,onMouseDown:M,ref:n,children:[D.jsx("div",{className:r.iconContainer,children:k}),D.jsx("div",{className:r.label,children:a})]}))});function gEe(e){return Ke("MuiTreeItem",e)}const Wl=We("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),vEe=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],yEe=e=>{const{classes:t}=e;return Te({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],group:["group"]},gEe,t)},bEe=oe("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),wEe=oe(M3,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Wl.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Wl.label}`]:t.label}]})(({theme:e})=>({padding:"0 8px",width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Wl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Wl.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Wl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt(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}))`:lt(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})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Wl.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Wl.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Wl.label}`]:x({paddingLeft:4,width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1)})),CEe=oe(Nv,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),hS=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTreeItem"}),{children:o,className:s,collapseIcon:i,ContentComponent:l=M3,ContentProps:a,endIcon:u,expandIcon:f,disabled:p,icon:m,id:v,label:y,nodeId:g,onClick:C,onMouseDown:b,TransitionComponent:w=Nv,TransitionProps:S}=r,k=le(r,vEe),{icons:M,multiSelect:E,disabledItemsFocusable:I,treeId:R,instance:A}=I3();let $;v!=null?$=v:R&&g&&($=`${R}-${g}`);const[L,V]=c.useState(null),j=c.useRef(null),_=Et(V,n),T=c.useMemo(()=>({element:L,id:g}),[g,L]),{index:F,parentId:B}=pEe(T),O=!!(Array.isArray(o)?o.length:o),N=A?A.isNodeExpanded(g):!1,H=A?A.isNodeFocused(g):!1,K=A?A.isNodeSelected(g):!1,Q=A?A.isNodeDisabled(g):!1,J=x({},r,{expanded:N,focused:H,selected:K,disabled:Q}),Y=yEe(J);let X,ee;O&&(N?ee=i||M.defaultCollapseIcon:ee=f||M.defaultExpandIcon),O?X=M.defaultParentIcon:X=u||M.defaultEndIcon,c.useEffect(()=>{if(A&&F!==-1)return A.updateNode({id:g,idAttribute:$,index:F,parentId:B,expandable:O,disabled:p}),()=>A.removeNode(g)},[A,B,F,g,O,p,$]),c.useEffect(()=>{if(A&&y){var he,ne;return A.mapFirstChar(g,((he=(ne=j.current)==null?void 0:ne.textContent)!=null?he:"").substring(0,1).toLowerCase())}},[A,g,y]);let se;E?se=K:K&&(se=!0);function Z(he){if(he.target===he.currentTarget){let re;typeof he.target.getRootNode=="function"?re=he.target.getRootNode():re=fn(he.target),re.getElementById(R).focus({preventScroll:!0})}const ne=!I&&Q;A&&!H&&he.currentTarget===he.target&&!ne&&A.focusNode(he,g)}return D.jsxs(bEe,x({className:Ce(Y.root,s),role:"treeitem","aria-expanded":O?N:void 0,"aria-selected":se,"aria-disabled":Q||void 0,id:$,tabIndex:-1},k,{ownerState:J,onFocus:Z,ref:_,children:[D.jsx(wEe,x({as:l,ref:j,classes:{root:Y.content,expanded:Y.expanded,selected:Y.selected,focused:Y.focused,disabled:Y.disabled,iconContainer:Y.iconContainer,label:Y.label},label:y,nodeId:g,onClick:C,onMouseDown:b,icon:m,expansionIcon:ee,displayIcon:X,ownerState:J},a)),o&&D.jsx(P3,{id:g,children:D.jsx(CEe,x({as:w,unmountOnExit:!0,className:Y.group,in:N,component:"ul",role:"group"},S,{children:o}))})]}))});function xEe(e){return Ke("MuiTreeView",e)}We("MuiTreeView",["root"]);const SEe=(e,t)=>{const n=c.useRef({}),[r,o]=c.useState(()=>{const i={};return e.forEach(l=>{l.models&&Object.entries(l.models).forEach(([a,u])=>{n.current[a]={controlledProp:u.controlledProp,defaultProp:u.defaultProp,isControlled:t[u.controlledProp]!==void 0},i[a]=t[u.defaultProp]})}),i});return Object.fromEntries(Object.entries(n.current).map(([i,l])=>{const a=l.isControlled?t[l.controlledProp]:r[i];return[i,{value:a,setValue:u=>{l.isControlled||o(f=>x({},f,{[i]:u}))}}]}))};class PEe{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),s=Array.from(r.regular.keys());for(let i=o.length-1;i>=0;i-=1){const l=o[i];r.highPriority.has(l)&&l.apply(this,n)}for(let i=0;i<s.length;i+=1){const l=s[i];r.regular.has(l)&&l.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...s){r.removeListener(t,o),n.apply(r,s)})}}const lC=(e,t)=>{const n=e.getNode(t),r=e.getNavigableChildrenIds(n.parentId),o=r.indexOf(t);if(o===0)return n.parentId;let s=r[o-1];for(;e.isNodeExpanded(s)&&e.getNavigableChildrenIds(s).length>0;)s=e.getNavigableChildrenIds(s).pop();return s},dp=(e,t)=>{if(e.isNodeExpanded(t)&&e.getNavigableChildrenIds(t).length>0)return e.getNavigableChildrenIds(t)[0];let n=e.getNode(t);for(;n!=null;){const r=e.getNavigableChildrenIds(n.parentId),o=r[r.indexOf(n.id)+1];if(o)return o;n=e.getNode(n.parentId)}return null},mS=e=>{let t=e.getNavigableChildrenIds(null).pop();for(;e.isNodeExpanded(t);)t=e.getNavigableChildrenIds(t).pop();return t},gS=e=>e.getNavigableChildrenIds(null)[0],sf=(e,t)=>{Object.assign(e,t)},kEe=e=>e.isPropagationStopped!==void 0,EEe=({instance:e})=>{const[t]=c.useState(()=>new PEe),n=c.useCallback((...o)=>{const[s,i,l={}]=o;l.defaultMuiPrevented=!1,!(kEe(l)&&l.isPropagationStopped())&&t.emit(s,i,l)},[t]),r=c.useCallback((o,s)=>(t.on(o,s),()=>{t.removeListener(o,s)}),[t]);sf(e,{$$publishEvent:n,$$subscribeEvent:r})},IEe=[EEe],MEe=e=>{const t=[...IEe,...e.plugins],n=t.reduce((y,g)=>g.getDefaultizedParams?g.getDefaultizedParams(y):y,e),r=SEe(t,n),s=c.useRef({}).current,i=c.useRef(null),l=Et(i,e.rootRef),[a,u]=c.useState(()=>{const y={};return t.forEach(g=>{g.getInitialState&&Object.assign(y,g.getInitialState(n))}),y}),f=[];let p=k3;const m=y=>{const g=y({instance:s,params:n,state:a,setState:u,rootRef:i,models:r})||{};g.getRootProps&&f.push(g.getRootProps),g.contextValue&&(p=g.contextValue)};return t.forEach(m),{getRootProps:(y={})=>{const g=x({role:"tree",tabIndex:0},y,{ref:l});return f.forEach(C=>{Object.assign(g,C(y))}),g},rootRef:l,contextValue:p}};function _Ee(e){const{value:t,children:n}=e;return D.jsx(E3.Provider,{value:t,children:D.jsx(P3,{children:n})})}const TEe=(e,t,n)=>{e.$$publishEvent(t,n)},$Ee=({instance:e,params:t})=>{const n=c.useRef({}),r=c.useCallback(u=>n.current[u],[]),o=c.useCallback(u=>{n.current[u.id]=u},[]),s=c.useCallback(u=>{const f=x({},n.current);delete f[u],n.current=f,TEe(e,"removeNode",{id:u})},[e]),i=c.useCallback(u=>{if(u==null)return!1;let f=e.getNode(u);if(!f)return!1;if(f.disabled)return!0;for(;f.parentId!=null;)if(f=e.getNode(f.parentId),f.disabled)return!0;return!1},[e]),l=Ye(u=>Object.values(n.current).filter(f=>f.parentId===u).sort((f,p)=>f.index-p.index).map(f=>f.id));sf(e,{getNode:r,updateNode:o,removeNode:s,getChildrenIds:l,getNavigableChildrenIds:u=>{let f=e.getChildrenIds(u);return t.disabledItemsFocusable||(f=f.filter(p=>!e.isNodeDisabled(p))),f},isNodeDisabled:i})},iI=({instance:e,params:t,models:n})=>{const r=c.useCallback(l=>Array.isArray(n.expanded.value)?n.expanded.value.indexOf(l)!==-1:!1,[n.expanded.value]),o=c.useCallback(l=>{var a;return!!((a=e.getNode(l))!=null&&a.expandable)},[e]),s=Ye((l,a)=>{if(a==null)return;let u;n.expanded.value.indexOf(a)!==-1?u=n.expanded.value.filter(f=>f!==a):u=[a].concat(n.expanded.value),t.onNodeToggle&&t.onNodeToggle(l,u),n.expanded.setValue(u)});sf(e,{isNodeExpanded:r,isNodeExpandable:o,toggleNodeExpansion:s,expandAllSiblings:(l,a)=>{const u=e.getNode(a),p=e.getChildrenIds(u.parentId).filter(v=>e.isNodeExpandable(v)&&!e.isNodeExpanded(v)),m=n.expanded.value.concat(p);p.length>0&&(n.expanded.setValue(m),t.onNodeToggle&&t.onNodeToggle(l,m))}})};iI.models={expanded:{controlledProp:"expanded",defaultProp:"defaultExpanded"}};const REe=[];iI.getDefaultizedParams=e=>{var t;return x({},e,{defaultExpanded:(t=e.defaultExpanded)!=null?t:REe})};const OEe=(e,t,n)=>{if(t===n)return[t,n];const r=e.getNode(t),o=e.getNode(n);if(r.parentId===o.id||o.parentId===r.id)return o.parentId===r.id?[r.id,o.id]:[o.id,r.id];const s=[r.id],i=[o.id];let l=r.parentId,a=o.parentId,u=i.indexOf(l)!==-1,f=s.indexOf(a)!==-1,p=!0,m=!0;for(;!f&&!u;)p&&(s.push(l),u=i.indexOf(l)!==-1,p=l!==null,!u&&p&&(l=e.getNode(l).parentId)),m&&!u&&(i.push(a),f=s.indexOf(a)!==-1,m=a!==null,!f&&m&&(a=e.getNode(a).parentId));const v=u?l:a,y=e.getChildrenIds(v),g=s[s.indexOf(v)-1],C=i[i.indexOf(v)-1];return y.indexOf(g)<y.indexOf(C)?[t,n]:[n,t]},lI=({instance:e,params:t,models:n})=>{const r=c.useRef(null),o=c.useRef(!1),s=c.useRef([]),i=y=>Array.isArray(n.selected.value)?n.selected.value.indexOf(y)!==-1:n.selected.value===y,l=(y,g,C=!1)=>{if(!t.disableSelection){if(C){if(Array.isArray(n.selected.value)){let b;n.selected.value.indexOf(g)!==-1?b=n.selected.value.filter(w=>w!==g):b=[g].concat(n.selected.value),t.onNodeSelect&&t.onNodeSelect(y,b),n.selected.setValue(b)}}else{const b=t.multiSelect?[g]:g;t.onNodeSelect&&t.onNodeSelect(y,b),n.selected.setValue(b)}r.current=g,o.current=!1,s.current=[]}},a=(y,g)=>{const[C,b]=OEe(e,y,g),w=[C];let S=C;for(;S!==b;)S=dp(e,S),w.push(S);return w},u=(y,g)=>{let C=n.selected.value.slice();const{start:b,next:w,current:S}=g;!w||!S||(s.current.indexOf(S)===-1&&(s.current=[]),o.current?s.current.indexOf(w)!==-1?(C=C.filter(k=>k===b||k!==S),s.current=s.current.filter(k=>k===b||k!==S)):(C.push(w),s.current.push(w)):(C.push(w),s.current.push(S,w)),t.onNodeSelect&&t.onNodeSelect(y,C),n.selected.setValue(C))},f=(y,g)=>{let C=n.selected.value.slice();const{start:b,end:w}=g;o.current&&(C=C.filter(M=>s.current.indexOf(M)===-1));let S=a(b,w);S=S.filter(M=>!e.isNodeDisabled(M)),s.current=S;let k=C.concat(S);k=k.filter((M,E)=>k.indexOf(M)===E),t.onNodeSelect&&t.onNodeSelect(y,k),n.selected.setValue(k)};return sf(e,{isNodeSelected:i,selectNode:l,selectRange:(y,g,C=!1)=>{if(t.disableSelection)return;const{start:b=r.current,end:w,current:S}=g;C?u(y,{start:b,next:w,current:S}):b!=null&&w!=null&&f(y,{start:b,end:w}),o.current=!0},rangeSelectToLast:(y,g)=>{r.current||(r.current=g);const C=o.current?r.current:g;e.selectRange(y,{start:C,end:mS(e)})},rangeSelectToFirst:(y,g)=>{r.current||(r.current=g);const C=o.current?r.current:g;e.selectRange(y,{start:C,end:gS(e)})}}),{getRootProps:()=>({"aria-multiselectable":t.multiSelect})}};lI.models={selected:{controlledProp:"selected",defaultProp:"defaultSelected"}};const DEe=[];lI.getDefaultizedParams=e=>{var t,n,r;return x({},e,{disableSelection:(t=e.disableSelection)!=null?t:!1,multiSelect:(n=e.multiSelect)!=null?n:!1,defaultSelected:(r=e.defaultSelected)!=null?r:e.multiSelect?DEe:null})};const CD=1e3;class AEe{constructor(t=CD){this.timeouts=new Map,this.cleanupTimeout=CD,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 LEe{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}class FEe{}function NEe(e){let t=0;return function(r,o,s){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new LEe:new AEe);const[i]=c.useState(new FEe),l=c.useRef(null),a=c.useRef();a.current=s;const u=c.useRef(null);if(!l.current&&a.current){const f=(p,m)=>{if(!m.defaultMuiPrevented){var v;(v=a.current)==null||v.call(a,p,m)}};l.current=r.$$subscribeEvent(o,f),t+=1,u.current={cleanupToken:t},e.registry.register(i,()=>{var p;(p=l.current)==null||p.call(l),l.current=null,u.current=null},u.current)}else!a.current&&l.current&&(l.current(),l.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));c.useEffect(()=>{if(!l.current&&a.current){const f=(p,m)=>{if(!m.defaultMuiPrevented){var v;(v=a.current)==null||v.call(a,p,m)}};l.current=r.$$subscribeEvent(o,f)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{var f;(f=l.current)==null||f.call(l),l.current=null}},[r,o])}}const BEe={registry:null},zEe=NEe(BEe),aI=({instance:e,params:t,state:n,setState:r,models:o,rootRef:s})=>{const i=Ye(v=>{const y=typeof v=="function"?v(n.focusedNodeId):v;r(g=>x({},g,{focusedNodeId:y}))}),l=c.useCallback(v=>n.focusedNodeId===v,[n.focusedNodeId]),a=Ye((v,y)=>{y&&(i(y),t.onNodeFocus&&t.onNodeFocus(v,y))});sf(e,{isNodeFocused:l,focusNode:a}),zEe(e,"removeNode",({id:v})=>{i(y=>y===v&&s.current===fn(s.current).activeElement?e.getChildrenIds(null)[0]:y)});const u=v=>y=>{var g;if((g=v.onFocus)==null||g.call(v,y),y.target===y.currentTarget){const C=w=>{const S=e.getNode(w);return S&&(S.parentId==null||e.isNodeExpanded(S.parentId))};let b;Array.isArray(o.selected.value)?b=o.selected.value.find(C):o.selected.value!=null&&C(o.selected.value)&&(b=o.selected.value),b==null&&(b=e.getNavigableChildrenIds(null)[0]),e.focusNode(y,b)}},f=v=>y=>{var g;(g=v.onBlur)==null||g.call(v,y),i(null)},p=e.getNode(n.focusedNodeId),m=p?p.idAttribute:null;return{getRootProps:v=>({onFocus:u(v),onBlur:f(v),"aria-activedescendant":m!=null?m:void 0})}};aI.getInitialState=()=>({focusedNodeId:null});aI.getDefaultizedParams=e=>{var t;return x({},e,{disabledItemsFocusable:(t=e.disabledItemsFocusable)!=null?t:!1})};function VEe(e){return e&&e.length===1&&e.match(/\S/)}function xD(e,t,n){for(let r=t;r<e.length;r+=1)if(n===e[r])return r;return-1}const jEe=({instance:e,params:t,state:n})=>{const o=yn().direction==="rtl",s=c.useRef({}),i=Ye((v,y)=>(s.current[v]=y,()=>{const g=x({},s.current);delete g[v],s.current=g}));sf(e,{mapFirstChar:i});const l=v=>(n.focusedNodeId!=null&&e.isNodeExpandable(n.focusedNodeId)&&(e.isNodeExpanded(n.focusedNodeId)?e.focusNode(v,dp(e,n.focusedNodeId)):e.isNodeDisabled(n.focusedNodeId)||e.toggleNodeExpansion(v,n.focusedNodeId)),!0),a=v=>{if(n.focusedNodeId==null)return!1;if(e.isNodeExpanded(n.focusedNodeId)&&!e.isNodeDisabled(n.focusedNodeId))return e.toggleNodeExpansion(v,n.focusedNodeId),!0;const y=e.getNode(n.focusedNodeId).parentId;return y?(e.focusNode(v,y),!0):!1},u=(v,y,g)=>{let C,b;const w=g.toLowerCase(),S=[],k=[];Object.keys(s.current).forEach(M=>{const E=e.getNode(M),I=E.parentId?e.isNodeExpanded(E.parentId):!0,R=t.disabledItemsFocusable?!1:e.isNodeDisabled(M);I&&!R&&(S.push(M),k.push(s.current[M]))}),C=S.indexOf(y)+1,C>=S.length&&(C=0),b=xD(k,C,w),b===-1&&(b=xD(k,0,w)),b>-1&&e.focusNode(v,S[b])},f=(v,y)=>{e.isNodeDisabled(dp(e,y))||e.selectRange(v,{end:dp(e,y),current:y},!0)},p=(v,y)=>{e.isNodeDisabled(lC(e,y))||e.selectRange(v,{end:lC(e,y),current:y},!0)},m=v=>y=>{var g;(g=v.onKeyDown)==null||g.call(v,y);let C=!1;const b=y.key;if(y.altKey||y.currentTarget!==y.target||n.focusedNodeId==null)return;const w=y.ctrlKey||y.metaKey;switch(b){case" ":!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&(C=!0,t.multiSelect&&y.shiftKey?e.selectRange(y,{end:n.focusedNodeId}):t.multiSelect?e.selectNode(y,n.focusedNodeId,!0):e.selectNode(y,n.focusedNodeId)),y.stopPropagation();break;case"Enter":e.isNodeDisabled(n.focusedNodeId)||(e.isNodeExpandable(n.focusedNodeId)?(e.toggleNodeExpansion(y,n.focusedNodeId),C=!0):t.disableSelection||(C=!0,t.multiSelect?e.selectNode(y,n.focusedNodeId,!0):e.selectNode(y,n.focusedNodeId))),y.stopPropagation();break;case"ArrowDown":t.multiSelect&&y.shiftKey&&!t.disableSelection&&f(y,n.focusedNodeId),e.focusNode(y,dp(e,n.focusedNodeId)),C=!0;break;case"ArrowUp":t.multiSelect&&y.shiftKey&&!t.disableSelection&&p(y,n.focusedNodeId),e.focusNode(y,lC(e,n.focusedNodeId)),C=!0;break;case"ArrowRight":o?C=a(y):C=l(y);break;case"ArrowLeft":o?C=l(y):C=a(y);break;case"Home":t.multiSelect&&w&&y.shiftKey&&!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&e.rangeSelectToFirst(y,n.focusedNodeId),e.focusNode(y,gS(e)),C=!0;break;case"End":t.multiSelect&&w&&y.shiftKey&&!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&e.rangeSelectToLast(y,n.focusedNodeId),e.focusNode(y,mS(e)),C=!0;break;default:b==="*"?(e.expandAllSiblings(y,n.focusedNodeId),C=!0):t.multiSelect&&w&&b.toLowerCase()==="a"&&!t.disableSelection?(e.selectRange(y,{start:gS(e),end:mS(e)}),C=!0):!w&&!y.shiftKey&&VEe(b)&&(u(y,n.focusedNodeId,b),C=!0)}C&&(y.preventDefault(),y.stopPropagation())};return{getRootProps:v=>({onKeyDown:m(v)})}},HEe=({instance:e,params:t})=>{const n=Kt(t.id);return{getRootProps:()=>({id:n}),contextValue:{treeId:n,instance:e,multiSelect:t.multiSelect,disabledItemsFocusable:t.disabledItemsFocusable,icons:{defaultCollapseIcon:t.defaultCollapseIcon,defaultEndIcon:t.defaultEndIcon,defaultExpandIcon:t.defaultExpandIcon,defaultParentIcon:t.defaultParentIcon}}}},UEe=[$Ee,iI,lI,aI,jEe,HEe],WEe=["disabledItemsFocusable","expanded","defaultExpanded","onNodeToggle","onNodeFocus","disableSelection","defaultSelected","selected","multiSelect","onNodeSelect","id","defaultCollapseIcon","defaultEndIcon","defaultExpandIcon","defaultParentIcon","children"],GEe=e=>{const{classes:t}=e;return Te({root:["root"]},xEe,t)},SD=oe("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0}),_3=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTreeView"}),o=r,s=r,{disabledItemsFocusable:i,expanded:l,defaultExpanded:a,onNodeToggle:u,onNodeFocus:f,disableSelection:p,defaultSelected:m,selected:v,multiSelect:y,onNodeSelect:g,id:C,defaultCollapseIcon:b,defaultEndIcon:w,defaultExpandIcon:S,defaultParentIcon:k,children:M}=s,E=le(s,WEe),{getRootProps:I,contextValue:R}=MEe({disabledItemsFocusable:i,expanded:l,defaultExpanded:a,onNodeToggle:u,onNodeFocus:f,disableSelection:p,defaultSelected:m,selected:v,multiSelect:y,onNodeSelect:g,id:C,defaultCollapseIcon:b,defaultEndIcon:w,defaultExpandIcon:S,defaultParentIcon:k,plugins:UEe,rootRef:n}),A=GEe(r),$=qt({elementType:SD,externalSlotProps:{},externalForwardedProps:E,className:A.root,getSlotProps:I,ownerState:o});return D.jsx(_Ee,{value:R,children:D.jsx(SD,x({},$,{children:M}))})});var cI={},KEe=et;Object.defineProperty(cI,"__esModule",{value:!0});var T3=cI.default=void 0,qEe=KEe(tt()),YEe=Ze(),QEe=(0,qEe.default)((0,YEe.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");T3=cI.default=QEe;var uI={},XEe=et;Object.defineProperty(uI,"__esModule",{value:!0});var $3=uI.default=void 0,ZEe=XEe(tt()),JEe=Ze(),eIe=(0,ZEe.default)((0,JEe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");$3=uI.default=eIe;var dI={},tIe=et;Object.defineProperty(dI,"__esModule",{value:!0});var R3=dI.default=void 0,nIe=tIe(tt()),PD=Ze(),rIe=(0,nIe.default)([(0,PD.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,PD.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");R3=dI.default=rIe;var fI={},oIe=et;Object.defineProperty(fI,"__esModule",{value:!0});var O3=fI.default=void 0,sIe=oIe(tt()),iIe=Ze(),lIe=(0,sIe.default)((0,iIe.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");O3=fI.default=lIe;var pI={},aIe=et;Object.defineProperty(pI,"__esModule",{value:!0});var D3=pI.default=void 0,cIe=aIe(tt()),uIe=Ze(),dIe=(0,cIe.default)((0,uIe.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}),"Link");D3=pI.default=dIe;var hI={},fIe=et;Object.defineProperty(hI,"__esModule",{value:!0});var A3=hI.default=void 0,pIe=fIe(tt()),hIe=Ze(),mIe=(0,pIe.default)((0,hIe.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");A3=hI.default=mIe;var mI={},gIe=et;Object.defineProperty(mI,"__esModule",{value:!0});var L3=mI.default=void 0,vIe=gIe(tt()),yIe=Ze(),bIe=(0,vIe.default)((0,yIe.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");L3=mI.default=bIe;var gI={},wIe=et;Object.defineProperty(gI,"__esModule",{value:!0});var F3=gI.default=void 0,CIe=wIe(tt()),xIe=Ze(),SIe=(0,CIe.default)((0,xIe.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");F3=gI.default=SIe;var vI={},PIe=et;Object.defineProperty(vI,"__esModule",{value:!0});var N3=vI.default=void 0,kIe=PIe(tt()),EIe=Ze(),IIe=(0,kIe.default)((0,EIe.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");N3=vI.default=IIe;var yI={},MIe=et;Object.defineProperty(yI,"__esModule",{value:!0});var B3=yI.default=void 0,_Ie=MIe(tt()),TIe=Ze(),$Ie=(0,_Ie.default)((0,TIe.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");B3=yI.default=$Ie;var bI={},RIe=et;Object.defineProperty(bI,"__esModule",{value:!0});var z3=bI.default=void 0;AIe(c);var OIe=RIe(tt()),DIe=Ze();function V3(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(V3=function(r){return r?n:t})(e)}function AIe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=V3(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var i=o?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(r,s,i):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}var LIe=(0,OIe.default)((0,DIe.jsx)("path",{d:"M2 3h9v9H2V3m9 19H2v-9h9v9M21 3v9h-9V3h9m0 19h-9v-9h9v9Z"}),"Microsoft");z3=bI.default=LIe;let Sg;function FIe(){const{close:e}=Ro({title:"Add files or folders",dialogProps:{sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){const t=wI();return c.createElement(c.Fragment,{},c.createElement(ze,{sx:{typography:"body1",px:1,py:2}},"Selected elements will be added under ",t.isRoot?c.createElement("i",{},"Home"):decodeURI(t.id)),c.createElement(Vz,{from:Sg!=null?Sg:t.source,onSelect(r){return ot(this,null,function*(){const o=yield Promise.all(r.map(l=>ct("add_vfs",{parent:t.id,source:l}).then(a=>a,a=>[l,a.message])));Sg=r[0].slice(0,r[0].lastIndexOf("/"));const s=o.filter(Array.isArray);s.length&&(yield kt(c.createElement(ze,{},"Some elements have been rejected",c.createElement("ul",{},s.map(([l,a])=>c.createElement("li",{key:l},l,": ",a)))),"error"));const i=o.filter(l=>l.name).map(l=>t.id+encodeURI(l.name)+(l.link.endsWith("/")?"/":""));$a(i),e()})}}))}})}function NIe(){return ot(this,null,function*(){try{const e=yield jh("Enter folder name");if(!e)return;const{id:t}=wI(),n=yield ct("add_vfs",{parent:t,name:e});$a([t+encodeURI(n.name)+"/"]),yield kt(`Folder "${n.name}" created`,"success")}catch(e){yield kt(e)}})}function BIe(){return ot(this,null,function*(){try{const{id:e}=wI(),t=yield ct("add_vfs",{parent:e,name:"new link",url:"https://google.com"});$a([e+encodeURI(t.name)]),rr("Link created","success",{onClose:()=>Xv("input[name=url]")})}catch(e){yield kt(e)}})}function wI(){const e=ln.selectedFiles[0]||ln.vfs;return e.type==="folder"?e:e.parent}function j3(n){var r=n,{items:e}=r,t=Ft(r,["items"]);const[o,s]=co.useState(),i=!!o,l=c.useCallback(()=>s(void 0),[]);return c.createElement(co.Fragment,{},c.createElement(Yn,xe({"aria-controls":i?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":i?"true":void 0,onClick:a=>{s(a.currentTarget)}},t)),c.createElement(i4,{anchorEl:o,open:i,onClose:l,MenuListProps:{"aria-labelledby":"basic-button"},children:e.map((a,u)=>c.createElement(Pr,st(xe({key:u},a),{onClick(){var f;l(),(f=a.onClick)==null||f.apply(this,arguments)}})))}))}var CI={},zIe=et;Object.defineProperty(CI,"__esModule",{value:!0});var H3=CI.default=void 0,VIe=zIe(tt()),jIe=Ze(),HIe=(0,VIe.default)((0,jIe.jsx)("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8zm-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91z"}),"RestartAlt");H3=CI.default=HIe;function vS(s){var i=s,{keys:e,form:t,saveOnChange:n,onSave:r}=i,o=Ft(i,["keys","form","saveOnChange","onSave"]);const l=Qn("get_config",{only:e}),[a,u]=c.useState(l.data);c.useEffect(()=>u(v=>l.data||v),[l.data]);const f=a&&!rt.isEqual(a,l.data);if(c.useEffect(()=>{f&&n&&m()},[f]),!a)return l.element;const p=rt.isFunction(t)?t(a):t;return c.createElement(Hc,st(xe(xe({values:a,set(v,y){u(g=>st(xe({},g),{[y]:v}))},save:n?!1:{onClick:m,sx:Zd(f)}},Array.isArray(p)?{fields:p}:p),o),{barSx:xe({gap:1},o.barSx),addToBar:[c.createElement(mn,{icon:H3,disabled:!f,title:"Reset",onClick(){u(l.data)}}),...o.addToBar||[]]}));function m(){return ct("set_config",{values:a}).then(r).then(l.reload)}}function kD(i){var l=i,{value:e="",onChange:t,helperText:n,setApi:r,autocompleteProps:o}=l,s=Ft(l,["value","onChange","helperText","setApi","autocompleteProps"]);const a=hfe(e),{list:u,loading:f}=Sl("get_file_list",{uri:a,admin:!0,onlyFolders:!0}),p=c.useMemo(()=>[a+"/"].concat(u.map(m=>e+m.n)),[u,a]);return c.createElement(Fh,xe({value:e,options:p,isOptionEqualToValue:(m,v)=>m===v||m===v+"/",loading:f,disableClearable:!0,renderInput:m=>c.createElement(Na,st(xe(xe({helperText:n,placeholder:"home",onChange(v){const y=v.target.value;(y.endsWith("/")||!y)&&t(y,{was:e,event:v})},onBlur(v){const y=v.target.value+"/";p.includes(y)&&t(y,{was:e,event:v})}},m),s),{InputLabelProps:xe(xe({shrink:!0},m.InputLabelProps),s.InputLabelProps)})),onChange:(m,v)=>t(v,{was:e,event:m})},o))}function UIe({statusApi:e}){var s;const t=((s=e.data)==null?void 0:s.platform)==="win32",{data:n,reload:r}=P4(t&&"windows_integrated");return c.createElement(qr,{mb:2,position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"},c.createElement(j3,{variant:"contained",startIcon:c.createElement(zE),items:[{children:"from disk",onClick:FIe},{children:"virtual folder",onClick:NIe},{children:"web-link",onClick:BIe}]},"Add"),c.createElement(Xo,{variant:"outlined",onClick:o},"Roots"),s0(()=>$a()),t&&c.createElement(Xo,xe({icon:z3,variant:"outlined",doneMessage:!0},n!=null&&n.is?{confirm:!0,children:"Remove integration",onClick:()=>ct("windows_remove").then(r)}:{children:"System integration",onClick(){return ot(this,null,function*(){const l=c.createElement(ze,{},"We are going to add a command in the right-click of Windows File Manager",c.createElement("img",{src:"win-shell.png",style:{display:"block",width:"min(30em, 80vw)",marginTop:"1em"}}),c.createElement(kr,{severity:"info"},"It will also automatically copy the URL, ready to paste!")),a=yield jh(l,{field:{comp:kD,label:"Add to this folder"},form:{saveOnEnter:!1}});return a?ct("windows_integration",{parent:a}).then(r):!1})}})));function o(){const{close:l}=Ro({dialogProps:{maxWidth:"sm"},Content:()=>c.createElement(vS,{onSave(){e.reload(),l()},keys:[Bn.roots,Bn.roots_mandatory],form:{fields:[{k:"roots",label:"Roots for different domains",helperText:"You can decide different home-folders (in the VFS) for different domains, a bit like virtual hosts. If none is matched, the default home will be used.",comp:xh,fields:[{k:"host",label:"Domain/Host",helperText:"Wildcards supported: domain.*|other.*"},{k:"root",label:"Home/Root",comp:kD,placeholder:"default",helperText:"Root path in VFS"}]},{k:"roots_mandatory",label:"Block requests that are not using any of the domains above",helperText:"localhost connections are not included",comp:Dn}]}})})}}const xI=Symbol.for("yaml.alias"),yS=Symbol.for("yaml.document"),Ca=Symbol.for("yaml.map"),U3=Symbol.for("yaml.pair"),Pl=Symbol.for("yaml.scalar"),lf=Symbol.for("yaml.seq"),Ns=Symbol.for("yaml.node.type"),Gc=e=>!!e&&typeof e=="object"&&e[Ns]===xI,af=e=>!!e&&typeof e=="object"&&e[Ns]===yS,cf=e=>!!e&&typeof e=="object"&&e[Ns]===Ca,Ln=e=>!!e&&typeof e=="object"&&e[Ns]===U3,Sn=e=>!!e&&typeof e=="object"&&e[Ns]===Pl,uf=e=>!!e&&typeof e=="object"&&e[Ns]===lf;function Vn(e){if(e&&typeof e=="object")switch(e[Ns]){case Ca:case lf:return!0}return!1}function or(e){if(e&&typeof e=="object")switch(e[Ns]){case xI:case Ca:case Pl:case lf:return!0}return!1}const WIe=e=>(Sn(e)||Vn(e))&&!!e.anchor,xo=Symbol("break visit"),W3=Symbol("skip children"),Ni=Symbol("remove node");function _a(e,t){const n=G3(t);af(e)?Wu(null,e.contents,n,Object.freeze([e]))===Ni&&(e.contents=null):Wu(null,e,n,Object.freeze([]))}_a.BREAK=xo;_a.SKIP=W3;_a.REMOVE=Ni;function Wu(e,t,n,r){const o=K3(e,t,n,r);if(or(o)||Ln(o))return q3(e,r,o),Wu(e,o,n,r);if(typeof o!="symbol"){if(Vn(t)){r=Object.freeze(r.concat(t));for(let s=0;s<t.items.length;++s){const i=Wu(s,t.items[s],n,r);if(typeof i=="number")s=i-1;else{if(i===xo)return xo;i===Ni&&(t.items.splice(s,1),s-=1)}}}else if(Ln(t)){r=Object.freeze(r.concat(t));const s=Wu("key",t.key,n,r);if(s===xo)return xo;s===Ni&&(t.key=null);const i=Wu("value",t.value,n,r);if(i===xo)return xo;i===Ni&&(t.value=null)}}return o}function P0(e,t){return ot(this,null,function*(){const n=G3(t);af(e)?(yield Gu(null,e.contents,n,Object.freeze([e])))===Ni&&(e.contents=null):yield Gu(null,e,n,Object.freeze([]))})}P0.BREAK=xo;P0.SKIP=W3;P0.REMOVE=Ni;function Gu(e,t,n,r){return ot(this,null,function*(){const o=yield K3(e,t,n,r);if(or(o)||Ln(o))return q3(e,r,o),Gu(e,o,n,r);if(typeof o!="symbol"){if(Vn(t)){r=Object.freeze(r.concat(t));for(let s=0;s<t.items.length;++s){const i=yield Gu(s,t.items[s],n,r);if(typeof i=="number")s=i-1;else{if(i===xo)return xo;i===Ni&&(t.items.splice(s,1),s-=1)}}}else if(Ln(t)){r=Object.freeze(r.concat(t));const s=yield Gu("key",t.key,n,r);if(s===xo)return xo;s===Ni&&(t.key=null);const i=yield Gu("value",t.value,n,r);if(i===xo)return xo;i===Ni&&(t.value=null)}}return o})}function G3(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 K3(e,t,n,r){var o,s,i,l,a;if(typeof n=="function")return n(e,t,r);if(cf(t))return(o=n.Map)==null?void 0:o.call(n,e,t,r);if(uf(t))return(s=n.Seq)==null?void 0:s.call(n,e,t,r);if(Ln(t))return(i=n.Pair)==null?void 0:i.call(n,e,t,r);if(Sn(t))return(l=n.Scalar)==null?void 0:l.call(n,e,t,r);if(Gc(t))return(a=n.Alias)==null?void 0:a.call(n,e,t,r)}function q3(e,t,n){const r=t[t.length-1];if(Vn(r))r.items[e]=n;else if(Ln(r))e==="key"?r.key=n:r.value=n;else if(af(r))r.contents=n;else{const o=Gc(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const GIe={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},KIe=e=>e.replace(/[!,[\]{}]/g,t=>GIe[t]);class io{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},io.defaultYaml,t),this.tags=Object.assign({},io.defaultTags,n)}clone(){const t=new io(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new io(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:io.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},io.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:io.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},io.defaultTags),this.atNextDocument=!1);const r=t.trim().split(/[ \t]+/),o=r.shift();switch(o){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[s,i]=r;return this.tags[s]=i,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[s]=r;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{const i=/^\d+\.\d+$/.test(s);return n(6,`Unsupported YAML version ${s}`,i),!1}}default:return n(0,`Unknown directive ${o}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const i=t.slice(2,-1);return i==="!"||i==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),i)}const[,r,o]=t.match(/^(.*!)([^!]*)$/);o||n(`The ${t} tag has no suffix`);const s=this.tags[r];return s?s+decodeURIComponent(o):r==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,r]of Object.entries(this.tags))if(t.startsWith(r))return n+KIe(t.substring(r.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let o;if(t&&r.length>0&&or(t.contents)){const s={};_a(t.contents,(i,l)=>{or(l)&&l.tag&&(s[l.tag]=!0)}),o=Object.keys(s)}else o=[];for(const[s,i]of r)s==="!!"&&i==="tag:yaml.org,2002:"||(!t||o.some(l=>l.startsWith(i)))&&n.push(`%TAG ${s} ${i}`);return n.join(`
624
+ `)}}io.defaultYaml={explicit:!1,version:"1.2"};io.defaultTags={"!!":"tag:yaml.org,2002:"};function Y3(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 Q3(e){const t=new Set;return _a(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function X3(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function qIe(e,t){const n=[],r=new Map;let o=null;return{onAnchor:s=>{n.push(s),o||(o=Q3(e));const i=X3(t,o);return o.add(i),i},setAnchors:()=>{for(const s of n){const i=r.get(s);if(typeof i=="object"&&i.anchor&&(Sn(i.node)||Vn(i.node)))i.node.anchor=i.anchor;else{const l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=s,l}}},sourceObjects:r}}function Ku(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let o=0,s=r.length;o<s;++o){const i=r[o],l=Ku(e,r,String(o),i);l===void 0?delete r[o]:l!==i&&(r[o]=l)}else if(r instanceof Map)for(const o of Array.from(r.keys())){const s=r.get(o),i=Ku(e,r,o,s);i===void 0?r.delete(o):i!==s&&r.set(o,i)}else if(r instanceof Set)for(const o of Array.from(r)){const s=Ku(e,r,o,o);s===void 0?r.delete(o):s!==o&&(r.delete(o),r.add(s))}else for(const[o,s]of Object.entries(r)){const i=Ku(e,r,o,s);i===void 0?delete r[o]:i!==s&&(r[o]=i)}return e.call(t,n,r)}function $s(e,t,n){if(Array.isArray(e))return e.map((r,o)=>$s(r,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!WIe(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=s=>{r.res=s,delete n.onCreate};const o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}class SI{constructor(t){Object.defineProperty(this,Ns,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:o,reviver:s}={}){if(!af(t))throw new TypeError("A document argument is required");const i={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},l=$s(this,"",i);if(typeof o=="function")for(const{count:a,res:u}of i.anchors.values())o(u,a);return typeof s=="function"?Ku(s,{"":l},"",l):l}}class k0 extends SI{constructor(t){super(xI),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return _a(t,{Node:(r,o)=>{if(o===this)return _a.BREAK;o.anchor===this.source&&(n=o)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:o,maxAliasCount:s}=n,i=this.resolve(o);if(!i){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(a)}let l=r.get(i);if(l||($s(i,null,n),l=r.get(i)),!l||l.res===void 0){const a="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(a)}if(s>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=ev(o,i,r)),l.count*l.aliasCount>s)){const a="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(a)}return l.res}toString(t,n,r){const o=`*${this.source}`;if(t){if(Y3(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(t.implicitKey)return`${o} `}return o}}function ev(e,t,n){if(Gc(t)){const r=t.resolve(e),o=n&&r&&n.get(r);return o?o.count*o.aliasCount:0}else if(Vn(t)){let r=0;for(const o of t.items){const s=ev(e,o,n);s>r&&(r=s)}return r}else if(Ln(t)){const r=ev(e,t.key,n),o=ev(e,t.value,n);return Math.max(r,o)}return 1}const Z3=e=>!e||typeof e!="function"&&typeof e!="object";class $t extends SI{constructor(t){super(Pl),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:$s(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 YIe="tag:yaml.org,2002:";function QIe(e,t,n){var r;if(t){const o=n.filter(i=>i.tag===t),s=(r=o.find(i=>!i.format))!=null?r:o[0];if(!s)throw new Error(`Tag ${t} not found`);return s}return n.find(o=>{var s;return((s=o.identify)==null?void 0:s.call(o,e))&&!o.format})}function Sh(e,t,n){var p,m,v;if(af(e)&&(e=e.contents),or(e))return e;if(Ln(e)){const y=(m=(p=n.schema[Ca]).createNode)==null?void 0:m.call(p,n.schema,null,n);return y.items.push(e),y}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!="undefined"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:o,onTagObj:s,schema:i,sourceObjects:l}=n;let a;if(r&&e&&typeof e=="object"){if(a=l.get(e),a)return a.anchor||(a.anchor=o(e)),new k0(a.anchor);a={anchor:null,node:null},l.set(e,a)}t!=null&&t.startsWith("!!")&&(t=YIe+t.slice(2));let u=QIe(e,t,i.tags);if(!u){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const y=new $t(e);return a&&(a.node=y),y}u=e instanceof Map?i[Ca]:Symbol.iterator in Object(e)?i[lf]:i[Ca]}s&&(s(u),delete n.onTagObj);const f=u!=null&&u.createNode?u.createNode(n.schema,e,n):typeof((v=u==null?void 0:u.nodeClass)==null?void 0:v.from)=="function"?u.nodeClass.from(n.schema,e,n):new $t(e);return t?f.tag=t:u.default||(f.tag=u.tag),a&&(a.node=f),f}function my(e,t,n){let r=n;for(let o=t.length-1;o>=0;--o){const s=t[o];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){const i=[];i[s]=r,r=i}else r=new Map([[s,r]])}return Sh(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 fp=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class E0 extends SI{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>or(r)||Ln(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(fp(t))this.add(n);else{const[r,...o]=t,s=this.get(r,!0);if(Vn(s))s.addIn(o,n);else if(s===void 0&&this.schema)this.set(r,my(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(Vn(o))return o.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...o]=t,s=this.get(r,!0);return o.length===0?!n&&Sn(s)?s.value:s:Vn(s)?s.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Ln(n))return!1;const r=n.value;return r==null||t&&Sn(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 Vn(o)?o.hasIn(r):!1}setIn(t,n){const[r,...o]=t;if(o.length===0)this.set(r,n);else{const s=this.get(r,!0);if(Vn(s))s.setIn(o,n);else if(s===void 0&&this.schema)this.set(r,my(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}}E0.maxFlowStringSingleLineLength=60;const XIe=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function fl(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const ua=(e,t,n)=>e.endsWith(`
625
+ `)?fl(n,t):n.includes(`
626
+ `)?`
627
+ `+fl(n,t):(e.endsWith(" ")?"":" ")+n,J3="flow",bS="block",tv="quoted";function I0(e,t,n="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:s=20,onFold:i,onOverflow:l}={}){if(!o||o<0)return e;const a=Math.max(1+s,1+o-t.length);if(e.length<=a)return e;const u=[],f={};let p=o-t.length;typeof r=="number"&&(r>o-Math.max(2,s)?u.push(0):p=o-r);let m,v,y=!1,g=-1,C=-1,b=-1;n===bS&&(g=ED(e,g),g!==-1&&(p=g+a));for(let S;S=e[g+=1];){if(n===tv&&S==="\\"){switch(C=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}b=g}if(S===`
628
+ `)n===bS&&(g=ED(e,g)),p=g+a,m=void 0;else{if(S===" "&&v&&v!==" "&&v!==`
629
+ `&&v!==" "){const k=e[g+1];k&&k!==" "&&k!==`
630
+ `&&k!==" "&&(m=g)}if(g>=p)if(m)u.push(m),p=m+a,m=void 0;else if(n===tv){for(;v===" "||v===" ";)v=S,S=e[g+=1],y=!0;const k=g>b+1?g-2:C-1;if(f[k])return e;u.push(k),f[k]=!0,p=k+a,m=void 0}else y=!0}v=S}if(y&&l&&l(),u.length===0)return e;i&&i();let w=e.slice(0,u[0]);for(let S=0;S<u.length;++S){const k=u[S],M=u[S+1]||e.length;k===0?w=`
631
+ ${t}${e.slice(0,M)}`:(n===tv&&f[k]&&(w+=`${e[k]}\\`),w+=`
632
+ ${t}${e.slice(k+1,M)}`)}return w}function ED(e,t){let n=e[t+1];for(;n===" "||n===" ";){do n=e[t+=1];while(n&&n!==`
633
+ `);n=e[t+1]}return t}const M0=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),_0=e=>/^(%|---|\.\.\.)/m.test(e);function ZIe(e,t,n){if(!t||t<0)return!1;const r=t-n,o=e.length;if(o<=r)return!1;for(let s=0,i=0;s<o;++s)if(e[s]===`
634
+ `){if(s-i>r)return!0;if(i=s+1,o-i<=r)return!1}return!0}function Dp(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(_0(e)?" ":"");let i="",l=0;for(let a=0,u=n[a];u;u=n[++a])if(u===" "&&n[a+1]==="\\"&&n[a+2]==="n"&&(i+=n.slice(l,a)+"\\ ",a+=1,l=a,u="\\"),u==="\\")switch(n[a+1]){case"u":{i+=n.slice(l,a);const f=n.substr(a+2,4);switch(f){case"0000":i+="\\0";break;case"0007":i+="\\a";break;case"000b":i+="\\v";break;case"001b":i+="\\e";break;case"0085":i+="\\N";break;case"00a0":i+="\\_";break;case"2028":i+="\\L";break;case"2029":i+="\\P";break;default:f.substr(0,2)==="00"?i+="\\x"+f.substr(2):i+=n.substr(a,6)}a+=5,l=a+1}break;case"n":if(r||n[a+2]==='"'||n.length<o)a+=1;else{for(i+=n.slice(l,a)+`
635
+
636
+ `;n[a+2]==="\\"&&n[a+3]==="n"&&n[a+4]!=='"';)i+=`
637
+ `,a+=2;i+=s,n[a+2]===" "&&(i+="\\"),a+=1,l=a+1}break;default:a+=1}return i=l?i+n.slice(l):n,r?i:I0(i,s,tv,M0(t,!1))}function wS(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
638
+ `)||/[ \t]\n|\n[ \t]/.test(e))return Dp(e,t);const n=t.indent||(_0(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
639
+ ${n}`)+"'";return t.implicitKey?r:I0(r,n,J3,M0(t,!1))}function qu(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=Dp;else{const o=e.includes('"'),s=e.includes("'");o&&!s?r=wS:s&&!o?r=Dp:r=n?wS:Dp}return r(e,t)}let CS;try{CS=new RegExp(`(^|(?<!
640
+ ))
641
+ +(?!
642
+ |$)`,"g")}catch(e){CS=/\n+(?!\n|$)/g}function nv({comment:e,type:t,value:n},r,o,s){const{blockQuote:i,commentString:l,lineWidth:a}=r.options;if(!i||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return qu(n,r);const u=r.indent||(r.forceBlockIndent||_0(n)?" ":""),f=i==="literal"?!0:i==="folded"||t===$t.BLOCK_FOLDED?!1:t===$t.BLOCK_LITERAL?!0:!ZIe(n,a,u.length);if(!n)return f?`|
643
+ `:`>
644
+ `;let p,m;for(m=n.length;m>0;--m){const E=n[m-1];if(E!==`
645
+ `&&E!==" "&&E!==" ")break}let v=n.substring(m);const y=v.indexOf(`
646
+ `);y===-1?p="-":n===v||y!==v.length-1?(p="+",s&&s()):p="",v&&(n=n.slice(0,-v.length),v[v.length-1]===`
647
+ `&&(v=v.slice(0,-1)),v=v.replace(CS,`$&${u}`));let g=!1,C,b=-1;for(C=0;C<n.length;++C){const E=n[C];if(E===" ")g=!0;else if(E===`
648
+ `)b=C;else break}let w=n.substring(0,b<C?b+1:C);w&&(n=n.substring(w.length),w=w.replace(/\n+/g,`$&${u}`));let k=(f?"|":">")+(g?u?"2":"1":"")+p;if(e&&(k+=" "+l(e.replace(/ ?[\r\n]+/g," ")),o&&o()),f)return n=n.replace(/\n+/g,`$&${u}`),`${k}
649
+ ${u}${w}${n}${v}`;n=n.replace(/\n+/g,`
650
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${u}`);const M=I0(`${w}${n}${v}`,u,bS,M0(r,!0));return`${k}
651
+ ${u}${M}`}function JIe(e,t,n,r){const{type:o,value:s}=e,{actualString:i,implicitKey:l,indent:a,indentStep:u,inFlow:f}=t;if(l&&/[\n[\]{},]/.test(s)||f&&/[[\]{},]/.test(s))return qu(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return l||f||!s.includes(`
652
+ `)?qu(s,t):nv(e,t,n,r);if(!l&&!f&&o!==$t.PLAIN&&s.includes(`
653
+ `))return nv(e,t,n,r);if(_0(s)){if(a==="")return t.forceBlockIndent=!0,nv(e,t,n,r);if(l&&a===u)return qu(s,t)}const p=s.replace(/\n+/g,`$&
654
+ ${a}`);if(i){const m=g=>{var C;return g.default&&g.tag!=="tag:yaml.org,2002:str"&&((C=g.test)==null?void 0:C.test(p))},{compat:v,tags:y}=t.doc.schema;if(y.some(m)||v!=null&&v.some(m))return qu(s,t)}return l?p:I0(p,a,J3,M0(t,!1))}function Jh(e,t,n,r){const{implicitKey:o,inFlow:s}=t,i=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:l}=e;l!==$t.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(i.value)&&(l=$t.QUOTE_DOUBLE);const a=f=>{switch(f){case $t.BLOCK_FOLDED:case $t.BLOCK_LITERAL:return o||s?qu(i.value,t):nv(i,t,n,r);case $t.QUOTE_DOUBLE:return Dp(i.value,t);case $t.QUOTE_SINGLE:return wS(i.value,t);case $t.PLAIN:return JIe(i,t,n,r);default:return null}};let u=a(l);if(u===null){const{defaultKeyType:f,defaultStringType:p}=t.options,m=o&&f||p;if(u=a(m),u===null)throw new Error(`Unsupported default string type ${m}`)}return u}function ez(e,t){const n=Object.assign({blockQuote:!0,commentString:XIe,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 e2e(e,t){var o,s,i,l;if(t.tag){const a=e.filter(u=>u.tag===t.tag);if(a.length>0)return(o=a.find(u=>u.format===t.format))!=null?o:a[0]}let n,r;if(Sn(t)){r=t.value;const a=e.filter(u=>{var f;return(f=u.identify)==null?void 0:f.call(u,r)});n=(s=a.find(u=>u.format===t.format))!=null?s:a.find(u=>!u.format)}else r=t,n=e.find(a=>a.nodeClass&&r instanceof a.nodeClass);if(!n){const a=(l=(i=r==null?void 0:r.constructor)==null?void 0:i.name)!=null?l:typeof r;throw new Error(`Tag not resolved for ${a} value`)}return n}function t2e(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const o=[],s=(Sn(e)||Vn(e))&&e.anchor;s&&Y3(s)&&(n.add(s),o.push(`&${s}`));const i=e.tag?e.tag:t.default?null:t.tag;return i&&o.push(r.directives.tagString(i)),o.join(" ")}function Ad(e,t,n,r){var a,u;if(Ln(e))return e.toString(t,n,r);if(Gc(e)){if(t.doc.directives)return e.toString(t);if((a=t.resolvedAliases)!=null&&a.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const s=or(e)?e:t.doc.createNode(e,{onTagObj:f=>o=f});o||(o=e2e(t.doc.schema.tags,s));const i=t2e(s,o,t);i.length>0&&(t.indentAtStart=((u=t.indentAtStart)!=null?u:0)+i.length+1);const l=typeof o.stringify=="function"?o.stringify(s,t,n,r):Sn(s)?Jh(s,t,n,r):s.toString(t,n,r);return i?Sn(s)||l[0]==="{"||l[0]==="["?`${i} ${l}`:`${i}
655
+ ${t.indent}${l}`:l}function n2e({key:e,value:t},n,r,o){var I,R;const{allNullValues:s,doc:i,indent:l,indentStep:a,options:{commentString:u,indentSeq:f,simpleKeys:p}}=n;let m=or(e)&&e.comment||null;if(p){if(m)throw new Error("With simple keys, key nodes cannot have comments");if(Vn(e)){const A="With simple keys, collection cannot be used as a key value";throw new Error(A)}}let v=!p&&(!e||m&&t==null&&!n.inFlow||Vn(e)||(Sn(e)?e.type===$t.BLOCK_FOLDED||e.type===$t.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!v&&(p||!s),indent:l+a});let y=!1,g=!1,C=Ad(e,n,()=>y=!0,()=>g=!0);if(!v&&!n.inFlow&&C.length>1024){if(p)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");v=!0}if(n.inFlow){if(s||t==null)return y&&r&&r(),C===""?"?":v?`? ${C}`:C}else if(s&&!p||t==null&&v)return C=`? ${C}`,m&&!y?C+=ua(C,n.indent,u(m)):g&&o&&o(),C;y&&(m=null),v?(m&&(C+=ua(C,n.indent,u(m))),C=`? ${C}
656
+ ${l}:`):(C=`${C}:`,m&&(C+=ua(C,n.indent,u(m))));let b,w,S;or(t)?(b=!!t.spaceBefore,w=t.commentBefore,S=t.comment):(b=!1,w=null,S=null,t&&typeof t=="object"&&(t=i.createNode(t))),n.implicitKey=!1,!v&&!m&&Sn(t)&&(n.indentAtStart=C.length+1),g=!1,!f&&a.length>=2&&!n.inFlow&&!v&&uf(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let k=!1;const M=Ad(t,n,()=>k=!0,()=>g=!0);let E=" ";if(m||b||w){if(E=b?`
657
+ `:"",w){const A=u(w);E+=`
658
+ ${fl(A,n.indent)}`}M===""&&!n.inFlow?E===`
659
+ `&&(E=`
660
+
661
+ `):E+=`
662
+ ${n.indent}`}else if(!v&&Vn(t)){const A=M[0],$=M.indexOf(`
663
+ `),L=$!==-1,V=(R=(I=n.inFlow)!=null?I:t.flow)!=null?R:t.items.length===0;if(L||!V){let j=!1;if(L&&(A==="&"||A==="!")){let _=M.indexOf(" ");A==="&"&&_!==-1&&_<$&&M[_+1]==="!"&&(_=M.indexOf(" ",_+1)),(_===-1||$<_)&&(j=!0)}j||(E=`
664
+ ${n.indent}`)}}else(M===""||M[0]===`
665
+ `)&&(E="");return C+=E+M,n.inFlow?k&&r&&r():S&&!k?C+=ua(C,n.indent,u(S)):g&&o&&o(),C}function tz(e,t){(e==="debug"||e==="warn")&&(typeof process!="undefined"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const ID="<<";function nz(e,t,{key:n,value:r}){if(e!=null&&e.doc.schema.merge&&r2e(n))if(r=Gc(r)?r.resolve(e.doc):r,uf(r))for(const o of r.items)aC(e,t,o);else if(Array.isArray(r))for(const o of r)aC(e,t,o);else aC(e,t,r);else{const o=$s(n,"",e);if(t instanceof Map)t.set(o,$s(r,o,e));else if(t instanceof Set)t.add(o);else{const s=o2e(n,o,e),i=$s(r,s,e);s in t?Object.defineProperty(t,s,{value:i,writable:!0,enumerable:!0,configurable:!0}):t[s]=i}}return t}const r2e=e=>e===ID||Sn(e)&&e.value===ID&&(!e.type||e.type===$t.PLAIN);function aC(e,t,n){const r=e&&Gc(n)?n.resolve(e.doc):n;if(!cf(r))throw new Error("Merge sources must be maps or map aliases");const o=r.toJSON(null,e,Map);for(const[s,i]of o)t instanceof Map?t.has(s)||t.set(s,i):t instanceof Set?t.add(s):Object.prototype.hasOwnProperty.call(t,s)||Object.defineProperty(t,s,{value:i,writable:!0,enumerable:!0,configurable:!0});return t}function o2e(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(or(e)&&n&&n.doc){const r=ez(n.doc,{});r.anchors=new Set;for(const s of n.anchors.keys())r.anchors.add(s.anchor);r.inFlow=!0,r.inStringifyKey=!0;const o=e.toString(r);if(!n.mapKeyWarned){let s=JSON.stringify(o);s.length>40&&(s=s.substring(0,36)+'..."'),tz(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return o}return JSON.stringify(t)}function PI(e,t,n){const r=Sh(e,void 0,n),o=Sh(t,void 0,n);return new Xr(r,o)}class Xr{constructor(t,n=null){Object.defineProperty(this,Ns,{value:U3}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return or(n)&&(n=n.clone(t)),or(r)&&(r=r.clone(t)),new Xr(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return nz(n,r,this)}toString(t,n,r){return t!=null&&t.doc?n2e(this,t,n,r):JSON.stringify(this)}}function rz(e,t,n){var s;return(((s=t.inFlow)!=null?s:e.flow)?i2e:s2e)(e,t,n)}function s2e({comment:e,items:t},n,{blockItemPrefix:r,flowChars:o,itemIndent:s,onChompKeep:i,onComment:l}){const{indent:a,options:{commentString:u}}=n,f=Object.assign({},n,{indent:s,type:null});let p=!1;const m=[];for(let y=0;y<t.length;++y){const g=t[y];let C=null;if(or(g))!p&&g.spaceBefore&&m.push(""),gy(n,m,g.commentBefore,p),g.comment&&(C=g.comment);else if(Ln(g)){const w=or(g.key)?g.key:null;w&&(!p&&w.spaceBefore&&m.push(""),gy(n,m,w.commentBefore,p))}p=!1;let b=Ad(g,f,()=>C=null,()=>p=!0);C&&(b+=ua(b,s,u(C))),p&&C&&(p=!1),m.push(r+b)}let v;if(m.length===0)v=o.start+o.end;else{v=m[0];for(let y=1;y<m.length;++y){const g=m[y];v+=g?`
666
+ ${a}${g}`:`
667
+ `}}return e?(v+=`
668
+ `+fl(u(e),a),l&&l()):p&&i&&i(),v}function i2e({comment:e,items:t},n,{flowChars:r,itemIndent:o,onComment:s}){const{indent:i,indentStep:l,flowCollectionPadding:a,options:{commentString:u}}=n;o+=l;const f=Object.assign({},n,{indent:o,inFlow:!0,type:null});let p=!1,m=0;const v=[];for(let b=0;b<t.length;++b){const w=t[b];let S=null;if(or(w))w.spaceBefore&&v.push(""),gy(n,v,w.commentBefore,!1),w.comment&&(S=w.comment);else if(Ln(w)){const M=or(w.key)?w.key:null;M&&(M.spaceBefore&&v.push(""),gy(n,v,M.commentBefore,!1),M.comment&&(p=!0));const E=or(w.value)?w.value:null;E?(E.comment&&(S=E.comment),E.commentBefore&&(p=!0)):w.value==null&&M&&M.comment&&(S=M.comment)}S&&(p=!0);let k=Ad(w,f,()=>S=null);b<t.length-1&&(k+=","),S&&(k+=ua(k,o,u(S))),!p&&(v.length>m||k.includes(`
669
+ `))&&(p=!0),v.push(k),m=v.length}let y;const{start:g,end:C}=r;if(v.length===0)y=g+C;else if(p||(p=v.reduce((w,S)=>w+S.length+2,2)>E0.maxFlowStringSingleLineLength),p){y=g;for(const b of v)y+=b?`
670
+ ${l}${i}${b}`:`
671
+ `;y+=`
672
+ ${i}${C}`}else y=`${g}${a}${v.join(" ")}${a}${C}`;return e&&(y+=ua(y,i,u(e)),s&&s()),y}function gy({indent:e,options:{commentString:t}},n,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){const s=fl(t(r),e);n.push(s.trimStart())}}function cc(e,t){const n=Sn(t)?t.value:t;for(const r of e)if(Ln(r)&&(r.key===t||r.key===n||Sn(r.key)&&r.key.value===n))return r}class Go extends E0{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Ca,t),this.items=[]}static from(t,n,r){const{keepUndefined:o,replacer:s}=r,i=new this(t),l=(a,u)=>{if(typeof s=="function")u=s.call(n,a,u);else if(Array.isArray(s)&&!s.includes(a))return;(u!==void 0||o)&&i.items.push(PI(a,u,r))};if(n instanceof Map)for(const[a,u]of n)l(a,u);else if(n&&typeof n=="object")for(const a of Object.keys(n))l(a,n[a]);return typeof t.sortMapEntries=="function"&&i.items.sort(t.sortMapEntries),i}add(t,n){var i;let r;Ln(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new Xr(t,t==null?void 0:t.value):r=new Xr(t.key,t.value);const o=cc(this.items,r.key),s=(i=this.schema)==null?void 0:i.sortMapEntries;if(o){if(!n)throw new Error(`Key ${r.key} already set`);Sn(o.value)&&Z3(r.value)?o.value.value=r.value:o.value=r.value}else if(s){const l=this.items.findIndex(a=>s(r,a)<0);l===-1?this.items.push(r):this.items.splice(l,0,r)}else this.items.push(r)}delete(t){const n=cc(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){var s;const r=cc(this.items,t),o=r==null?void 0:r.value;return(s=!n&&Sn(o)?o.value:o)!=null?s:void 0}has(t){return!!cc(this.items,t)}set(t,n){this.add(new Xr(t,n),!0)}toJSON(t,n,r){const o=r?new r:n!=null&&n.mapAsMap?new Map:{};n!=null&&n.onCreate&&n.onCreate(o);for(const s of this.items)nz(n,o,s);return o}toString(t,n,r){if(!t)return JSON.stringify(this);for(const o of this.items)if(!Ln(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),rz(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const df={collection:"map",default:!0,nodeClass:Go,tag:"tag:yaml.org,2002:map",resolve(e,t){return cf(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Go.from(e,t,n)};class Ta extends E0{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(lf,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=Pg(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=Pg(t);if(typeof r!="number")return;const o=this.items[r];return!n&&Sn(o)?o.value:o}has(t){const n=Pg(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=Pg(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[r];Sn(o)&&Z3(n)?o.value=n:this.items[r]=n}toJSON(t,n){const r=[];n!=null&&n.onCreate&&n.onCreate(r);let o=0;for(const s of this.items)r.push($s(s,String(o++),n));return r}toString(t,n,r){return t?rz(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:o}=r,s=new this(t);if(n&&Symbol.iterator in Object(n)){let i=0;for(let l of n){if(typeof o=="function"){const a=n instanceof Set?l:String(i++);l=o.call(n,a,l)}s.items.push(Sh(l,void 0,r))}}return s}}function Pg(e){let t=Sn(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const ff={collection:"seq",default:!0,nodeClass:Ta,tag:"tag:yaml.org,2002:seq",resolve(e,t){return uf(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>Ta.from(e,t,n)},T0={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),Jh(e,t,n,r)}},$0={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"&&$0.test.test(e)?e:t.options.nullStr},kI={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&&kI.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 pi({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r=="bigint")return String(r);const o=typeof r=="number"?r:Number(r);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let s=JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let i=s.indexOf(".");i<0&&(i=s.length,s+=".");let l=t-(s.length-i-1);for(;l-- >0;)s+="0"}return s}const oz={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:pi},sz={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():pi(e)}},iz={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:pi},R0=e=>typeof e=="bigint"||Number.isInteger(e),EI=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function lz(e,t,n){const{value:r}=e;return R0(r)&&r>=0?n+r.toString(t):pi(e)}const az={identify:e=>R0(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>EI(e,2,8,n),stringify:e=>lz(e,8,"0o")},cz={identify:R0,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>EI(e,0,10,n),stringify:pi},uz={identify:e=>R0(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>EI(e,2,16,n),stringify:e=>lz(e,16,"0x")},l2e=[df,ff,T0,$0,kI,az,cz,uz,oz,sz,iz];function MD(e){return typeof e=="bigint"||Number.isInteger(e)}const kg=({value:e})=>JSON.stringify(e),a2e=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:kg},{identify:e=>e==null,createNode:()=>new $t(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:kg},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:kg},{identify:MD,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})=>MD(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:kg}],c2e={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},u2e=[df,ff].concat(a2e,c2e),II={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer=="function")return Buffer.from(e,"base64");if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let o=0;o<n.length;++o)r[o]=n.charCodeAt(o);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,o,s){const i=n;let l;if(typeof Buffer=="function")l=i instanceof Buffer?i.toString("base64"):Buffer.from(i.buffer).toString("base64");else if(typeof btoa=="function"){let a="";for(let u=0;u<i.length;++u)a+=String.fromCharCode(i[u]);l=btoa(a)}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 a=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),u=Math.ceil(l.length/a),f=new Array(u);for(let p=0,m=0;p<u;++p,m+=a)f[p]=l.substr(m,a);l=f.join(t===$t.BLOCK_LITERAL?`
673
+ `:" ")}return Jh({comment:e,type:t,value:l},r,o,s)}};function dz(e,t){var n;if(uf(e))for(let r=0;r<e.items.length;++r){let o=e.items[r];if(!Ln(o)){if(cf(o)){o.items.length>1&&t("Each pair must have its own sequence indicator");const s=o.items[0]||new Xr(new $t(null));if(o.commentBefore&&(s.key.commentBefore=s.key.commentBefore?`${o.commentBefore}
674
+ ${s.key.commentBefore}`:o.commentBefore),o.comment){const i=(n=s.value)!=null?n:s.key;i.comment=i.comment?`${o.comment}
675
+ ${i.comment}`:o.comment}o=s}e.items[r]=Ln(o)?o:new Xr(o)}}else t("Expected a sequence for this tag");return e}function fz(e,t,n){const{replacer:r}=n,o=new Ta(e);o.tag="tag:yaml.org,2002:pairs";let s=0;if(t&&Symbol.iterator in Object(t))for(let i of t){typeof r=="function"&&(i=r.call(t,String(s++),i));let l,a;if(Array.isArray(i))if(i.length===2)l=i[0],a=i[1];else throw new TypeError(`Expected [key, value] tuple: ${i}`);else if(i&&i instanceof Object){const u=Object.keys(i);if(u.length===1)l=u[0],a=i[l];else throw new TypeError(`Expected { key: value } tuple: ${i}`)}else l=i;o.items.push(PI(l,a,n))}return o}const MI={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:dz,createNode:fz};class cd extends Ta{constructor(){super(),this.add=Go.prototype.add.bind(this),this.delete=Go.prototype.delete.bind(this),this.get=Go.prototype.get.bind(this),this.has=Go.prototype.has.bind(this),this.set=Go.prototype.set.bind(this),this.tag=cd.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n!=null&&n.onCreate&&n.onCreate(r);for(const o of this.items){let s,i;if(Ln(o)?(s=$s(o.key,"",n),i=$s(o.value,s,n)):s=$s(o,"",n),r.has(s))throw new Error("Ordered maps must not include duplicate keys");r.set(s,i)}return r}static from(t,n,r){const o=fz(t,n,r),s=new this;return s.items=o.items,s}}cd.tag="tag:yaml.org,2002:omap";const _I={collection:"seq",identify:e=>e instanceof Map,nodeClass:cd,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=dz(e,t),r=[];for(const{key:o}of n.items)Sn(o)&&(r.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):r.push(o.value));return Object.assign(new cd,n)},createNode:(e,t,n)=>cd.from(e,t,n)};function pz({value:e,source:t},n){return t&&(e?hz:mz).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const hz={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:pz},mz={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:pz},d2e={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:pi},f2e={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():pi(e)}},p2e={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:pi},em=e=>typeof e=="bigint"||Number.isInteger(e);function O0(e,t,n,{intAsBigInt:r}){const o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const i=BigInt(e);return o==="-"?BigInt(-1)*i:i}const s=parseInt(e,n);return o==="-"?-1*s:s}function TI(e,t,n){const{value:r}=e;if(em(r)){const o=r.toString(t);return r<0?"-"+n+o.substr(1):n+o}return pi(e)}const h2e={identify:em,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>O0(e,2,2,n),stringify:e=>TI(e,2,"0b")},m2e={identify:em,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>O0(e,1,8,n),stringify:e=>TI(e,8,"0")},g2e={identify:em,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>O0(e,0,10,n),stringify:pi},v2e={identify:em,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>O0(e,2,16,n),stringify:e=>TI(e,16,"0x")};class ud extends Go{constructor(t){super(t),this.tag=ud.tag}add(t){let n;Ln(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new Xr(t.key,null):n=new Xr(t,null),cc(this.items,n.key)||this.items.push(n)}get(t,n){const r=cc(this.items,t);return!n&&Ln(r)?Sn(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=cc(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new Xr(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){const{replacer:o}=r,s=new this(t);if(n&&Symbol.iterator in Object(n))for(let i of n)typeof o=="function"&&(i=o.call(n,i,i)),s.items.push(PI(i,null,r));return s}}ud.tag="tag:yaml.org,2002:set";const $I={collection:"map",identify:e=>e instanceof Set,nodeClass:ud,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>ud.from(e,t,n),resolve(e,t){if(cf(e)){if(e.hasAllNullValues(!0))return Object.assign(new ud,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function RI(e,t){const n=e[0],r=n==="-"||n==="+"?e.substring(1):e,o=i=>t?BigInt(i):Number(i),s=r.replace(/_/g,"").split(":").reduce((i,l)=>i*o(60)+o(l),o(0));return n==="-"?o(-1)*s:s}function gz(e){let{value:t}=e,n=i=>i;if(typeof t=="bigint")n=i=>BigInt(i);else if(isNaN(t)||!isFinite(t))return pi(e);let r="";t<0&&(r="-",t*=n(-1));const o=n(60),s=[t%o];return t<60?s.unshift(0):(t=(t-s[0])/o,s.unshift(t%o),t>=60&&(t=(t-s[0])/o,s.unshift(t))),r+s.map(i=>String(i).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const vz={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>RI(e,n),stringify:gz},yz={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>RI(e,!1),stringify:gz},D0={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(D0.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,o,s,i,l]=t.map(Number),a=t[7]?Number((t[7]+"00").substr(1,3)):0;let u=Date.UTC(n,r-1,o,s||0,i||0,l||0,a);const f=t[8];if(f&&f!=="Z"){let p=RI(f,!1);Math.abs(p)<30&&(p*=60),u-=6e4*p}return new Date(u)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},_D=[df,ff,T0,$0,hz,mz,h2e,m2e,g2e,v2e,d2e,f2e,p2e,II,_I,MI,$I,vz,yz,D0],TD=new Map([["core",l2e],["failsafe",[df,ff,T0]],["json",u2e],["yaml11",_D],["yaml-1.1",_D]]),$D={binary:II,bool:kI,float:iz,floatExp:sz,floatNaN:oz,floatTime:yz,int:cz,intHex:uz,intOct:az,intTime:vz,map:df,null:$0,omap:_I,pairs:MI,seq:ff,set:$I,timestamp:D0},y2e={"tag:yaml.org,2002:binary":II,"tag:yaml.org,2002:omap":_I,"tag:yaml.org,2002:pairs":MI,"tag:yaml.org,2002:set":$I,"tag:yaml.org,2002:timestamp":D0};function cC(e,t){let n=TD.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from(TD.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=$D[r];if(o)return o;const s=Object.keys($D).map(i=>JSON.stringify(i)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${s}`)})}const b2e=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class A0{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:o,schema:s,sortMapEntries:i,toStringDefaults:l}){this.compat=Array.isArray(t)?cC(t,"compat"):t?cC(null,t):null,this.merge=!!r,this.name=typeof s=="string"&&s||"core",this.knownTags=o?y2e:{},this.tags=cC(n,this.name),this.toStringOptions=l!=null?l:null,Object.defineProperty(this,Ca,{value:df}),Object.defineProperty(this,Pl,{value:T0}),Object.defineProperty(this,lf,{value:ff}),this.sortMapEntries=typeof i=="function"?i:i===!0?b2e:null}clone(){const t=Object.create(A0.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function w2e(e,t){var a;const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const u=e.directives.toString(e);u?(n.push(u),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const o=ez(e,t),{commentString:s}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const u=s(e.commentBefore);n.unshift(fl(u,""))}let i=!1,l=null;if(e.contents){if(or(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const p=s(e.contents.commentBefore);n.push(fl(p,""))}o.forceBlockIndent=!!e.comment,l=e.contents.comment}const u=l?void 0:()=>i=!0;let f=Ad(e.contents,o,()=>l=null,u);l&&(f+=ua(f,"",s(l))),(f[0]==="|"||f[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${f}`:n.push(f)}else n.push(Ad(e.contents,o));if((a=e.directives)!=null&&a.docEnd)if(e.comment){const u=s(e.comment);u.includes(`
676
+ `)?(n.push("..."),n.push(fl(u,""))):n.push(`... ${u}`)}else n.push("...");else{let u=e.comment;u&&i&&(u=u.replace(/^\n+/,"")),u&&((!i||l)&&n[n.length-1]!==""&&n.push(""),n.push(fl(s(u),"")))}return n.join(`
677
+ `)+`
678
+ `}class pf{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Ns,{value:yS});let o=null;typeof n=="function"||Array.isArray(n)?o=n:r===void 0&&n&&(r=n,n=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},r);this.options=s;let{version:i}=s;r!=null&&r._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(i=this.directives.yaml.version)):this.directives=new io({version:i}),this.setSchema(i,r),this.contents=t===void 0?null:this.createNode(t,o,r)}clone(){const t=Object.create(pf.prototype,{[Ns]:{value:yS}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=or(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){Cu(this.contents)&&this.contents.add(t)}addIn(t,n){Cu(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=Q3(this);t.anchor=!n||r.has(n)?X3(n||"a",r):n}return new k0(t.anchor)}createNode(t,n,r){let o;if(typeof n=="function")t=n.call({"":t},"",t),o=n;else if(Array.isArray(n)){const C=w=>typeof w=="number"||w instanceof String||w instanceof Number,b=n.filter(C).map(String);b.length>0&&(n=n.concat(b)),o=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:s,anchorPrefix:i,flow:l,keepUndefined:a,onTagObj:u,tag:f}=r!=null?r:{},{onAnchor:p,setAnchors:m,sourceObjects:v}=qIe(this,i||"a"),y={aliasDuplicateObjects:s!=null?s:!0,keepUndefined:a!=null?a:!1,onAnchor:p,onTagObj:u,replacer:o,schema:this.schema,sourceObjects:v},g=Sh(t,f,y);return l&&Vn(g)&&(g.flow=!0),m(),g}createPair(t,n,r={}){const o=this.createNode(t,null,r),s=this.createNode(n,null,r);return new Xr(o,s)}delete(t){return Cu(this.contents)?this.contents.delete(t):!1}deleteIn(t){return fp(t)?this.contents==null?!1:(this.contents=null,!0):Cu(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Vn(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return fp(t)?!n&&Sn(this.contents)?this.contents.value:this.contents:Vn(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Vn(this.contents)?this.contents.has(t):!1}hasIn(t){return fp(t)?this.contents!==void 0:Vn(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=my(this.schema,[t],n):Cu(this.contents)&&this.contents.set(t,n)}setIn(t,n){fp(t)?this.contents=n:this.contents==null?this.contents=my(this.schema,Array.from(t),n):Cu(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 io({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 io({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 A0(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:o,onAnchor:s,reviver:i}={}){const l={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},a=$s(this.contents,n!=null?n:"",l);if(typeof s=="function")for(const{count:u,res:f}of l.anchors.values())s(f,u);return typeof i=="function"?Ku(i,{"":a},"",a):a}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return w2e(this,t)}}function Cu(e){if(Vn(e))return!0;throw new Error("Expected a YAML collection as document contents")}class OI extends Error{constructor(t,n,r,o){super(),this.name=t,this.code=r,this.message=o,this.pos=n}}class uc extends OI{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class bz extends OI{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const vy=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(l=>t.linePos(l));const{line:r,col:o}=n.linePos[0];n.message+=` at line ${r}, column ${o}`;let s=o-1,i=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(s>=60&&i.length>80){const l=Math.min(s-39,i.length-79);i="…"+i.substring(l),s-=l-1}if(i.length>80&&(i=i.substring(0,79)+"…"),r>1&&/^ *$/.test(i.substring(0,s))){let l=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);l.length>80&&(l=l.substring(0,79)+`…
679
+ `),i=l+i}if(/[^ ]/.test(i)){let l=1;const a=n.linePos[1];a&&a.line===r&&a.col>o&&(l=Math.max(1,Math.min(a.col-o,80-s)));const u=" ".repeat(s)+"^".repeat(l);n.message+=`:
680
+
681
+ ${i}
682
+ ${u}
683
+ `}};function Ld(e,{flow:t,indicator:n,next:r,offset:o,onError:s,startOnNewline:i}){let l=!1,a=i,u=i,f="",p="",m=!1,v=!1,y=!1,g=null,C=null,b=null,w=null,S=null;for(const E of e)switch(y&&(E.type!=="space"&&E.type!=="newline"&&E.type!=="comma"&&s(E.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),y=!1),E.type){case"space":!t&&a&&n!=="doc-start"&&E.source[0]===" "&&s(E,"TAB_AS_INDENT","Tabs are not allowed as indentation"),u=!0;break;case"comment":{u||s(E,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const I=E.source.substring(1)||" ";f?f+=p+I:f=I,p="",a=!1;break}case"newline":a?f?f+=E.source:l=!0:p+=E.source,a=!0,m=!0,(g||C)&&(v=!0),u=!0;break;case"anchor":g&&s(E,"MULTIPLE_ANCHORS","A node can have at most one anchor"),E.source.endsWith(":")&&s(E.offset+E.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=E,S===null&&(S=E.offset),a=!1,u=!1,y=!0;break;case"tag":{C&&s(E,"MULTIPLE_TAGS","A node can have at most one tag"),C=E,S===null&&(S=E.offset),a=!1,u=!1,y=!0;break}case n:(g||C)&&s(E,"BAD_PROP_ORDER",`Anchors and tags must be after the ${E.source} indicator`),w&&s(E,"UNEXPECTED_TOKEN",`Unexpected ${E.source} in ${t!=null?t:"collection"}`),w=E,a=!1,u=!1;break;case"comma":if(t){b&&s(E,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),b=E,a=!1,u=!1;break}default:s(E,"UNEXPECTED_TOKEN",`Unexpected ${E.type} token`),a=!1,u=!1}const k=e[e.length-1],M=k?k.offset+k.source.length:o;return y&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:b,found:w,spaceBefore:l,comment:f,hasNewline:m,hasNewlineAfterProp:v,anchor:g,tag:C,end:M,start:S!=null?S:M}}function Ph(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
684
+ `))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(Ph(t.key)||Ph(t.value))return!0}return!1;default:return!0}}function xS(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&Ph(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function wz(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const o=typeof r=="function"?r:(s,i)=>s===i||Sn(s)&&Sn(i)&&s.value===i.value&&!(s.value==="<<"&&e.schema.merge);return t.some(s=>o(s.key,n))}const RD="All mapping items must start at the same column";function C2e({composeNode:e,composeEmptyNode:t},n,r,o,s){var f,p;const i=(f=s==null?void 0:s.nodeClass)!=null?f:Go,l=new i(n.schema);n.atRoot&&(n.atRoot=!1);let a=r.offset,u=null;for(const m of r.items){const{start:v,key:y,sep:g,value:C}=m,b=Ld(v,{indicator:"explicit-key-ind",next:y!=null?y:g==null?void 0:g[0],offset:a,onError:o,startOnNewline:!0}),w=!b.found;if(w){if(y&&(y.type==="block-seq"?o(a,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in y&&y.indent!==r.indent&&o(a,"BAD_INDENT",RD)),!b.anchor&&!b.tag&&!g){u=b.end,b.comment&&(l.comment?l.comment+=`
685
+ `+b.comment:l.comment=b.comment);continue}(b.hasNewlineAfterProp||Ph(y))&&o(y!=null?y:v[v.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((p=b.found)==null?void 0:p.indent)!==r.indent&&o(a,"BAD_INDENT",RD);const S=b.end,k=y?e(n,y,b,o):t(n,S,v,null,b,o);n.schema.compat&&xS(r.indent,y,o),wz(n,l.items,k)&&o(S,"DUPLICATE_KEY","Map keys must be unique");const M=Ld(g!=null?g:[],{indicator:"map-value-ind",next:C,offset:k.range[2],onError:o,startOnNewline:!y||y.type==="block-scalar"});if(a=M.end,M.found){w&&((C==null?void 0:C.type)==="block-map"&&!M.hasNewline&&o(a,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&b.start<M.found.offset-1024&&o(k.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const E=C?e(n,C,M,o):t(n,a,g,null,M,o);n.schema.compat&&xS(r.indent,C,o),a=E.range[2];const I=new Xr(k,E);n.options.keepSourceTokens&&(I.srcToken=m),l.items.push(I)}else{w&&o(k.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),M.comment&&(k.comment?k.comment+=`
686
+ `+M.comment:k.comment=M.comment);const E=new Xr(k);n.options.keepSourceTokens&&(E.srcToken=m),l.items.push(E)}}return u&&u<a&&o(u,"IMPOSSIBLE","Map comment with trailing content"),l.range=[r.offset,a,u!=null?u:a],l}function x2e({composeNode:e,composeEmptyNode:t},n,r,o,s){var f;const i=(f=s==null?void 0:s.nodeClass)!=null?f:Ta,l=new i(n.schema);n.atRoot&&(n.atRoot=!1);let a=r.offset,u=null;for(const{start:p,value:m}of r.items){const v=Ld(p,{indicator:"seq-item-ind",next:m,offset:a,onError:o,startOnNewline:!0});if(!v.found)if(v.anchor||v.tag||m)m&&m.type==="block-seq"?o(v.end,"BAD_INDENT","All sequence items must start at the same column"):o(a,"MISSING_CHAR","Sequence item without - indicator");else{u=v.end,v.comment&&(l.comment=v.comment);continue}const y=m?e(n,m,v,o):t(n,v.end,p,null,v,o);n.schema.compat&&xS(r.indent,m,o),a=y.range[2],l.items.push(y)}return l.range=[r.offset,a,u!=null?u:a],l}function tm(e,t,n,r){let o="";if(e){let s=!1,i="";for(const l of e){const{source:a,type:u}=l;switch(u){case"space":s=!0;break;case"comment":{n&&!s&&r(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const f=a.substring(1)||" ";o?o+=i+f:o=f,i="";break}case"newline":o&&(i+=a),s=!0;break;default:r(l,"UNEXPECTED_TOKEN",`Unexpected ${u} at node end`)}t+=a.length}}return{comment:o,offset:t}}const uC="Block collections are not allowed within flow collections",dC=e=>e&&(e.type==="block-map"||e.type==="block-seq");function S2e({composeNode:e,composeEmptyNode:t},n,r,o,s){var C,b;const i=r.start.source==="{",l=i?"flow map":"flow sequence",a=(C=s==null?void 0:s.nodeClass)!=null?C:i?Go:Ta,u=new a(n.schema);u.flow=!0;const f=n.atRoot;f&&(n.atRoot=!1);let p=r.offset+r.start.source.length;for(let w=0;w<r.items.length;++w){const S=r.items[w],{start:k,key:M,sep:E,value:I}=S,R=Ld(k,{flow:l,indicator:"explicit-key-ind",next:M!=null?M:E==null?void 0:E[0],offset:p,onError:o,startOnNewline:!1});if(!R.found){if(!R.anchor&&!R.tag&&!E&&!I){w===0&&R.comma?o(R.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):w<r.items.length-1&&o(R.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),R.comment&&(u.comment?u.comment+=`
687
+ `+R.comment:u.comment=R.comment),p=R.end;continue}!i&&n.options.strict&&Ph(M)&&o(M,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(w===0)R.comma&&o(R.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(R.comma||o(R.start,"MISSING_CHAR",`Missing , between ${l} items`),R.comment){let A="";e:for(const $ of k)switch($.type){case"comma":case"space":break;case"comment":A=$.source.substring(1);break e;default:break e}if(A){let $=u.items[u.items.length-1];Ln($)&&($=(b=$.value)!=null?b:$.key),$.comment?$.comment+=`
688
+ `+A:$.comment=A,R.comment=R.comment.substring(A.length+1)}}if(!i&&!E&&!R.found){const A=I?e(n,I,R,o):t(n,R.end,E,null,R,o);u.items.push(A),p=A.range[2],dC(I)&&o(A.range,"BLOCK_IN_FLOW",uC)}else{const A=R.end,$=M?e(n,M,R,o):t(n,A,k,null,R,o);dC(M)&&o($.range,"BLOCK_IN_FLOW",uC);const L=Ld(E!=null?E:[],{flow:l,indicator:"map-value-ind",next:I,offset:$.range[2],onError:o,startOnNewline:!1});if(L.found){if(!i&&!R.found&&n.options.strict){if(E)for(const _ of E){if(_===L.found)break;if(_.type==="newline"){o(_,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}R.start<L.found.offset-1024&&o(L.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else I&&("source"in I&&I.source&&I.source[0]===":"?o(I,"MISSING_CHAR",`Missing space after : in ${l}`):o(L.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const V=I?e(n,I,L,o):L.found?t(n,L.end,E,null,L,o):null;V?dC(I)&&o(V.range,"BLOCK_IN_FLOW",uC):L.comment&&($.comment?$.comment+=`
689
+ `+L.comment:$.comment=L.comment);const j=new Xr($,V);if(n.options.keepSourceTokens&&(j.srcToken=S),i){const _=u;wz(n,_.items,$)&&o(A,"DUPLICATE_KEY","Map keys must be unique"),_.items.push(j)}else{const _=new Go(n.schema);_.flow=!0,_.items.push(j),u.items.push(_)}p=V?V.range[2]:L.end}}const m=i?"}":"]",[v,...y]=r.end;let g=p;if(v&&v.source===m)g=v.offset+v.source.length;else{const w=l[0].toUpperCase()+l.substring(1),S=f?`${w} must end with a ${m}`:`${w} in block collection must be sufficiently indented and end with a ${m}`;o(p,f?"MISSING_CHAR":"BAD_INDENT",S),v&&v.source.length!==1&&y.unshift(v)}if(y.length>0){const w=tm(y,g,n.options.strict,o);w.comment&&(u.comment?u.comment+=`
690
+ `+w.comment:u.comment=w.comment),u.range=[r.offset,g,w.offset]}else u.range=[r.offset,g,g];return u}function fC(e,t,n,r,o,s){const i=n.type==="block-map"?C2e(e,t,n,r,s):n.type==="block-seq"?x2e(e,t,n,r,s):S2e(e,t,n,r,s),l=i.constructor;return o==="!"||o===l.tagName?(i.tag=l.tagName,i):(o&&(i.tag=o),i)}function P2e(e,t,n,r,o){var p,m;const s=r?t.directives.tagName(r.source,v=>o(r,"TAG_RESOLVE_FAILED",v)):null,i=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!r||!s||s==="!"||s===Go.tagName&&i==="map"||s===Ta.tagName&&i==="seq"||!i)return fC(e,t,n,o,s);let l=t.schema.tags.find(v=>v.tag===s&&v.collection===i);if(!l){const v=t.schema.knownTags[s];if(v&&v.collection===i)t.schema.tags.push(Object.assign({},v,{default:!1})),l=v;else return v!=null&&v.collection?o(r,"BAD_COLLECTION_TYPE",`${v.tag} used for ${i} collection, but expects ${v.collection}`,!0):o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),fC(e,t,n,o,s)}const a=fC(e,t,n,o,s,l),u=(m=(p=l.resolve)==null?void 0:p.call(l,a,v=>o(r,"TAG_RESOLVE_FAILED",v),t.options))!=null?m:a,f=or(u)?u:new $t(u);return f.range=a.range,f.tag=s,l!=null&&l.format&&(f.format=l.format),f}function Cz(e,t,n){const r=e.offset,o=k2e(e,t,n);if(!o)return{value:"",type:null,comment:"",range:[r,r,r]};const s=o.mode===">"?$t.BLOCK_FOLDED:$t.BLOCK_LITERAL,i=e.source?E2e(e.source):[];let l=i.length;for(let g=i.length-1;g>=0;--g){const C=i[g][1];if(C===""||C==="\r")l=g;else break}if(l===0){const g=o.chomp==="+"&&i.length>0?`
691
+ `.repeat(Math.max(1,i.length-1)):"";let C=r+o.length;return e.source&&(C+=e.source.length),{value:g,type:s,comment:o.comment,range:[r,C,C]}}let a=e.indent+o.indent,u=e.offset+o.length,f=0;for(let g=0;g<l;++g){const[C,b]=i[g];if(b===""||b==="\r")o.indent===0&&C.length>a&&(a=C.length);else{if(C.length<a){const w="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(u+C.length,"MISSING_CHAR",w)}o.indent===0&&(a=C.length),f=g;break}u+=C.length+b.length+1}for(let g=i.length-1;g>=l;--g)i[g][0].length>a&&(l=g+1);let p="",m="",v=!1;for(let g=0;g<f;++g)p+=i[g][0].slice(a)+`
692
+ `;for(let g=f;g<l;++g){let[C,b]=i[g];u+=C.length+b.length+1;const w=b[b.length-1]==="\r";if(w&&(b=b.slice(0,-1)),b&&C.length<a){const k=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(u-b.length-(w?2:1),"BAD_INDENT",k),C=""}s===$t.BLOCK_LITERAL?(p+=m+C.slice(a)+b,m=`
693
+ `):C.length>a||b[0]===" "?(m===" "?m=`
694
+ `:!v&&m===`
695
+ `&&(m=`
696
+
697
+ `),p+=m+C.slice(a)+b,m=`
698
+ `,v=!0):b===""?m===`
699
+ `?p+=`
700
+ `:m=`
701
+ `:(p+=m+b,m=" ",v=!1)}switch(o.chomp){case"-":break;case"+":for(let g=l;g<i.length;++g)p+=`
702
+ `+i[g][0].slice(a);p[p.length-1]!==`
703
+ `&&(p+=`
704
+ `);break;default:p+=`
705
+ `}const y=r+o.length+e.source.length;return{value:p,type:s,comment:o.comment,range:[r,y,y]}}function k2e({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],s=o[0];let i=0,l="",a=-1;for(let m=1;m<o.length;++m){const v=o[m];if(!l&&(v==="-"||v==="+"))l=v;else{const y=Number(v);!i&&y?i=y:a===-1&&(a=e+m)}}a!==-1&&r(a,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let u=!1,f="",p=o.length;for(let m=1;m<t.length;++m){const v=t[m];switch(v.type){case"space":u=!0;case"newline":p+=v.source.length;break;case"comment":n&&!u&&r(v,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),p+=v.source.length,f=v.source.substring(1);break;case"error":r(v,"UNEXPECTED_TOKEN",v.message),p+=v.source.length;break;default:{const y=`Unexpected token in block scalar header: ${v.type}`;r(v,"UNEXPECTED_TOKEN",y);const g=v.source;g&&typeof g=="string"&&(p+=g.length)}}}return{mode:s,indent:i,chomp:l,comment:f,length:p}}function E2e(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),s=[r!=null&&r[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let i=1;i<t.length;i+=2)s.push([t[i],t[i+1]]);return s}function xz(e,t,n){const{offset:r,type:o,source:s,end:i}=e;let l,a;const u=(m,v,y)=>n(r+m,v,y);switch(o){case"scalar":l=$t.PLAIN,a=I2e(s,u);break;case"single-quoted-scalar":l=$t.QUOTE_SINGLE,a=M2e(s,u);break;case"double-quoted-scalar":l=$t.QUOTE_DOUBLE,a=_2e(s,u);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[r,r+s.length,r+s.length]}}const f=r+s.length,p=tm(i,f,t,n);return{value:a,type:l,comment:p.comment,range:[r,f,p.offset]}}function I2e(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}`),Sz(e)}function M2e(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Sz(e.slice(1,-1)).replace(/''/g,"'")}function Sz(e){var a;let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
706
+ `,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
707
+ `,"sy")}catch(u){t=new RegExp("(.*?)[ \\t]*\\r?\\n","sy"),n=new RegExp("[ \\t]*(.*?)[ \\t]*\\r?\\n","sy")}let r=t.exec(e);if(!r)return e;let o=r[1],s=" ",i=t.lastIndex;for(n.lastIndex=i;r=n.exec(e);)r[1]===""?s===`
708
+ `?o+=s:s=`
709
+ `:(o+=s+r[1],s=" "),i=n.lastIndex;const l=new RegExp("[ \\t]*(.*)","sy");return l.lastIndex=i,r=l.exec(e),o+s+((a=r==null?void 0:r[1])!=null?a:"")}function _2e(e,t){let n="";for(let r=1;r<e.length-1;++r){const o=e[r];if(!(o==="\r"&&e[r+1]===`
710
+ `))if(o===`
711
+ `){const{fold:s,offset:i}=T2e(e,r);n+=s,r=i}else if(o==="\\"){let s=e[++r];const i=$2e[s];if(i)n+=i;else if(s===`
712
+ `)for(s=e[r+1];s===" "||s===" ";)s=e[++r+1];else if(s==="\r"&&e[r+1]===`
713
+ `)for(s=e[++r+1];s===" "||s===" ";)s=e[++r+1];else if(s==="x"||s==="u"||s==="U"){const l={x:2,u:4,U:8}[s];n+=R2e(e,r+1,l,t),r+=l}else{const l=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),n+=l}}else if(o===" "||o===" "){const s=r;let i=e[r+1];for(;i===" "||i===" ";)i=e[++r+1];i!==`
714
+ `&&!(i==="\r"&&e[r+2]===`
715
+ `)&&(n+=r>s?e.slice(s,r+1):o)}else n+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function T2e(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
716
+ `||r==="\r")&&!(r==="\r"&&e[t+2]!==`
717
+ `);)r===`
718
+ `&&(n+=`
719
+ `),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const $2e={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
720
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function R2e(e,t,n,r){const o=e.substr(t,n),i=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(i)){const l=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),l}return String.fromCodePoint(i)}function Pz(e,t,n,r){const{value:o,type:s,comment:i,range:l}=t.type==="block-scalar"?Cz(t,e.options.strict,r):xz(t,e.options.strict,r),a=n?e.directives.tagName(n.source,p=>r(n,"TAG_RESOLVE_FAILED",p)):null,u=n&&a?O2e(e.schema,o,a,n,r):t.type==="scalar"?D2e(e,o,t,r):e.schema[Pl];let f;try{const p=u.resolve(o,m=>r(n!=null?n:t,"TAG_RESOLVE_FAILED",m),e.options);f=Sn(p)?p:new $t(p)}catch(p){const m=p instanceof Error?p.message:String(p);r(n!=null?n:t,"TAG_RESOLVE_FAILED",m),f=new $t(o)}return f.range=l,f.source=o,s&&(f.type=s),a&&(f.tag=a),u.format&&(f.format=u.format),i&&(f.comment=i),f}function O2e(e,t,n,r,o){var l;if(n==="!")return e[Pl];const s=[];for(const a of e.tags)if(!a.collection&&a.tag===n)if(a.default&&a.test)s.push(a);else return a;for(const a of s)if((l=a.test)!=null&&l.test(t))return a;const i=e.knownTags[n];return i&&!i.collection?(e.tags.push(Object.assign({},i,{default:!1,test:void 0})),i):(o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[Pl])}function D2e({directives:e,schema:t},n,r,o){var i;const s=t.tags.find(l=>{var a;return l.default&&((a=l.test)==null?void 0:a.test(n))})||t[Pl];if(t.compat){const l=(i=t.compat.find(a=>{var u;return a.default&&((u=a.test)==null?void 0:u.test(n))}))!=null?i:t[Pl];if(s.tag!==l.tag){const a=e.tagString(s.tag),u=e.tagString(l.tag),f=`Value may be parsed as either ${a} or ${u}`;o(r,"TAG_RESOLVE_FAILED",f,!0)}}return s}function A2e(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 L2e={composeNode:kz,composeEmptyNode:DI};function kz(e,t,n,r){const{spaceBefore:o,comment:s,anchor:i,tag:l}=n;let a,u=!0;switch(t.type){case"alias":a=F2e(e,t,r),(i||l)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":a=Pz(e,t,l,r),i&&(a.anchor=i.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":a=P2e(L2e,e,t,l,r),i&&(a.anchor=i.source.substring(1));break;default:{const f=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",f),a=DI(e,t.offset,void 0,null,n,r),u=!1}}return i&&a.anchor===""&&r(i,"BAD_ALIAS","Anchor cannot be an empty string"),o&&(a.spaceBefore=!0),s&&(t.type==="scalar"&&t.source===""?a.comment=s:a.commentBefore=s),e.options.keepSourceTokens&&u&&(a.srcToken=t),a}function DI(e,t,n,r,{spaceBefore:o,comment:s,anchor:i,tag:l,end:a},u){const f={type:"scalar",offset:A2e(t,n,r),indent:-1,source:""},p=Pz(e,f,l,u);return i&&(p.anchor=i.source.substring(1),p.anchor===""&&u(i,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(p.spaceBefore=!0),s&&(p.comment=s,p.range[2]=a),p}function F2e({options:e},{offset:t,source:n,end:r},o){const s=new k0(n.substring(1));s.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const i=t+n.length,l=tm(r,i,e.strict,o);return s.range=[t,i,l.offset],l.comment&&(s.comment=l.comment),s}function N2e(e,t,{offset:n,start:r,value:o,end:s},i){const l=Object.assign({_directives:t},e),a=new pf(void 0,l),u={atRoot:!0,directives:a.directives,options:a.options,schema:a.schema},f=Ld(r,{indicator:"doc-start",next:o!=null?o:s==null?void 0:s[0],offset:n,onError:i,startOnNewline:!0});f.found&&(a.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!f.hasNewline&&i(f.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),a.contents=o?kz(u,o,f,i):DI(u,f.end,r,null,f,i);const p=a.contents.range[2],m=tm(s,p,!1,i);return m.comment&&(a.comment=m.comment),a.range=[n,p,m.offset],a}function Qf(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 OD(e){var o;let t="",n=!1,r=!1;for(let s=0;s<e.length;++s){const i=e[s];switch(i[0]){case"#":t+=(t===""?"":r?`
721
+
722
+ `:`
723
+ `)+(i.substring(1)||" "),n=!0,r=!1;break;case"%":((o=e[s+1])==null?void 0:o[0])!=="#"&&(s+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class AI{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,o,s)=>{const i=Qf(n);s?this.warnings.push(new bz(i,r,o)):this.errors.push(new uc(i,r,o))},this.directives=new io({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:o}=OD(this.prelude);if(r){const s=t.contents;if(n)t.comment=t.comment?`${t.comment}
724
+ ${r}`:r;else if(o||t.directives.docStart||!s)t.commentBefore=r;else if(Vn(s)&&!s.flow&&s.items.length>0){let i=s.items[0];Ln(i)&&(i=i.key);const l=i.commentBefore;i.commentBefore=l?`${r}
725
+ ${l}`:r}else{const i=s.commentBefore;s.commentBefore=i?`${r}
726
+ ${i}`:r}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:OD(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const o of t)yield*Ae(this.next(o));yield*Ae(this.end(n,r))}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,o)=>{const s=Qf(t);s[0]+=n,this.onError(s,"BAD_DIRECTIVE",r,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=N2e(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 uc(Qf(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 uc(Qf(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=tm(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}
727
+ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new uc(Qf(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 pf(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 B2e(e,t=!0,n){if(e){const r=(o,s,i)=>{const l=typeof o=="number"?o:Array.isArray(o)?o[0]:o.offset;if(n)n(l,s,i);else throw new uc([l,l+1],s,i)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return xz(e,t,r);case"block-scalar":return Cz(e,t,r)}}return null}function z2e(e,t){var u;const{implicitKey:n=!1,indent:r,inFlow:o=!1,offset:s=-1,type:i="PLAIN"}=t,l=Jh({type:i,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),a=(u=t.end)!=null?u:[{type:"newline",offset:-1,indent:r,source:`
728
+ `}];switch(l[0]){case"|":case">":{const f=l.indexOf(`
729
+ `),p=l.substring(0,f),m=l.substring(f+1)+`
730
+ `,v=[{type:"block-scalar-header",offset:s,indent:r,source:p}];return Ez(v,a)||v.push({type:"newline",offset:-1,indent:r,source:`
731
+ `}),{type:"block-scalar",offset:s,indent:r,props:v,source:m}}case'"':return{type:"double-quoted-scalar",offset:s,indent:r,source:l,end:a};case"'":return{type:"single-quoted-scalar",offset:s,indent:r,source:l,end:a};default:return{type:"scalar",offset:s,indent:r,source:l,end:a}}}function V2e(e,t,n={}){let{afterKey:r=!1,implicitKey:o=!1,inFlow:s=!1,type:i}=n,l="indent"in e?e.indent:null;if(r&&typeof l=="number"&&(l+=2),!i)switch(e.type){case"single-quoted-scalar":i="QUOTE_SINGLE";break;case"double-quoted-scalar":i="QUOTE_DOUBLE";break;case"block-scalar":{const u=e.props[0];if(u.type!=="block-scalar-header")throw new Error("Invalid block scalar header");i=u.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:i="PLAIN"}const a=Jh({type:i,value:t},{implicitKey:o||l===null,indent:l!==null&&l>0?" ".repeat(l):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}});switch(a[0]){case"|":case">":j2e(e,a);break;case'"':pC(e,a,"double-quoted-scalar");break;case"'":pC(e,a,"single-quoted-scalar");break;default:pC(e,a,"scalar")}}function j2e(e,t){const n=t.indexOf(`
732
+ `),r=t.substring(0,n),o=t.substring(n+1)+`
733
+ `;if(e.type==="block-scalar"){const s=e.props[0];if(s.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s.source=r,e.source=o}else{const{offset:s}=e,i="indent"in e?e.indent:-1,l=[{type:"block-scalar-header",offset:s,indent:i,source:r}];Ez(l,"end"in e?e.end:void 0)||l.push({type:"newline",offset:-1,indent:i,source:`
734
+ `});for(const a of Object.keys(e))a!=="type"&&a!=="offset"&&delete e[a];Object.assign(e,{type:"block-scalar",indent:i,props:l,source:o})}}function Ez(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 pC(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n,e.source=t;break;case"block-scalar":{const r=e.props.slice(1);let o=t.length;e.props[0].type==="block-scalar-header"&&(o-=e.props[0].source.length);for(const s of r)s.offset+=o;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case"block-map":case"block-seq":{const o={type:"newline",offset:e.offset+t.length,indent:e.indent,source:`
735
+ `};delete e.items,Object.assign(e,{type:n,source:t,end:[o]});break}default:{const r="indent"in e?e.indent:-1,o="end"in e&&Array.isArray(e.end)?e.end.filter(s=>s.type==="space"||s.type==="comment"||s.type==="newline"):[];for(const s of Object.keys(e))s!=="type"&&s!=="offset"&&delete e[s];Object.assign(e,{type:n,indent:r,source:t,end:o})}}}const H2e=e=>"type"in e?yy(e):rv(e);function yy(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=yy(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=rv(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=rv(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=rv(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 rv({start:e,key:t,sep:n,value:r}){let o="";for(const s of e)o+=s.source;if(t&&(o+=yy(t)),n)for(const s of n)o+=s.source;return r&&(o+=yy(r)),o}const SS=Symbol("break visit"),U2e=Symbol("skip children"),Iz=Symbol("remove item");function Fc(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),Mz(Object.freeze([]),e,t)}Fc.BREAK=SS;Fc.SKIP=U2e;Fc.REMOVE=Iz;Fc.itemAtPath=(e,t)=>{let n=e;for(const[r,o]of t){const s=n==null?void 0:n[r];if(s&&"items"in s)n=s.items[o];else return}return n};Fc.parentCollection=(e,t)=>{const n=Fc.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 Mz(e,t,n){let r=n(t,e);if(typeof r=="symbol")return r;for(const o of["key","value"]){const s=t[o];if(s&&"items"in s){for(let i=0;i<s.items.length;++i){const l=Mz(Object.freeze(e.concat([[o,i]])),s.items[i],n);if(typeof l=="number")i=l-1;else{if(l===SS)return SS;l===Iz&&(s.items.splice(i,1),i-=1)}}typeof r=="function"&&o==="key"&&(r=r(t,e))}}return typeof r=="function"?r(t,e):r}const L0="\uFEFF",F0="",N0="",kh="",W2e=e=>!!e&&"items"in e,G2e=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function K2e(e){switch(e){case L0:return"<BOM>";case F0:return"<DOC>";case N0:return"<FLOW_END>";case kh:return"<SCALAR>";default:return JSON.stringify(e)}}function _z(e){switch(e){case L0:return"byte-order-mark";case F0:return"doc-mode";case N0:return"flow-error-end";case kh:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
736
+ `:case`\r
737
+ `: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 q2e=Object.freeze(Object.defineProperty({__proto__:null,BOM:L0,DOCUMENT:F0,FLOW_END:N0,SCALAR:kh,createScalarToken:z2e,isCollection:W2e,isScalar:G2e,prettyToken:K2e,resolveAsScalar:B2e,setScalarValue:V2e,stringify:H2e,tokenType:_z,visit:Fc},Symbol.toStringTag,{value:"Module"}));function ws(e){switch(e){case void 0:case" ":case`
738
+ `:case"\r":case" ":return!0;default:return!1}}const DD="0123456789ABCDEFabcdef".split(""),Y2e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),hC=",[]{}".split(""),Q2e=` ,[]{}
739
+ \r `.split(""),mC=e=>!e||Q2e.includes(e);class Tz{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){var o;t&&(this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null),this.atEnd=!n;let r=(o=this.next)!=null?o:"stream";for(;r&&(n||this.hasChars(1));)r=yield*Ae(this.parseNext(r))}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
740
+ `?!0:n==="\r"?this.buffer[t+1]===`
741
+ `:!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===`
742
+ `||!o&&!this.atEnd)return t+r+1}return n===`
743
+ `||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&ws(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(`
744
+ `,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*Ae(this.parseStream());case"line-start":return yield*Ae(this.parseLineStart());case"block-start":return yield*Ae(this.parseBlockStart());case"doc":return yield*Ae(this.parseDocument());case"flow":return yield*Ae(this.parseFlowCollection());case"quoted-scalar":return yield*Ae(this.parseQuotedScalar());case"block-scalar":return yield*Ae(this.parseBlockScalar());case"plain-scalar":return yield*Ae(this.parsePlainScalar())}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===L0&&(yield*Ae(this.pushCount(1)),t=t.substring(1)),t[0]==="%"){let n=t.length;const r=t.indexOf("#");if(r!==-1){const s=t[r-1];(s===" "||s===" ")&&(n=r-1)}for(;;){const s=t[n-1];if(s===" "||s===" ")n-=1;else break}const o=(yield*Ae(this.pushCount(n)))+(yield*Ae(this.pushSpaces(!0)));return yield*Ae(this.pushCount(t.length-o)),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*Ae(this.pushSpaces(!0));return yield*Ae(this.pushCount(t.length-n)),yield*Ae(this.pushNewline()),"stream"}return yield F0,yield*Ae(this.parseLineStart())}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if(n==="---"&&ws(this.charAt(3)))return yield*Ae(this.pushCount(3)),this.indentValue=0,this.indentNext=0,"doc";if(n==="..."&&ws(this.charAt(3)))return yield*Ae(this.pushCount(3)),"stream"}return this.indentValue=yield*Ae(this.pushSpaces(!1)),this.indentNext>this.indentValue&&!ws(this.charAt(1))&&(this.indentNext=this.indentValue),yield*Ae(this.parseBlockStart())}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&ws(n)){const r=(yield*Ae(this.pushCount(1)))+(yield*Ae(this.pushSpaces(!0)));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*Ae(this.parseBlockStart())}return"doc"}*parseDocument(){yield*Ae(this.pushSpaces(!0));const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*Ae(this.pushIndicators());switch(t[n]){case"#":yield*Ae(this.pushCount(t.length-n));case void 0:return yield*Ae(this.pushNewline()),yield*Ae(this.parseLineStart());case"{":case"[":return yield*Ae(this.pushCount(1)),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*Ae(this.pushCount(1)),"doc";case"*":return yield*Ae(this.pushUntil(mC)),"doc";case'"':case"'":return yield*Ae(this.parseQuotedScalar());case"|":case">":return n+=yield*Ae(this.parseBlockScalarHeader()),n+=yield*Ae(this.pushSpaces(!0)),yield*Ae(this.pushCount(t.length-n)),yield*Ae(this.pushNewline()),yield*Ae(this.parseBlockScalar());default:return yield*Ae(this.parsePlainScalar())}}*parseFlowCollection(){let t,n,r=-1;do t=yield*Ae(this.pushNewline()),t>0?(n=yield*Ae(this.pushSpaces(!1)),this.indentValue=r=n):n=0,n+=yield*Ae(this.pushSpaces(!0));while(t+n>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&o[0]!=="#"||r===0&&(o.startsWith("---")||o.startsWith("..."))&&ws(o[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield N0,yield*Ae(this.parseLineStart());let s=0;for(;o[s]===",";)s+=yield*Ae(this.pushCount(1)),s+=yield*Ae(this.pushSpaces(!0)),this.flowKey=!1;switch(s+=yield*Ae(this.pushIndicators()),o[s]){case void 0:return"flow";case"#":return yield*Ae(this.pushCount(o.length-s)),"flow";case"{":case"[":return yield*Ae(this.pushCount(1)),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*Ae(this.pushCount(1)),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*Ae(this.pushUntil(mC)),"flow";case'"':case"'":return this.flowKey=!0,yield*Ae(this.parseQuotedScalar());case":":{const i=this.charAt(1);if(this.flowKey||ws(i)||i===",")return this.flowKey=!1,yield*Ae(this.pushCount(1)),yield*Ae(this.pushSpaces(!0)),"flow"}default:return this.flowKey=!1,yield*Ae(this.parsePlainScalar())}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let s=0;for(;this.buffer[n-1-s]==="\\";)s+=1;if(s%2===0)break;n=this.buffer.indexOf('"',n+1)}const r=this.buffer.substring(0,n);let o=r.indexOf(`
745
+ `,this.pos);if(o!==-1){for(;o!==-1;){const s=this.continueScalar(o+1);if(s===-1)break;o=r.indexOf(`
746
+ `,s)}o!==-1&&(n=o-(r[o-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*Ae(this.pushToIndex(n+1,!1)),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*Ae(this.pushUntil(n=>ws(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`
747
+ `:t=o,n=0;break;case"\r":{const s=this.buffer[o+1];if(!s&&!this.atEnd)return this.setNext("block-scalar");if(s===`
748
+ `)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(`
749
+ `,o)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)do{let o=t-1,s=this.buffer[o];s==="\r"&&(s=this.buffer[--o]);const i=o;for(;s===" "||s===" ";)s=this.buffer[--o];if(s===`
750
+ `&&o>=this.pos&&o+1+n>i)t=o;else break}while(!0);return yield kh,yield*Ae(this.pushToIndex(t+1,!0)),yield*Ae(this.parseLineStart())}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,o;for(;o=this.buffer[++r];)if(o===":"){const s=this.buffer[r+1];if(ws(s)||t&&s===",")break;n=r}else if(ws(o)){let s=this.buffer[r+1];if(o==="\r"&&(s===`
751
+ `?(r+=1,o=`
752
+ `,s=this.buffer[r+1]):n=r),s==="#"||t&&hC.includes(s))break;if(o===`
753
+ `){const i=this.continueScalar(r+1);if(i===-1)break;r=Math.max(r,i-2)}}else{if(t&&hC.includes(o))break;n=r}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield kh,yield*Ae(this.pushToIndex(n+1,!0)),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const r=this.buffer.slice(this.pos,t);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*Ae(this.pushTag()))+(yield*Ae(this.pushSpaces(!0)))+(yield*Ae(this.pushIndicators()));case"&":return(yield*Ae(this.pushUntil(mC)))+(yield*Ae(this.pushSpaces(!0)))+(yield*Ae(this.pushIndicators()));case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(ws(n)||t&&hC.includes(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*Ae(this.pushCount(1)))+(yield*Ae(this.pushSpaces(!0)))+(yield*Ae(this.pushIndicators()))}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!ws(n)&&n!==">";)n=this.buffer[++t];return yield*Ae(this.pushToIndex(n===">"?t+1:t,!1))}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(Y2e.includes(n))n=this.buffer[++t];else if(n==="%"&&DD.includes(this.buffer[t+1])&&DD.includes(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*Ae(this.pushToIndex(t,!1))}}*pushNewline(){const t=this.buffer[this.pos];return t===`
754
+ `?yield*Ae(this.pushCount(1)):t==="\r"&&this.charAt(1)===`
755
+ `?yield*Ae(this.pushCount(2)):0}*pushSpaces(t){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||t&&r===" ");const o=n-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=n),o}*pushUntil(t){let n=this.pos,r=this.buffer[n];for(;!t(r);)r=this.buffer[++n];return yield*Ae(this.pushToIndex(n,!1))}}class $z{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){const s=n+r>>1;this.lineStarts[s]<t?n=s+1:r=s}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const o=this.lineStarts[n-1];return{line:n,col:t-o+1}}}}function Ys(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function AD(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 Rz(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 Eg(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 xu(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 LD(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!Ys(t.start,"explicit-key-ind")&&!Ys(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,Rz(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}let LI=class{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Tz,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(t,n))yield*Ae(this.next(r));n||(yield*Ae(this.end()))}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*Ae(this.step()),this.offset+=t.length;return}const n=_z(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*Ae(this.step()),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const r=`Not a YAML token: ${t}`;yield*Ae(this.pop({type:"error",offset:this.offset,message:r,source:t})),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*Ae(this.pop())}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*Ae(this.pop());this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*Ae(this.stream());switch(t.type){case"document":return yield*Ae(this.document(t));case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*Ae(this.scalar(t));case"block-scalar":return yield*Ae(this.blockScalar(t));case"block-map":return yield*Ae(this.blockMap(t));case"block-seq":return yield*Ae(this.blockSequence(t));case"flow-collection":return yield*Ae(this.flowCollection(t));case"doc-end":return yield*Ae(this.documentEnd(t))}yield*Ae(this.pop())}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t!=null?t:this.stack.pop();if(n)if(this.stack.length===0)yield n;else{const r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),n.type==="flow-collection"&&LD(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=!Ys(o.start,"explicit-key-ind");return}break}case"block-seq":{const o=r.items[r.items.length-1];o.value?r.items.push({start:[],value:n}):o.value=n;break}case"flow-collection":{const o=r.items[r.items.length-1];!o||o.value?r.items.push({start:[],key:n,sep:[]}):o.sep?o.value=n:Object.assign(o,{key:n,sep:[]});return}default:yield*Ae(this.pop()),yield*Ae(this.pop(n))}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const o=n.items[n.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&AD(o.start)===-1&&(n.indent===0||o.start.every(s=>s.type!=="comment"||s.indent<n.indent))&&(r.type==="document"?r.end=o.start:r.items.push({start:o.start}),n.items.splice(-1,1))}}else{const r="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:r}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*Ae(this.lineEnd(t));switch(this.type){case"doc-start":{AD(t.start)!==-1?(yield*Ae(this.pop()),yield*Ae(this.step())):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=Eg(this.peek(2)),r=xu(n);let o;t.end?(o=t.end,o.push(this.sourceToken),delete t.end):o=[this.sourceToken];const s={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:r,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*Ae(this.lineEnd(t))}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
756
+ `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
757
+ `,n)+1}yield*Ae(this.pop());break;default:yield*Ae(this.pop()),yield*Ae(this.step())}}*blockMap(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const o="end"in n.value?n.value.end:void 0,s=Array.isArray(o)?o[o.length-1]:void 0;(s==null?void 0:s.type)==="comment"?o==null||o.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2],s=(r=o==null?void 0:o.value)==null?void 0:r.end;if(Array.isArray(s)){Array.prototype.push.apply(s,n.start),s.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const o=!this.onKeyLine&&this.indent===t.indent&&n.sep;let s=[];if(o&&n.sep&&!n.value){const i=[];for(let l=0;l<n.sep.length;++l){const a=n.sep[l];switch(a.type){case"newline":i.push(l);break;case"space":break;case"comment":a.indent>t.indent&&(i.length=0);break;default:i.length=0}}i.length>=2&&(s=n.sep.splice(i[1]))}switch(this.type){case"anchor":case"tag":o||n.value?(s.push(this.sourceToken),t.items.push({start:s}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!Ys(n.start,"explicit-key-ind")?n.start.push(this.sourceToken):o||n.value?(s.push(this.sourceToken),t.items.push({start:s})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}),this.onKeyLine=!0;return;case"map-value-ind":if(Ys(n.start,"explicit-key-ind"))if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Ys(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]});else if(Rz(n.key)&&!Ys(n.sep,"newline")){const i=xu(n.start),l=n.key,a=n.sep;a.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:l,sep:a}]})}else s.length>0?n.sep=n.sep.concat(s,this.sourceToken):n.sep.push(this.sourceToken);else if(Ys(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const i=xu(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||o?t.items.push({start:s,key:null,sep:[this.sourceToken]}):Ys(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);o||n.value?(t.items.push({start:s,key:i,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(i):(Object.assign(n,{key:i,sep:[]}),this.onKeyLine=!0);return}default:{const i=this.startBlockValue(t);if(i){o&&i.type!=="block-seq"&&Ys(n.start,"explicit-key-ind")&&t.items.push({start:s}),this.stack.push(i);return}}}}yield*Ae(this.pop()),yield*Ae(this.step())}*blockSequence(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const o="end"in n.value?n.value.end:void 0,s=Array.isArray(o)?o[o.length-1]:void 0;(s==null?void 0:s.type)==="comment"?o==null||o.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2],s=(r=o==null?void 0:o.value)==null?void 0:r.end;if(Array.isArray(s)){Array.prototype.push.apply(s,n.start),s.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||Ys(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const o=this.startBlockValue(t);if(o){this.stack.push(o);return}}yield*Ae(this.pop()),yield*Ae(this.step())}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*Ae(this.pop()),r=this.peek(1);while(r&&r.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:o,sep:[]}):n.sep?this.stack.push(o):Object.assign(n,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const r=this.startBlockValue(t);r?this.stack.push(r):(yield*Ae(this.pop()),yield*Ae(this.step()))}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===t.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*Ae(this.pop()),yield*Ae(this.step());else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const o=Eg(r),s=xu(o);LD(t);const i=t.end.splice(1,t.end.length);i.push(this.sourceToken);const l={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:s,key:t,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*Ae(this.lineEnd(t))}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
758
+ `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
759
+ `,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=Eg(t),r=xu(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=Eg(t),r=xu(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*Ae(this.pop())))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*Ae(this.pop()),yield*Ae(this.step());break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*Ae(this.pop()))}}};function Oz(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new $z||null,prettyErrors:t}}function X2e(e,t={}){const{lineCounter:n,prettyErrors:r}=Oz(t),o=new LI(n==null?void 0:n.addNewLine),s=new AI(t),i=Array.from(s.compose(o.parse(e)));if(r&&n)for(const l of i)l.errors.forEach(vy(e,n)),l.warnings.forEach(vy(e,n));return i.length>0?i:Object.assign([],{empty:!0},s.streamInfo())}function Dz(e,t={}){const{lineCounter:n,prettyErrors:r}=Oz(t),o=new LI(n==null?void 0:n.addNewLine),s=new AI(t);let i=null;for(const l of s.compose(o.parse(e),!0,e.length))if(!i)i=l;else if(i.options.logLevel!=="silent"){i.errors.push(new uc(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(i.errors.forEach(vy(e,n)),i.warnings.forEach(vy(e,n))),i}function Z2e(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);const o=Dz(e,n);if(!o)return null;if(o.warnings.forEach(s=>tz(o.options.logLevel,s)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:r},n))}function J2e(e,t,n){var o;let r=null;if(typeof t=="function"||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n=="string"&&(n=n.length),typeof n=="number"){const s=Math.round(n);n=s<1?void 0:s>8?{indent:8}:{indent:s}}if(e===void 0){const{keepUndefined:s}=(o=n!=null?n:t)!=null?o:{};if(!s)return}return new pf(e,r,n).toString(n)}const FD=Object.freeze(Object.defineProperty({__proto__:null,Alias:k0,CST:q2e,Composer:AI,Document:pf,Lexer:Tz,LineCounter:$z,Pair:Xr,Parser:LI,Scalar:$t,Schema:A0,YAMLError:OI,YAMLMap:Go,YAMLParseError:uc,YAMLSeq:Ta,YAMLWarning:bz,isAlias:Gc,isCollection:Vn,isDocument:af,isMap:cf,isNode:or,isPair:Ln,isScalar:Sn,isSeq:uf,parse:Z2e,parseAllDocuments:X2e,parseDocument:Dz,stringify:J2e,visit:_a,visitAsync:P0},Symbol.toStringTag,{value:"Module"}));var FI={},eMe=et;Object.defineProperty(FI,"__esModule",{value:!0});var NI=FI.default=void 0,tMe=eMe(tt()),nMe=Ze(),rMe=(0,tMe.default)((0,nMe.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");NI=FI.default=rMe;var BI={},oMe=et;Object.defineProperty(BI,"__esModule",{value:!0});var Az=BI.default=void 0,sMe=oMe(tt()),iMe=Ze(),lMe=(0,sMe.default)((0,iMe.jsx)("path",{d:"M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1L9.64 7.64zM6 8c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm0 12c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm6-7.5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5.5.22.5.5-.22.5-.5.5zM19 3l-6 6 2 2 7-7V3z"}),"ContentCut");Az=BI.default=lMe;var zI={},aMe=et;Object.defineProperty(zI,"__esModule",{value:!0});var PS=zI.default=void 0,cMe=aMe(tt()),uMe=Ze(),dMe=(0,cMe.default)((0,uMe.jsx)("path",{d:"M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"}),"ContentPaste");PS=zI.default=dMe;const fMe="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept";function pMe({file:e,addToBar:t,statusApi:n}){var T,F,O;const _=e,{parent:r,children:o,isRoot:s,byMasks:i}=_,l=Ft(_,["parent","children","isRoot","byMasks"]),[a,u]=c.useState(l);c.useEffect(()=>{u(Object.assign(Xb(Kw,()=>null),l))},[e]);const f=c.useMemo(()=>{let N=e.parent;for(;N;){if(N.default!=null)return N.default;N=N.parent}},[e]),{source:p}=e,m=e.type==="folder",v=!e.type&&p&&e.size<0,y=a.url!==void 0,g=p!==void 0,C=g&&m,b=Qo("lg"),w=!y&&(b||g),S=!y&&b||g&&!C,k=e.accept>""||m&&((F=e.can_upload)!=null?F:(T=e.inherited)==null?void 0:T.can_upload),M=m,E=eE(),{movingFile:I}=Wi(),{data:R,element:A}=Qn("get_accounts");if(A||!R)return A;const $=R.list,L=!g&&"Works only on folders with source! ",V={can_read:!y,can_see:!0,can_archive:!y,can_list:m,can_upload:m&&g,can_delete:m&&g};return c.createElement(Hc,{values:a,set(N,H){u(K=>{var Y;const J=H==="source"&&K.name&&((Y=K.source)==null?void 0:Y.endsWith(K.name))?V4(N):K.name;return st(xe({},K),{name:J,[H]:N})})},barSx:xe({gap:2,width:"100%"},E),stickyBar:!0,addToBar:[c.createElement(mn,{icon:Az,disabled:s||I===e.id,title:"You can also use drag & drop to move items",onClick(){ln.movingFile=e.id,kt(c.createElement(ze,{},"Now that this is marked for moving, click on the destination folder, and then the paste button ",c.createElement(PS)),"info")}}),I&&c.createElement(mn,{icon:PS,disabled:e.type!=="folder"||e.id.startsWith(I)||e.id===I.replace(/[^/]+\/?$/,""),title:I,onClick(){return ln.movingFile="",zz(I,e.id)}}),!s&&c.createElement(mn,{icon:_l,title:"Delete",confirm:"Delete?",onClick:()=>ct("del_vfs",{uris:[e.id]}).then(()=>$a())}),...Zb(t)],onError:kt,save:{sx:Zd(!Qv(a,l)),onClick(){return ot(this,null,function*(){const N=rt.omit(a,["ctime","mtime","size","id"]);N.masks||(N.masks=null),yield ct("set_vfs",{uri:a.id,props:N}),N.name!==e.name&&(ln.selectedFiles[0].id=e.parent.id+N.name+(m?"/":"")),$a()})}},fields:[m&&g&&c.createElement(kr,{severity:"info"},'To set permissions on individual items in folder, add them by clicking Add button, and then "from disk"'),s?c.createElement(kr,{severity:"info"},"This is Home, the root of your shared files. Options set here will be applied to all files."):{k:"name",required:!0,xl:!0,helperText:g&&"You can decide a name that's different from the one on your disk"},y?{k:"url",label:"URL",lg:12,required:!0}:{k:"source",label:"Load content from disk",xl:!0,comp:Ap,files:v||!m,folders:v||m,placeholder:"no",helperText:a.source?"Content from this path will be listed, but you can also add more":"This field is empty, and thus this element is a virtual-folder. You can set this field, pointing at any folder/file on disk."},!y&&{k:"id",comp:hMe,statusApi:n,xs:12},j("can_read","Who can see but not download will be asked to login"),j("can_see","If you can't see, you may still download with a direct link"),j("can_archive","Should this be included when user downloads as ZIP",{lg:m?!0:12}),j("can_list","Permission to see content of folders",{contentText:"subfolders"}),j("can_delete",[L,"Those who can delete can also rename and cut/move"]),j("can_upload",L,{contentText:"subfolders"}),S&&{k:"size",comp:$p,lg:4,toField:xl},w&&{k:"ctime",comp:$p,md:6,lg:S&&4,label:"Created",toField:Gx},w&&{k:"mtime",comp:$p,md:6,lg:S&&4,label:"Modified",toField:Gx},k&&{k:"accept",label:"Accept on upload",placeholder:"anything",xl:M?4:12,helperText:c.createElement(Ls,{href:fMe,target:"_blank"},"Example: .zip")},M&&{k:"default",comp:Dn,xl:!0,label:"Serve as website if index.html is found"+(f&&a.default==null?" (inherited)":""),value:(O=a.default)!=null?O:f,toField:Boolean,fromField:N=>N&&!f?"index.html":N?null:!1,helperText:er("...instead of showing list of files")},m&&{k:"masks",multiline:!0,toField:FD.stringify,fromField:N=>N?FD.parse(N):void 0,sx:{"& textarea":{fontFamily:"monospace"}},helperText:["Special field, leave empty unless you know what you are doing. YAML syntax. ",Oc("Permissions","(examples)")]}]});function j(N,H,K={}){var Y,X;if(!V[N])return null;const Q=[N,...jc(rt.map(V,(ee,se)=>!ee&&se))],J=rt.difference(Object.keys(Kw),Q);return xe({comp:Lz,k:N,lg:6,xl:4,parent:r,accounts:$,helperText:H,isDir:m,otherPerms:J.map(ee=>({value:ee,label:"As "+kS(ee)})),label:"Who can "+kS(N),inherit:(X=(Y=e.inherited)==null?void 0:Y[N])!=null?X:Kw[N],byMasks:i==null?void 0:i[N],fromField:ee=>ee!=null?ee:null},K)}}function kS(e){const t=e.split("_")[1];return t==="read"?"download":t==="archive"?"zip":t}function Lz(y){var g=y,{value:e,onChange:t,parent:n,inherit:r,accounts:o,helperText:s,otherPerms:i,byMasks:l,hideValues:a,isChildren:u,isDir:f,contentText:p="folder content",setApi:m}=g,v=Ft(g,["value","onChange","parent","inherit","accounts","helperText","otherPerms","byMasks","hideValues","isChildren","isDir","contentText","setApi"]);const C=(l!==void 0?"As per mask: ":n!==void 0?"As parent: ":"Default: ")+ND(l!=null?l:r),b=sfe(e),w=b?e.this:e,S=c.useMemo(()=>jc([{value:null,label:C},{value:!0},{value:!1},{value:"*"},...i,{value:[],label:"Select accounts"}].map(I=>!(a!=null&&a.includes(I.value))&&xe({label:rt.capitalize(ND(I.value))},I))),[r,n,w]),k=500,M=Array.isArray(w);return c.createElement(ze,{sx:{borderRight:b?"8px solid #8884":void 0,transition:`all ${k}ms`}},c.createElement(Kr,st(xe({},v),{value:M?[]:w!=null?w:null,onChange(I,{event:R}){t(b?E(st(xe({},e),{this:I!=null?I:void 0})):I!=null?I:void 0,{was:e,event:R})},options:S})),c.createElement(Nv,{in:M,timeout:k},M&&c.createElement(o0,{label:o!=null&&o.length?"Accounts for "+v.label:"You didn't create any account yet",value:w,onChange:t,options:(o==null?void 0:o.map(I=>({value:I.username,label:I.username})))||[]})),c.createElement(qd,{},s,!u&&f&&c.createElement(al,{sx:{display:"block",mt:-.5},onClick(I){t(b?w:{this:w,children:w==null?!r:void 0},{was:e,event:I})}},b?"Different permission for ":"Same permission for ",p)),!u&&c.createElement(Nv,{in:b,timeout:k},c.createElement(Lz,{label:"Permission for "+p,parent:n,inherit:r,accounts:o,otherPerms:i,isDir:f,value:b&&(e==null?void 0:e.children),isChildren:!0,hideValues:[w!=null?w:r,w],onChange(I,{event:R}){b&&t(E(st(xe({},e),{children:I})),{was:e,event:R})}})));function E(I){return I.this===I.children?I.this:I}}function ND(e){return e===!1?"no one":e===!0?"anyone":e==="*"?"any account (login required)":Array.isArray(e)?e.join(", "):typeof e=="string"?"as "+kS(e):"*UNKNOWN*"+JSON.stringify(e)}function hMe({value:e,statusApi:t}){const{data:n,reload:r,error:o}=t,s=(n==null?void 0:n.urls.https)||(n==null?void 0:n.urls.http),i=(n==null?void 0:n.baseUrl)&&new URL(n.baseUrl).hostname,l=c.useMemo(()=>{var u,f;return i&&((f=(u=n.roots)==null?void 0:u.find(p=>Sfe(i,p.host)))==null?void 0:f.root)},[n]);l&&e&&(e=e.indexOf(l)===1?e.slice(l.length):void 0);const a=Oi((n==null?void 0:n.baseUrl)||"",e);return c.createElement(ze,{display:"flex"},s?c.createElement($p,{label:"Link",value:a||`outside of configured base address (${i})`,error:o,end:c.createElement(ze,{},c.createElement(mn,{icon:NI,title:"Copy",disabled:!a,onClick:()=>navigator.clipboard.writeText(a)}),c.createElement(mn,{icon:jE,title:"Change",onClick(){Fz().then(r)}}))}):"error")}function Fz(){return ot(this,null,function*(){return new Promise(e=>ot(this,null,function*(){const t=yield ct("get_status"),{base_url:n}=yield ct("get_config",{only:["base_url"]}),r=t.urls.https||t.urls.http,{close:o}=Ro({title:"Base address",Content(){const[s,i]=c.useState(n||""),l=new URL(s||r[0]).protocol+"//",a=r.includes(s)?"":s.slice(l.length),u=c.createElement(Wk,{sx:{ml:2}});return c.createElement(ze,{display:"flex",flexDirection:"column"},c.createElement(ze,{mb:2},"Choose a base address for your links"),c.createElement(Qd,{},c.createElement(Pr,{selected:!s,onClick:()=>f("")},"Automatic",!s&&u),r.map(m=>c.createElement(Pr,{key:m,selected:m===s,onClick:()=>f(m)},m,m===s&&u))),c.createElement(Ui,{label:"Custom IP or domain",helperText:er(`You can type any address but *you* are responsible to make the address work.
760
+ This functionality is just to help you copy the link in case you have a domain or a complex network configuration.`),value:a,onChange:m=>f(Oi(l,m)),start:c.createElement(Kr,{value:l,onChange:m=>a?f(m+a):rr("Enter domain first"),options:["http://","https://"],size:"small",variant:"standard",sx:{"& .MuiSelect-select":{pt:"1px",pb:0}}}),sx:{mt:2}}),c.createElement(ze,{mt:2,textAlign:"right"},c.createElement(Xo,{icon:Vh,children:"Save",onClick(){return ot(this,null,function*(){s!==n&&(yield ct("set_config",{values:{base_url:s.replace(/\/$/,"")}})),e(s),o()})}})));function f(m){m.endsWith("/")&&(m=m.slice(0,-1)),i(m)}}})}))})}let ES;function mMe(){var w,S,k;const[e]=c.useState(()=>new Map),{vfs:t,selectedFiles:n,movingFile:r}=Wi(),{data:o,reload:s,element:i}=Qn("get_vfs");c.useMemo(()=>t||s(),[t,s]);const l="md",a=Qo(l),u=Qn("get_status"),{data:f}=u,p=c.useMemo(()=>{const M=f==null?void 0:f.baseUrl,E=(f==null?void 0:f.urls.https)||(f==null?void 0:f.urls.http);return M&&!E.includes(M)?[M,...E]:E},[f]);function m(){ln.selectedFiles=[]}const v=n.length?n.length===1?c.createElement(pMe,{addToBar:a&&[c.createElement(ze,{flex:1}),IS(n[0]),c.createElement(mn,{icon:zh,title:"Close",onClick:m})],statusApi:u,file:n[0]}):c.createElement(c.Fragment,{},c.createElement(qr,{},c.createElement(qn,{variant:"h6"},n.length+" selected"),c.createElement(Yn,{onClick:gMe,startIcon:c.createElement(_l)},"Remove")),c.createElement(Nh,{dense:!0,disablePadding:!0},n.map(M=>c.createElement(fk,{key:M.id},c.createElement(Ri,{primary:M.name,secondary:M.source}))))):null,[y,g]=c.useState(()=>rt.noop);if(c.useEffect(()=>{var M;r===((M=n[0])==null?void 0:M.id)&&y()},[r,y]),c.useEffect(()=>{if(a||!v)return;const{close:M}=Ro({title:n.length>1?"Multiple selection":c.createElement(qr,{},IS(n[0]),n[0].name||"Home"),Content:()=>v,onClose:m});return g(()=>M),M},[a,n]),c.useEffect(()=>{if(ln.vfs=void 0,!o)return;e.clear();const{root:M}=o;if(!M)return;M.isRoot=!0,I(M),ln.vfs=M;const E=ES||ln.selectedFiles.map(R=>R.id);ES=void 0,ln.selectedFiles=jc(E.map(R=>e.get(R)));function I(R,A="/",$=void 0){if(R.parent=$,R.id=R.isRoot?"/":Oi(A,encodeURIComponent(R.name),R.type==="folder"?"/":""),e.set(R.id,R),!!R.children)for(const L of R.children)I(L,R.id,R)}},[o,e]),i)return e.clear(),i;const b=!((S=(w=o==null?void 0:o.root)==null?void 0:w.children)!=null&&S.length)&&!((k=o==null?void 0:o.root)!=null&&k.source)?{severity:"warning",children:"Add something to your shared files — click Add"}:p&&{severity:"info",children:["Your shared files can be browsed from ",Tue(" or ",p.slice(0,3).map(M=>c.createElement(Ls,{href:M,target:"frontend"},M)))]};return c.createElement(ri,{container:!0,rowSpacing:1,columnSpacing:2},c.createElement(ri,{item:!0,mb:2,xs:12},c.createElement(kr,{severity:"info"},"If you rename or delete here, it's virtual, and only affects what is presented to the users"),b&&c.createElement(kr,b)),c.createElement(ri,{item:!0,[l]:7,lg:6,xl:5},c.createElement(qn,{variant:"h6",mb:1},"Virtual File System"),c.createElement(UIe,{statusApi:u}),t&&c.createElement(vMe,{id2node:e,statusApi:u})),a&&v&&c.createElement(ri,{item:!0,[l]:!0,maxWidth:"100%"},c.createElement(Rb,{sx:{overflow:"initial"}},c.createElement(Ob,{},v))))}function $a(e){ES=e,ln.vfs=void 0}function gMe(){return ot(this,null,function*(){const e=ln.selectedFiles;if(e.length&&(yield xr(`Delete ${e.length} item(s)?`)))try{const t=e.map(o=>o.id);rt.pull(t,"/");const{errors:n}=yield ct("del_vfs",{uris:t}),r=t.filter((o,s)=>n[s]);if(r.length)return kt("Following elements couldn't be deleted: "+r.join(", "),"error");$a()}catch(t){yield kt(t)}})}const Nz=O3,Bz=A3;function vMe({id2node:e,statusApi:t}){const{vfs:n,selectedFiles:r}=Wi(),[o,s]=c.useState(r.map(v=>v.id)),[i,l]=c.useState(Array.from(e.keys())),a=c.useRef(),u=c.useRef();if(!n)return null;const f="vfs";return c.createElement(_3,{ref:u,expanded:i,selected:o,multiSelect:!0,id:f,sx:{overflowX:"auto",maxWidth:u.current&&`calc(100vw - ${16+u.current.offsetLeft}px)`,"& ul":{borderLeft:"1px dashed #444",marginLeft:"15px",paddingLeft:"15px"}},onNodeSelect(v,y){typeof y!="string"&&(s(y),ln.selectedFiles=jc(y.map(g=>e.get(g))))}},m(n));function p(v){return v!==void 0&&v!==!0}function m(v){var S,k,M,E;let{id:y,name:g,isRoot:C}=v;if(!y)debugger;const b=v.type==="folder";return c.createElement(hS,{ref(I){I==null||I.addEventListener("focusin",R=>R.stopImmediatePropagation())},label:c.createElement(ze,{draggable:!C,onDragStart(){a.current=y},onDragOver(I){if(!b)return;const R=a.current;R!=null&&R.startsWith(y)&&!R.slice(y.length+1).includes("/")||I.preventDefault()},onDrop(){return ot(this,null,function*(){const I=a.current;I&&(yield xr(`Moving ${I} under ${y}`))&&zz(I,y)})},sx:{display:"flex",gap:".5em",lineHeight:"2em",alignItems:"center"}},c.createElement(ze,{display:"flex",flex:0},IS(v),c.createElement(ze,{sx:{flex:0,ml:"2px",my:"2px","&>*":{fontSize:"87%",opacity:.6,mt:"-2px"},display:"grid",gridAutoFlow:"column",gridTemplateRows:"auto auto"}},v.can_delete!==void 0&&Wr(_l,"Delete permission"),v.can_upload!==void 0&&Wr(Uh,"Upload permission"),!C&&!v.source&&!v.url&&Wr(N3,"Virtual (no source)"),p(v.can_see)&&Wr(L3,"Restrictions on who can see"),p(v.can_read)&&Wr(l0,"Restrictions on who can download"),v.default&&Wr(F3,"Act as website"),v.masks&&Wr(R3,"Masks"),v.size===-1&&Wr(B3,"Source not found"),Ma((k=(S=t.data)==null?void 0:S.roots)==null?void 0:k.find(I=>I.root===y.slice(1)),I=>I&&Wr(Fb,`home for ${I.host}`)))),C?"Home":(()=>{var $;const I=($=v.parent)==null?void 0:$.source,{source:R}=v,A=I&&(R!=null&&R.startsWith(I))?"."+R.slice(I.length):R;return!A||!(R!=null&&R.endsWith(g))||A.length>45?c.createElement(ze,{lineHeight:"1.2em"},g):c.createElement("span",{},c.createElement("span",{style:{opacity:.4}},A.slice(0,-g.length)),A.slice(-g.length))})()),key:g,collapseIcon:c.createElement($3,{onClick(I){l(i.filter(R=>R!==y)),I.preventDefault(),I.stopPropagation()}}),expandIcon:c.createElement(T3,{onClick(I){l([...i,y]),I.preventDefault(),I.stopPropagation()}}),nodeId:y},C&&!((M=v.children)!=null&&M.length)?c.createElement(hS,{nodeId:"?",label:c.createElement("i",{},"nothing here")}):(E=v.children)==null?void 0:E.map(m))}}function zz(e,t){ct("move_vfs",{from:e,parent:t}).then(()=>{$a([t+e.slice(1+e.lastIndexOf("/",e.length-2))])},kt)}function IS(e){return e.isRoot?Wr(Fb,"home, or root if you like"):e.type==="folder"?Wr(Nz,"Folder"):e.url?Wr(D3,"Web-link"):Wr(Bz,"File")}var BD=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function yMe(e,t){return!!(e===t||BD(e)&&BD(t))}function bMe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!yMe(e[n],t[n]))return!1;return!0}function gC(e,t){t===void 0&&(t=bMe);var n,r=[],o,s=!1;function i(){for(var l=[],a=0;a<arguments.length;a++)l[a]=arguments[a];return s&&n===this&&t(l,r)||(o=e.apply(this,l),s=!0,n=this,r=l),o}return i}var wMe=typeof performance=="object"&&typeof performance.now=="function",zD=wMe?function(){return performance.now()}:function(){return Date.now()};function VD(e){cancelAnimationFrame(e.id)}function CMe(e,t){var n=zD();function r(){zD()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var vC=-1;function jD(e){if(e===void 0&&(e=!1),vC===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),vC=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return vC}var Su=null;function HD(e){if(e===void 0&&(e=!1),Su===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?Su="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Su="negative":Su="positive-ascending"),document.body.removeChild(t),Su}return Su}var xMe=150,SMe=function(t,n){return t};function PMe(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,s=e.getOffsetForIndexAndAlignment,i=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,a=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return t=function(p){xb(m,p);function m(y){var g;return g=p.call(this,y)||this,g._instanceProps=a(g.props,_x(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:_x(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=gC(function(C,b,w,S){return g.props.onItemsRendered({overscanStartIndex:C,overscanStopIndex:b,visibleStartIndex:w,visibleStopIndex:S})}),g._callOnScroll=void 0,g._callOnScroll=gC(function(C,b,w){return g.props.onScroll({scrollDirection:C,scrollOffset:b,scrollUpdateWasRequested:w})}),g._getItemStyle=void 0,g._getItemStyle=function(C){var b=g.props,w=b.direction,S=b.itemSize,k=b.layout,M=g._getItemStyleCache(u&&S,u&&k,u&&w),E;if(M.hasOwnProperty(C))E=M[C];else{var I=n(g.props,C,g._instanceProps),R=o(g.props,C,g._instanceProps),A=w==="horizontal"||k==="horizontal",$=w==="rtl",L=A?I:0;M[C]=E={position:"absolute",left:$?void 0:L,right:$?L:void 0,top:A?0:I,height:A?"100%":R,width:A?R:"100%"}}return E},g._getItemStyleCache=void 0,g._getItemStyleCache=gC(function(C,b,w){return{}}),g._onScrollHorizontal=function(C){var b=C.currentTarget,w=b.clientWidth,S=b.scrollLeft,k=b.scrollWidth;g.setState(function(M){if(M.scrollOffset===S)return null;var E=g.props.direction,I=S;if(E==="rtl")switch(HD()){case"negative":I=-S;break;case"positive-descending":I=k-w-S;break}return I=Math.max(0,Math.min(I,k-w)),{isScrolling:!0,scrollDirection:M.scrollOffset<S?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._onScrollVertical=function(C){var b=C.currentTarget,w=b.clientHeight,S=b.scrollHeight,k=b.scrollTop;g.setState(function(M){if(M.scrollOffset===k)return null;var E=Math.max(0,Math.min(k,S-w));return{isScrolling:!0,scrollDirection:M.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._outerRefSetter=function(C){var b=g.props.outerRef;g._outerRef=C,typeof b=="function"?b(C):b!=null&&typeof b=="object"&&b.hasOwnProperty("current")&&(b.current=C)},g._resetIsScrollingDebounced=function(){g._resetIsScrollingTimeoutId!==null&&VD(g._resetIsScrollingTimeoutId),g._resetIsScrollingTimeoutId=CMe(g._resetIsScrolling,xMe)},g._resetIsScrolling=function(){g._resetIsScrollingTimeoutId=null,g.setState({isScrolling:!1},function(){g._getItemStyleCache(-1,null)})},g}m.getDerivedStateFromProps=function(g,C){return kMe(g,C),f(g),null};var v=m.prototype;return v.scrollTo=function(g){g=Math.max(0,g),this.setState(function(C){return C.scrollOffset===g?null:{scrollDirection:C.scrollOffset<g?"forward":"backward",scrollOffset:g,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(g,C){C===void 0&&(C="auto");var b=this.props,w=b.itemCount,S=b.layout,k=this.state.scrollOffset;g=Math.max(0,Math.min(g,w-1));var M=0;if(this._outerRef){var E=this._outerRef;S==="vertical"?M=E.scrollWidth>E.clientWidth?jD():0:M=E.scrollHeight>E.clientHeight?jD():0}this.scrollTo(s(this.props,g,C,k,this._instanceProps,M))},v.componentDidMount=function(){var g=this.props,C=g.direction,b=g.initialScrollOffset,w=g.layout;if(typeof b=="number"&&this._outerRef!=null){var S=this._outerRef;C==="horizontal"||w==="horizontal"?S.scrollLeft=b:S.scrollTop=b}this._callPropsCallbacks()},v.componentDidUpdate=function(){var g=this.props,C=g.direction,b=g.layout,w=this.state,S=w.scrollOffset,k=w.scrollUpdateWasRequested;if(k&&this._outerRef!=null){var M=this._outerRef;if(C==="horizontal"||b==="horizontal")if(C==="rtl")switch(HD()){case"negative":M.scrollLeft=-S;break;case"positive-ascending":M.scrollLeft=S;break;default:var E=M.clientWidth,I=M.scrollWidth;M.scrollLeft=I-E-S;break}else M.scrollLeft=S;else M.scrollTop=S}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&VD(this._resetIsScrollingTimeoutId)},v.render=function(){var g=this.props,C=g.children,b=g.className,w=g.direction,S=g.height,k=g.innerRef,M=g.innerElementType,E=g.innerTagName,I=g.itemCount,R=g.itemData,A=g.itemKey,$=A===void 0?SMe:A,L=g.layout,V=g.outerElementType,j=g.outerTagName,_=g.style,T=g.useIsScrolling,F=g.width,B=this.state.isScrolling,O=w==="horizontal"||L==="horizontal",N=O?this._onScrollHorizontal:this._onScrollVertical,H=this._getRangeToRender(),K=H[0],Q=H[1],J=[];if(I>0)for(var Y=K;Y<=Q;Y++)J.push(c.createElement(C,{data:R,key:$(Y,R),index:Y,isScrolling:T?B:void 0,style:this._getItemStyle(Y)}));var X=r(this.props,this._instanceProps);return c.createElement(V||j||"div",{className:b,onScroll:N,ref:this._outerRefSetter,style:x({position:"relative",height:S,width:F,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:w},_)},c.createElement(M||E||"div",{children:J,ref:k,style:{height:O?"100%":X,pointerEvents:B?"none":void 0,width:O?X:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var C=this._getRangeToRender(),b=C[0],w=C[1],S=C[2],k=C[3];this._callOnItemsRendered(b,w,S,k)}}if(typeof this.props.onScroll=="function"){var M=this.state,E=M.scrollDirection,I=M.scrollOffset,R=M.scrollUpdateWasRequested;this._callOnScroll(E,I,R)}},v._getRangeToRender=function(){var g=this.props,C=g.itemCount,b=g.overscanCount,w=this.state,S=w.isScrolling,k=w.scrollDirection,M=w.scrollOffset;if(C===0)return[0,0,0,0];var E=i(this.props,M,this._instanceProps),I=l(this.props,E,M,this._instanceProps),R=!S||k==="backward"?Math.max(1,b):1,A=!S||k==="forward"?Math.max(1,b):1;return[Math.max(0,E-R),Math.max(0,Math.min(C-1,I+A)),E,I]},m}(c.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var kMe=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},EMe=PMe({getItemOffset:function(t,n){var r=t.itemSize;return n*r},getItemSize:function(t,n){var r=t.itemSize;return r},getEstimatedTotalSize:function(t){var n=t.itemCount,r=t.itemSize;return r*n},getOffsetForIndexAndAlignment:function(t,n,r,o,s,i){var l=t.direction,a=t.height,u=t.itemCount,f=t.itemSize,p=t.layout,m=t.width,v=l==="horizontal"||p==="horizontal",y=v?m:a,g=Math.max(0,u*f-y),C=Math.min(g,n*f),b=Math.max(0,n*f-y+f+i);switch(r==="smart"&&(o>=b-y&&o<=C+y?r="auto":r="center"),r){case"start":return C;case"end":return b;case"center":{var w=Math.round(b+(C-b)/2);return w<Math.ceil(y/2)?0:w>g+Math.floor(y/2)?g:w}case"auto":default:return o>=b&&o<=C?o:o<b?b:C}},getStartIndexForOffset:function(t,n){var r=t.itemCount,o=t.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/o)))},getStopIndexForStartIndex:function(t,n,r){var o=t.direction,s=t.height,i=t.itemCount,l=t.itemSize,a=t.layout,u=t.width,f=o==="horizontal"||a==="horizontal",p=n*l,m=f?u:s,v=Math.ceil((m+r-p)/l);return Math.max(0,Math.min(i-1,n+v-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}});function Vz({onSelect:e,multiple:t=!0,files:n=!0,folders:r=!0,fileMask:o,from:s=""}){const[i,l]=c.useState(s),[a,u]=c.useState(!1),f=c.useRef(!1);c.useEffect(()=>{ct("resolve_path",{path:s,closestFolder:!0}).then(_=>{typeof _.path=="string"&&(l(_.path),f.current=_.path[1]===":")}).finally(()=>u(!0))},[s]);const{list:p,error:m,connecting:v,reload:y}=Sl(a&&"get_ls",{path:i,files:n,fileMask:o});c.useEffect(()=>{C([]),w("")},[i]);const[g,C]=c.useState([]),[b,w]=c.useState(""),S=c.useMemo(()=>rt.debounce(_=>w(_)),[]),k=c.useMemo(()=>{const _=new RegExp(rt.escapeRegExp(b),"i");return T=>_.test(T)},[b]),[M,E]=c.useState(0),I=c.useMemo(()=>p.filter(_=>k(_.n)),[p,k]),R=f.current?"":"/",A=f.current?"\\":"/",$=afe(A,i),L=i.length<2;return c.createElement(c.Fragment,{},c.createElement(ze,{display:"flex",gap:1},c.createElement(Yn,{title:"root",disabled:L,onClick(){l(R)}},c.createElement(x3)),c.createElement(Yn,{disabled:L,title:"parent folder",onClick(){const _=/[\\/]$/.test(i)?i.slice(0,-1):i,T=bfe(_)?R:_.slice(0,_.lastIndexOf(A)||1);l(T)}},c.createElement(WE)),c.createElement(Ui,{label:"Current path",value:i,InputLabelProps:{shrink:!0},onChange(_){return ot(this,null,function*(){if(!_)return l(R);const T=yield ct("resolve_path",{path:_});if(T.isFolder===!1)return n?e([_]):l(_.slice(0,-V4(_)));l(T.path)})}})),m?c.createElement(kr,{severity:"error"},q4(m)):c.createElement(c.Fragment,{},c.createElement(ze,{ref(_){if(!_)return;const T=(_==null?void 0:_.clientHeight)-1;T-M>1&&E(T)},sx:{flex:1,display:"flex",flexDirection:"column"}},p.length?c.createElement(EMe,{width:"100%",height:M,itemSize:46,itemCount:I.length,overscanCount:5,children({index:_,style:T}){const F=I[_],B=F.k==="d";return c.createElement(Pr,{style:st(xe({},T),{padding:0}),key:F.n,onClick(){B?l($+F.n):e([$+F.n])}},t&&c.createElement(NN,{checked:g.includes(F.n),disabled:!r&&B,onClick(O){const N=F.n,H=g.filter(K=>K!==N);C(H.length<g.length?H:[...g,N]),O.stopPropagation()}}),c.createElement(hl,{},c.createElement(F.k?Nz:Bz)),c.createElement(Ri,{sx:{whiteSpace:"pre-wrap",wordBreak:"break-all"}},F.n),!B&&F.s!==void 0&&c.createElement(qn,{variant:"body2",color:"text.secondary",ml:4,mr:1},xl(F.s)))}}):c.createElement(Hh,{flex:1,mt:"4em"},v?s5():"No elements in this folder")),c.createElement(qr,{alignItems:"stretch"},(t||r||!n)&&c.createElement(Yn,{variant:"contained",disabled:!i||!r&&!g.length&&n,sx:{minWidth:"max-content"},onClick(){e(g.length?g.map(_=>$+_):[i])}},n&&(g.length||!r)?`Select (${g.length})`:"Select this folder"),c.createElement(Na,{size:"small",value:b,label:`Filter results (${I.length}${I.length<p.length?"/"+p.length:""})`,onChange(_){S(_.target.value)},sx:{flex:1}}),c.createElement(mn,{icon:C3,doneMessage:!0,title:"Create folder",sx:{mt:"5px"},onClick(){return ot(this,null,function*(){const _=yield jh("New folder name");if(!_)return!1;yield ct("mkdir",{path:`${i}/${_}`}),y()})}}))))}function Ap(a){var u=a,{value:e,onChange:t,files:n=!0,folders:r=!1,fileMask:o,defaultPath:s,title:i}=u,l=Ft(u,["value","onChange","files","folders","fileMask","defaultPath","title"]);const f=Qo("md");return c.createElement(Ui,st(xe({},l),{value:e,onChange:t,onTyping:p=>!p.includes(`
761
+ `)&&p,InputProps:{multiline:!0,endAdornment:c.createElement(Cl,{position:"end"},c.createElement(mn,{icon:w3,title:"Browse files...",edge:"end",onClick(){const{close:p}=Ro({title:i!=null?i:n?"Pick a file":"Pick a folder",dialogProps:{fullScreen:!f,sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){return c.createElement(Vz,{multiple:!1,folders:r,files:n,fileMask:o,from:e||s,onSelect(v){return ot(this,null,function*(){var C;let y=v==null?void 0:v[0];if(!y)return;const g=(C=yield ct("get_cwd"))==null?void 0:C.path;y.startsWith(g)&&(y=y.slice(g.length+1)||"."),t(y,{was:e,event:"picker"}),p()})}})}})}}))}}))}var VI={},IMe=et;Object.defineProperty(VI,"__esModule",{value:!0});var ov=VI.default=void 0,MMe=IMe(tt()),_Me=Ze(),TMe=(0,MMe.default)((0,_Me.jsx)("path",{d:"M22 13v3c0 1.1-.9 2-2 2h-3l1 1v2H6v-2l1-1H4c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h8v2H4v11h16v-3h2zm-7 2-5-5h4V3h2v7h4l-5 5z"}),"BrowserUpdated");ov=VI.default=TMe;var jI={},$Me=et;Object.defineProperty(jI,"__esModule",{value:!0});var jz=jI.default=void 0,RMe=$Me(tt()),OMe=Ze(),DMe=(0,RMe.default)((0,OMe.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");jz=jI.default=DMe;var HI={},AMe=et;Object.defineProperty(HI,"__esModule",{value:!0});var Hz=HI.default=void 0,LMe=AMe(tt()),FMe=Ze(),NMe=(0,LMe.default)((0,FMe.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");Hz=HI.default=NMe;var UI={},BMe=et;Object.defineProperty(UI,"__esModule",{value:!0});var Uz=UI.default=void 0,zMe=BMe(tt()),VMe=Ze(),jMe=(0,zMe.default)((0,VMe.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"OpenInNew");Uz=UI.default=jMe;function HMe(){var E,I,R,$;const e=" — ",{username:t}=Wi(),{data:n,reload:r,element:o}=Qn("get_status"),{data:s}=Qn("get_vfs"),{data:i}=Qn(t&&"get_account"),l=Qn("get_config",{only:["https_port","cert","private_key","proxies","update_to_beta"]}),{list:a}=Sl("get_plugins"),[u,f]=c.useState(!1),{list:p}=Sl(u&&"get_plugin_updates"),[m,v]=c.useState();if(o||!n)return o;const{http:y,https:g}=n,C=!(y!=null&&y.listening)&&(g!=null&&g.listening)?"s":"",b=C?g:(y==null?void 0:y.listening)&&y,w=b&&`http${C}://`+window.location.hostname+(b.port===(C?443:80)?"":":"+b.port),S=rt.pick(n,["http","https"]),k=Xb(S,V=>V.busy?[`port ${V.port} already used by ${V.busy}${e}choose a `,Ig("different port"),` or stop ${V.busy}`]:V.error),M=k&&jc(Object.entries(k).map(([V,j])=>j&&[er(`Protocol <u>${V}</u> cannot work: `),j,(GI(j)||KI(j))&&[e,c.createElement(al,{onClick(){wy().then(()=>Bh(999)).then(l.reload).then(r)}},"make one")," or ",e,Ig("provide adequate files")]]));return c.createElement(ze,{display:"flex",gap:2,flexDirection:"column",alignItems:"flex-start",height:"100%"},t&&oo("","Welcome "+t),M.length?ch(M.map(V=>oo("error",ch(V)))):oo("success","Server is working"),s?!((I=(E=s.root)==null?void 0:E.children)!=null&&I.length)&&!((R=s.root)!=null&&R.source)?oo("warning","You have no files shared",e,WMe("add some")):oo("",er("This is Admin-panel, where you manage your server. Access your files on "),c.createElement(Ls,{target:"frontend",href:"../.."},"Front-end",c.createElement(Hz,{sx:{verticalAlign:"sub",ml:".2em"}}))):c.createElement(Vv),!w&&oo("warning","Frontend unreachable: ",rt.map(k,(V,j)=>j+" "+(V?"is in error":"is off")).join(", "),!M.length&&[e,Ig("switch http or https on")]),a.find(V=>V.badApi)&&oo("warning","Some plugins may be incompatible"),!(i!=null&&i.adminActualAccess)&&oo("",er("On <u>localhost</u> you don't need to login"),e,"to access from another computer ",c.createElement(i0,{to:"accounts"},er("create an account with *admin* permission"))),MS(l,n)&&oo("warning",MS(l,n),e,Ig("set the number of proxies"),e,"unless you are sure and you can ",c.createElement(Yn,{size:"small",onClick(){return ot(this,null,function*(){(yield xr("Go on only if you know what you are doing"))&&(yield ct("set_config",{values:{ignore_proxies:!0}}))&&l.reload()})}},"ignore this warning"),e,Oc("Proxy-warning","Explanation")),((($=l.data)==null?void 0:$.proxies)>0||(n==null?void 0:n.proxyDetected))&&oo("",Oc("Reverse-proxy","Read our guide on proxies")),n.frpDetected&&oo("warning",'FRP is detected. It should not be used with "type = tcp" with HFS. Possible solutions are',c.createElement("ol",{},c.createElement("li",{},"configure FRP with type=http (best solution)"),c.createElement("li",{},er("configure FRP to connect to HFS <u>not</u> with 127.0.0.1 (safe, but you won't see users' IPs)")),c.createElement("li",{},`disable "admin access for localhost" in HFS (safe, but you won't see users' IPs)`))),oo("",c.createElement(Ls,{target:"support",href:Qb+"discussions"},"Get support")),p.length>0&&oo("success","Updates available for plugin(s): "+p.map(V=>V.id).join(", ")),n.updatePossible==="local"?c.createElement(Xo,{icon:ov,onClick:()=>yC()},"Update from local file"):m?Ma(rt.find(m,"isNewer"),V=>!m.length||!n.updatePossible&&!V?oo("","No update available"):V&&!n.updatePossible?oo("success",`Version ${V.name} available`):c.createElement(qr,{vert:!0},m.map(j=>c.createElement(qr,{key:j.name,alignItems:"flex-start",flexWrap:"wrap"},c.createElement(Rb,{},c.createElement(Ob,{},c.createElement(Xo,st(xe({icon:ov},!j.isNewer&&{color:"warning",variant:"outlined"}),{onClick:()=>yC(j.tag_name)}),Oi("Install ",j.name,j.isNewer?"":" (older)")),c.createElement(ze,{mt:1},UMe(j.body)))))))):c.createElement(Xo,{variant:"outlined",icon:ov,onClick(){return f(!0),ct("check_update").then(V=>v(V.options),kt)},onContextMenu(V){return ot(this,null,function*(){if(V.preventDefault(),!n.updatePossible)return kt("Automatic update is only for binary versions","warning");const j=yield jh("Enter URL from where to download update");j&&(yield yC(j))})}},"Check for updates"))}function UMe(e){return er(e,{onText:t});function t(n){return Jk(n,new RegExp("(?<=^|\\W)#(\\d+)\\b","g"),r=>c.createElement(Ls,{href:Qb+"issues/"+r[1],target:"_blank"},c.createElement(Uz,{sx:{verticalAlign:"bottom"}})))}}function yC(e){return ot(this,null,function*(){if(!(yield xr("Installation may take less than a minute, depending on the speed of your server")))return;rr("Downloading"),yield ct("update",{tag:e}),rr("Restarting");const t=Date.now();let n;for(;yield ct("NONE").then(()=>0,r=>!r.code);)!n&&Date.now()-t>15e3&&(n=kt("This is taking too long, please check your server","warning")),yield Bh(500);n==null||n.close(),u5(ln,"loginRequired",()=>ln.loginRequired=!1),yield kt("Procedure complete","success"),window.location.reload()})}function oo(e,...t){return c.createElement(ze,{fontSize:"x-large",color:n=>{var r;return e&&((r=n.palette[e])==null?void 0:r.main)}},c.createElement({success:jz,info:Zv,"":Zv,warning:r0,error:n0}[e],{sx:{mb:"-3px",mr:1,color:e?void 0:"primary.main"}}),...t)}function WMe(e="File System page"){return c.createElement(i0,{to:"fs"},e)}function Ig(e="Options page"){return c.createElement(i0,{to:"options"},e)}function MS(e,t){return e.data&&!e.data.proxies&&(t==null?void 0:t.proxyDetected)&&"A proxy was detected but none is configured"}var Wz={},GMe=sn&&sn.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),wr=sn&&sn.__assign||function(){return wr=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},wr.apply(this,arguments)},KMe=sn&&sn.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),qMe=sn&&sn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),YMe=sn&&sn.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&KMe(t,e,n);return qMe(t,e),t},QMe=sn&&sn.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};Object.defineProperty(Wz,"__esModule",{value:!0});var Xf=YMe(c),XMe=13,ZMe=9,JMe=8,e_e=89,Mg=90,t_e=77,UD=57,WD=219,GD=222,KD=192,n_e=27,qD=100,r_e=3e3,o_e=typeof window!="undefined"&&"navigator"in window&&/Win/i.test(navigator.platform),bC=typeof window!="undefined"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),sv="npm__react-simple-code-editor__textarea",s_e=`
762
+ /**
763
+ * Reset the text fill color so that placeholder is visible
764
+ */
765
+ .`.concat(sv,`:empty {
766
+ -webkit-text-fill-color: inherit !important;
767
+ }
768
+
769
+ /**
770
+ * Hack to apply on some CSS on IE10 and IE11
771
+ */
772
+ @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
773
+ /**
774
+ * IE doesn't support '-webkit-text-fill-color'
775
+ * So we use 'color: transparent' to make the text transparent on IE
776
+ * Unlike other browsers, it doesn't affect caret color in IE
777
+ */
778
+ .`).concat(sv,` {
779
+ color: transparent !important;
780
+ }
781
+
782
+ .`).concat(sv,`::selection {
783
+ background-color: #accef7 !important;
784
+ color: transparent !important;
785
+ }
786
+ }
787
+ `),i_e=function(e){GMe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={capture:!0},n._recordCurrentState=function(){var r=n._input;if(r){var o=r.value,s=r.selectionStart,i=r.selectionEnd;n._recordChange({value:o,selectionStart:s,selectionEnd:i})}},n._getLines=function(r,o){return r.substring(0,o).split(`
788
+ `)},n._recordChange=function(r,o){var s,i,l;o===void 0&&(o=!1);var a=n._history,u=a.stack,f=a.offset;if(u.length&&f>-1){n._history.stack=u.slice(0,f+1);var p=n._history.stack.length;if(p>qD){var m=p-qD;n._history.stack=u.slice(m,p),n._history.offset=Math.max(n._history.offset-m,0)}}var v=Date.now();if(o){var y=n._history.stack[n._history.offset];if(y&&v-y.timestamp<r_e){var g=/[^a-z0-9]([a-z0-9]+)$/i,C=(s=n._getLines(y.value,y.selectionStart).pop())===null||s===void 0?void 0:s.match(g),b=(i=n._getLines(r.value,r.selectionStart).pop())===null||i===void 0?void 0:i.match(g);if(C!=null&&C[1]&&(!((l=b==null?void 0:b[1])===null||l===void 0)&&l.startsWith(C[1]))){n._history.stack[n._history.offset]=wr(wr({},r),{timestamp:v});return}}}n._history.stack.push(wr(wr({},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,s=n._history.stack[n._history.offset];s&&o&&(n._history.stack[n._history.offset]=wr(wr({},s),{selectionStart:o.selectionStart,selectionEnd:o.selectionEnd})),n._recordChange(r),n._updateInput(r)},n._undoEdit=function(){var r=n._history,o=r.stack,s=r.offset,i=o[s-1];i&&(n._updateInput(i),n._history.offset=Math.max(s-1,0))},n._redoEdit=function(){var r=n._history,o=r.stack,s=r.offset,i=o[s+1];i&&(n._updateInput(i),n._history.offset=Math.min(s+1,o.length-1))},n._handleKeyDown=function(r){var o=n.props,s=o.tabSize,i=o.insertSpaces,l=o.ignoreTabKey,a=o.onKeyDown;if(!(a&&(a(r),r.defaultPrevented))){r.keyCode===n_e&&r.currentTarget.blur();var u=r.currentTarget,f=u.value,p=u.selectionStart,m=u.selectionEnd,v=(i?" ":" ").repeat(s);if(r.keyCode===ZMe&&!l&&n.state.capture)if(r.preventDefault(),r.shiftKey){var y=n._getLines(f,p),g=y.length-1,C=n._getLines(f,m).length-1,b=f.split(`
789
+ `).map(function(V,j){return j>=g&&j<=C&&V.startsWith(v)?V.substring(v.length):V}).join(`
790
+ `);if(f!==b){var w=y[g];n._applyEdits({value:b,selectionStart:w!=null&&w.startsWith(v)?p-v.length:p,selectionEnd:m-(f.length-b.length)})}}else if(p!==m){var y=n._getLines(f,p),S=y.length-1,k=n._getLines(f,m).length-1,w=y[S];n._applyEdits({value:f.split(`
791
+ `).map(function(_,T){return T>=S&&T<=k?v+_:_}).join(`
792
+ `),selectionStart:w&&/\S/.test(w)?p+v.length:p,selectionEnd:m+v.length*(k-S+1)})}else{var M=p+v.length;n._applyEdits({value:f.substring(0,p)+v+f.substring(m),selectionStart:M,selectionEnd:M})}else if(r.keyCode===JMe){var E=p!==m,I=f.substring(0,p);if(I.endsWith(v)&&!E){r.preventDefault();var M=p-v.length;n._applyEdits({value:f.substring(0,p-v.length)+f.substring(m),selectionStart:M,selectionEnd:M})}}else if(r.keyCode===XMe){if(p===m){var R=n._getLines(f,p).pop(),A=R==null?void 0:R.match(/^\s+/);if(A!=null&&A[0]){r.preventDefault();var $=`
793
+ `+A[0],M=p+$.length;n._applyEdits({value:f.substring(0,p)+$+f.substring(m),selectionStart:M,selectionEnd:M})}}}else if(r.keyCode===UD||r.keyCode===WD||r.keyCode===GD||r.keyCode===KD){var L=void 0;r.keyCode===UD&&r.shiftKey?L=["(",")"]:r.keyCode===WD?r.shiftKey?L=["{","}"]:L=["[","]"]:r.keyCode===GD?r.shiftKey?L=['"','"']:L=["'","'"]:r.keyCode===KD&&!r.shiftKey&&(L=["`","`"]),p!==m&&L&&(r.preventDefault(),n._applyEdits({value:f.substring(0,p)+L[0]+f.substring(p,m)+L[1]+f.substring(m),selectionStart:p,selectionEnd:m+2}))}else(bC?r.metaKey&&r.keyCode===Mg:r.ctrlKey&&r.keyCode===Mg)&&!r.shiftKey&&!r.altKey?(r.preventDefault(),n._undoEdit()):(bC?r.metaKey&&r.keyCode===Mg&&r.shiftKey:o_e?r.ctrlKey&&r.keyCode===e_e:r.ctrlKey&&r.keyCode===Mg&&r.shiftKey)&&!r.altKey?(r.preventDefault(),n._redoEdit()):r.keyCode===t_e&&r.ctrlKey&&(!bC||r.shiftKey)&&(r.preventDefault(),n.setState(function(V){return{capture:!V.capture}}))}},n._handleChange=function(r){var o=r.currentTarget,s=o.value,i=o.selectionStart,l=o.selectionEnd;n._recordChange({value:s,selectionStart:i,selectionEnd:l},!0),n.props.onValueChange(s)},n._history={stack:[],offset:-1},n._input=null,n}return t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(n){this._history=n.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var n=this,r=this.props,o=r.value,s=r.style,i=r.padding,l=r.highlight,a=r.textareaId,u=r.textareaClassName,f=r.autoFocus,p=r.disabled,m=r.form,v=r.maxLength,y=r.minLength,g=r.name,C=r.placeholder,b=r.readOnly,w=r.required,S=r.onClick,k=r.onFocus,M=r.onBlur,E=r.onKeyUp;r.onKeyDown,r.onValueChange,r.tabSize,r.insertSpaces,r.ignoreTabKey;var I=r.preClassName,R=QMe(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"]),A={paddingTop:typeof i=="object"?i.top:i,paddingRight:typeof i=="object"?i.right:i,paddingBottom:typeof i=="object"?i.bottom:i,paddingLeft:typeof i=="object"?i.left:i},$=l(o);return Xf.createElement("div",wr({},R,{style:wr(wr({},Zf.container),s)}),Xf.createElement("pre",wr({className:I,"aria-hidden":"true",style:wr(wr(wr({},Zf.editor),Zf.highlight),A)},typeof $=="string"?{dangerouslySetInnerHTML:{__html:$+"<br />"}}:{children:$})),Xf.createElement("textarea",{ref:function(L){return n._input=L},style:wr(wr(wr({},Zf.editor),Zf.textarea),A),className:sv+(u?" ".concat(u):""),id:a,value:o,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:S,onKeyUp:E,onFocus:k,onBlur:M,disabled:p,form:m,maxLength:v,minLength:y,name:g,placeholder:C,readOnly:b,required:w,autoFocus:f,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),Xf.createElement("style",{dangerouslySetInnerHTML:{__html:s_e}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(Xf.Component),l_e=Wz.default=i_e,Zf={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}};const WI=c.forwardRef((r,n)=>{var o=r,{style:e}=o,t=Ft(o,["style"]);return c.createElement(l_e,xe({highlight:Cfe,padding:10,tabSize:4,insertSpaces:!0,ignoreTabKey:!1,style:xe({fontFamily:"ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace",fontSize:"1em",flex:1,background:"#8883",borderBottom:"1px solid #bbb"},e)},t))});function a_e(s){var i=s,{onChange:e,value:t,onBlur:n,setApi:r}=i,o=Ft(i,["onChange","value","onBlur","setApi"]);const[l,a]=c.useState(t||"");return c.createElement(Na,st(xe({multiline:!0,fullWidth:!0,value:l,InputProps:{inputComponent:c_e},onChange(u){a(u.target.value)},onBlur(u){n==null||n(u),e(u.target.value,{was:t,event:u})}},o),{onKeyDown(u){var y;if((y=o.onKeyDown)==null||y.call(o,u),Bb(u)==="Enter")return e(l,{was:t,event:u});if(!u.altKey||u.key!=="Tab")return;u.preventDefault();const f=document.querySelectorAll(O4),p=rt.indexOf(f,u.target),m=f.length,v=(p+(u.shiftKey?-1:1)+m)%m;f[v].focus(),console.debug(f[v])}}))}const c_e=c.forwardRef((r,n)=>{var o=r,{onChange:e}=o,t=Ft(o,["onChange"]);return c.createElement(ze,{sx:{width:"100%",textarea:{outline:0}}},c.createElement(WI,st(xe({ref:n,padding:2,style:{background:"initial",borderBottom:"initial"}},t),{onValueChange:s=>e({target:{value:s}}),onKeyDown(s){Bb(s)==="Enter"&&s.preventDefault()}})))});let xa,_S;const Gz=Rk({changes:{}});Ok(ln,e=>{e.some(t=>t[1][0]==="config")&&Kz()});const by={log:"Access",error_log:"Access error",console:"Console"},YD=Ui;function u_e(){var g;const{data:e,reload:t,element:n}=Qn("get_config",{omit:["vfs"]}),r=Wi(),{changes:o}=Dk(Gz),s=Qn(e&&"get_status"),i=s.data,l=_S=s.reload;c.useEffect(()=>void l(),[e]),c.useEffect(()=>()=>_S=void 0,[]);const a=Qo("sm"),u=(g=Qn("get_admins").data)==null?void 0:g.list;if(n)return n;if(s.error)return s.element;const f=xa!==e?ln.config=xa=e:r.config,p={comp:Vo,min:1,unit:"KB/s",placeholder:"no limit",sm:6},m={comp:Vo,min:0,placeholder:"no limit",toField:C=>C||"",sm:4},v=f.https_port>=0;return c.createElement(Hc,{sx:{maxWidth:"60em"},values:f,set(C,b){ln.config[b]=C},stickyBar:!0,onError:kt,save:{onClick:y,sx:Zd(Object.keys(o).length>0)},barSx:{gap:2},addToBar:[c.createElement(Yn,{onClick(){t(),l()},startIcon:c.createElement(t0)},"Reload"),c.createElement(Yn,{component:RP,to:"/edit",startIcon:c.createElement(NE)},a?"Edit config file":"File")],defaults(){return{sm:6}},fields:[{k:"port",comp:QD,md:4,label:"HTTP port",status:(i==null?void 0:i.http)||!0,suggestedPort:80},{k:"https_port",comp:QD,md:4,label:"HTTPS port",status:(i==null?void 0:i.https)||!0,suggestedPort:443,onChange(C){return C>=0&&!v&&!f.cert&&wy().then(),C}},i&&{k:"listen_interface",comp:Kr,md:4,options:[{label:"any",value:""},"127.0.0.1","::1",...i==null?void 0:i.ips]},v&&f.port>=0&&{k:"force_https",comp:Dn,md:4,label:"Force HTTPS",helperText:"Not applied to localhost"},v&&{k:"cert",comp:Ap,md:4,label:"HTTPS certificate file",helperText:Oc("HTTPS#certificate","What is this?"),error:Ma(i==null?void 0:i.https.error,C=>GI(C)&&(i.https.listening?C:[C," - ",c.createElement(al,{key:"fix",onClick:wy},"make one")]))},v&&xe({k:"private_key",comp:Ap,md:4,label:"HTTPS private key file"},Ma(i==null?void 0:i.https.error,C=>KI(C)?{error:!0,helperText:C}:null)),{k:"favicon",comp:Ap,placeholder:"None",fileMask:"*.png|*.ico|*.jpg|*.jpeg|*.gif|*.svg",helperText:"The icon associated to your website"},{k:"allowed_referer",placeholder:"any",label:"Links from other websites",comp:d_e,sm:12,md:6},{k:"open_browser_at_start",comp:Dn,label:"Open Admin-panel at start",helperText:"Browser is automatically launched with HFS"},{k:"localhost_admin",comp:Dn,label:"Unprotected admin on localhost",getError:C=>!C&&(u==null?void 0:u.length)===0&&"First create at least one admin account",helperText:"Access Admin-panel without entering credentials"},st(xe({k:"max_kbps"},p),{label:"Limit output",helperText:"Doesn't apply to localhost"}),st(xe({k:"max_kbps_per_ip"},p),{label:"Limit output per-IP"}),st(xe({k:Bn.max_downloads},m),{helperText:"Number of simultaneous downloads"}),st(xe({k:Bn.max_downloads_per_ip},m),{label:"Max downloads per-IP"}),st(xe({k:Bn.max_downloads_per_account},m),{label:"Max downloads per-account",helperText:"Overrides other limits"}),{k:"dont_overwrite_uploading",comp:Dn,sm:12,md:6,label:"Don't overwrite uploading",helperText:"Files will be numbered to avoid overwriting"},{k:"delete_unfinished_uploads_after",comp:Vo,md:3,min:0,unit:"seconds",placeholder:"Never",helperText:"Leave empty to never delete"},{k:"min_available_mb",comp:Vo,md:3,min:0,unit:"MBytes",placeholder:"None",label:"Min. available disk space",helperText:"Reject uploads that don't comply"},{k:"keep_session_alive",comp:Dn,helperText:"Keeps you logged in while the page is left open and the computer is on"},{k:"session_duration",comp:Vo,sm:3,min:5,unit:"seconds",required:!0},{k:"zip_calculate_size_for_seconds",comp:Vo,sm:3,label:"Calculate ZIP size for",unit:"seconds",helperText:"If time is not enough, the browser will not show download percentage"},{k:"update_to_beta",comp:Dn,helperText:"Include betas searching updates"},{k:"admin_net",comp:YD,label:"Admin-panel accessible from",placeholder:"any address",helperText:c.createElement(c.Fragment,{},"IP address of browser machine. ",c.createElement(pp))},{k:"descript_ion",comp:Dn,label:"Support file DESCRIPT.ION",helperText:"Old file format, used for comments"},{k:"descript_ion_encoding",label:"Encoding of file DESCRIPT.ION",comp:Kr,disabled:!f.descript_ion,options:["utf8",720,775,819,850,852,862,869,874,808,...rt.range(1250,1257),10029,20866,21866]},{k:"proxies",comp:Vo,min:0,max:9,label:"How many HTTP proxies between this server and users?",error:MS(f,i),helperText:"Wrong number will prevent detection of users' IP address"},{k:"mime",comp:xh,label:!1,reorder:!0,prepend:!0,md:6,fields:[{k:"k",label:"File mask",helperText:c.createElement(pp),$width:1,$column:{renderCell:({value:C,id:b})=>c.createElement("code",{},C,C==="*"&&b<rt.size(f.mime)-1&&Wr(r0,er("Mime with `*` should be the last, because first matching row applies"),{color:"warning.main",ml:1}))}},{k:"v",label:"Mime type",placeholder:"auto",$width:2,toField:C=>C==="auto"?"":C,fromField:C=>C?C.toLowerCase():"auto",helperText:"Leave empty to get automatic value"}],toField:C=>Object.entries(C||{}).map(([b,w])=>({k:b,v:w})),fromField:C=>Object.fromEntries(C.map(b=>[b.k,b.v]))},{k:"block",label:!1,comp:xh,prepend:!0,sm:12,fields:[{k:"ip",label:"Blocked IP",sm:6,required:!0,helperText:c.createElement(pp)},{k:"expire",$type:"dateTime",minDate:new Date,sm:6,helperText:"Leave empty for no expiration"},{k:"comment"}]},{k:"server_code",comp:a_e,sm:12,getError:C=>ffe(()=>new Function(C)&&null,b=>b.message),helperText:er(`This code works similarly to [a plugin](${Qb}blob/main/dev-plugins.md) (with some limitations)`)},c.createElement(Pd,{},"Log",c.createElement(ze,{fontSize:"small"})),{k:"log",label:by.log,md:3,helperText:"Requests are logged here"},{k:"error_log",label:by.error_log,md:3,placeholder:"errors go to main log",helperText:"If you want errors in a different log"},{k:"log_rotation",comp:Kr,md:3,options:[{value:"",label:"disabled"},"daily","weekly","monthly"],helperText:"To keep log-files smaller"},{k:"dont_log_net",comp:YD,label:"Don't log address",md:3,placeholder:"no exception",helperText:c.createElement(pp)},{k:"log_gui",sm:4,comp:Dn,label:"Log interface loading",helperText:"Some requests are necessary to load the interface"},{k:"log_api",sm:4,comp:Dn,label:"Log API requests",helperText:"Requests for commands"},{k:"log_ua",sm:4,comp:Dn,label:"Log User-Agent",helperText:"Contains browser and possibly OS information"},c.createElement(Pd,{},"Front-end",c.createElement(ze,{fontSize:"small"},"Following options affect only the front-end")),{k:"file_menu_on_link",comp:Kr,label:"Access file menu",md:4,options:{"by clicking on file name":!0,"by dedicated button":!1}},{k:"title",md:8,helperText:"You can see this in the tab of your browser"},{k:"tile_size",comp:Vo,xs:6,sm:4,min:0,max:efe,label:"Default tiles size",helperText:"Zero = list mode"},{k:"theme",comp:Kr,xs:6,sm:4,options:nfe},{k:"sort_by",comp:Kr,xs:6,sm:4,options:tfe},{k:"invert_order",comp:Dn,xs:6,sm:4},{k:"folders_first",comp:Dn,xs:6,sm:4},{k:"sort_numerics",comp:Dn,xs:6,sm:4,label:"Sort numeric names"}]});function y(){return ot(this,null,function*(){var $,L;if(rt.isEmpty(o))return rr("Nothing to save");const C=window.location,b=["port","https_port"];if(b.every(V=>o[V]!==void 0))return kt("You cannot change both http and https port at once. Please, do one, save, and then do the other.","warning");const w=[($=i==null?void 0:i.http)==null?void 0:$.listening,(L=i==null?void 0:i.https)==null?void 0:L.listening],S=location.protocol==="https:";S&&(b.reverse(),w.reverse());const k=o[b[0]],M=f[b[1]],E=M>0&&w[1],I=S?"http":"https";if(k<0&&!E)return kt("You cannot switch off this port unless you have a working fixed port for "+I,"warning");if(k===0&&!E)return kt("You cannot randomize this port unless you have a working fixed port for "+I,"warning");if(k>0&&!(yield xr("You are changing the port and you may be disconnected")))return;const R="cert"in o||"private_key"in o;if(S&&R&&!(yield xr("You may disrupt https service, kicking you out")))return;if(yield ct("set_config",{values:o}),k!==void 0||o.listen_interface&&!(C.hostname==="localhost"&&wfe(o.listen_interface))){yield kt("You are being redirected but in some cases this may fail. Hold on tight!","warning");const V=U4(o.listen_interface||C.hostname);return window.location.href=k<=0?`${S?"http:":"https:"}//${V}:${M}${C.pathname}`:`${C.protocol}//${V}:${k||f[b[0]]}${C.pathname}`}const A="port"in o||"https_port"in o;setTimeout(l,A||R?1e3:0),Object.assign(xa,o),Kz(),rr("Changes applied","success")})}}function Kz(){const e={};if(ln.config)for(const[t,n]of Object.entries(ln.config))JSON.stringify(n)!==JSON.stringify(xa==null?void 0:xa[t])&&(e[t]=n);Gz.changes=e}function GI(e){return/certificate/.test(e)}function KI(e){return/private key/.test(e)}function QD({label:e,value:t,onChange:n,setApi:r,status:o,suggestedPort:s=1,error:i,helperText:l}){const a=c.useRef(s);t>0&&(a.current=t);const u=Number(t>0?a.current:t)||0;let f=o==null?void 0:o.error;return f&&(GI(f)||KI(f)?f=void 0:i=!0),c.createElement(ze,{},c.createElement(ze,{display:"flex"},c.createElement(Kr,{sx:{flexGrow:1},label:e,error:i,value:u,options:[{label:"off",value:-1},{label:"random",value:0},{label:"choose",value:a.current}],onChange:n}),t>0&&c.createElement(Vo,{label:"Number",fullWidth:!1,value:t,onChange:n,setApi:r,error:i,min:1,max:65535,helperText:l,sx:{minWidth:"5.5em"}})),o&&c.createElement(qd,{error:i},o===!0?"...":f!=null?f:(o==null?void 0:o.listening)&&"Correctly working on port "+o.port))}function d_e({label:e,value:t,onChange:n,error:r}){const o=!t||t==="-",s="example.com";return c.createElement(ze,{display:"flex"},c.createElement(Kr,{label:e,value:o?t:s,options:{"allow all":"","forbid all":"-","allow some":s},onChange:n,error:r,sx:o?void 0:{maxWidth:"11em"}}),!o&&c.createElement(Ui,{label:"Domain to allow",value:t,placeholder:"example.com",onChange:n,error:r,helperText:c.createElement(pp)}))}function pp(){return Oc("Wildcards","Wildcards supported")}function wy(){return ot(this,null,function*(){return new Promise(e=>{const{close:t}=Ro({icon:LE,title:"Get a certificate",onClose:e,Content:()=>c.createElement(ze,{p:1,lineHeight:1.5},c.createElement(ze,{},"HTTPS needs a certificate to work."),c.createElement(ze,{},"We suggest you to ",c.createElement(i0,{to:"internet",onClick:t},"get a free but proper certificate"),"."),c.createElement(ze,{},"If you don't have a domain ",c.createElement(al,{onClick:n},"make a self-signed certificate")," but that ",Oc("HTTPS#certificate"," won't be perfect"),"."))});function n(){return ot(this,null,function*(){if(!window.crypto.subtle)return kt("Retry this procedure on localhost","warning");const r=o5();try{yield Bh(50);const o=yield ct("save_pem",yield f_e({}));r(),yield ct("set_config",{values:o}),xa&&Object.assign(xa,o),setTimeout(_S,1e3),Object.assign(ln.config,o),t(),yield kt("Certificate saved","success")}finally{r()}})}})})}function f_e(e){return ot(this,null,function*(){const{pki:t}=window.forge,n=t.rsa.generateKeyPair(2048),r=t.createCertificate();r.publicKey=n.publicKey,r.serialNumber="01",r.validity.notBefore=new Date,r.validity.notAfter=new Date,r.validity.notAfter.setFullYear(r.validity.notBefore.getFullYear()+1);const o=Object.entries(e).map(s=>({name:s[0],value:s[1]}));return r.setSubject(o),r.setIssuer(o),r.sign(n.privateKey),{cert:t.certificateToPem(r),private_key:t.privateKeyToPem(n.privateKey)}})}var qI={},p_e=et;Object.defineProperty(qI,"__esModule",{value:!0});var qz=qI.default=void 0,h_e=p_e(tt()),m_e=Ze(),g_e=(0,h_e.default)((0,m_e.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3zM7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5zM16 17H8v-2h8v2zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13z"}),"SmartToy");qz=qI.default=g_e;function v_e(){const[e,t]=c.useState(0),n=gfe(by),{pause:r,pauseButton:o}=a5(),[s,i]=c5(a=>({title:a?"hide APIs":"show APIs",icon:qz,sx:{rotate:a?"0deg":"180deg"},disabled:e>=2}),!0),l=!Qo("sm")&&{error_log:"Errors"};return c.createElement(c.Fragment,{},c.createElement(qr,{gap:0},c.createElement(gk,{value:e,onChange(a,u){t(u)}},n.map(a=>c.createElement(Uv,{label:rt.get(l,a)||by[a],key:a}))),c.createElement(ze,{flex:1}),i,o),c.createElement(y_e,{key:e,pause:r,showApi:s,file:n[e]}))}function y_e({file:e,pause:t,showApi:n}){const[r,o]=c.useState(!1),[s,i]=c.useState(!1),{list:l,error:a,connecting:u}=Sl("get_log",{file:e},{invert:!0,pause:t,map(p){var v;const{extra:m}=p;return m!=null&&m.country&&!r&&o(!0),m!=null&&m.ua&&!s&&i(!0),p.notes=m!=null&&m.dl?"fully downloaded":p.method==="PUT"||m!=null&&m.ul?"uploaded "+xl(m.size):p.status===Xd&&((v=p.uri)!=null&&v.startsWith(ju+"loginSrp"))?"login failed"+Oi(`:
794
+ `,m==null?void 0:m.u):p.notes,p}}),f={field:"ts",headerName:"Timestamp",type:"dateTime",width:90,valueGetter:({value:p})=>new Date(p),renderCell:({value:p})=>c.createElement(c.Fragment,{},p.toLocaleDateString(),c.createElement("br"),p.toLocaleTimeString())};return c.createElement(Yh,{error:a,loading:u,rows:c.useMemo(()=>{var p;return n||((p=l==null?void 0:l[0])==null?void 0:p.uri)===void 0?l:l.filter(m=>!m.uri.startsWith(ju))},[l,n]),compact:!0,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}},columns:e==="console"?[f,{field:"k",headerName:"Level",hideUnder:"sm"},{field:"msg",headerName:"Message",flex:1,mergeRender:{other:"k",override:{valueFormatter:({value:p})=>p!=="log"&&p}}}]:[{field:"ip",headerName:"Address",flex:.6,minWidth:100,maxWidth:230,mergeRender:{other:"user",display:"flex",justifyContent:"space-between",gap:".5em",override:{renderCell:({value:p,row:m})=>{var v;return c.createElement(c.Fragment,{},c.createElement("span",{},p),c.createElement(TS,{code:(v=m.extra)==null?void 0:v.country}))}}}},{headerName:"Country",field:"country",valueGetter:({row:p})=>{var m;return(m=p.extra)==null?void 0:m.country},hidden:!r,hideUnder:"lg",renderCell:({value:p})=>c.createElement(TS,{code:p,def:"-"})},{field:"user",headerName:"Username",flex:.3,maxWidth:200,hideUnder:"lg"},f,{field:"method",headerName:"Method",width:80,hideUnder:"lg"},{field:"status",headerName:"Code",type:"number",width:70,hideUnder:"lg"},{field:"length",headerName:"Size",type:"number",hideUnder:"md",valueFormatter:({value:p})=>xl(p)},{headerName:"Agent",hideUnder:"xl",field:"ua",hidden:!s,valueGetter:({row:p})=>{var m;return(m=p.extra)==null?void 0:m.ua},renderCell:({value:p})=>p&&Yz(p)},{field:"notes",headerName:"Notes",width:105,hideUnder:"sm",cellClassName:"wrap",renderCell:({value:p})=>p&&er(p)},{field:"uri",headerName:"URI",flex:2,minWidth:100,mergeRender:{other:"method",fontSize:"small"},renderCell:({value:p,row:m})=>{var w;p=decodeURIComponent(p);const v=(w=m.extra)==null?void 0:w.ul;if(v)return typeof v=="string"?v:cfe("?",p)[0]+v.join(" + ");if(!p.startsWith(ju))return p;const y=ju.length,g=p.indexOf("?",y),C=p.slice(y,g>0?g:1/0),b=g<0?"":Array.from(new URLSearchParams(p.slice(g))).map(S=>{var k;return`${S[0]}=${(k=mfe(S[1]))!=null?k:S[1]}`}).join(" ; ");return`API ${C} ${b}`}}]})}function Yz(e){const t=Pfe(e),n=s(t,{Chrome:"https://upload.wikimedia.org/wikipedia/commons/e/e1/Google_Chrome_icon_%28February_2022%29.svg",Chromium:"https://upload.wikimedia.org/wikipedia/commons/f/fe/Chromium_Material_Icon.svg",Firefox:"https://upload.wikimedia.org/wikipedia/commons/a/a0/Firefox_logo%2C_2019.svg",Safari:"https://upload.wikimedia.org/wikipedia/commons/5/52/Safari_browser_logo.svg",Edge:"https://upload.wikimedia.org/wikipedia/commons/f/f6/Edge_Logo_2019.svg",Opera:"https://upload.wikimedia.org/wikipedia/commons/4/49/Opera_2015_icon.svg"}),r=rt.findKey(b_e,i=>i.test(e)),o=r&&{linux:"🐧",win:"⊞",mac:"",ios:""}[r];return c.createElement(Ml,{title:e,children:c.createElement("span",{},n||t," ",o)});function s(i,l){const a=l[i];return a&&c.createElement("img",{src:a,style:{height:"1em",verticalAlign:"text-bottom",marginRight:".2em"}})}}const b_e={mac:/Mac OS/,ios:/iPhone OS/,win:/Windows NT/,linux:/Linux/};function w_e(){return c.createElement(c.Fragment,{},c.createElement(x_e),c.createElement(P_e))}const C_e=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function x_e(){const{data:e,element:t}=Qn("get_status"),{data:n}=Eue("get_connection_stats");e&&n&&Object.assign(e,n);const r=Qo("xl"),o=Qo("md"),s=Qo("sm");return t||c.createElement(ze,{display:"flex",flexWrap:"wrap",gap:"1em",mb:2},r&&i("started"),r&&i("http",{label:"HTTP",render:l}),o&&i("https",{label:"HTTPS",render:l}),s&&i("connections"),i("sent",{render:xl,minWidth:"4em"}),s&&i("got",{render:xl,minWidth:"4em"}),i("outSpeed",{label:"Output speed",render:$S}),o&&i("inSpeed",{label:"Input speed",render:$S}));function i(a,{label:u,minWidth:f,render:p}={}){let m=rt.get(e,a);if(m===void 0)return null;typeof m=="string"&&C_e.test(m)&&(m=new Date(m).toLocaleString());let v;return p&&(m=p(m),Array.isArray(m)&&([m,v]=m)),u||(u=rt.capitalize(a.replaceAll("_"," "))),c.createElement(Eb,{variant:"filled",color:v,label:c.createElement(c.Fragment,{},c.createElement("b",{},u),": ",c.createElement("span",{style:{display:"inline-block",minWidth:f}},m))})}function l(a){return a.listening?["port "+a.port,"success"]:a.error?[a.error,"error"]:"off"}}function TS({code:e,ip:t,def:n}){const{data:r}=Yg(e===void 0&&t&&S_e,t,{delay:100});e||(e=r||"");const o=e&&rt.find($B,{code:e});return o?c.createElement(Ml,{title:o.name,children:c.createElement("span",{},o.flag," ",e)}):c.createElement(c.Fragment,{},n)}function S_e(e){return ot(this,null,function*(){return(yield ct("ip_country",{ips:e})).codes})}function P_e(){var u;const{list:e,error:t,props:n}=Sl("get_connections"),r=Qn("get_config",{only:[Bn.geo_enable]}),[o,s]=c.useState(!0),{pause:i,pauseButton:l}=a5(),a=c.useMemo(()=>e==null?void 0:e.filter(f=>!o||f.op).map((f,p)=>xe({id:p},f)),[!i&&e,o]);return c.createElement(c.Fragment,{},c.createElement(ze,{display:"flex",alignItems:"center"},c.createElement(Kr,{fullWidth:!1,value:o,onChange:s,options:{"Show only files":!0,"Show all connections":!1}}),c.createElement(ze,{flex:1}),l),c.createElement(Yh,{error:t,rows:a,noRows:o&&"No downloads at the moment",columns:[{field:"ip",headerName:"Address",flex:1,maxWidth:400,renderCell:({row:f,value:p})=>U4(p)+" :"+f.port,mergeRender:{other:"user",fontSize:"small"}},{field:"country",hidden:((u=r.data)==null?void 0:u[Bn.geo_enable])!==!0,headerName:"Country",hideUnder:"md",renderCell:({value:f,row:p})=>c.createElement(TS,{code:f,ip:p.ip,def:"-"})},{field:"user",headerName:"User",hideUnder:"md"},{field:"started",headerName:"Started",type:"dateTime",width:100,hideUnder:"lg",valueFormatter:({value:f})=>new Date(f).toLocaleTimeString()},{field:"path",headerName:"File",flex:1.5,renderCell({value:f,row:p}){var v;if(!f)return;if(p.archive)return c.createElement(c.Fragment,{},c.createElement(v5,{sx:{mr:1}}),p.archive,c.createElement(ze,{ml:2,color:"text.secondary"},f));if(!p.op)return c.createElement(ze,{},f,c.createElement(ze,{fontSize:"x-small"},"browsing"));const m=f==null?void 0:f.lastIndexOf("/");return c.createElement(c.Fragment,{},c.createElement(i5,{icon:p.op==="upload"?Uh:hE,progress:(v=p.opProgress)!=null?v:p.opOffset,offset:p.opOffset,addTitle:p.opTotal&&c.createElement("div",{},"Total: "+xl(p.opTotal)),sx:{mr:1}}),c.createElement(ze,{},f.slice(m+1),m>0&&c.createElement(ze,{ml:2,fontSize:"x-small",color:"text.secondary"},f.slice(0,m))))}},{field:"outSpeed",headerName:"Speed",width:110,hideUnder:"sm",type:"number",renderCell:({value:f,row:p})=>$S(Math.max(f||0,p.inSpeed||0)||void 0),mergeRender:{other:"sent",fontSize:"small",textAlign:"right"}},{field:"sent",headerName:"Sent",type:"number",hideUnder:"md",renderCell:({value:f,row:p})=>xl(Math.max(f||0,p.got||0))},{field:"v",headerName:"Protocol",align:"center",hideUnder:1/0,renderCell:({value:f})=>c.createElement(c.Fragment,{},"IPv"+f,Wr(l0,"HTTPS",{opacity:.5}))},{field:"agent",headerName:"Agent",hideUnder:"lg",renderCell:({value:f})=>Yz(f)}],actionsProps:{hideUnder:"sm"},actions:({row:f})=>[c.createElement(mn,{icon:m5,title:"Disconnect",onClick:()=>ct("disconnect",rt.pick(f,["ip","port"])).then(()=>rr("Disconnection requested"))}),c.createElement(mn,{icon:g5,title:"Block IP",disabled:f.ip===(n==null?void 0:n.you),onClick:()=>k_e(f.ip)})]}))}function k_e(e){return Mfe("block",t=>[...t,{ip:e}])}function $S(e){return e===void 0?"":lfe(e*1e3,{digits:1})}var YI={},E_e=et;Object.defineProperty(YI,"__esModule",{value:!0});var Qz=YI.default=void 0,I_e=E_e(tt()),M_e=Ze(),__e=(0,I_e.default)((0,M_e.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z"}),"DoNotDisturb");Qz=YI.default=__e;var QI={},T_e=et;Object.defineProperty(QI,"__esModule",{value:!0});var XI=QI.default=void 0,$_e=T_e(tt()),R_e=Ze(),O_e=(0,$_e.default)((0,R_e.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");XI=QI.default=O_e;var ZI={},D_e=et;Object.defineProperty(ZI,"__esModule",{value:!0});var Xz=ZI.default=void 0,A_e=D_e(tt()),L_e=Ze(),F_e=(0,A_e.default)((0,L_e.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");Xz=ZI.default=F_e;var JI={},N_e=et;Object.defineProperty(JI,"__esModule",{value:!0});var Zz=JI.default=void 0,B_e=N_e(tt()),z_e=Ze(),V_e=(0,B_e.default)((0,z_e.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");Zz=JI.default=V_e;var e2={},j_e=et;Object.defineProperty(e2,"__esModule",{value:!0});var Jz=e2.default=void 0,H_e=j_e(tt()),U_e=Ze(),W_e=(0,H_e.default)((0,U_e.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");Jz=e2.default=W_e;var t2={},G_e=et;Object.defineProperty(t2,"__esModule",{value:!0});var eV=t2.default=void 0,K_e=G_e(tt()),XD=Ze(),q_e=(0,K_e.default)([(0,XD.jsx)("path",{d:"M15 2h-3.5l-1-1h-5l-1 1H1v2h14zm1 7c-.7 0-1.37.1-2 .29V5H2v12c0 1.1.9 2 2 2h5.68c1.12 2.36 3.53 4 6.32 4 3.87 0 7-3.13 7-7s-3.13-7-7-7zm0 12c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"},"0"),(0,XD.jsx)("path",{d:"M16.5 12H15v5l3.6 2.1.8-1.2-2.9-1.7z"},"1")],"AutoDelete");eV=t2.default=q_e;function Y_e({account:e,done:t,groups:n,addToBar:r,reload:o}){const[s,i]=c.useState(e),[l,a]=c.useState([]);c.useEffect(()=>{var v,y;i(e),a(n.filter(g=>g!==e.username)),Efe()||(y=(v=p.current)==null?void 0:v.querySelector("input"))==null||y.focus()},[JSON.stringify(e)]);const u=!e.username,f=!s.hasPassword,p=c.useRef();return c.createElement(Hc,{formRef:p,values:s,set(v,y){i(g=>st(xe({},g),{[y]:v}))},barSx:xe({gap:2,width:"100%"},eE()),stickyBar:!0,addToBar:[!u&&c.createElement(mn,{icon:_l,title:"Delete",confirm:"Delete?",onClick:()=>ct("del_account",{username:e.username}).then(o)}),c.createElement(mn,{icon:eV,title:"Invalidate past sessions",doneMessage:!0,disabled:e.invalidated,onClick:()=>ct("invalidate_sessions",{username:e.username}).then(o)}),...Zb(r)],fields:[{k:"username",label:f?"Group name":void 0,autoComplete:"off",required:!0,xl:f?12:4,getError:v=>v!==e.username&&ct("get_account",{username:v}).then(y=>(y==null?void 0:y.username)===e.username?"usernames are case-insensitive":"already used",()=>!1)},!f&&{k:"password",md:6,xl:4,type:"password",autoComplete:"new-password",required:u,label:u?"Password":"Change password"},!f&&{k:"password2",md:6,xl:4,type:"password",autoComplete:"new-password",label:"Repeat password",getError:(v,{values:y})=>(v||"")!==(y.password||"")&&"Enter same password"},{k:"disabled",comp:Dn,fromField:v=>!v,toField:v=>!v,label:"Enabled",xs:12,sm:6,xl:8,helperText:"Login is prevented if account is disabled, or if all its groups are disabled"},{k:"ignore_limits",comp:Dn,xs:"auto",helperText:s.ignore_limits?"Speed limits don't apply to this account":"Speed limits apply to this account"},xe({k:"admin",comp:Dn,fromField:v=>v||null,label:"Admin-panel access",xs:12,sm:6,xl:8,helperText:"To access THIS interface you are using right now"},!e.admin&&e.adminActualAccess&&{value:!0,helperText:"This permission is inherited"}),{k:"disable_password_change",comp:Dn,fromField:v=>!v,toField:v=>!v,label:"Allow password change",xs:"auto"},f&&c.createElement(kr,{severity:"info"},'To add users to this group, select the user and then click "Inherit"'),{k:"belongs",comp:o0,label:"Inherit from groups",options:l,helperText:"Specify groups to inherit permissions from"+(f?". A group can inherit from another group":"")+(l.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:kt,save:{sx:Zd(!Qv(s,e)),onClick(){return ot(this,null,function*(){const k=s,{password:v="",password2:y,adminActualAccess:g,hasPassword:C}=k,b=Ft(k,["password","password2","adminActualAccess","hasPassword"]),{username:w}=s;if(u){const M=yield ct("add_account",b);if(v)try{yield RS(w,v)}catch(E){throw ct("del_account",{username:w}).then(),E}t(M==null?void 0:M.username),rr("Account created","success");return}const S=yield ct("set_account",{username:e.username,changes:b});v&&(yield RS(w,v)),setTimeout(()=>rr("Account modified","success"),1),t(S==null?void 0:S.username)})}}})}function RS(e,t){return ot(this,null,function*(){const n=new gc.SRPRoutines(new gc.SRPParameters),r=yield gc.createVerifierAndSalt(n,e,t);return ct("change_srp_others",{username:e,salt:String(r.s),verifier:String(r.v)}).catch(o=>{if(o.code!==Wde)throw o;return ct("change_password_others",{username:e,newPassword:t})})})}const wC={fieldSeparator:",",lineSeparator:`
795
+ `,quote:'"'},_g={field:0,fieldOffset:0,line:0,lineOffset:0,quoted:!1,appendCell:!1,appendField:!1,appendRow:!1};class ZD extends Error{constructor(t,n){super(`Invalid CSV at ${t}:${n}`)}}class Q_e{constructor(t=wC){yi(this,"_rows",[]);yi(this,"_row",[]);yi(this,"_cell","");yi(this,"_options",wC);yi(this,"_state",xe({},_g));yi(this,"_index",0);yi(this,"_current","");yi(this,"_previous","");yi(this,"_quoteState",xe({},_g));this._options=Object.assign({},wC,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 ZD(this._quoteState.line,this._quoteState.lineOffset);return this.makeImmutable(),this._rows}get rows(){return this._rows}get json(){if(this.rows.length>0){const t=this.rows[0].filter(n=>typeof n=="string");return Object.freeze(this.rows.filter((n,r)=>n&&r>0).map(n=>{const r={};return t.forEach((o,s)=>{r[o]=n[s]}),Object.freeze(r)}))}return Object.freeze([])}handleNext(){this.handleQuote()||this.handleFieldSeparator()||this.handleLineSeparator(),this.processState()}handleQuote(){return this._current===this._options.quote?(this._quoteState=xe({},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 ZD(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=xe({},_g),this._index=0,this._current="",this._previous="",this._quoteState=xe({},_g)}}function X_e(e){return ot(this,null,function*(){W4(t=>ot(this,null,function*(){const n=t==null?void 0:t[0];if(!n)return;const r=yield G4(n);if(!r)return;const s=new Q_e().parse(r.trim()),i={comp:Vo,min:1,max:9,xs:6,typing:!0},l={skipFirstLines:0,usernameColumn:1,passwordColumn:2,groupColumn:3,redirectColumn:4,overwriteExistingAccounts:!1},a=yield uh({title:"Import accounts from CSV",dialogProps:{maxWidth:"sm"},values:l,form:p=>{const m=s[p.skipFirstLines||0],v=f(m,xe(xe({},l),p));return{save:{startIcon:c.createElement(Uh),children:"Go"},fields:[c.createElement(ze,{p:1},"Total lines:",s.length),{k:"skipFirstLines",comp:Vo,min:0,max:s.length-1,typing:!0,md:6,helperText:c.createElement(c.Fragment,{},"First line: ",c.createElement("code",{},m.join(", ")))},{k:"overwriteExistingAccounts",comp:Dn,md:6},st(xe({k:"usernameColumn"},i),{helperText:c.createElement(c.Fragment,{},"First username: ",v.u)}),st(xe({k:"passwordColumn"},i),{helperText:c.createElement(c.Fragment,{},"First password: ",v.p)}),st(xe({k:"groupColumn"},i),{helperText:c.createElement(c.Fragment,{},"First group: ",v.g)}),st(xe({k:"redirectColumn"},i),{helperText:c.createElement(c.Fragment,{},"First redirect: ",v.r)})]}}});if(!a)return;const{close:u}=Ro({title:"Importing...",Content(){const[p,m]=c.useState(0),[v,y]=c.useState();return c.useEffect(()=>{let g=!1;return setTimeout(()=>ot(this,null,function*(){var k;if(g)return;let C=0,b=0,w=a.skipFirstLines;const S=s.length-w;try{let M=0;for(const E of s){if(g)return;if(w){w--;continue}const I=f(E,a);y(I),m(M++/S),yield ct("add_account",{username:I.u,belongs:(k=I.g)==null?void 0:k.split(","),redirect:I.r,overwrite:a.overwriteExistingAccounts}).then(()=>{if(I.p)return RS(I.u,I.p)},R=>{if(R.code===Gde)return b++;C++})}}finally{u();const M=S-C-b,E="Results: "+[Oi("",C," failed"),Oi("",M," succeeded"),Oi("",b," skipped because already present")].filter(Boolean).join(", ");kt(E,!M&&C?"error":C||b?"warning":"success"),e==null||e()}})),()=>{g=!0}},[]),c.createElement(ze,{display:"flex",gap:2,alignItems:"center"},c.createElement(i5,{icon:XI,progress:p}),v==null?void 0:v.u)}});function f(p,m){return{u:p[m.usernameColumn-1],p:p[m.passwordColumn-1],g:p[m.groupColumn-1],r:p[m.redirectColumn-1]}}}),{multiple:!1,accept:".csv"})})}function Z_e(){const{username:e}=Wi(),{data:t,reload:n,element:r}=Qn("get_accounts"),[o,s]=c.useState([]),i=Array.isArray(o);c.useEffect(()=>{Array.isArray(t==null?void 0:t.list)&&i&&s(o.filter(y=>t.list.find(g=>(g==null?void 0:g.username)===y)))},[t]);const l=t==null?void 0:t.list,a=i&&rt.find(l,{username:o[0]}),f=Qo("md"),p=!(o.length>0)||!l?null:i&&o.length>1?c.createElement(c.Fragment,{},c.createElement(qr,{},c.createElement(qn,{variant:"h6"},o.length+" selected"),c.createElement(Yn,{onClick:v,startIcon:c.createElement(_l)},"Remove")),c.createElement(Nh,{},o.map(y=>c.createElement(fk,{key:y},c.createElement(Ri,{},y))))):Ma(a||{username:"",hasPassword:o==="new-user",adminActualAccess:!1,invalidated:!0},y=>c.createElement(Y_e,{account:y,groups:l.filter(g=>!g.hasPassword).map(g=>g.username),addToBar:f&&[c.createElement(ze,{flex:1}),JD(y,{fontSize:"large",sx:{p:1}}),c.createElement(mn,{icon:zh,title:"Close",onClick:m})],reload:n,done(g){s([g]),n()}}));return c.useEffect(()=>{if(f||!p||!o.length)return;const{close:y}=Ro({title:rt.isString(o)?rt.startCase(o):o.length>1?"Multiple selection":a?(a.hasPassword?"User: ":"Group: ")+a.username:"?",Content:()=>p,onClose:m});return y},[f,o,a]),r||c.createElement(ri,{container:!0,maxWidth:"80em"},c.createElement(ri,{item:!0,xs:12},c.createElement(ze,{display:"flex",flexWrap:"wrap",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},c.createElement(j3,{variant:"contained",startIcon:c.createElement(Jz),items:[{children:"user",onClick:()=>s("new-user")},{children:"group",onClick:()=>s("new-group")},{children:"from CSV",onClick:()=>X_e(n)}]},"Add"),s0(n),(l==null?void 0:l.length)>0&&c.createElement(qn,{p:1},`${l.length} account(s)`))),c.createElement(ri,{item:!0,md:5},!(l!=null&&l.length)&&c.createElement(kr,{severity:"info"},er`To access administration <u>remotely</u> you will need to create a user account with admin permission`),c.createElement(_3,{multiSelect:!0,sx:{pr:4,pb:2,minWidth:"15em"},selected:i?o:[],onNodeSelect(y,g){s(g)}},l==null?void 0:l.map(y=>{var g,C;return c.createElement(hS,{key:y.username,nodeId:y.username,label:c.createElement(ze,{sx:{display:"flex",flexWrap:"wrap",padding:".2em 0",gap:".5em",alignItems:"center"}},JD(y),y.adminActualAccess&&Wr(Xz,"Can login into Admin"),y.username,!!((g=y.belongs)!=null&&g.length)&&c.createElement(ze,{sx:{color:"text.secondary",fontSize:"small"}},"(",(C=y.belongs)==null?void 0:C.join(", "),")"))})}))),f&&p&&c.createElement(ri,{item:!0,md:7},c.createElement(Rb,{},c.createElement(Ob,{},p))));function m(){s([])}function v(){return ot(this,null,function*(){if(o.length>rt.pull(o,e).length&&(yield kt("Won't delete current account","warning")),!!o.length&&(yield xr(`Delete ${o.length} item(s)?`)))try{const y=[];for(const g of o)(yield ct("del_account",{username:g}).then(()=>1,()=>0))||y.push(g);if(n(),y.length)return kt("Following elements couldn't be deleted: "+y.join(", "),"error")}catch(y){yield kt(y)}})}}function JD(e,t={}){return c.createElement(c.Fragment,{},c.createElement(e.hasPassword?Zz:XI,t),e.disabled&&c.createElement(Qz))}var n2={},J_e=et;Object.defineProperty(n2,"__esModule",{value:!0});var tV=n2.default=void 0,eTe=J_e(tt()),tTe=Ze(),nTe=(0,eTe.default)((0,tTe.jsx)("path",{d:"M13 3h-2v10h2V3zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"}),"PowerSettingsNew");tV=n2.default=nTe;function rTe(){const{element:e}=Qn("get_config",{only:[]}),{username:t}=Wi();return e||c.createElement(ze,{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:2},t?c.createElement(c.Fragment,{},"You are logged in as: "+t,c.createElement(Xo,{icon:xk,size:"large",variant:"contained",onClick:()=>ct("logout").catch(r=>r.code!==Xd&&kt(r))},"I want to logout")):c.createElement(kr,{severity:"info"},"You are not logged in, because authentication is not required on localhost"),c.createElement(Xo,{icon:tV,size:"large",variant:"contained",color:"warning",confirm:"Stopping the server, this interface won't respond anymore",onClick(){return ot(this,null,function*(){yield ct("quit"),yield kt("Good-bye","success"),location.reload()})}},"Quit HFS"))}function oTe(){const{list:e,error:t,connecting:n,reload:r}=Sl("get_langs"),o=c.useMemo(()=>["en",...rt.uniq(e.map(l=>l.code))],[e]),s=Qo("md");return c.createElement(c.Fragment,{},s&&c.createElement(kr,{severity:"info"},"Translation is limited to Front-end, it doesn't apply to Admin-panel"),c.createElement(ze,{mt:1,maxWidth:"40em",flex:1,display:"flex",flexDirection:"column"},c.createElement(ze,{mb:1,display:"flex"},c.createElement(Yn,{variant:"contained",startIcon:c.createElement(Uh),onClick:i},"Add"),c.createElement(ze,{flex:1}),c.createElement(sTe,{langs:o})),c.createElement(Yh,{error:t,loading:n,rows:e,hideFooter:!0,sx:{flex:1},columns:[{field:"code",width:110,valueFormatter:({value:l})=>l==null?void 0:l.toUpperCase()},{field:"version",width:120,hideUnder:"sm"},{field:"hfs_version",headerName:"HFS version",width:110},{field:"author",flex:1,hideUnder:"sm"}],actions:({row:l})=>[c.createElement(mn,{icon:_l,title:l.embedded?"Cannot delete (embedded)":"Delete",confirm:"Delete?",disabled:l.embedded,onClick(){return ot(this,null,function*(){yield ct("del_lang",rt.pick(l,"code")),r(),rr("Deleted")})}})]})));function i(){W4(l=>ot(this,null,function*(){if(!l)return;const a={};for(const u of l)a[u.name]=yield G4(u);try{yield ct("add_langs",{langs:a}),r(),rr("Loaded")}catch(u){yield kt(u)}}),{accept:".json"})}}function sTe({langs:e}){const t="force_lang",{data:n,reload:r,loading:o}=Qn("get_config",{only:[t]}),[s,i]=c.useState();c.useEffect(()=>{var f;return i((f=n==null?void 0:n[t])!=null?f:s)},[n]);const[l,a]=c.useState();return c.createElement(Kr,{fullWidth:!1,disabled:o||typeof l=="string",value:l!=null?l:s,onChange(f){return ot(this,null,function*(){a(f);try{yield ct("set_config",{values:{[t]:f}}),yield r()}finally{a(void 0)}})},options:[{label:"Respect browser language",value:""},...e.map(f=>({value:f,label:"Force language: "+f}))]})}var r2={},iTe=et;Object.defineProperty(r2,"__esModule",{value:!0});var OS=r2.default=void 0,lTe=iTe(tt()),aTe=Ze(),cTe=(0,lTe.default)((0,aTe.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");OS=r2.default=cTe;var o2={},uTe=et;Object.defineProperty(o2,"__esModule",{value:!0});var nV=o2.default=void 0,dTe=uTe(tt()),fTe=Ze(),pTe=(0,dTe.default)((0,fTe.jsx)("path",{d:"M16 18v2H8v-2h8zM11 7.99V16h2V7.99h3L12 4 8 7.99h3z"}),"Upgrade");nV=o2.default=pTe;function eA({updates:e}){const{list:t,updateEntry:n,error:r,initializing:o}=Sl(e?"get_plugin_updates":"get_plugins"),s="small";return c.createElement(Yh,{error:zk(r,aV),rows:t.length?t:[],initializing:o,disableColumnSelector:!0,disableColumnMenu:!0,hideFooter:!0,noRows:e&&'No updates available. Only plugins available on "search online" are checked.',columns:[{field:"id",headerName:"name",flex:.3,minWidth:150,renderCell:rV,mergeRender:{other:"description",fontSize:"x-small"}},{field:"version",width:70,hideUnder:"sm"},{field:"description",flex:1,hideUnder:"sm"}],actions:({row:i,id:l})=>e?[c.createElement(mn,{icon:nV,title:i.updated?"Already updated":"Update",disabled:i.updated,size:s,onClick(){return ot(this,null,function*(){yield ct("update_plugin",{id:l},{timeout:!1}).catch(m=>{var v;throw m.code!==Wx?m:Error("Failed dependencies: "+((v=m.cause)==null?void 0:v.map(y=>Oi('plugin "',y.id||y.repo,'" ')+y.error).join("; ")))}),n({id:l},{updated:!0}),rr("Plugin updated")})}})]:[c.createElement(mn,i.started?{icon:OS,title:c.createElement(ze,{},`Stop ${l}`,c.createElement("br"),"Started "+new Date(i.started).toLocaleString()),size:s,color:"success",onClick(){return ot(this,null,function*(){yield ct("stop_plugin",{id:l}),rr("Plugin stopped",c.createElement(OS,{color:"warning"}))})}}:{icon:e0,title:`Start ${l}`,size:s,onClick:()=>sV(l)}),c.createElement(mn,{icon:Ik,title:"Options",size:s,disabled:!i.started&&"Start plugin to access options"||!i.config&&"No options available for this plugin",progress:!1,onClick(){return ot(this,null,function*(){const m=yield ct("get_plugin",{id:l});let v=m.config;const y=yield uh({title:`Options for ${l}`,form:C=>({before:c.createElement(ze,{mx:2,mb:3},i.description),fields:oV(i.config),save:{children:"Save and close"},barSx:{gap:1},addToBar:[c.createElement(Xo,{variant:"outlined",onClick:()=>g(C)},"Save")]}),values:m.config,dialogProps:rt.merge({sx:{m:"auto"}},i.configDialog)});if(y&&!rt.isEqual(v,y))return g(y);function g(C){return ot(this,null,function*(){yield ct("set_plugin",{id:l,config:C}),Object.assign(v,C),rr("Configuration saved")})}})}}),c.createElement(mn,{icon:_l,title:"Uninstall",size:s,confirm:"Remove?",onClick(){return ot(this,null,function*(){yield ct("uninstall_plugin",{id:l}),rr("Plugin uninstalled")})}})]})}function rV({row:e,value:t}){const{repo:n}=e;return c.createElement(c.Fragment,{},r(e.badApi,!0),r(e.error),n!=null&&n.includes("//")?c.createElement(Ls,{href:n,target:"plugin"},t):n?Ma(n==null?void 0:n.split("/"),o=>c.createElement(c.Fragment,{},c.createElement(Ls,{href:"https://github.com/"+n,target:"plugin"},o[1])," by ",o[0])):t);function r(o,s=!1){return o&&c.createElement(Ml,{title:o,children:c.createElement(n0,{fontSize:"small",color:s?"warning":"error",sx:{ml:-.5,mr:.5}})})}}function oV(e){return Object.entries(e).map(([t,n])=>{if(!rt.isPlainObject(n))return n;let u=n,{type:r,defaultValue:o,fields:s,frontend:i}=u,l=Ft(u,["type","defaultValue","fields","frontend"]);const a=hTe[r];return a===xh&&(s=oV(s)),o!==void 0&&r==="boolean"&&(l.placeholder=`Default value is ${JSON.stringify(o)}`),xe({k:t,comp:a,fields:s},l)})}const hTe={string:Ui,number:Vo,boolean:Dn,select:Kr,multiselect:o0,array:xh,real_path:Ap};function sV(e){return ot(this,null,function*(){try{return yield ct("start_plugin",{id:e}),rr("Plugin started",c.createElement(e0,{color:"success"})),!0}catch(t){kt(`Plugin ${e} didn't start, with error: ${String((t==null?void 0:t.message)||t)}`,"error")}})}var s2={},mTe=et;Object.defineProperty(s2,"__esModule",{value:!0});var iV=s2.default=void 0,gTe=mTe(tt()),vTe=Ze(),yTe=(0,gTe.default)((0,vTe.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");iV=s2.default=yTe;function bTe(){const[e,t]=c.useState(""),n=Tk(e,1e3),{list:r,error:o,initializing:s}=Sl("get_online_plugins",{text:n}),i=Wi();return c.createElement(c.Fragment,{},c.createElement(Ui,{value:e,onChange:t,start:c.createElement(iV),typing:!0,label:"Search text"}),c.createElement(Yh,{error:zk(o,aV),rows:r.length?r:[],noRows:"No compatible plugins have been found",initializing:s,columnVisibilityModel:i.onlinePluginsColumns,onColumnVisibilityModelChange:a=>Object.assign(ln.onlinePluginsColumns,a),columns:[{field:"id",headerName:"name",flex:1,renderCell:rV,mergeRender:{other:"description",fontSize:"x-small"}},{field:"version",width:70},{field:"pushed_at",headerName:"last update",valueGetter:({value:a})=>new Date(a).toLocaleDateString()},{field:"license",width:80},{field:"description",flex:3,hideUnder:"sm"},{field:"stargazers_count",width:50,headerName:"stars",align:"center",hideUnder:"sm"}],actions:({row:a,id:u})=>[c.createElement(mn,{icon:hE,title:"Install",progress:a.downloading,disabled:a.installed&&"Already installed",tooltipProps:{placement:"bottom-end"},confirm:"WARNING - Proceed only if you trust this author and this plugin",onClick(){return ot(this,null,function*(){if(a.missing&&!(yield xr("This will also install: "+rt.map(a.missing,"repo").join(", "))))return;const p=a.branch||a.default_branch;l(u,p).catch(m=>{if(m.code!==Wx)return kt(m);const v=c.createElement(c.Fragment,{},"This plugin has some dependencies unmet:",m.data.map(y=>c.createElement("li",{key:y.repo},y.repo+": "+y.error)));return kt(v,"error")})})}})]}));function l(a,u){return ot(this,null,function*(){try{const f=yield ct("download_plugin",{id:a,branch:u},{timeout:!1});(yield xr(`Plugin ${a} downloaded`,{confirmText:"Start"}))&&(yield sV(f.id))}catch(f){let p=!1;if(f.code===Wx)for(const m of f.cause)m.error==="missing"&&(rr("Installing dependency: "+m.repo),yield l(m.repo),p=!0);if(p)return l(a,u);throw f}})}}const lV={Installed:eA,"Search online|Search":bTe,"Check updates|Updates":()=>c.createElement(eA,{updates:!0})},wTe=Object.keys(lV),CTe=Object.values(lV),aV={ENOTFOUND:"Cannot reach github.com"};function xTe(){const[e,t]=c.useState(0),n=!Qo("sm");return c.createElement(c.Fragment,{},c.createElement(gk,{value:e,onChange(r,o){t(o)}},wTe.map(r=>c.createElement(Uv,{key:r,label:r.split("|").slice(n?-1:0)[0]}))),c.createElement(CTe[e]))}function STe(){const{data:e,reload:t}=Qn("get_custom_html"),[n,r]=c.useState(""),[o,s]=c.useState({}),[i,l]=c.useState({});c.useEffect(()=>e&&l(e==null?void 0:e.sections),[e]),c.useEffect(()=>s(i),[i]);const a=c.useMemo(()=>{const p=rt.sortBy(Object.keys(o),m=>!isNaN(+m));return p.includes(n)||r(rt.findKey(o,Boolean)||(p==null?void 0:p[0])||""),p.map(m=>{var v;return{value:m,label:(Oi("HTTP ",Yde[m])||rt.startCase(m))+((v=o[m])!=null&&v.trim()?" *":"")}})},[Tk(o,500)]),u=c.useMemo(()=>!rt.isEqualWith(i,o,(p,m)=>!p&&!m||void 0),[i,o]);return c.createElement(c.Fragment,{},c.createElement(kr,{severity:"info"},er("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. "),Oc("customization","More help")),c.createElement(ze,{display:"flex",alignItems:"center",gap:1,mb:1},c.createElement(Kr,{label:"Section",value:n,options:a,onChange:r}),s0(t),c.createElement(mn,{icon:Vh,title:`Save
796
+ (ctrl+enter)`,sx:Zd(u),onClick:f})),c.createElement(WI,{value:(o==null?void 0:o[n])||"",style:{background:"#8881"},onValueChange(p){s(m=>st(xe({},m),{[n]:p}))},onKeyDown(p){["s","Enter"].includes(Bb(p))&&(f().then(),p.preventDefault())}}));function f(){return ct("set_custom_html",{sections:o}).then(()=>l(o))}}var i2={},PTe=et;Object.defineProperty(i2,"__esModule",{value:!0});var cV=i2.default=void 0,kTe=PTe(tt()),Tg=Ze(),ETe=(0,kTe.default)([(0,Tg.jsx)("path",{d:"M17 11h2v2h-2v2h2v2h-2v2h4V5h-9v1.4l5 3.57V11zm0-4h2v2h-2V7z",opacity:".3"},"0"),(0,Tg.jsx)("path",{d:"M10 3v1.97l.96.69L12 6.4V5h9v14h-4v2h6V3z"},"1"),(0,Tg.jsx)("path",{d:"M3 12v7h2v-5h6v5h2v-7L8 8.5z",opacity:".3"},"2"),(0,Tg.jsx)("path",{d:"M17 7h2v2h-2zm0 4h2v2h-2zm0 4h2v2h-2zM1 11v10h6v-5h2v5h6V11L8 6l-7 5zm12 8h-2v-5H5v5H3v-7l5-3.5 5 3.5v7z"},"3")],"HomeWorkTwoTone");cV=i2.default=ETe;var l2={},ITe=et;Object.defineProperty(l2,"__esModule",{value:!0});var uV=l2.default=void 0,MTe=ITe(tt()),tA=Ze(),_Te=(0,MTe.default)([(0,tA.jsx)("path",{d:"M14.99 4.59V5c0 1.1-.9 2-2 2h-2v2c0 .55-.45 1-1 1h-2v2h6c.55 0 1 .45 1 1v3h1c.89 0 1.64.59 1.9 1.4C19.19 15.98 20 14.08 20 12c0-3.35-2.08-6.23-5.01-7.41zM8.99 16v-1l-4.78-4.78C4.08 10.79 4 11.39 4 12c0 4.07 3.06 7.43 6.99 7.93V18c-1.1 0-2-.9-2-2z",opacity:".3"},"0"),(0,tA.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1.01 17.93C7.06 19.43 4 16.07 4 12c0-.61.08-1.21.21-1.78L8.99 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.53c-.26-.81-1-1.4-1.9-1.4h-1v-3c0-.55-.45-1-1-1h-6v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41C17.92 5.77 20 8.65 20 12c0 2.08-.81 3.98-2.11 5.4z"},"1")],"PublicTwoTone");uV=l2.default=_Te;var a2={},TTe=et;Object.defineProperty(a2,"__esModule",{value:!0});var dV=a2.default=void 0,$Te=TTe(tt()),nA=Ze(),RTe=(0,$Te.default)([(0,nA.jsx)("path",{d:"M15 15H5v4h14v-4h-4zm-7 3H6v-2h2v2zm3.5 0h-2v-2h2v2zm3.5 0h-2v-2h2v2z",opacity:".3"},"0"),(0,nA.jsx)("path",{d:"M16 4.2c1.5 0 3 .6 4.2 1.7l.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2zm-3.3 2.5.8.8c.7-.7 1.6-1 2.5-1s1.8.3 2.5 1l.8-.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4zM19 13h-2V9h-2v4H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm0 6H5v-4h14v4zM6 16h2v2H6zm3.5 0h2v2h-2zm3.5 0h2v2h-2z"},"1")],"RouterTwoTone");dV=a2.default=RTe;var c2={},OTe=et;Object.defineProperty(c2,"__esModule",{value:!0});var fV=c2.default=void 0,DTe=OTe(tt()),ATe=Ze(),LTe=(0,DTe.default)((0,ATe.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");fV=c2.default=LTe;var u2={},FTe=et;Object.defineProperty(u2,"__esModule",{value:!0});var pV=u2.default=void 0,NTe=FTe(tt()),BTe=Ze(),zTe=(0,NTe.default)((0,BTe.jsx)("path",{d:"M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"}),"Storage");pV=u2.default=zTe;const rA=$B.filter(e=>Ewe.includes(e.code)),oA="https://portforward.com/",CC=1080,xC=`It is possible that your Internet Provider won't let you get incoming connections. Ask them if they sell "public IP" as an extra service.`;function VTe(){var V,j,_,T;const[e,t]=c.useState(),[n,r]=c.useState(!1),[o,s]=c.useState(!1),[i,l]=c.useState(!1),a=Qn("get_status"),u=Qn("get_config",{only:["base_url"]}),f=Ma([(j=(V=a.data)==null?void 0:V.http)==null?void 0:j.error,(T=(_=a.data)==null?void 0:_.https)==null?void 0:T.error],([F,B])=>F&&B?"error":F||B?"warning":"success"),{data:p,reload:m,error:v,loading:y,element:g}=Qn("get_nat"),C=p==null?void 0:p.internalPort,b=(p==null?void 0:p.mapped)&&p.mapped.private.port!==C&&p.mapped.private.port,w=(p==null?void 0:p.externalIp)&&(p==null?void 0:p.publicIps)&&!p.publicIps.includes(p.externalIp);return c.useEffect(()=>{!i||!p||y||(R().then(),l(!1))},[i,p,y]),c.createElement(qr,{vert:!0,gap:"2em",maxWidth:"40em"},c.createElement(kr,{severity:"info"},"This page makes sure your site is working correctly on the Internet"),E(),I(),k(),S());function S(){const F=c.useMemo(()=>rt.sortBy(rA,"name").map(B=>({value:B.code,label:`${B.flag} ${B.name}`})),[rA]);return c.createElement(PC,{title:"Geo IP",icon:Wv},c.createElement(vS,{keys:[Bn.geo_enable,Bn.geo_allow,Bn.geo_list,Bn.geo_allow_unknown],form:B=>{var O;return{fields:[{k:Bn.geo_enable,comp:Dn,label:"Enable",helperText:"Necessary database will be downloaded every month (2MB)"},...B[Bn.geo_enable]?[{k:Bn.geo_allow,comp:Kr,label:"Rule",options:{"no restriction":null,"block selected countries":!1,"allow selected countries":!0}},B[Bn.geo_allow]!=null&&{k:Bn.geo_list,comp:o0,label:`Selected countries (${((O=B[Bn.geo_list])==null?void 0:O.length)||0})`,placeholder:"none",options:F,clearable:!0},B[Bn.geo_allow]!=null&&{k:Bn.geo_allow_unknown,comp:Kr,label:"When country cannot be determined",options:{Allow:!0,Block:!1}}]:[]]}}}))}function k(){const[F,B]=c.useState(),O=Qn("get_cert");if(c.useEffect(()=>{ct("get_config",{only:["acme_domain","acme_email","acme_renew"]}).then(B)},[]),!a||!F)return c.createElement(zi);const{https:N}=a.data||{},H=(N==null?void 0:N.port)===Hde,K=N==null?void 0:N.error;return g||a.element||c.createElement(PC,{title:"HTTPS",icon:l0,color:N!=null&&N.listening&&!K?"success":"warning"},K?c.createElement(kr,{severity:"warning"},K):H&&c.createElement(al,{onClick:M},"Not enabled"),O.element||Ma(O.data,J=>{var Y,X;return J.none?c.createElement(al,{onClick:()=>wy().then(O.reload)},"No certificate configured"):c.createElement(ze,{},c.createElement(LE,{fontSize:"small",sx:{mr:1,verticalAlign:"middle"}}),"Current certificate",c.createElement("ul",{},c.createElement("li",{},"Domain: ",((Y=J.altNames)==null?void 0:Y.join(" + "))||"-"),c.createElement("li",{},"Issuer: ",((X=J.issuer)==null?void 0:X.O)||c.createElement("i",{},"self-signed")),c.createElement("li",{},"Validity: ",["validFrom","validTo"].map(ee=>Gx(J[ee])).join(" – "))))}),c.createElement(Pd),c.createElement(Hc,{gap:1,gridProps:{rowSpacing:1},values:F,set(J,Y){B(X=>{const ee=st(xe({},X),{[Y]:J});return ct("set_config",{values:ee}),ee})},fields:[er("Generate certificate using [Let's Encrypt](https://letsencrypt.org)"),{k:"acme_domain",label:"Domain for certificate",sm:6,required:!0,helperText:er(`Example: your.domain.com
797
+ Multiple domains separated by commas`)},{k:"acme_email",label:"E-mail for certificate",sm:6},{k:"acme_renew",label:"Automatic renew one month before expiration",comp:Dn,disabled:!F.acme_domain}],save:{children:"Request",startIcon:c.createElement(fV),onClick(){return ot(this,null,function*(){var se;const[J,...Y]=F.acme_domain.split(",");J===((se=O.data.subject)==null?void 0:se.CN)&&Number(new Date(O.data.validTo))-Date.now()>=30*Jde&&!(yield xr("Your certificate is still good",{confirmText:"Make a new one anyway"}))||!(yield xr("HFS must temporarily serve HTTP on public port 80, and your router must be configured or this operation will fail"))||(yield ct("check_domain",{domain:J}).catch(Z=>xr(String(Z),{confirmText:"Continue anyway"})))===!1||(yield ct("make_cert",{domain:J,altNames:Y,email:F.acme_email},{timeout:2e4}).then(()=>ot(this,null,function*(){yield kt("Certificate created","success"),H&&(yield M()),O.reload()}),kt))})}}}))}function M(){return ot(this,null,function*(){if(!(yield xr(`HTTPS is currently disabled.
798
+ Full configuration is available in the Options page.`,{confirmText:"Enable it"})))return;const F=o5();try{yield ct("set_config",{values:{https_port:443}}),yield Bh(1e3),a.reload()}finally{F()}})}function E(){var N;const F=(N=u.data)==null?void 0:N.base_url,B=F&&new URL(F).hostname,O=!yfe(B)&&B;return u.element||c.createElement(PC,{icon:Wv,title:"Address / Domain"},c.createElement(qr,{flexWrap:"wrap"},F||"Automatic, not configured",c.createElement(qr,{},c.createElement(Xo,{size:"small",variant:"outlined",onClick:()=>void Fz().then(u.reload)},"Change"),O&&c.createElement(Xo,{size:"small",variant:"outlined",onClick:()=>ct("check_domain",{domain:O}).then(()=>kt("Domain seems ok","success"))},"Check"))),c.createElement(vS,{keys:["force_base_url"],saveOnChange:!0,form:{fields:[{k:"force_base_url",comp:Dn,label:"Accept requests only using domain (and localhost)"}]}}))}function I(){if(v)return g;if(!p)return c.createElement(zi);const F=p==null?void 0:p.publicIps.includes(p==null?void 0:p.localIp);return c.createElement(qr,{justifyContent:"space-around"},c.createElement(SC,{name:"Server",icon:F?pV:cV,color:f,ip:p==null?void 0:p.localIp,below:C&&c.createElement(ze,{fontSize:"smaller"},"port ",C)}),!F&&c.createElement(sA),!F&&c.createElement(SC,{name:"Router",icon:dV,ip:p==null?void 0:p.gatewayIp,color:(p==null?void 0:p.mapped)&&(b?"warning":"success"),below:o?c.createElement(Vv,{sx:{height:"1em"}}):c.createElement(al,{fontSize:"smaller",display:"block",onClick:A},"port ",b?"is wrong":(p==null?void 0:p.externalPort)||"unknown")}),c.createElement(sA),c.createElement(SC,{name:"Internet",icon:uV,ip:p==null?void 0:p.publicIps,color:e?"success":e===!1?"error":w?"warning":void 0,below:n?c.createElement(Vv,{sx:{height:"1em"}}):c.createElement(ze,{fontSize:"smaller"},w&&c.createElement(al,{display:"block",onClick:()=>kt(xC,"warning")},"Double NAT"),e?"Working!":e===!1?"Failed!":""," ",(p==null?void 0:p.publicIps.length)>0&&p.internalPort&&c.createElement(al,{onClick:R},"Verify"))}))}function R(){return ot(this,null,function*(){var B;if(!p||(t(void 0),!i&&!(yield xr("This test will check if your server is working properly on the Internet"))))return;r(!0);try{const O=(B=u.data)==null?void 0:B.base_url,N=O&&(yield ct("self_check",{url:O}).catch(()=>kt(er(`Sorry, we couldn't verify your configured address ${O} 😰
799
+ still, we are going to test your IP address 🤞`),"warning")));if(N!=null&&N.success)return t(!0),kt(c.createElement(ze,{},"Your server is responding correctly over the Internet:",c.createElement("ul",{},c.createElement("li",{},N.url))),"success");(N==null?void 0:N.success)===!1&&(yield kt(er(`Your configured address ${O} doesn't seem to work 😰
800
+ still, we are going to test your IP address 🤞`),"warning"));const H=yield ct("self_check",{});if(H.some(Y=>Y.success)){t(!0);const Y=N.success===!1&&er(`Your server is responding over the Internet 👍
801
+ but not with configured address ${O} 👎
802
+ just on your IP:`);return kt(c.createElement(ze,{},Y||"Your server is responding correctly over the Internet:",c.createElement("ul",{},...H.map(X=>c.createElement("li",{},X.url)))),Y?"warning":"success")}if(t(!1),b)return $().then(F);if(w)return kt(xC,"warning");const K="We couldn't reach your server from the Internet. ";if(p.upnp&&!p.mapped)return xr(K+"Try port-forwarding on your router",{confirmText:"Fix it"}).then(Y=>{if(Y){try{L(p.internalPort,"","")}catch(X){L(CC,"")}rr("Port forwarded, now verify again","success"),F()}});const Q=yield ct("get_config",{only:[Bn.geo_enable,Bn.geo_allow]}),{close:J}=kt(c.createElement(ze,{},K+"Possible causes:",c.createElement("ul",{},Q[Bn.geo_enable]&&Q[Bn.geo_allow]!=null&&c.createElement("li",{},"You may be blocking a country from where the test is performed"),!p.upnp&&c.createElement("li",{},"Your router may need to be configured. ",c.createElement(Ls,{href:oA,target:"help"},"How?")),c.createElement("li",{},"There could be a firewall, try configuring or disabling it."),(p.externalPort||p.internalPort)<=1024&&c.createElement("li",{},"Your Internet Provider may be blocking ports under 1024. ",p.upnp&&c.createElement(Yn,{size:"small",onClick(){J(),L(CC).then(F)}},"Try "+CC)),p.mapped&&c.createElement("li",{},"A bug in your modem/router, try rebooting it."),c.createElement("li",{},xC))),"warning")}catch(O){kt(O)}finally{r(!1)}function F(){l(!0)}})}function A(){return ot(this,null,function*(){if(!p)return;if(b)return(yield xr(`There is a port-forwarding but it is pointing to the wrong port (${b})`,{confirmText:"Fix it"}))&&$();if(!p.upnp)return kt(c.createElement(ze,{lineHeight:1.5},er(`We cannot help you configuring your router because UPnP is not available.
803
+ Find more help [on this website](${oA}).`)),"info");const F=yield jh(er(`This will ask the router to map your port, so that it can be reached from the Internet.
804
+ You can set the same number of the local network (${C}), or a different one.`),{value:p.externalPort||C,field:{label:"Port seen from the Internet",comp:Vo},addToBar:p.mapped&&[c.createElement(Yn,{color:"warning",onClick:B},"Remove")],dialogProps:{sx:{maxWidth:"20em"}}});F&&(yield L(Number(F),"Port forwarded"));function B(){Vi(),L(0,"Port removed")}})}function $(){return p!=null&&p.externalPort?L(p.externalPort,"Forwarding corrected"):kt("externalPort not found","error")}function L(F,B="",O="Operation failed"){return ot(this,null,function*(){s(!0);try{yield ct("map_port",{external:F}),m(),B&&rr(B,"success"),t(void 0)}catch(N){if(O){const H=F&&Math.min(F,p.internalPort)<1024,K=O+(H?". Some routers refuse to work with ports under 1024.":"");yield kt(K,"error")}throw N}finally{s(!1)}})}}function sA(){return c.createElement(ze,{flex:1,className:"animated-dashed-line"})}function SC({name:e,icon:t,color:n,ip:r,below:o}){const s="min(20vw, 10vh)";return c.createElement(ze,{display:"inline-block",textAlign:"center"},c.createElement(t,{color:n,sx:{fontSize:s,mb:"-0.1em"}}),c.createElement(ze,{fontSize:"larger"},e),c.createElement(ze,{fontSize:"smaller",whiteSpace:"pre-wrap"},Zb(r).join(`
805
+ `)||"unknown"),o)}function PC({title:e,icon:t,color:n,children:r}){return c.createElement(Rb,{},c.createElement(Ob,{},c.createElement(qr,{vert:!0},c.createElement(ze,{fontSize:"x-large"},t&&c.createElement(t,{color:n,sx:{mr:1,verticalAlign:"bottom",mb:"2px"}}),e),r)))}const DS=[{path:"",icon:Fb,label:"Home",title:"Admin panel",comp:HMe},{path:"fs",icon:m4,label:"Shared files",comp:mMe},{path:"accounts",icon:y4,comp:Z_e},{path:"options",icon:Ik,comp:u_e},{path:"internet",icon:Wv,comp:VTe},{path:"monitoring",icon:b4,comp:w_e,noPaddingOnMobile:!0},{path:"logs",icon:v4,comp:v_e,noPaddingOnMobile:!0},{path:"language",icon:w4,comp:oTe},{path:"plugins",icon:g4,comp:xTe,noPaddingOnMobile:!0},{path:"html",icon:C4,label:"Custom HTML",comp:STe},{path:"logout",icon:xk,comp:rTe}];function iA({onSelect:e}){const{VERSION:t}=Jb(),n="hfs-logo.svg",r=Nb().height<700;return c.createElement(ze,{display:"flex",flexDirection:"column",bgcolor:"primary.main",minHeight:"100%"},c.createElement(Nh,{sx:{pr:1,py:0,color:"primary.contrastText",height:"100vh",boxSizing:"border-box",overflowY:"auto",position:"sticky",top:0,display:"flex",flexDirection:"column","&>a":{flex:"0"}}},c.createElement(ze,{display:"flex",px:2,py:.5,gap:2,alignItems:"center"},c.createElement(ze,{fontSize:"min(3rem, max(5vw, 4vh))"},"HFS"),c.createElement(ze,{fontSize:"small"},Jk(t||"",/-/,()=>c.createElement("br"))),r&&c.createElement("img",{src:n,style:{height:"2.5em"}})),DS.map(o=>c.createElement(mie,{key:o.path,to:o.path,component:rq,onClick:e,style:({isActive:s})=>s?{textDecoration:"underline"}:{},children:void 0},o.icon&&c.createElement(hl,{sx:{color:"primary.contrastText",minWidth:48}},c.createElement(o.icon)),c.createElement(Ri,{sx:{whiteSpace:"nowrap"},primary:hV(o)}))),!r&&c.createElement(ze,{sx:{flex:1,opacity:.7,background:`url(${n}) no-repeat bottom`,backgroundSize:"contain",margin:2}})))}function hV(e){var t;return e&&((t=e.label)!=null?t:rt.capitalize(e.path))}function jTe({children:e}){const{loginRequired:t}=Wi();return t===Yb?c.createElement(Hh,{},c.createElement(kr,{severity:"error"},"Admin-panel only for localhost"),c.createElement(ze,{mt:2,fontSize:"small"},"because no admin account was configured")):t?c.createElement(HTe):c.createElement(c.Fragment,{},e)}function HTe(){var i;const[e,t]=c.useState({username:"",password:""}),[n,r]=c.useState(""),o=c.useRef(),s=(i=o.current)==null?void 0:i.querySelector('input[value=""]');return c.useEffect(()=>{var a;return(a=s==null?void 0:s.focus)==null?void 0:a.call(s)},[s]),c.createElement(Hh,{},c.createElement(Hc,{formRef:o,values:e,set(a,u){t(f=>st(xe({},f),{[u]:a}))},fields:[{k:"username",autoComplete:"username",autoFocus:!0,required:!0},{k:"password",type:"password",autoComplete:"current-password",required:!0}],addToBar:[n&&c.createElement(kr,{severity:"error",sx:{flex:1}},n)],saveOnEnter:!0,save:{children:"Enter",startIcon:null,onClick(){return ot(this,null,function*(){try{r(""),yield UTe(e.username,e.password)}catch(a){r(String(a))}})}}}))}function UTe(e,t){return ot(this,null,function*(){const n=yield dde(e,t,ct).catch(r=>{throw(r==null?void 0:r.code)===Xd?"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";ln.loginRequired=!1,mV(n)})}const mV=Ife(ln);mV(Jb().session);var d2={},WTe=et;Object.defineProperty(d2,"__esModule",{value:!0});var gV=d2.default=void 0,GTe=WTe(tt()),KTe=Ze(),qTe=(0,GTe.default)((0,KTe.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");gV=d2.default=qTe;var vV={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(sn,function(){var n="week",r="year";return function(o,s,i){var l=s.prototype;l.week=function(a){if(a===void 0&&(a=null),a!==null)return this.add(7*(a-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=i(this).startOf(r).add(1,r).date(u),p=i(this).endOf(n);if(f.isBefore(p))return 1}var m=i(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),v=this.diff(m,n,!0);return v<0?i(this).startOf("week").week():Math.ceil(v)},l.weeks=function(a){return a===void 0&&(a=null),this.week(a)}}})})(vV);var YTe=vV.exports;const QTe=di(YTe);var yV={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(sn,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,s=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,l={},a=function(g){return(g=+g)+(g>68?1900:2e3)},u=function(g){return function(C){this[g]=+C}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var b=C.match(/([+-]|\d\d)/g),w=60*b[1]+(+b[2]||0);return w===0?0:b[0]==="+"?-w:w}(g)}],p=function(g){var C=l[g];return C&&(C.indexOf?C:C.s.concat(C.f))},m=function(g,C){var b,w=l.meridiem;if(w){for(var S=1;S<=24;S+=1)if(g.indexOf(w(S,0,C))>-1){b=S>12;break}}else b=g===(C?"pm":"PM");return b},v={A:[i,function(g){this.afternoon=m(g,!1)}],a:[i,function(g){this.afternoon=m(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[o,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[s,u("seconds")],ss:[s,u("seconds")],m:[s,u("minutes")],mm:[s,u("minutes")],H:[s,u("hours")],h:[s,u("hours")],HH:[s,u("hours")],hh:[s,u("hours")],D:[s,u("day")],DD:[o,u("day")],Do:[i,function(g){var C=l.ordinal,b=g.match(/\d+/);if(this.day=b[0],C)for(var w=1;w<=31;w+=1)C(w).replace(/\[|\]/g,"")===g&&(this.day=w)}],M:[s,u("month")],MM:[o,u("month")],MMM:[i,function(g){var C=p("months"),b=(p("monthsShort")||C.map(function(w){return w.slice(0,3)})).indexOf(g)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[i,function(g){var C=p("months").indexOf(g)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(g){this.year=a(g)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function y(g){var C,b;C=g,b=l&&l.formats;for(var w=(g=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(A,$,L){var V=L&&L.toUpperCase();return $||b[L]||n[L]||b[V].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(j,_,T){return _||T.slice(1)})})).match(r),S=w.length,k=0;k<S;k+=1){var M=w[k],E=v[M],I=E&&E[0],R=E&&E[1];w[k]=R?{regex:I,parser:R}:M.replace(/^\[|\]$/g,"")}return function(A){for(var $={},L=0,V=0;L<S;L+=1){var j=w[L];if(typeof j=="string")V+=j.length;else{var _=j.regex,T=j.parser,F=A.slice(V),B=_.exec(F)[0];T.call($,B),A=A.replace(B,"")}}return function(O){var N=O.afternoon;if(N!==void 0){var H=O.hours;N?H<12&&(O.hours+=12):H===12&&(O.hours=0),delete O.afternoon}}($),$}}return function(g,C,b){b.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(a=g.parseTwoDigitYear);var w=C.prototype,S=w.parse;w.parse=function(k){var M=k.date,E=k.utc,I=k.args;this.$u=E;var R=I[1];if(typeof R=="string"){var A=I[2]===!0,$=I[3]===!0,L=A||$,V=I[2];$&&(V=I[2]),l=this.$locale(),!A&&V&&(l=b.Ls[V]),this.$d=function(F,B,O){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*F);var N=y(B)(F),H=N.year,K=N.month,Q=N.day,J=N.hours,Y=N.minutes,X=N.seconds,ee=N.milliseconds,se=N.zone,Z=new Date,he=Q||(H||K?1:Z.getDate()),ne=H||Z.getFullYear(),re=0;H&&!K||(re=K>0?K-1:Z.getMonth());var me=J||0,ce=Y||0,Se=X||0,Ee=ee||0;return se?new Date(Date.UTC(ne,re,he,me,ce,Se,Ee+60*se.offset*1e3)):O?new Date(Date.UTC(ne,re,he,me,ce,Se,Ee)):new Date(ne,re,he,me,ce,Se,Ee)}catch(ae){return new Date("")}}(M,R,E),this.init(),V&&V!==!0&&(this.$L=this.locale(V).$L),L&&M!=this.format(R)&&(this.$d=new Date("")),l={}}else if(R instanceof Array)for(var j=R.length,_=1;_<=j;_+=1){I[1]=R[_-1];var T=b.apply(this,I);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}_===j&&(this.$d=new Date(""))}else S.call(this,k)}}})})(yV);var XTe=yV.exports;const ZTe=di(XTe);var bV={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(sn,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,s){var i=o.prototype,l=i.format;s.en.formats=n,i.format=function(a){a===void 0&&(a="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,f=function(p,m){return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(v,y,g){var C=g&&g.toUpperCase();return y||m[g]||n[g]||m[C].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,w,S){return w||S.slice(1)})})}(a,u===void 0?{}:u);return l.call(this,f)}}})})(bV);var JTe=bV.exports;const e$e=di(JTe);var wV={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(sn,function(){return function(n,r,o){r.prototype.isBetween=function(s,i,l,a){var u=o(s),f=o(i),p=(a=a||"()")[0]==="(",m=a[1]===")";return(p?this.isAfter(u,l):!this.isBefore(u,l))&&(m?this.isBefore(f,l):!this.isAfter(f,l))||(p?this.isBefore(u,l):!this.isAfter(u,l))&&(m?this.isAfter(f,l):!this.isBefore(f,l))}}})})(wV);var t$e=wV.exports;const n$e=di(t$e);$r.extend(ZTe);$r.extend(e$e);$r.extend(n$e);const r$e=r3(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),o$e={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},s$e={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},kC=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
806
+ `),lA=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
807
+ `),i$e=(e,t)=>t?(...n)=>e(...n).locale(t):e;class l$e{constructor({locale:t,formats:n,instance:r}={}){var o;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=o$e,this.setLocaleToValue=s=>{const i=this.getCurrentLocaleCode();return i===s.locale()?s:s.locale(i)},this.hasUTCPlugin=()=>typeof $r.utc!="undefined",this.hasTimezonePlugin=()=>typeof $r.tz!="undefined",this.isSame=(s,i,l)=>{const a=this.setTimezone(i,this.getTimezone(s));return s.format(l)===a.format(l)},this.cleanTimezone=s=>{switch(s){case"default":return;case"system":return $r.tz.guess();default:return s}},this.createSystemDate=s=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(s);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const i=$r.tz.guess();return i!=="UTC"?$r.tz(s,i):$r(s)}return $r(s)},this.createUTCDate=s=>{if(!this.hasUTCPlugin())throw new Error(kC);return $r.utc(s)},this.createTZDate=(s,i)=>{if(!this.hasUTCPlugin())throw new Error(kC);if(!this.hasTimezonePlugin())throw new Error(lA);const l=s!==void 0&&!s.endsWith("Z");return $r(s).tz(this.cleanTimezone(i),l)},this.getLocaleFormats=()=>{const s=$r.Ls,i=this.locale||"en";let l=s[i];return l===void 0&&(r$e(),l=s.en),l.formats},this.adjustOffset=s=>{if(!this.hasTimezonePlugin())return s;const i=this.getTimezone(s);if(i!=="UTC"){var l,a;const u=s.tz(this.cleanTimezone(i),!0);return((l=u.$offset)!=null?l:0)===((a=s.$offset)!=null?a:0)?s:u}return s},this.date=s=>s===null?null:this.dayjs(s),this.dateWithTimezone=(s,i)=>{if(s===null)return null;let l;return i==="UTC"?l=this.createUTCDate(s):i==="system"||i==="default"&&!this.hasTimezonePlugin()?l=this.createSystemDate(s):l=this.createTZDate(s,i),this.locale===void 0?l:l.locale(this.locale)},this.getTimezone=s=>{if(this.hasTimezonePlugin()){var i;const l=(i=s.$x)==null?void 0:i.$timezone;if(l)return l}return this.hasUTCPlugin()&&s.isUTC()?"UTC":"system"},this.setTimezone=(s,i)=>{if(this.getTimezone(s)===i)return s;if(i==="UTC"){if(!this.hasUTCPlugin())throw new Error(kC);return s.utc()}if(i==="system")return s.local();if(!this.hasTimezonePlugin()){if(i==="default")return s;throw new Error(lA)}return $r.tz(s,this.cleanTimezone(i))},this.toJsDate=s=>s.toDate(),this.parseISO=s=>this.dayjs(s),this.toISO=s=>s.toISOString(),this.parse=(s,i)=>s===""?null:this.dayjs(s,i,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=s=>{const i=this.getLocaleFormats(),l=a=>a.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(u,f,p)=>f||p.slice(1));return s.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(a,u,f)=>{const p=f&&f.toUpperCase();return u||i[f]||l(i[p])})},this.getFormatHelperText=s=>this.expandFormat(s).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=s=>s===null,this.isValid=s=>this.dayjs(s).isValid(),this.format=(s,i)=>this.formatByString(s,this.formats[i]),this.formatByString=(s,i)=>this.dayjs(s).format(i),this.formatNumber=s=>s,this.getDiff=(s,i,l)=>s.diff(i,l),this.isEqual=(s,i)=>s===null&&i===null?!0:this.dayjs(s).toDate().getTime()===this.dayjs(i).toDate().getTime(),this.isSameYear=(s,i)=>this.isSame(s,i,"YYYY"),this.isSameMonth=(s,i)=>this.isSame(s,i,"YYYY-MM"),this.isSameDay=(s,i)=>this.isSame(s,i,"YYYY-MM-DD"),this.isSameHour=(s,i)=>s.isSame(i,"hour"),this.isAfter=(s,i)=>s>i,this.isAfterYear=(s,i)=>this.hasUTCPlugin()?!this.isSameYear(s,i)&&s.utc()>i.utc():s.isAfter(i,"year"),this.isAfterDay=(s,i)=>this.hasUTCPlugin()?!this.isSameDay(s,i)&&s.utc()>i.utc():s.isAfter(i,"day"),this.isBefore=(s,i)=>s<i,this.isBeforeYear=(s,i)=>this.hasUTCPlugin()?!this.isSameYear(s,i)&&s.utc()<i.utc():s.isBefore(i,"year"),this.isBeforeDay=(s,i)=>this.hasUTCPlugin()?!this.isSameDay(s,i)&&s.utc()<i.utc():s.isBefore(i,"day"),this.isWithinRange=(s,[i,l])=>s>=i&&s<=l,this.startOfYear=s=>this.adjustOffset(s.startOf("year")),this.startOfMonth=s=>this.adjustOffset(s.startOf("month")),this.startOfWeek=s=>this.adjustOffset(s.startOf("week")),this.startOfDay=s=>this.adjustOffset(s.startOf("day")),this.endOfYear=s=>this.adjustOffset(s.endOf("year")),this.endOfMonth=s=>this.adjustOffset(s.endOf("month")),this.endOfWeek=s=>this.adjustOffset(s.endOf("week")),this.endOfDay=s=>this.adjustOffset(s.endOf("day")),this.addYears=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"year"):s.add(i,"year")),this.addMonths=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"month"):s.add(i,"month")),this.addWeeks=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"week"):s.add(i,"week")),this.addDays=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"day"):s.add(i,"day")),this.addHours=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"hour"):s.add(i,"hour")),this.addMinutes=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"minute"):s.add(i,"minute")),this.addSeconds=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"second"):s.add(i,"second")),this.getYear=s=>s.year(),this.getMonth=s=>s.month(),this.getDate=s=>s.date(),this.getHours=s=>s.hour(),this.getMinutes=s=>s.minute(),this.getSeconds=s=>s.second(),this.getMilliseconds=s=>s.millisecond(),this.setYear=(s,i)=>this.adjustOffset(s.set("year",i)),this.setMonth=(s,i)=>this.adjustOffset(s.set("month",i)),this.setDate=(s,i)=>this.adjustOffset(s.set("date",i)),this.setHours=(s,i)=>this.adjustOffset(s.set("hour",i)),this.setMinutes=(s,i)=>this.adjustOffset(s.set("minute",i)),this.setSeconds=(s,i)=>this.adjustOffset(s.set("second",i)),this.setMilliseconds=(s,i)=>this.adjustOffset(s.set("millisecond",i)),this.getDaysInMonth=s=>s.daysInMonth(),this.getNextMonth=s=>this.addMonths(s,1),this.getPreviousMonth=s=>this.addMonths(s,-1),this.getMonthArray=s=>{const l=[s.startOf("year")];for(;l.length<12;){const a=l[l.length-1];l.push(this.addMonths(a,1))}return l},this.mergeDateAndTime=(s,i)=>s.hour(i.hour()).minute(i.minute()).second(i.second()),this.getWeekdays=()=>{const s=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(i=>this.formatByString(this.addDays(s,i),"dd"))},this.getWeekArray=s=>{const i=this.setLocaleToValue(s),l=i.startOf("month").startOf("week"),a=i.endOf("month").endOf("week");let u=0,f=l;const p=[];for(;f<a;){const m=Math.floor(u/7);p[m]=p[m]||[],p[m].push(f),f=this.addDays(f,1),u+=1}return p},this.getWeekNumber=s=>s.week(),this.getYearRange=(s,i)=>{const l=s.startOf("year"),a=i.endOf("year"),u=[];let f=l;for(;f<a;)u.push(f),f=this.addYears(f,1);return u},this.getMeridiemText=s=>s==="am"?"AM":"PM",this.rawDayJsInstance=r,this.dayjs=i$e((o=this.rawDayJsInstance)!=null?o:$r,t),this.locale=t,this.formats=x({},s$e,n),$r.extend(QTe)}}function a$e(){ln.title="Config file";const{data:e,reload:t,element:n}=Qn("get_config_text",{}),[r,o]=c.useState(),[s,i]=c.useState(),[l,a]=c.useState(!1);return c.useEffect(()=>{i(e==null?void 0:e.text)},[e]),c.useEffect(()=>{s!==void 0&&o(s||"")},[s]),c.createElement(c.Fragment,{},c.createElement(qr,{flexWrap:"wrap",justifyContent:"space-between"},c.createElement(Xo,{icon:NI,onClick:f},"Copy excluding passwords"),l?c.createElement(c.Fragment,{},s0(t),c.createElement(mn,{icon:Vh,title:`Save
808
+ (ctrl+enter)`,sx:Zd(r!==s),onClick:u}),c.createElement(kr,{severity:"warning",sx:{flex:1,minWidth:"10em"}},"Be careful, you can easily break things here")):c.createElement(Xo,{icon:NE,variant:"outlined",labelFrom:"sm",onClick(){a(!0),setTimeout(()=>Xv("main textarea"),500)}},"Edit"),c.createElement(ze,{flex:1,minWidth:"fit-content"},c.createElement($p,{label:"File path",value:e==null?void 0:e.fullPath}))),n||r!==void 0&&c.createElement(Rue,{margin:10},c.createElement(WI,{value:r,disabled:!l,style:{background:"#8881"},onValueChange:o,onKeyDown(p){["s","Enter"].includes(Bb(p))&&(u().then(),p.preventDefault())}})));function u(){return ct("set_config_text",{text:r}).then(()=>i(r))}function f(){r&&(navigator.clipboard.writeText(r.replace(/^\s*(\w*password|srp):.+\n/gm,"")),rr("copied"))}}function c$e(){return c.createElement(YX,{theme:Mpe()},c.createElement(u$e,{},c.createElement(qE,{dateAdapter:l$e},c.createElement(jTe,{},c.createElement(eq,{},c.createElement(d$e))))))}function u$e(e){return c.createElement(ze,xe({sx:{bgcolor:"background.default",color:"text.primary",display:"flex",flexDirection:"column",minHeight:"100%",flex:1,maxWidth:"100%"}},e))}function d$e(){const e=Hd().pathname.slice(1),t=DS.find(l=>l.path===e);let{title:n}=Wi();n=t&&(t.title||hV(t))||n;const[r,o]=c.useState(!1),s=Qo("lg"),i=t!=null&&t.noPaddingOnMobile?0:1;return c.createElement(c.Fragment,{},!s&&c.createElement(f$e,{title:n,openMenu:()=>o(!0)}),!s&&c.createElement(woe,{anchor:"left",open:r,onClose(){o(!1)}},c.createElement(iA,{onSelect:()=>o(!1)})),c.createElement(ze,{display:"flex",flex:1},s&&c.createElement(iA),c.createElement(ze,{component:"main",sx:{background:"url(cup.svg) no-repeat right fixed",backgroundSize:"contain",px:{xs:i,md:2,lg:3},pb:{xs:i,md:2},boxSizing:"border-box",position:"relative",display:"flex",flexDirection:"column",width:"100%",overflowX:"clip"}},n&&s&&c.createElement(qn,{variant:"h2",mb:2},n),c.createElement(YK,{},DS.map((l,a)=>c.createElement(wx,{key:a,path:l.path,element:c.createElement(l.comp)})),c.createElement(wx,{path:"edit",element:c.createElement(a$e)}))),c.createElement(tde)))}function f$e({title:e,openMenu:t}){return c.createElement(bJ,{position:"sticky",sx:{mb:2}},c.createElement(p4,{},c.createElement(hr,{size:"large",edge:"start",color:"inherit",sx:{mr:2},"aria-label":"menu",onClick:t},c.createElement(gV)),e))}CF(document.getElementById("root")).render(c.createElement(c.StrictMode,{},c.createElement(c$e)));export{sn as c,di as g};