hfs 0.51.0 → 0.52.0-alpha1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/admin/assets/index-k3m-mkMr.js +808 -0
- package/admin/assets/{index-49472c6b.css → index-rD-EYdVL.css} +1 -1
- package/{frontend/assets/sha512-5bd9b462.js → admin/assets/sha512-HpxCu9iO.js} +1 -1
- package/admin/index.html +2 -3
- package/frontend/assets/index-YSw6ytlU.js +101 -0
- package/frontend/assets/index-v-wWWrzz.css +1 -0
- package/{admin/assets/sha512-a65f7625.js → frontend/assets/sha512-XeErmupJ.js} +1 -1
- package/frontend/index.html +2 -3
- package/package.json +9 -7
- package/src/adminApis.js +4 -86
- package/src/api.accounts.js +12 -15
- package/src/api.auth.js +6 -30
- package/src/api.log.js +74 -0
- package/src/api.monitor.js +5 -12
- package/src/api.net.js +1 -1
- package/src/api.vfs.js +4 -4
- package/src/apiMiddleware.js +1 -1
- package/src/auth.js +17 -8
- package/src/block.js +1 -1
- package/src/commands.js +1 -3
- package/src/const.js +1 -1
- package/src/cross.js +23 -5
- package/src/ddns.js +53 -0
- package/src/github.js +2 -2
- package/src/langs/hfs-lang-it.json +11 -1
- package/src/log.js +9 -7
- package/src/middlewares.js +14 -10
- package/src/misc.js +4 -0
- package/src/nat.js +4 -8
- package/src/perm.js +28 -34
- package/src/plugins.js +3 -3
- package/src/serveGuiFiles.js +1 -1
- package/src/util-http.js +12 -8
- package/admin/assets/index-2af67363.js +0 -808
- package/frontend/assets/index-a107d2b0.css +0 -1
- package/frontend/assets/index-dcd62989.js +0 -95
- package/src/api.helpers.js +0 -28
- package/src/crypt.js +0 -21
- package/src/pbkdf2.js +0 -74
|
@@ -1,808 +0,0 @@
|
|
|
1
|
-
var NU=Object.defineProperty,BU=Object.defineProperties;var zU=Object.getOwnPropertyDescriptors;var Hm=Object.getOwnPropertySymbols;var B_=Object.prototype.hasOwnProperty,z_=Object.prototype.propertyIsEnumerable;var Zb=(e,t)=>{if(t=Symbol[e])return t;throw Error("Symbol."+e+" is not defined")},bs=Math.pow,Jb=(e,t,n)=>t in e?NU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,we=(e,t)=>{for(var n in t||(t={}))B_.call(t,n)&&Jb(e,n,t[n]);if(Hm)for(var n of Hm(t))z_.call(t,n)&&Jb(e,n,t[n]);return e},st=(e,t)=>BU(e,zU(t));var At=(e,t)=>{var n={};for(var r in e)B_.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&&z_.call(e,r)&&(n[r]=e[r]);return n};var wi=(e,t,n)=>(Jb(e,typeof t!="symbol"?t+"":t,n),n);var rt=(e,t,n)=>new Promise((r,o)=>{var s=a=>{try{l(n.next(a))}catch(c){o(c)}},i=a=>{try{l(n.throw(a))}catch(c){o(c)}},l=a=>a.done?r(a.value):Promise.resolve(a.value).then(s,i);l((n=n.apply(e,t)).next())}),VU=function(e,t){this[0]=e,this[1]=t};var Ae=e=>{var t=e[Zb("asyncIterator")],n=!1,r,o={};return t==null?(t=e[Zb("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 VU(new Promise(l=>{var a=t[s](i);if(!(a instanceof Object))throw TypeError("Object expected");l(a)}),1)}}),o[Zb("iterator")]=()=>o,r("next"),"throw"in t?r("throw"):o.throw=s=>{throw s},"return"in t&&r("return"),o};function jU(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 ln=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function pi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function dA(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 fA={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 kh=Symbol.for("react.element"),HU=Symbol.for("react.portal"),UU=Symbol.for("react.fragment"),WU=Symbol.for("react.strict_mode"),GU=Symbol.for("react.profiler"),KU=Symbol.for("react.provider"),qU=Symbol.for("react.context"),YU=Symbol.for("react.forward_ref"),QU=Symbol.for("react.suspense"),XU=Symbol.for("react.memo"),ZU=Symbol.for("react.lazy"),V_=Symbol.iterator;function JU(e){return e===null||typeof e!="object"?null:(e=V_&&e[V_]||e["@@iterator"],typeof e=="function"?e:null)}var pA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hA=Object.assign,mA={};function Ld(e,t,n){this.props=e,this.context=t,this.refs=mA,this.updater=n||pA}Ld.prototype.isReactComponent={};Ld.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")};Ld.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function gA(){}gA.prototype=Ld.prototype;function FS(e,t,n){this.props=e,this.context=t,this.refs=mA,this.updater=n||pA}var NS=FS.prototype=new gA;NS.constructor=FS;hA(NS,Ld.prototype);NS.isPureReactComponent=!0;var j_=Array.isArray,vA=Object.prototype.hasOwnProperty,BS={current:null},yA={key:!0,ref:!0,__self:!0,__source:!0};function bA(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)vA.call(t,r)&&!yA.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var a=Array(l),c=0;c<l;c++)a[c]=arguments[c+2];o.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:kh,type:e,key:s,ref:i,props:o,_owner:BS.current}}function eW(e,t){return{$$typeof:kh,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function zS(e){return typeof e=="object"&&e!==null&&e.$$typeof===kh}function tW(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var H_=/\/+/g;function ew(e,t){return typeof e=="object"&&e!==null&&e.key!=null?tW(""+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 kh:case HU:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+ew(i,0):r,j_(o)?(n="",e!=null&&(n=e.replace(H_,"$&/")+"/"),$g(o,t,n,"",function(c){return c})):o!=null&&(zS(o)&&(o=eW(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(H_,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",j_(e))for(var l=0;l<e.length;l++){s=e[l];var a=r+ew(s,l);i+=$g(s,t,n,a,o)}else if(a=JU(e),typeof a=="function")for(e=a.call(e),l=0;!(s=e.next()).done;)s=s.value,a=r+ew(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 nW(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var uo={current:null},Rg={transition:null},rW={ReactCurrentDispatcher:uo,ReactCurrentBatchConfig:Rg,ReactCurrentOwner:BS};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(!zS(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ut.Component=Ld;Ut.Fragment=UU;Ut.Profiler=GU;Ut.PureComponent=FS;Ut.StrictMode=WU;Ut.Suspense=QU;Ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rW;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=hA({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=BS.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)vA.call(t,a)&&!yA.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var c=0;c<a;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:kh,type:e.type,key:o,ref:s,props:r,_owner:i}};Ut.createContext=function(e){return e={$$typeof:qU,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:KU,_context:e},e.Consumer=e};Ut.createElement=bA;Ut.createFactory=function(e){var t=bA.bind(null,e);return t.type=e,t};Ut.createRef=function(){return{current:null}};Ut.forwardRef=function(e){return{$$typeof:YU,render:e}};Ut.isValidElement=zS;Ut.lazy=function(e){return{$$typeof:ZU,_payload:{_status:-1,_result:e},_init:nW}};Ut.memo=function(e,t){return{$$typeof:XU,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 uo.current.useCallback(e,t)};Ut.useContext=function(e){return uo.current.useContext(e)};Ut.useDebugValue=function(){};Ut.useDeferredValue=function(e){return uo.current.useDeferredValue(e)};Ut.useEffect=function(e,t){return uo.current.useEffect(e,t)};Ut.useId=function(){return uo.current.useId()};Ut.useImperativeHandle=function(e,t,n){return uo.current.useImperativeHandle(e,t,n)};Ut.useInsertionEffect=function(e,t){return uo.current.useInsertionEffect(e,t)};Ut.useLayoutEffect=function(e,t){return uo.current.useLayoutEffect(e,t)};Ut.useMemo=function(e,t){return uo.current.useMemo(e,t)};Ut.useReducer=function(e,t,n){return uo.current.useReducer(e,t,n)};Ut.useRef=function(e){return uo.current.useRef(e)};Ut.useState=function(e){return uo.current.useState(e)};Ut.useSyncExternalStore=function(e,t,n){return uo.current.useSyncExternalStore(e,t,n)};Ut.useTransition=function(){return uo.current.useTransition()};Ut.version="18.2.0";fA.exports=Ut;var u=fA.exports;const Ko=pi(u),Cc=jU({__proto__:null,default:Ko},[u]);var wA={exports:{}},ss={},CA={exports:{}},xA={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* scheduler.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/(function(e){function t(A,N){var H=A.length;A.push(N);e:for(;0<H;){var K=H-1>>>1,Y=A[K];if(0<o(Y,N))A[K]=N,A[H]=Y,H=K;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var N=A[0],H=A.pop();if(H!==N){A[0]=H;e:for(var K=0,Y=A.length,te=Y>>>1;K<te;){var Q=2*(K+1)-1,X=A[Q],J=Q+1,se=A[J];if(0>o(X,H))J<Y&&0>o(se,X)?(A[K]=se,A[J]=H,K=J):(A[K]=X,A[Q]=H,K=Q);else if(J<Y&&0>o(se,H))A[K]=se,A[J]=H,K=J;else break e}}return N}function o(A,N){var H=A.sortIndex-N.sortIndex;return H!==0?H:A.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=[],c=[],f=1,p=null,h=3,y=!1,v=!1,m=!1,C=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(A){for(var N=n(c);N!==null;){if(N.callback===null)r(c);else if(N.startTime<=A)r(c),N.sortIndex=N.expirationTime,t(a,N);else break;N=n(c)}}function P(A){if(m=!1,x(A),!v)if(n(a)!==null)v=!0,F(M);else{var N=n(c);N!==null&&j(P,N.startTime-A)}}function M(A,N){v=!1,m&&(m=!1,w(R),R=-1),y=!0;var H=h;try{for(x(N),p=n(a);p!==null&&(!(p.expirationTime>N)||A&&!L());){var K=p.callback;if(typeof K=="function"){p.callback=null,h=p.priorityLevel;var Y=K(p.expirationTime<=N);N=e.unstable_now(),typeof Y=="function"?p.callback=Y:p===n(a)&&r(a),x(N)}else r(a);p=n(a)}if(p!==null)var te=!0;else{var Q=n(c);Q!==null&&j(P,Q.startTime-N),te=!1}return te}finally{p=null,h=H,y=!1}}var E=!1,k=null,R=-1,O=5,_=-1;function L(){return!(e.unstable_now()-_<O)}function B(){if(k!==null){var A=e.unstable_now();_=A;var N=!0;try{N=k(!0,A)}finally{N?z():(E=!1,k=null)}}else E=!1}var z;if(typeof b=="function")z=function(){b(B)};else if(typeof MessageChannel!="undefined"){var T=new MessageChannel,$=T.port2;T.port1.onmessage=B,z=function(){$.postMessage(null)}}else z=function(){C(B,0)};function F(A){k=A,E||(E=!0,z())}function j(A,N){R=C(function(){A(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(A){A.callback=null},e.unstable_continueExecution=function(){v||y||(v=!0,F(M))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(A){switch(h){case 1:case 2:case 3:var N=3;break;default:N=h}var H=h;h=N;try{return A()}finally{h=H}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,N){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var H=h;h=A;try{return N()}finally{h=H}},e.unstable_scheduleCallback=function(A,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,A){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=H+Y,A={id:f++,callback:N,priorityLevel:A,startTime:H,expirationTime:Y,sortIndex:-1},H>K?(A.sortIndex=H,t(c,A),n(a)===null&&A===n(c)&&(m?(w(R),R=-1):m=!0,j(P,H-K))):(A.sortIndex=Y,t(a,A),v||y||(v=!0,F(M))),A},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(A){var N=h;return function(){var H=h;h=N;try{return A.apply(this,arguments)}finally{h=H}}}})(xA);CA.exports=xA;var oW=CA.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 SA=u,Zo=oW;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 PA=new Set,Ap={};function Nc(e,t){dd(e,t),dd(e+"Capture",t)}function dd(e,t){for(Ap[e]=t,e=0;e<t.length;e++)PA.add(t[e])}var gl=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),_C=Object.prototype.hasOwnProperty,sW=/^[: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]*$/,U_={},W_={};function iW(e){return _C.call(W_,e)?!0:_C.call(U_,e)?!1:sW.test(e)?W_[e]=!0:(U_[e]=!0,!1)}function lW(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 aW(e,t,n,r){if(t===null||typeof t=="undefined"||lW(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function fo(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var Fr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Fr[e]=new fo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Fr[t]=new fo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Fr[e]=new fo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Fr[e]=new fo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Fr[e]=new fo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Fr[e]=new fo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Fr[e]=new fo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Fr[e]=new fo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Fr[e]=new fo(e,5,!1,e.toLowerCase(),null,!1,!1)});var VS=/[\-:]([a-z])/g;function jS(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(VS,jS);Fr[t]=new fo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(VS,jS);Fr[t]=new fo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(VS,jS);Fr[t]=new fo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Fr[e]=new fo(e,1,!1,e.toLowerCase(),null,!1,!1)});Fr.xlinkHref=new fo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Fr[e]=new fo(e,1,!1,e.toLowerCase(),null,!0,!0)});function HS(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")&&(aW(t,n,o,r)&&(n=null),r||o===null?iW(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=SA.__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"),US=Symbol.for("react.strict_mode"),TC=Symbol.for("react.profiler"),EA=Symbol.for("react.provider"),kA=Symbol.for("react.context"),WS=Symbol.for("react.forward_ref"),$C=Symbol.for("react.suspense"),RC=Symbol.for("react.suspense_list"),GS=Symbol.for("react.memo"),Xl=Symbol.for("react.lazy"),IA=Symbol.for("react.offscreen"),G_=Symbol.iterator;function Mf(e){return e===null||typeof e!="object"?null:(e=G_&&e[G_]||e["@@iterator"],typeof e=="function"?e:null)}var Hn=Object.assign,tw;function Zf(e){if(tw===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);tw=t&&t[1]||""}return`
|
|
26
|
-
`+tw+e}var nw=!1;function rw(e,t){if(!e||nw)return"";nw=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
|
|
27
|
-
`),s=r.stack.split(`
|
|
28
|
-
`),i=o.length-1,l=s.length-1;1<=i&&0<=l&&o[i]!==s[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==s[l]){if(i!==1||l!==1)do if(i--,l--,0>l||o[i]!==s[l]){var a=`
|
|
29
|
-
`+o[i].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=i&&0<=l);break}}}finally{nw=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Zf(e):""}function cW(e){switch(e.tag){case 5:return Zf(e.type);case 16:return Zf("Lazy");case 13:return Zf("Suspense");case 19:return Zf("SuspenseList");case 0:case 2:case 15:return e=rw(e.type,!1),e;case 11:return e=rw(e.type.render,!1),e;case 1:return e=rw(e.type,!0),e;default:return""}}function OC(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 TC:return"Profiler";case US:return"StrictMode";case $C:return"Suspense";case RC:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case kA:return(e.displayName||"Context")+".Consumer";case EA:return(e._context.displayName||"Context")+".Provider";case WS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case GS:return t=e.displayName||null,t!==null?t:OC(e.type)||"Memo";case Xl:t=e._payload,e=e._init;try{return OC(e(t))}catch(n){}}return null}function uW(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 OC(t);case 8:return t===US?"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 Ea(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function MA(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dW(e){var t=MA(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=dW(e))}function _A(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=MA(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function lv(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 DC(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 K_(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ea(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 TA(e,t){t=t.checked,t!=null&&HS(e,"checked",t,!1)}function AC(e,t){TA(e,t);var n=Ea(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")?LC(e,t.type,n):t.hasOwnProperty("defaultValue")&&LC(e,t.type,Ea(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function q_(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 LC(e,t,n){(t!=="number"||lv(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Jf=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=""+Ea(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 FC(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(He(91));return Hn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Y_(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(Jf(n)){if(1<n.length)throw Error(He(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ea(n)}}function $A(e,t){var n=Ea(t.value),r=Ea(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 RA(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 NC(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?RA(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Km,OA=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 Lp(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var pp={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},fW=["Webkit","ms","Moz","O"];Object.keys(pp).forEach(function(e){fW.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pp[t]=pp[e]})});function DA(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||pp.hasOwnProperty(e)&&pp[e]?(""+t).trim():t+"px"}function AA(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=DA(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var pW=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 BC(e,t){if(t){if(pW[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 zC(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 VC=null;function KS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var jC=null,Qu=null,Xu=null;function X_(e){if(e=_h(e)){if(typeof jC!="function")throw Error(He(280));var t=e.stateNode;t&&(t=Iy(t),jC(e.stateNode,e.type,t))}}function LA(e){Qu?Xu?Xu.push(e):Xu=[e]:Qu=e}function FA(){if(Qu){var e=Qu,t=Xu;if(Xu=Qu=null,X_(e),t)for(e=0;e<t.length;e++)X_(t[e])}}function NA(e,t){return e(t)}function BA(){}var ow=!1;function zA(e,t,n){if(ow)return e(t,n);ow=!0;try{return NA(e,t,n)}finally{ow=!1,(Qu!==null||Xu!==null)&&(BA(),FA())}}function Fp(e,t){var n=e.stateNode;if(n===null)return null;var r=Iy(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 HC=!1;if(gl)try{var _f={};Object.defineProperty(_f,"passive",{get:function(){HC=!0}}),window.addEventListener("test",_f,_f),window.removeEventListener("test",_f,_f)}catch(e){HC=!1}function hW(e,t,n,r,o,s,i,l,a){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(f){this.onError(f)}}var hp=!1,av=null,cv=!1,UC=null,mW={onError:function(e){hp=!0,av=e}};function gW(e,t,n,r,o,s,i,l,a){hp=!1,av=null,hW.apply(mW,arguments)}function vW(e,t,n,r,o,s,i,l,a){if(gW.apply(this,arguments),hp){if(hp){var c=av;hp=!1,av=null}else throw Error(He(198));cv||(cv=!0,UC=c)}}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 VA(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 Z_(e){if(Bc(e)!==e)throw Error(He(188))}function yW(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 Z_(o),e;if(s===r)return Z_(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 jA(e){return e=yW(e),e!==null?HA(e):null}function HA(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=HA(e);if(t!==null)return t;e=e.sibling}return null}var UA=Zo.unstable_scheduleCallback,J_=Zo.unstable_cancelCallback,bW=Zo.unstable_shouldYield,wW=Zo.unstable_requestPaint,tr=Zo.unstable_now,CW=Zo.unstable_getCurrentPriorityLevel,qS=Zo.unstable_ImmediatePriority,WA=Zo.unstable_UserBlockingPriority,uv=Zo.unstable_NormalPriority,xW=Zo.unstable_LowPriority,GA=Zo.unstable_IdlePriority,Sy=null,Ti=null;function SW(e){if(Ti&&typeof Ti.onCommitFiberRoot=="function")try{Ti.onCommitFiberRoot(Sy,e,void 0,(e.current.flags&128)===128)}catch(t){}}var ii=Math.clz32?Math.clz32:kW,PW=Math.log,EW=Math.LN2;function kW(e){return e>>>=0,e===0?32:31-(PW(e)/EW|0)|0}var qm=64,Ym=4194304;function ep(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dv(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~o;l!==0?r=ep(l):(s&=i,s!==0&&(r=ep(s)))}else i=n&~o,i!==0?r=ep(i):s!==0&&(r=ep(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-ii(t),o=1<<n,r|=e[n],t&=~o;return r}function IW(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 MW(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-ii(s),l=1<<i,a=o[i];a===-1?(!(l&n)||l&r)&&(o[i]=IW(l,t)):a<=t&&(e.expiredLanes|=l),s&=~l}}function WC(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function KA(){var e=qm;return qm<<=1,!(qm&4194240)&&(qm=64),e}function sw(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-ii(t),e[t]=n}function _W(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-ii(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function YS(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ii(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var fn=0;function qA(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var YA,QS,QA,XA,ZA,GC=!1,Qm=[],fa=null,pa=null,ha=null,Np=new Map,Bp=new Map,na=[],TW="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 eT(e,t){switch(e){case"focusin":case"focusout":fa=null;break;case"dragenter":case"dragleave":pa=null;break;case"mouseover":case"mouseout":ha=null;break;case"pointerover":case"pointerout":Np.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bp.delete(t.pointerId)}}function Tf(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 $W(e,t,n,r,o){switch(t){case"focusin":return fa=Tf(fa,e,t,n,r,o),!0;case"dragenter":return pa=Tf(pa,e,t,n,r,o),!0;case"mouseover":return ha=Tf(ha,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return Np.set(s,Tf(Np.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,Bp.set(s,Tf(Bp.get(s)||null,e,t,n,r,o)),!0}return!1}function JA(e){var t=ic(e.target);if(t!==null){var n=Bc(t);if(n!==null){if(t=n.tag,t===13){if(t=VA(n),t!==null){e.blockedOn=t,ZA(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=KC(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);VC=r,n.target.dispatchEvent(r),VC=null}else return t=_h(n),t!==null&&QS(t),e.blockedOn=n,!1;t.shift()}return!0}function tT(e,t,n){Og(e)&&n.delete(t)}function RW(){GC=!1,fa!==null&&Og(fa)&&(fa=null),pa!==null&&Og(pa)&&(pa=null),ha!==null&&Og(ha)&&(ha=null),Np.forEach(tT),Bp.forEach(tT)}function $f(e,t){e.blockedOn===t&&(e.blockedOn=null,GC||(GC=!0,Zo.unstable_scheduleCallback(Zo.unstable_NormalPriority,RW)))}function zp(e){function t(o){return $f(o,e)}if(0<Qm.length){$f(Qm[0],e);for(var n=1;n<Qm.length;n++){var r=Qm[n];r.blockedOn===e&&(r.blockedOn=null)}}for(fa!==null&&$f(fa,e),pa!==null&&$f(pa,e),ha!==null&&$f(ha,e),Np.forEach(t),Bp.forEach(t),n=0;n<na.length;n++)r=na[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<na.length&&(n=na[0],n.blockedOn===null);)JA(n),n.blockedOn===null&&na.shift()}var Zu=kl.ReactCurrentBatchConfig,fv=!0;function OW(e,t,n,r){var o=fn,s=Zu.transition;Zu.transition=null;try{fn=1,XS(e,t,n,r)}finally{fn=o,Zu.transition=s}}function DW(e,t,n,r){var o=fn,s=Zu.transition;Zu.transition=null;try{fn=4,XS(e,t,n,r)}finally{fn=o,Zu.transition=s}}function XS(e,t,n,r){if(fv){var o=KC(e,t,n,r);if(o===null)mw(e,t,r,pv,n),eT(e,r);else if($W(o,e,t,n,r))r.stopPropagation();else if(eT(e,r),t&4&&-1<TW.indexOf(e)){for(;o!==null;){var s=_h(o);if(s!==null&&YA(s),s=KC(e,t,n,r),s===null&&mw(e,t,r,pv,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else mw(e,t,r,null,n)}}var pv=null;function KC(e,t,n,r){if(pv=null,e=KS(r),e=ic(e),e!==null)if(t=Bc(e),t===null)e=null;else if(n=t.tag,n===13){if(e=VA(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 pv=e,null}function eL(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(CW()){case qS:return 1;case WA:return 4;case uv:case xW:return 16;case GA:return 536870912;default:return 16}default:return 16}}var sa=null,ZS=null,Dg=null;function tL(){if(Dg)return Dg;var e,t=ZS,n=t.length,r,o="value"in sa?sa.value:sa.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 nT(){return!1}function is(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:nT,this.isPropagationStopped=nT,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 Fd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},JS=is(Fd),Mh=Hn({},Fd,{view:0,detail:0}),AW=is(Mh),iw,lw,Rf,Py=Hn({},Mh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:eP,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!==Rf&&(Rf&&e.type==="mousemove"?(iw=e.screenX-Rf.screenX,lw=e.screenY-Rf.screenY):lw=iw=0,Rf=e),iw)},movementY:function(e){return"movementY"in e?e.movementY:lw}}),rT=is(Py),LW=Hn({},Py,{dataTransfer:0}),FW=is(LW),NW=Hn({},Mh,{relatedTarget:0}),aw=is(NW),BW=Hn({},Fd,{animationName:0,elapsedTime:0,pseudoElement:0}),zW=is(BW),VW=Hn({},Fd,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jW=is(VW),HW=Hn({},Fd,{data:0}),oT=is(HW),UW={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},WW={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"},GW={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function KW(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=GW[e])?!!t[e]:!1}function eP(){return KW}var qW=Hn({},Mh,{key:function(e){if(e.key){var t=UW[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"?WW[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:eP,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}}),YW=is(qW),QW=Hn({},Py,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sT=is(QW),XW=Hn({},Mh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:eP}),ZW=is(XW),JW=Hn({},Fd,{propertyName:0,elapsedTime:0,pseudoElement:0}),eG=is(JW),tG=Hn({},Py,{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}),nG=is(tG),rG=[9,13,27,32],tP=gl&&"CompositionEvent"in window,mp=null;gl&&"documentMode"in document&&(mp=document.documentMode);var oG=gl&&"TextEvent"in window&&!mp,nL=gl&&(!tP||mp&&8<mp&&11>=mp),iT=String.fromCharCode(32),lT=!1;function rL(e,t){switch(e){case"keyup":return rG.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function oL(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ru=!1;function sG(e,t){switch(e){case"compositionend":return oL(t);case"keypress":return t.which!==32?null:(lT=!0,iT);case"textInput":return e=t.data,e===iT&&lT?null:e;default:return null}}function iG(e,t){if(Ru)return e==="compositionend"||!tP&&rL(e,t)?(e=tL(),Dg=ZS=sa=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 nL&&t.locale!=="ko"?null:t.data;default:return null}}var lG={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 aT(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!lG[e.type]:t==="textarea"}function sL(e,t,n,r){LA(r),t=hv(t,"onChange"),0<t.length&&(n=new JS("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var gp=null,Vp=null;function aG(e){gL(e,0)}function Ey(e){var t=Au(e);if(_A(t))return e}function cG(e,t){if(e==="change")return t}var iL=!1;if(gl){var cw;if(gl){var uw="oninput"in document;if(!uw){var cT=document.createElement("div");cT.setAttribute("oninput","return;"),uw=typeof cT.oninput=="function"}cw=uw}else cw=!1;iL=cw&&(!document.documentMode||9<document.documentMode)}function uT(){gp&&(gp.detachEvent("onpropertychange",lL),Vp=gp=null)}function lL(e){if(e.propertyName==="value"&&Ey(Vp)){var t=[];sL(t,Vp,e,KS(e)),zA(aG,t)}}function uG(e,t,n){e==="focusin"?(uT(),gp=t,Vp=n,gp.attachEvent("onpropertychange",lL)):e==="focusout"&&uT()}function dG(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ey(Vp)}function fG(e,t){if(e==="click")return Ey(t)}function pG(e,t){if(e==="input"||e==="change")return Ey(t)}function hG(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var di=typeof Object.is=="function"?Object.is:hG;function jp(e,t){if(di(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(!_C.call(t,o)||!di(e[o],t[o]))return!1}return!0}function dT(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fT(e,t){var n=dT(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=dT(n)}}function aL(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?aL(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function cL(){for(var e=window,t=lv();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=lv(e.document)}return t}function nP(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 mG(e){var t=cL(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&aL(n.ownerDocument.documentElement,n)){if(r!==null&&nP(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=fT(n,s);var i=fT(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 gG=gl&&"documentMode"in document&&11>=document.documentMode,Ou=null,qC=null,vp=null,YC=!1;function pT(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;YC||Ou==null||Ou!==lv(r)||(r=Ou,"selectionStart"in r&&nP(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}),vp&&jp(vp,r)||(vp=r,r=hv(qC,"onSelect"),0<r.length&&(t=new JS("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")},dw={},uL={};gl&&(uL=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 ky(e){if(dw[e])return dw[e];if(!Du[e])return e;var t=Du[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in uL)return dw[e]=t[n];return e}var dL=ky("animationend"),fL=ky("animationiteration"),pL=ky("animationstart"),hL=ky("transitionend"),mL=new Map,hT="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 Oa(e,t){mL.set(e,t),Nc(t,[e])}for(var fw=0;fw<hT.length;fw++){var pw=hT[fw],vG=pw.toLowerCase(),yG=pw[0].toUpperCase()+pw.slice(1);Oa(vG,"on"+yG)}Oa(dL,"onAnimationEnd");Oa(fL,"onAnimationIteration");Oa(pL,"onAnimationStart");Oa("dblclick","onDoubleClick");Oa("focusin","onFocus");Oa("focusout","onBlur");Oa(hL,"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 tp="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(" "),bG=new Set("cancel close invalid load scroll toggle".split(" ").concat(tp));function mT(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,vW(r,t,void 0,e),e.currentTarget=null}function gL(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],a=l.instance,c=l.currentTarget;if(l=l.listener,a!==s&&o.isPropagationStopped())break e;mT(o,l,c),s=a}else for(i=0;i<r.length;i++){if(l=r[i],a=l.instance,c=l.currentTarget,l=l.listener,a!==s&&o.isPropagationStopped())break e;mT(o,l,c),s=a}}}if(cv)throw e=UC,cv=!1,UC=null,e}function kn(e,t){var n=t[ex];n===void 0&&(n=t[ex]=new Set);var r=e+"__bubble";n.has(r)||(vL(t,e,2,!1),n.add(r))}function hw(e,t,n){var r=0;t&&(r|=4),vL(n,e,r,t)}var Jm="_reactListening"+Math.random().toString(36).slice(2);function Hp(e){if(!e[Jm]){e[Jm]=!0,PA.forEach(function(n){n!=="selectionchange"&&(bG.has(n)||hw(n,!1,e),hw(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Jm]||(t[Jm]=!0,hw("selectionchange",!1,t))}}function vL(e,t,n,r){switch(eL(t)){case 1:var o=OW;break;case 4:o=DW;break;default:o=XS}n=o.bind(null,t,n,e),o=void 0,!HC||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 mw(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=ic(l),i===null)return;if(a=i.tag,a===5||a===6){r=s=i;continue e}l=l.parentNode}}r=r.return}zA(function(){var c=s,f=KS(n),p=[];e:{var h=mL.get(e);if(h!==void 0){var y=JS,v=e;switch(e){case"keypress":if(Ag(n)===0)break e;case"keydown":case"keyup":y=YW;break;case"focusin":v="focus",y=aw;break;case"focusout":v="blur",y=aw;break;case"beforeblur":case"afterblur":y=aw;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=rT;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=FW;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=ZW;break;case dL:case fL:case pL:y=zW;break;case hL:y=eG;break;case"scroll":y=AW;break;case"wheel":y=nG;break;case"copy":case"cut":case"paste":y=jW;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=sT}var m=(t&4)!==0,C=!m&&e==="scroll",w=m?h!==null?h+"Capture":null:h;m=[];for(var b=c,x;b!==null;){x=b;var P=x.stateNode;if(x.tag===5&&P!==null&&(x=P,w!==null&&(P=Fp(b,w),P!=null&&m.push(Up(b,P,x)))),C)break;b=b.return}0<m.length&&(h=new y(h,v,null,n,f),p.push({event:h,listeners:m}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",h&&n!==VC&&(v=n.relatedTarget||n.fromElement)&&(ic(v)||v[vl]))break e;if((y||h)&&(h=f.window===f?f:(h=f.ownerDocument)?h.defaultView||h.parentWindow:window,y?(v=n.relatedTarget||n.toElement,y=c,v=v?ic(v):null,v!==null&&(C=Bc(v),v!==C||v.tag!==5&&v.tag!==6)&&(v=null)):(y=null,v=c),y!==v)){if(m=rT,P="onMouseLeave",w="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(m=sT,P="onPointerLeave",w="onPointerEnter",b="pointer"),C=y==null?h:Au(y),x=v==null?h:Au(v),h=new m(P,b+"leave",y,n,f),h.target=C,h.relatedTarget=x,P=null,ic(f)===c&&(m=new m(w,b+"enter",v,n,f),m.target=x,m.relatedTarget=C,P=m),C=P,y&&v)t:{for(m=y,w=v,b=0,x=m;x;x=lu(x))b++;for(x=0,P=w;P;P=lu(P))x++;for(;0<b-x;)m=lu(m),b--;for(;0<x-b;)w=lu(w),x--;for(;b--;){if(m===w||w!==null&&m===w.alternate)break t;m=lu(m),w=lu(w)}m=null}else m=null;y!==null&&gT(p,h,y,m,!1),v!==null&&C!==null&&gT(p,C,v,m,!0)}}e:{if(h=c?Au(c):window,y=h.nodeName&&h.nodeName.toLowerCase(),y==="select"||y==="input"&&h.type==="file")var M=cG;else if(aT(h))if(iL)M=pG;else{M=dG;var E=uG}else(y=h.nodeName)&&y.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(M=fG);if(M&&(M=M(e,c))){sL(p,M,n,f);break e}E&&E(e,h,c),e==="focusout"&&(E=h._wrapperState)&&E.controlled&&h.type==="number"&&LC(h,"number",h.value)}switch(E=c?Au(c):window,e){case"focusin":(aT(E)||E.contentEditable==="true")&&(Ou=E,qC=c,vp=null);break;case"focusout":vp=qC=Ou=null;break;case"mousedown":YC=!0;break;case"contextmenu":case"mouseup":case"dragend":YC=!1,pT(p,n,f);break;case"selectionchange":if(gG)break;case"keydown":case"keyup":pT(p,n,f)}var k;if(tP)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?rL(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(nL&&n.locale!=="ko"&&(Ru||R!=="onCompositionStart"?R==="onCompositionEnd"&&Ru&&(k=tL()):(sa=f,ZS="value"in sa?sa.value:sa.textContent,Ru=!0)),E=hv(c,R),0<E.length&&(R=new oT(R,e,null,n,f),p.push({event:R,listeners:E}),k?R.data=k:(k=oL(n),k!==null&&(R.data=k)))),(k=oG?sG(e,n):iG(e,n))&&(c=hv(c,"onBeforeInput"),0<c.length&&(f=new oT("onBeforeInput","beforeinput",null,n,f),p.push({event:f,listeners:c}),f.data=k))}gL(p,t)})}function Up(e,t,n){return{instance:e,listener:t,currentTarget:n}}function hv(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=Fp(e,n),s!=null&&r.unshift(Up(e,s,o)),s=Fp(e,t),s!=null&&r.push(Up(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 gT(e,t,n,r,o){for(var s=t._reactName,i=[];n!==null&&n!==r;){var l=n,a=l.alternate,c=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&c!==null&&(l=c,o?(a=Fp(n,s),a!=null&&i.unshift(Up(n,a,l))):o||(a=Fp(n,s),a!=null&&i.push(Up(n,a,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var wG=/\r\n?/g,CG=/\u0000|\uFFFD/g;function vT(e){return(typeof e=="string"?e:""+e).replace(wG,`
|
|
30
|
-
`).replace(CG,"")}function eg(e,t,n){if(t=vT(t),vT(e)!==t&&n)throw Error(He(425))}function mv(){}var QC=null,XC=null;function ZC(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 JC=typeof setTimeout=="function"?setTimeout:void 0,xG=typeof clearTimeout=="function"?clearTimeout:void 0,yT=typeof Promise=="function"?Promise:void 0,SG=typeof queueMicrotask=="function"?queueMicrotask:typeof yT!="undefined"?function(e){return yT.resolve(null).then(e).catch(PG)}:JC;function PG(e){setTimeout(function(){throw e})}function gw(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),zp(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);zp(t)}function ma(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 bT(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 Nd=Math.random().toString(36).slice(2),Mi="__reactFiber$"+Nd,Wp="__reactProps$"+Nd,vl="__reactContainer$"+Nd,ex="__reactEvents$"+Nd,EG="__reactListeners$"+Nd,kG="__reactHandles$"+Nd;function ic(e){var t=e[Mi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[vl]||n[Mi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=bT(e);e!==null;){if(n=e[Mi])return n;e=bT(e)}return t}e=n,n=e.parentNode}return null}function _h(e){return e=e[Mi]||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 Iy(e){return e[Wp]||null}var tx=[],Lu=-1;function Da(e){return{current:e}}function Mn(e){0>Lu||(e.current=tx[Lu],tx[Lu]=null,Lu--)}function xn(e,t){Lu++,tx[Lu]=e.current,e.current=t}var ka={},Zr=Da(ka),Eo=Da(!1),xc=ka;function fd(e,t){var n=e.type.contextTypes;if(!n)return ka;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 ko(e){return e=e.childContextTypes,e!=null}function gv(){Mn(Eo),Mn(Zr)}function wT(e,t,n){if(Zr.current!==ka)throw Error(He(168));xn(Zr,t),xn(Eo,n)}function yL(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,uW(e)||"Unknown",o));return Hn({},n,r)}function vv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ka,xc=Zr.current,xn(Zr,e),xn(Eo,Eo.current),!0}function CT(e,t,n){var r=e.stateNode;if(!r)throw Error(He(169));n?(e=yL(e,t,xc),r.__reactInternalMemoizedMergedChildContext=e,Mn(Eo),Mn(Zr),xn(Zr,e)):Mn(Eo),xn(Eo,n)}var sl=null,My=!1,vw=!1;function bL(e){sl===null?sl=[e]:sl.push(e)}function IG(e){My=!0,bL(e)}function Aa(){if(!vw&&sl!==null){vw=!0;var e=0,t=fn;try{var n=sl;for(fn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}sl=null,My=!1}catch(o){throw sl!==null&&(sl=sl.slice(e+1)),UA(qS,Aa),o}finally{fn=t,vw=!1}}return null}var Fu=[],Nu=0,yv=null,bv=0,ks=[],Is=0,Sc=null,cl=1,ul="";function tc(e,t){Fu[Nu++]=bv,Fu[Nu++]=yv,yv=e,bv=t}function wL(e,t,n){ks[Is++]=cl,ks[Is++]=ul,ks[Is++]=Sc,Sc=e;var r=cl;e=ul;var o=32-ii(r)-1;r&=~(1<<o),n+=1;var s=32-ii(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,cl=1<<32-ii(t)+o|n<<o|r,ul=s+e}else cl=1<<s|n<<o|r,ul=e}function rP(e){e.return!==null&&(tc(e,1),wL(e,1,0))}function oP(e){for(;e===yv;)yv=Fu[--Nu],Fu[Nu]=null,bv=Fu[--Nu],Fu[Nu]=null;for(;e===Sc;)Sc=ks[--Is],ks[Is]=null,ul=ks[--Is],ks[Is]=null,cl=ks[--Is],ks[Is]=null}var Yo=null,qo=null,Ln=!1,ei=null;function CL(e,t){var n=_s(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 xT(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,Yo=e,qo=ma(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Yo=e,qo=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Sc!==null?{id:cl,overflow:ul}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=_s(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Yo=e,qo=null,!0):!1;default:return!1}}function nx(e){return(e.mode&1)!==0&&(e.flags&128)===0}function rx(e){if(Ln){var t=qo;if(t){var n=t;if(!xT(e,t)){if(nx(e))throw Error(He(418));t=ma(n.nextSibling);var r=Yo;t&&xT(e,t)?CL(r,n):(e.flags=e.flags&-4097|2,Ln=!1,Yo=e)}}else{if(nx(e))throw Error(He(418));e.flags=e.flags&-4097|2,Ln=!1,Yo=e}}}function ST(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Yo=e}function tg(e){if(e!==Yo)return!1;if(!Ln)return ST(e),Ln=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ZC(e.type,e.memoizedProps)),t&&(t=qo)){if(nx(e))throw xL(),Error(He(418));for(;t;)CL(e,t),t=ma(t.nextSibling)}if(ST(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(He(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){qo=ma(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}qo=null}}else qo=Yo?ma(e.stateNode.nextSibling):null;return!0}function xL(){for(var e=qo;e;)e=ma(e.nextSibling)}function pd(){qo=Yo=null,Ln=!1}function sP(e){ei===null?ei=[e]:ei.push(e)}var MG=kl.ReactCurrentBatchConfig;function Xs(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 wv=Da(null),Cv=null,Bu=null,iP=null;function lP(){iP=Bu=Cv=null}function aP(e){var t=wv.current;Mn(wv),e._currentValue=t}function ox(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){Cv=e,iP=Bu=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Po=!0),e.firstContext=null)}function Os(e){var t=e._currentValue;if(iP!==e)if(e={context:e,memoizedValue:t,next:null},Bu===null){if(Cv===null)throw Error(He(308));Bu=e,Cv.dependencies={lanes:0,firstContext:e}}else Bu=Bu.next=e;return t}var lc=null;function cP(e){lc===null?lc=[e]:lc.push(e)}function SL(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,cP(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 Zl=!1;function uP(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function PL(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 ga(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,cP(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,YS(e,n)}}function PT(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 xv(e,t,n,r){var o=e.updateQueue;Zl=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,c=a.next;a.next=null,i===null?s=c:i.next=c,i=a;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==i&&(l===null?f.firstBaseUpdate=c:l.next=c,f.lastBaseUpdate=a))}if(s!==null){var p=o.baseState;i=0,f=c=a=null,l=s;do{var h=l.lane,y=l.eventTime;if((r&h)===h){f!==null&&(f=f.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=e,m=l;switch(h=t,y=n,m.tag){case 1:if(v=m.payload,typeof v=="function"){p=v.call(y,p,h);break e}p=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=m.payload,h=typeof v=="function"?v.call(y,p,h):v,h==null)break e;p=Hn({},p,h);break e;case 2:Zl=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[l]:h.push(l))}else y={eventTime:y,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(c=f=y,a=p):f=f.next=y,i|=h;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;h=l,l=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(1);if(f===null&&(a=p),o.baseState=a,o.firstBaseUpdate=c,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Ec|=i,e.lanes=i,e.memoizedState=p}}function ET(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 EL=new SA.Component().refs;function sx(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 _y={isMounted:function(e){return(e=e._reactInternals)?Bc(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=co(),o=ya(e),s=pl(r,o);s.payload=t,n!=null&&(s.callback=n),t=ga(e,s,o),t!==null&&(li(t,e,o,r),Lg(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=co(),o=ya(e),s=pl(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=ga(e,s,o),t!==null&&(li(t,e,o,r),Lg(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=co(),r=ya(e),o=pl(n,r);o.tag=2,t!=null&&(o.callback=t),t=ga(e,o,r),t!==null&&(li(t,e,r,n),Lg(t,e,r))}};function kT(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?!jp(n,r)||!jp(o,s):!0}function kL(e,t,n){var r=!1,o=ka,s=t.contextType;return typeof s=="object"&&s!==null?s=Os(s):(o=ko(t)?xc:Zr.current,r=t.contextTypes,s=(r=r!=null)?fd(e,o):ka),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=_y,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function IT(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&&_y.enqueueReplaceState(t,t.state,null)}function ix(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=EL,uP(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=Os(s):(s=ko(t)?xc:Zr.current,o.context=fd(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(sx(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&&_y.enqueueReplaceState(o,o.state,null),xv(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Of(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===EL&&(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 MT(e){var t=e._init;return t(e._payload)}function IL(e){function t(w,b){if(e){var x=w.deletions;x===null?(w.deletions=[b],w.flags|=16):x.push(b)}}function n(w,b){if(!e)return null;for(;b!==null;)t(w,b),b=b.sibling;return null}function r(w,b){for(w=new Map;b!==null;)b.key!==null?w.set(b.key,b):w.set(b.index,b),b=b.sibling;return w}function o(w,b){return w=ba(w,b),w.index=0,w.sibling=null,w}function s(w,b,x){return w.index=x,e?(x=w.alternate,x!==null?(x=x.index,x<b?(w.flags|=2,b):x):(w.flags|=2,b)):(w.flags|=1048576,b)}function i(w){return e&&w.alternate===null&&(w.flags|=2),w}function l(w,b,x,P){return b===null||b.tag!==6?(b=Pw(x,w.mode,P),b.return=w,b):(b=o(b,x),b.return=w,b)}function a(w,b,x,P){var M=x.type;return M===$u?f(w,b,x.props.children,P,x.key):b!==null&&(b.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===Xl&&MT(M)===b.type)?(P=o(b,x.props),P.ref=Of(w,b,x),P.return=w,P):(P=jg(x.type,x.key,x.props,null,w.mode,P),P.ref=Of(w,b,x),P.return=w,P)}function c(w,b,x,P){return b===null||b.tag!==4||b.stateNode.containerInfo!==x.containerInfo||b.stateNode.implementation!==x.implementation?(b=Ew(x,w.mode,P),b.return=w,b):(b=o(b,x.children||[]),b.return=w,b)}function f(w,b,x,P,M){return b===null||b.tag!==7?(b=pc(x,w.mode,P,M),b.return=w,b):(b=o(b,x),b.return=w,b)}function p(w,b,x){if(typeof b=="string"&&b!==""||typeof b=="number")return b=Pw(""+b,w.mode,x),b.return=w,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Wm:return x=jg(b.type,b.key,b.props,null,w.mode,x),x.ref=Of(w,null,b),x.return=w,x;case Tu:return b=Ew(b,w.mode,x),b.return=w,b;case Xl:var P=b._init;return p(w,P(b._payload),x)}if(Jf(b)||Mf(b))return b=pc(b,w.mode,x,null),b.return=w,b;ng(w,b)}return null}function h(w,b,x,P){var M=b!==null?b.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return M!==null?null:l(w,b,""+x,P);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Wm:return x.key===M?a(w,b,x,P):null;case Tu:return x.key===M?c(w,b,x,P):null;case Xl:return M=x._init,h(w,b,M(x._payload),P)}if(Jf(x)||Mf(x))return M!==null?null:f(w,b,x,P,null);ng(w,x)}return null}function y(w,b,x,P,M){if(typeof P=="string"&&P!==""||typeof P=="number")return w=w.get(x)||null,l(b,w,""+P,M);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case Wm:return w=w.get(P.key===null?x:P.key)||null,a(b,w,P,M);case Tu:return w=w.get(P.key===null?x:P.key)||null,c(b,w,P,M);case Xl:var E=P._init;return y(w,b,x,E(P._payload),M)}if(Jf(P)||Mf(P))return w=w.get(x)||null,f(b,w,P,M,null);ng(b,P)}return null}function v(w,b,x,P){for(var M=null,E=null,k=b,R=b=0,O=null;k!==null&&R<x.length;R++){k.index>R?(O=k,k=null):O=k.sibling;var _=h(w,k,x[R],P);if(_===null){k===null&&(k=O);break}e&&k&&_.alternate===null&&t(w,k),b=s(_,b,R),E===null?M=_:E.sibling=_,E=_,k=O}if(R===x.length)return n(w,k),Ln&&tc(w,R),M;if(k===null){for(;R<x.length;R++)k=p(w,x[R],P),k!==null&&(b=s(k,b,R),E===null?M=k:E.sibling=k,E=k);return Ln&&tc(w,R),M}for(k=r(w,k);R<x.length;R++)O=y(k,w,R,x[R],P),O!==null&&(e&&O.alternate!==null&&k.delete(O.key===null?R:O.key),b=s(O,b,R),E===null?M=O:E.sibling=O,E=O);return e&&k.forEach(function(L){return t(w,L)}),Ln&&tc(w,R),M}function m(w,b,x,P){var M=Mf(x);if(typeof M!="function")throw Error(He(150));if(x=M.call(x),x==null)throw Error(He(151));for(var E=M=null,k=b,R=b=0,O=null,_=x.next();k!==null&&!_.done;R++,_=x.next()){k.index>R?(O=k,k=null):O=k.sibling;var L=h(w,k,_.value,P);if(L===null){k===null&&(k=O);break}e&&k&&L.alternate===null&&t(w,k),b=s(L,b,R),E===null?M=L:E.sibling=L,E=L,k=O}if(_.done)return n(w,k),Ln&&tc(w,R),M;if(k===null){for(;!_.done;R++,_=x.next())_=p(w,_.value,P),_!==null&&(b=s(_,b,R),E===null?M=_:E.sibling=_,E=_);return Ln&&tc(w,R),M}for(k=r(w,k);!_.done;R++,_=x.next())_=y(k,w,R,_.value,P),_!==null&&(e&&_.alternate!==null&&k.delete(_.key===null?R:_.key),b=s(_,b,R),E===null?M=_:E.sibling=_,E=_);return e&&k.forEach(function(B){return t(w,B)}),Ln&&tc(w,R),M}function C(w,b,x,P){if(typeof x=="object"&&x!==null&&x.type===$u&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Wm:e:{for(var M=x.key,E=b;E!==null;){if(E.key===M){if(M=x.type,M===$u){if(E.tag===7){n(w,E.sibling),b=o(E,x.props.children),b.return=w,w=b;break e}}else if(E.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===Xl&&MT(M)===E.type){n(w,E.sibling),b=o(E,x.props),b.ref=Of(w,E,x),b.return=w,w=b;break e}n(w,E);break}else t(w,E);E=E.sibling}x.type===$u?(b=pc(x.props.children,w.mode,P,x.key),b.return=w,w=b):(P=jg(x.type,x.key,x.props,null,w.mode,P),P.ref=Of(w,b,x),P.return=w,w=P)}return i(w);case Tu:e:{for(E=x.key;b!==null;){if(b.key===E)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){n(w,b.sibling),b=o(b,x.children||[]),b.return=w,w=b;break e}else{n(w,b);break}else t(w,b);b=b.sibling}b=Ew(x,w.mode,P),b.return=w,w=b}return i(w);case Xl:return E=x._init,C(w,b,E(x._payload),P)}if(Jf(x))return v(w,b,x,P);if(Mf(x))return m(w,b,x,P);ng(w,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,b!==null&&b.tag===6?(n(w,b.sibling),b=o(b,x),b.return=w,w=b):(n(w,b),b=Pw(x,w.mode,P),b.return=w,w=b),i(w)):n(w,b)}return C}var hd=IL(!0),ML=IL(!1),Th={},$i=Da(Th),Gp=Da(Th),Kp=Da(Th);function ac(e){if(e===Th)throw Error(He(174));return e}function dP(e,t){switch(xn(Kp,t),xn(Gp,e),xn($i,Th),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:NC(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=NC(t,e)}Mn($i),xn($i,t)}function md(){Mn($i),Mn(Gp),Mn(Kp)}function _L(e){ac(Kp.current);var t=ac($i.current),n=NC(t,e.type);t!==n&&(xn(Gp,e),xn($i,n))}function fP(e){Gp.current===e&&(Mn($i),Mn(Gp))}var zn=Da(0);function Sv(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 yw=[];function pP(){for(var e=0;e<yw.length;e++)yw[e]._workInProgressVersionPrimary=null;yw.length=0}var Fg=kl.ReactCurrentDispatcher,bw=kl.ReactCurrentBatchConfig,Pc=0,jn=null,fr=null,Cr=null,Pv=!1,yp=!1,qp=0,_G=0;function Vr(){throw Error(He(321))}function hP(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!di(e[n],t[n]))return!1;return!0}function mP(e,t,n,r,o,s){if(Pc=s,jn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Fg.current=e===null||e.memoizedState===null?OG:DG,e=n(r,o),yp){s=0;do{if(yp=!1,qp=0,25<=s)throw Error(He(301));s+=1,Cr=fr=null,t.updateQueue=null,Fg.current=AG,e=n(r,o)}while(yp)}if(Fg.current=Ev,t=fr!==null&&fr.next!==null,Pc=0,Cr=fr=jn=null,Pv=!1,t)throw Error(He(300));return e}function gP(){var e=qp!==0;return qp=0,e}function Si(){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 Ds(){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 Yp(e,t){return typeof t=="function"?t(e):t}function ww(e){var t=Ds(),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,c=s;do{var f=c.lane;if((Pc&f)===f)a!==null&&(a=a.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var p={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};a===null?(l=a=p,i=r):a=a.next=p,jn.lanes|=f,Ec|=f}c=c.next}while(c!==null&&c!==s);a===null?i=r:a.next=l,di(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,Ec|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Cw(e){var t=Ds(),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);di(s,t.memoizedState)||(Po=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function TL(){}function $L(e,t){var n=jn,r=Ds(),o=t(),s=!di(r.memoizedState,o);if(s&&(r.memoizedState=o,Po=!0),r=r.queue,vP(DL.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Cr!==null&&Cr.memoizedState.tag&1){if(n.flags|=2048,Qp(9,OL.bind(null,n,r,o,t),void 0,null),Sr===null)throw Error(He(349));Pc&30||RL(n,t,o)}return o}function RL(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 OL(e,t,n,r){t.value=n,t.getSnapshot=r,AL(t)&&LL(e)}function DL(e,t,n){return n(function(){AL(t)&&LL(e)})}function AL(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!di(e,n)}catch(r){return!0}}function LL(e){var t=yl(e,1);t!==null&&li(t,e,1,-1)}function _T(e){var t=Si();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Yp,lastRenderedState:e},t.queue=e,e=e.dispatch=RG.bind(null,jn,e),[t.memoizedState,e]}function Qp(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 FL(){return Ds().memoizedState}function Ng(e,t,n,r){var o=Si();jn.flags|=e,o.memoizedState=Qp(1|t,n,void 0,r===void 0?null:r)}function Ty(e,t,n,r){var o=Ds();r=r===void 0?null:r;var s=void 0;if(fr!==null){var i=fr.memoizedState;if(s=i.destroy,r!==null&&hP(r,i.deps)){o.memoizedState=Qp(t,n,s,r);return}}jn.flags|=e,o.memoizedState=Qp(1|t,n,s,r)}function TT(e,t){return Ng(8390656,8,e,t)}function vP(e,t){return Ty(2048,8,e,t)}function NL(e,t){return Ty(4,2,e,t)}function BL(e,t){return Ty(4,4,e,t)}function zL(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 VL(e,t,n){return n=n!=null?n.concat([e]):null,Ty(4,4,zL.bind(null,t,e),n)}function yP(){}function jL(e,t){var n=Ds();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&hP(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function HL(e,t){var n=Ds();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&hP(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function UL(e,t,n){return Pc&21?(di(n,t)||(n=KA(),jn.lanes|=n,Ec|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Po=!0),e.memoizedState=n)}function TG(e,t){var n=fn;fn=n!==0&&4>n?n:4,e(!0);var r=bw.transition;bw.transition={};try{e(!1),t()}finally{fn=n,bw.transition=r}}function WL(){return Ds().memoizedState}function $G(e,t,n){var r=ya(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},GL(e))KL(t,n);else if(n=SL(e,t,n,r),n!==null){var o=co();li(n,e,r,o),qL(n,t,r)}}function RG(e,t,n){var r=ya(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(GL(e))KL(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,di(l,i)){var a=t.interleaved;a===null?(o.next=o,cP(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch(c){}finally{}n=SL(e,t,o,r),n!==null&&(o=co(),li(n,e,r,o),qL(n,t,r))}}function GL(e){var t=e.alternate;return e===jn||t!==null&&t===jn}function KL(e,t){yp=Pv=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function qL(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,YS(e,n)}}var Ev={readContext:Os,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},OG={readContext:Os,useCallback:function(e,t){return Si().memoizedState=[e,t===void 0?null:t],e},useContext:Os,useEffect:TT,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ng(4194308,4,zL.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=Si();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Si();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=$G.bind(null,jn,e),[r.memoizedState,e]},useRef:function(e){var t=Si();return e={current:e},t.memoizedState=e},useState:_T,useDebugValue:yP,useDeferredValue:function(e){return Si().memoizedState=e},useTransition:function(){var e=_T(!1),t=e[0];return e=TG.bind(null,e[1]),Si().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=jn,o=Si();if(Ln){if(n===void 0)throw Error(He(407));n=n()}else{if(n=t(),Sr===null)throw Error(He(349));Pc&30||RL(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,TT(DL.bind(null,r,s,e),[e]),r.flags|=2048,Qp(9,OL.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Si(),t=Sr.identifierPrefix;if(Ln){var n=ul,r=cl;n=(r&~(1<<32-ii(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qp++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=_G++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},DG={readContext:Os,useCallback:jL,useContext:Os,useEffect:vP,useImperativeHandle:VL,useInsertionEffect:NL,useLayoutEffect:BL,useMemo:HL,useReducer:ww,useRef:FL,useState:function(){return ww(Yp)},useDebugValue:yP,useDeferredValue:function(e){var t=Ds();return UL(t,fr.memoizedState,e)},useTransition:function(){var e=ww(Yp)[0],t=Ds().memoizedState;return[e,t]},useMutableSource:TL,useSyncExternalStore:$L,useId:WL,unstable_isNewReconciler:!1},AG={readContext:Os,useCallback:jL,useContext:Os,useEffect:vP,useImperativeHandle:VL,useInsertionEffect:NL,useLayoutEffect:BL,useMemo:HL,useReducer:Cw,useRef:FL,useState:function(){return Cw(Yp)},useDebugValue:yP,useDeferredValue:function(e){var t=Ds();return fr===null?t.memoizedState=e:UL(t,fr.memoizedState,e)},useTransition:function(){var e=Cw(Yp)[0],t=Ds().memoizedState;return[e,t]},useMutableSource:TL,useSyncExternalStore:$L,useId:WL,unstable_isNewReconciler:!1};function gd(e,t){try{var n="",r=t;do n+=cW(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 xw(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function lx(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var LG=typeof WeakMap=="function"?WeakMap:Map;function YL(e,t,n){n=pl(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Iv||(Iv=!0,vx=r),lx(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(){lx(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){lx(e,t),typeof r!="function"&&(va===null?va=new Set([this]):va.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 LG;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=QG.bind(null,e,t,n),t.then(e,e))}function RT(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 OT(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,ga(n,t,1))),n.lanes|=1),e)}var FG=kl.ReactCurrentOwner,Po=!1;function so(e,t,n,r){t.child=e===null?ML(t,null,n,r):hd(t,e.child,n,r)}function DT(e,t,n,r,o){n=n.render;var s=t.ref;return Ju(t,o),r=mP(e,t,n,r,s,o),n=gP(),e!==null&&!Po?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,bl(e,t,o)):(Ln&&n&&rP(t),t.flags|=1,so(e,t,r,o),t.child)}function AT(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!kP(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,XL(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:jp,n(i,r)&&e.ref===t.ref)return bl(e,t,o)}return t.flags|=1,e=ba(s,r),e.ref=t.ref,e.return=t,t.child=e}function XL(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(jp(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 ax(e,t,n,r,o)}function ZL(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 JL(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ax(e,t,n,r,o){var s=ko(n)?xc:Zr.current;return s=fd(t,s),Ju(t,o),n=mP(e,t,n,r,s,o),r=gP(),e!==null&&!Po?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,bl(e,t,o)):(Ln&&r&&rP(t),t.flags|=1,so(e,t,n,o),t.child)}function LT(e,t,n,r,o){if(ko(n)){var s=!0;vv(t)}else s=!1;if(Ju(t,o),t.stateNode===null)Bg(e,t),kL(t,n,r),ix(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var a=i.context,c=n.contextType;typeof c=="object"&&c!==null?c=Os(c):(c=ko(n)?xc:Zr.current,c=fd(t,c));var f=n.getDerivedStateFromProps,p=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";p||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||a!==c)&&IT(t,i,r,c),Zl=!1;var h=t.memoizedState;i.state=h,xv(t,r,i,o),a=t.memoizedState,l!==r||h!==a||Eo.current||Zl?(typeof f=="function"&&(sx(t,n,f,r),a=t.memoizedState),(l=Zl||kT(t,n,l,r,h,a,c))?(p||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),i.props=r,i.state=a,i.context=c,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,PL(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Xs(t.type,l),i.props=c,p=t.pendingProps,h=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=Os(a):(a=ko(n)?xc:Zr.current,a=fd(t,a));var y=n.getDerivedStateFromProps;(f=typeof y=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==p||h!==a)&&IT(t,i,r,a),Zl=!1,h=t.memoizedState,i.state=h,xv(t,r,i,o);var v=t.memoizedState;l!==p||h!==v||Eo.current||Zl?(typeof y=="function"&&(sx(t,n,y,r),v=t.memoizedState),(c=Zl||kT(t,n,c,r,h,v,a)||!1)?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,v,a),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,v,a)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),i.props=r,i.state=v,i.context=a,r=c):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return cx(e,t,n,r,s,o)}function cx(e,t,n,r,o,s){JL(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&CT(t,n,!1),bl(e,t,s);r=t.stateNode,FG.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&&CT(t,n,!0),t.child}function eF(e){var t=e.stateNode;t.pendingContext?wT(e,t.pendingContext,t.pendingContext!==t.context):t.context&&wT(e,t.context,!1),dP(e,t.containerInfo)}function FT(e,t,n,r,o){return pd(),sP(o),t.flags|=256,so(e,t,n,r),t.child}var ux={dehydrated:null,treeContext:null,retryLane:0};function dx(e){return{baseLanes:e,cachePool:null,transitions:null}}function tF(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 rx(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=Oy(i,r,0,null),e=pc(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=dx(n),t.memoizedState=ux,e):bP(t,i));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return NG(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=ba(o,a),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?s=ba(l,s):(s=pc(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?dx(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=ux,r}return s=e.child,e=s.sibling,r=ba(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function bP(e,t){return t=Oy({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function rg(e,t,n,r){return r!==null&&sP(r),hd(t,e.child,null,n),e=bP(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function NG(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=xw(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=Oy({mode:"visible",children:r.children},o,0,null),s=pc(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=dx(i),t.memoizedState=ux,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=xw(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),li(r,e,o,-1))}return EP(),r=xw(Error(He(421))),rg(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=XG.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,qo=ma(o.nextSibling),Yo=t,Ln=!0,ei=null,e!==null&&(ks[Is++]=cl,ks[Is++]=ul,ks[Is++]=Sc,cl=e.id,ul=e.overflow,Sc=t),t=bP(t,r.children),t.flags|=4096,t)}function NT(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ox(e.return,t,n)}function Sw(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 nF(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&&NT(e,n,t);else if(e.tag===19)NT(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&&Sv(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Sw(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&&Sv(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Sw(t,!0,n,null,s);break;case"together":Sw(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),Ec|=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=ba(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ba(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function BG(e,t,n){switch(t.tag){case 3:eF(t),pd();break;case 5:_L(t);break;case 1:ko(t.type)&&vv(t);break;case 4:dP(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;xn(wv,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?tF(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 nF(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,ZL(e,t,n)}return bl(e,t,n)}var rF,fx,oF,sF;rF=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}};fx=function(){};oF=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ac($i.current);var s=null;switch(n){case"input":o=DC(e,o),r=DC(e,r),s=[];break;case"select":o=Hn({},o,{value:void 0}),r=Hn({},r,{value:void 0}),s=[];break;case"textarea":o=FC(e,o),r=FC(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=mv)}BC(n,r);var i;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Ap.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var a=r[c];if(l=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&a!==l&&(a!=null||l!=null))if(c==="style")if(l){for(i in l)!l.hasOwnProperty(i)||a&&a.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in a)a.hasOwnProperty(i)&&l[i]!==a[i]&&(n||(n={}),n[i]=a[i])}else n||(s||(s=[]),s.push(c,n)),n=a;else c==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(s=s||[]).push(c,a)):c==="children"?typeof a!="string"&&typeof a!="number"||(s=s||[]).push(c,""+a):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Ap.hasOwnProperty(c)?(a!=null&&c==="onScroll"&&kn("scroll",e),s||l===a||(s=[])):(s=s||[]).push(c,a))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};sF=function(e,t,n,r){n!==r&&(t.flags|=4)};function Df(e,t){if(!Ln)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 zG(e,t,n){var r=t.pendingProps;switch(oP(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 ko(t.type)&&gv(),jr(t),null;case 3:return r=t.stateNode,md(),Mn(Eo),Mn(Zr),pP(),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,ei!==null&&(wx(ei),ei=null))),fx(e,t),jr(t),null;case 5:fP(t);var o=ac(Kp.current);if(n=t.type,e!==null&&t.stateNode!=null)oF(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=ac($i.current),tg(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Mi]=t,r[Wp]=s,e=(t.mode&1)!==0,n){case"dialog":kn("cancel",r),kn("close",r);break;case"iframe":case"object":case"embed":kn("load",r);break;case"video":case"audio":for(o=0;o<tp.length;o++)kn(tp[o],r);break;case"source":kn("error",r);break;case"img":case"image":case"link":kn("error",r),kn("load",r);break;case"details":kn("toggle",r);break;case"input":K_(r,s),kn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},kn("invalid",r);break;case"textarea":Y_(r,s),kn("invalid",r)}BC(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]):Ap.hasOwnProperty(i)&&l!=null&&i==="onScroll"&&kn("scroll",r)}switch(n){case"input":Gm(r),q_(r,s,!0);break;case"textarea":Gm(r),Q_(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=mv)}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=RA(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[Mi]=t,e[Wp]=r,rF(e,t,!1,!1),t.stateNode=e;e:{switch(i=zC(n,r),n){case"dialog":kn("cancel",e),kn("close",e),o=r;break;case"iframe":case"object":case"embed":kn("load",e),o=r;break;case"video":case"audio":for(o=0;o<tp.length;o++)kn(tp[o],e);o=r;break;case"source":kn("error",e),o=r;break;case"img":case"image":case"link":kn("error",e),kn("load",e),o=r;break;case"details":kn("toggle",e),o=r;break;case"input":K_(e,r),o=DC(e,r),kn("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Hn({},r,{value:void 0}),kn("invalid",e);break;case"textarea":Y_(e,r),o=FC(e,r),kn("invalid",e);break;default:o=r}BC(n,o),l=o;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?AA(e,a):s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&OA(e,a)):s==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Lp(e,a):typeof a=="number"&&Lp(e,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ap.hasOwnProperty(s)?a!=null&&s==="onScroll"&&kn("scroll",e):a!=null&&HS(e,s,a,i))}switch(n){case"input":Gm(e),q_(e,r,!1);break;case"textarea":Gm(e),Q_(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ea(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=mv)}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)sF(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(He(166));if(n=ac(Kp.current),ac($i.current),tg(t)){if(r=t.stateNode,n=t.memoizedProps,r[Mi]=t,(s=r.nodeValue!==n)&&(e=Yo,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[Mi]=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(Ln&&qo!==null&&t.mode&1&&!(t.flags&128))xL(),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[Mi]=t}else pd(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jr(t),s=!1}else ei!==null&&(wx(ei),ei=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?hr===0&&(hr=3):EP())),t.updateQueue!==null&&(t.flags|=4),jr(t),null);case 4:return md(),fx(e,t),e===null&&Hp(t.stateNode.containerInfo),jr(t),null;case 10:return aP(t.type._context),jr(t),null;case 17:return ko(t.type)&&gv(),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)Df(s,!1);else{if(hr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Sv(e),i!==null){for(t.flags|=128,Df(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,Df(s,!1),t.lanes=4194304)}else{if(!r)if(e=Sv(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Df(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!Ln)return jr(t),null}else 2*tr()-s.renderingStartTime>vd&&n!==1073741824&&(t.flags|=128,r=!0,Df(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 PP(),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 VG(e,t){switch(oP(t),t.tag){case 1:return ko(t.type)&&gv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return md(),Mn(Eo),Mn(Zr),pP(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return fP(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 aP(t.type._context),null;case 22:case 23:return PP(),null;case 24:return null;default:return null}}var og=!1,Gr=!1,jG=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 px(e,t,n){try{n()}catch(r){Kn(e,t,r)}}var BT=!1;function HG(e,t){if(QC=fv,e=cL(),nP(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(P){n=null;break e}var i=0,l=-1,a=-1,c=0,f=0,p=e,h=null;t:for(;;){for(var y;p!==n||o!==0&&p.nodeType!==3||(l=i+o),p!==s||r!==0&&p.nodeType!==3||(a=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(y=p.firstChild)!==null;)h=p,p=y;for(;;){if(p===e)break t;if(h===n&&++c===o&&(l=i),h===s&&++f===r&&(a=i),(y=p.nextSibling)!==null)break;p=h,h=p.parentNode}p=y}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(XC={focusedElem:e,selectionRange:n},fv=!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 v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var m=v.memoizedProps,C=v.memoizedState,w=t.stateNode,b=w.getSnapshotBeforeUpdate(t.elementType===t.type?m:Xs(t.type,m),C);w.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(He(163))}}catch(P){Kn(t,t.return,P)}if(e=t.sibling,e!==null){e.return=t.return,at=e;break}at=t.return}return v=BT,BT=!1,v}function bp(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&&px(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 hx(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 iF(e){var t=e.alternate;t!==null&&(e.alternate=null,iF(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mi],delete t[Wp],delete t[ex],delete t[EG],delete t[kG])),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 lF(e){return e.tag===5||e.tag===3||e.tag===4}function zT(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lF(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 mx(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=mv));else if(r!==4&&(e=e.child,e!==null))for(mx(e,t,n),e=e.sibling;e!==null;)mx(e,t,n),e=e.sibling}function gx(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(gx(e,t,n),e=e.sibling;e!==null;)gx(e,t,n),e=e.sibling}var Rr=null,Js=!1;function Vl(e,t,n){for(n=n.child;n!==null;)aF(e,t,n),n=n.sibling}function aF(e,t,n){if(Ti&&typeof Ti.onCommitFiberUnmount=="function")try{Ti.onCommitFiberUnmount(Sy,n)}catch(l){}switch(n.tag){case 5:Gr||zu(n,t);case 6:var r=Rr,o=Js;Rr=null,Vl(e,t,n),Rr=r,Js=o,Rr!==null&&(Js?(e=Rr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Rr.removeChild(n.stateNode));break;case 18:Rr!==null&&(Js?(e=Rr,n=n.stateNode,e.nodeType===8?gw(e.parentNode,n):e.nodeType===1&&gw(e,n),zp(e)):gw(Rr,n.stateNode));break;case 4:r=Rr,o=Js,Rr=n.stateNode.containerInfo,Js=!0,Vl(e,t,n),Rr=r,Js=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)&&px(n,t,i),o=o.next}while(o!==r)}Vl(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)}Vl(e,t,n);break;case 21:Vl(e,t,n);break;case 22:n.mode&1?(Gr=(r=Gr)||n.memoizedState!==null,Vl(e,t,n),Gr=r):Vl(e,t,n);break;default:Vl(e,t,n)}}function VT(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new jG),t.forEach(function(r){var o=ZG.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function qs(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,Js=!1;break e;case 3:Rr=l.stateNode.containerInfo,Js=!0;break e;case 4:Rr=l.stateNode.containerInfo,Js=!0;break e}l=l.return}if(Rr===null)throw Error(He(160));aF(s,i,o),Rr=null,Js=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(c){Kn(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)cF(t,e),t=t.sibling}function cF(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(qs(t,e),Ci(e),r&4){try{bp(3,e,e.return),$y(3,e)}catch(m){Kn(e,e.return,m)}try{bp(5,e,e.return)}catch(m){Kn(e,e.return,m)}}break;case 1:qs(t,e),Ci(e),r&512&&n!==null&&zu(n,n.return);break;case 5:if(qs(t,e),Ci(e),r&512&&n!==null&&zu(n,n.return),e.flags&32){var o=e.stateNode;try{Lp(o,"")}catch(m){Kn(e,e.return,m)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&TA(o,s),zC(l,i);var c=zC(l,s);for(i=0;i<a.length;i+=2){var f=a[i],p=a[i+1];f==="style"?AA(o,p):f==="dangerouslySetInnerHTML"?OA(o,p):f==="children"?Lp(o,p):HS(o,f,p,c)}switch(l){case"input":AC(o,s);break;case"textarea":$A(o,s);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var y=s.value;y!=null?Yu(o,!!s.multiple,y,!1):h!==!!s.multiple&&(s.defaultValue!=null?Yu(o,!!s.multiple,s.defaultValue,!0):Yu(o,!!s.multiple,s.multiple?[]:"",!1))}o[Wp]=s}catch(m){Kn(e,e.return,m)}}break;case 6:if(qs(t,e),Ci(e),r&4){if(e.stateNode===null)throw Error(He(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(m){Kn(e,e.return,m)}}break;case 3:if(qs(t,e),Ci(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{zp(t.containerInfo)}catch(m){Kn(e,e.return,m)}break;case 4:qs(t,e),Ci(e);break;case 13:qs(t,e),Ci(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(xP=tr())),r&4&&VT(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Gr=(c=Gr)||f,qs(t,e),Gr=c):qs(t,e),Ci(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&e.mode&1)for(at=e,f=e.child;f!==null;){for(p=at=f;at!==null;){switch(h=at,y=h.child,h.tag){case 0:case 11:case 14:case 15:bp(4,h,h.return);break;case 1:zu(h,h.return);var v=h.stateNode;if(typeof v.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(m){Kn(r,n,m)}}break;case 5:zu(h,h.return);break;case 22:if(h.memoizedState!==null){HT(p);continue}}y!==null?(y.return=h,at=y):HT(p)}f=f.sibling}e:for(f=null,p=e;;){if(p.tag===5){if(f===null){f=p;try{o=p.stateNode,c?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=p.stateNode,a=p.memoizedProps.style,i=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=DA("display",i))}catch(m){Kn(e,e.return,m)}}}else if(p.tag===6){if(f===null)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(m){Kn(e,e.return,m)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:qs(t,e),Ci(e),r&4&&VT(e);break;case 21:break;default:qs(t,e),Ci(e)}}function Ci(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(lF(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&&(Lp(o,""),r.flags&=-33);var s=zT(e);gx(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,l=zT(e);mx(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 UG(e,t,n){at=e,uF(e)}function uF(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 c=Gr;if(og=i,(Gr=a)&&!c)for(at=o;at!==null;)i=at,a=i.child,i.tag===22&&i.memoizedState!==null?UT(o):a!==null?(a.return=i,at=a):UT(o);for(;s!==null;)at=s,uF(s),s=s.sibling;at=o,og=l,Gr=c}jT(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,at=s):jT(e)}}function jT(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:Xs(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&ET(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}ET(t,i,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var f=c.memoizedState;if(f!==null){var p=f.dehydrated;p!==null&&zp(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(He(163))}Gr||t.flags&512&&hx(t)}catch(h){Kn(t,t.return,h)}}if(t===e){at=null;break}if(n=t.sibling,n!==null){n.return=t.return,at=n;break}at=t.return}}function HT(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 UT(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{hx(t)}catch(a){Kn(t,s,a)}break;case 5:var i=t.return;try{hx(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 WG=Math.ceil,kv=kl.ReactCurrentDispatcher,wP=kl.ReactCurrentOwner,Ts=kl.ReactCurrentBatchConfig,Xt=0,Sr=null,cr=null,Lr=0,zo=0,Vu=Da(0),hr=0,Xp=null,Ec=0,Ry=0,CP=0,wp=null,wo=null,xP=0,vd=1/0,ol=null,Iv=!1,vx=null,va=null,sg=!1,ia=null,Mv=0,Cp=0,yx=null,zg=-1,Vg=0;function co(){return Xt&6?tr():zg!==-1?zg:zg=tr()}function ya(e){return e.mode&1?Xt&2&&Lr!==0?Lr&-Lr:MG.transition!==null?(Vg===0&&(Vg=KA()),Vg):(e=fn,e!==0||(e=window.event,e=e===void 0?16:eL(e.type)),e):1}function li(e,t,n,r){if(50<Cp)throw Cp=0,yx=null,Error(He(185));Ih(e,n,r),(!(Xt&2)||e!==Sr)&&(e===Sr&&(!(Xt&2)&&(Ry|=n),hr===4&&ra(e,Lr)),Io(e,r),n===1&&Xt===0&&!(t.mode&1)&&(vd=tr()+500,My&&Aa()))}function Io(e,t){var n=e.callbackNode;MW(e,t);var r=dv(e,e===Sr?Lr:0);if(r===0)n!==null&&J_(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&J_(n),t===1)e.tag===0?IG(WT.bind(null,e)):bL(WT.bind(null,e)),SG(function(){!(Xt&6)&&Aa()}),n=null;else{switch(qA(r)){case 1:n=qS;break;case 4:n=WA;break;case 16:n=uv;break;case 536870912:n=GA;break;default:n=uv}n=yF(n,dF.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function dF(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=dv(e,e===Sr?Lr:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=_v(e,r);else{t=r;var o=Xt;Xt|=2;var s=pF();(Sr!==e||Lr!==t)&&(ol=null,vd=tr()+500,fc(e,t));do try{qG();break}catch(l){fF(e,l)}while(1);lP(),kv.current=s,Xt=o,cr!==null?t=0:(Sr=null,Lr=0,t=hr)}if(t!==0){if(t===2&&(o=WC(e),o!==0&&(r=o,t=bx(e,o))),t===1)throw n=Xp,fc(e,0),ra(e,r),Io(e,tr()),n;if(t===6)ra(e,r);else{if(o=e.current.alternate,!(r&30)&&!GG(o)&&(t=_v(e,r),t===2&&(s=WC(e),s!==0&&(r=s,t=bx(e,s))),t===1))throw n=Xp,fc(e,0),ra(e,r),Io(e,tr()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(He(345));case 2:nc(e,wo,ol);break;case 3:if(ra(e,r),(r&130023424)===r&&(t=xP+500-tr(),10<t)){if(dv(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){co(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=JC(nc.bind(null,e,wo,ol),t);break}nc(e,wo,ol);break;case 4:if(ra(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-ii(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*WG(r/1960))-r,10<r){e.timeoutHandle=JC(nc.bind(null,e,wo,ol),r);break}nc(e,wo,ol);break;case 5:nc(e,wo,ol);break;default:throw Error(He(329))}}}return Io(e,tr()),e.callbackNode===n?dF.bind(null,e):null}function bx(e,t){var n=wp;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),e=_v(e,t),e!==2&&(t=wo,wo=n,t!==null&&wx(t)),e}function wx(e){wo===null?wo=e:wo.push.apply(wo,e)}function GG(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(!di(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 ra(e,t){for(t&=~CP,t&=~Ry,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ii(t),r=1<<n;e[n]=-1,t&=~r}}function WT(e){if(Xt&6)throw Error(He(327));ed();var t=dv(e,0);if(!(t&1))return Io(e,tr()),null;var n=_v(e,t);if(e.tag!==0&&n===2){var r=WC(e);r!==0&&(t=r,n=bx(e,r))}if(n===1)throw n=Xp,fc(e,0),ra(e,t),Io(e,tr()),n;if(n===6)throw Error(He(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,nc(e,wo,ol),Io(e,tr()),null}function SP(e,t){var n=Xt;Xt|=1;try{return e(t)}finally{Xt=n,Xt===0&&(vd=tr()+500,My&&Aa())}}function kc(e){ia!==null&&ia.tag===0&&!(Xt&6)&&ed();var t=Xt;Xt|=1;var n=Ts.transition,r=fn;try{if(Ts.transition=null,fn=1,e)return e()}finally{fn=r,Ts.transition=n,Xt=t,!(Xt&6)&&Aa()}}function PP(){zo=Vu.current,Mn(Vu)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,xG(n)),cr!==null)for(n=cr.return;n!==null;){var r=n;switch(oP(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&gv();break;case 3:md(),Mn(Eo),Mn(Zr),pP();break;case 5:fP(r);break;case 4:md();break;case 13:Mn(zn);break;case 19:Mn(zn);break;case 10:aP(r.type._context);break;case 22:case 23:PP()}n=n.return}if(Sr=e,cr=e=ba(e.current,null),Lr=zo=t,hr=0,Xp=null,CP=Ry=Ec=0,wo=wp=null,lc!==null){for(t=0;t<lc.length;t++)if(n=lc[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}lc=null}return e}function fF(e,t){do{var n=cr;try{if(lP(),Fg.current=Ev,Pv){for(var r=jn.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Pv=!1}if(Pc=0,Cr=fr=jn=null,yp=!1,qp=0,wP.current=null,n===null||n.return===null){hr=1,Xp=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 c=a,f=l,p=f.tag;if(!(f.mode&1)&&(p===0||p===11||p===15)){var h=f.alternate;h?(f.updateQueue=h.updateQueue,f.memoizedState=h.memoizedState,f.lanes=h.lanes):(f.updateQueue=null,f.memoizedState=null)}var y=RT(i);if(y!==null){y.flags&=-257,OT(y,i,l,s,t),y.mode&1&&$T(s,c,t),t=y,a=c;var v=t.updateQueue;if(v===null){var m=new Set;m.add(a),t.updateQueue=m}else v.add(a);break e}else{if(!(t&1)){$T(s,c,t),EP();break e}a=Error(He(426))}}else if(Ln&&l.mode&1){var C=RT(i);if(C!==null){!(C.flags&65536)&&(C.flags|=256),OT(C,i,l,s,t),sP(gd(a,l));break e}}s=a=gd(a,l),hr!==4&&(hr=2),wp===null?wp=[s]:wp.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var w=YL(s,a,t);PT(s,w);break e;case 1:l=a;var b=s.type,x=s.stateNode;if(!(s.flags&128)&&(typeof b.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(va===null||!va.has(x)))){s.flags|=65536,t&=-t,s.lanes|=t;var P=QL(s,l,t);PT(s,P);break e}}s=s.return}while(s!==null)}mF(n)}catch(M){t=M,cr===n&&n!==null&&(cr=n=n.return);continue}break}while(1)}function pF(){var e=kv.current;return kv.current=Ev,e===null?Ev:e}function EP(){(hr===0||hr===3||hr===2)&&(hr=4),Sr===null||!(Ec&268435455)&&!(Ry&268435455)||ra(Sr,Lr)}function _v(e,t){var n=Xt;Xt|=2;var r=pF();(Sr!==e||Lr!==t)&&(ol=null,fc(e,t));do try{KG();break}catch(o){fF(e,o)}while(1);if(lP(),Xt=n,kv.current=r,cr!==null)throw Error(He(261));return Sr=null,Lr=0,hr}function KG(){for(;cr!==null;)hF(cr)}function qG(){for(;cr!==null&&!bW();)hF(cr)}function hF(e){var t=vF(e.alternate,e,zo);e.memoizedProps=e.pendingProps,t===null?mF(e):cr=t,wP.current=null}function mF(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=VG(n,t),n!==null){n.flags&=32767,cr=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{hr=6,cr=null;return}}else if(n=zG(n,t,zo),n!==null){cr=n;return}if(t=t.sibling,t!==null){cr=t;return}cr=t=e}while(t!==null);hr===0&&(hr=5)}function nc(e,t,n){var r=fn,o=Ts.transition;try{Ts.transition=null,fn=1,YG(e,t,n,r)}finally{Ts.transition=o,fn=r}return null}function YG(e,t,n,r){do ed();while(ia!==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(_W(e,s),e===Sr&&(cr=Sr=null,Lr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||sg||(sg=!0,yF(uv,function(){return ed(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Ts.transition,Ts.transition=null;var i=fn;fn=1;var l=Xt;Xt|=4,wP.current=null,HG(e,n),cF(n,e),mG(XC),fv=!!QC,XC=QC=null,e.current=n,UG(n),wW(),Xt=l,fn=i,Ts.transition=s}else e.current=n;if(sg&&(sg=!1,ia=e,Mv=o),s=e.pendingLanes,s===0&&(va=null),SW(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(Iv)throw Iv=!1,e=vx,vx=null,e;return Mv&1&&e.tag!==0&&ed(),s=e.pendingLanes,s&1?e===yx?Cp++:(Cp=0,yx=e):Cp=0,Aa(),null}function ed(){if(ia!==null){var e=qA(Mv),t=Ts.transition,n=fn;try{if(Ts.transition=null,fn=16>e?16:e,ia===null)var r=!1;else{if(e=ia,ia=null,Mv=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 c=l[a];for(at=c;at!==null;){var f=at;switch(f.tag){case 0:case 11:case 15:bp(8,f,s)}var p=f.child;if(p!==null)p.return=f,at=p;else for(;at!==null;){f=at;var h=f.sibling,y=f.return;if(iF(f),f===c){at=null;break}if(h!==null){h.return=y,at=h;break}at=y}}}var v=s.alternate;if(v!==null){var m=v.child;if(m!==null){v.child=null;do{var C=m.sibling;m.sibling=null,m=C}while(m!==null)}}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:bp(9,s,s.return)}var w=s.sibling;if(w!==null){w.return=s.return,at=w;break e}at=s.return}}var b=e.current;for(at=b;at!==null;){i=at;var x=i.child;if(i.subtreeFlags&2064&&x!==null)x.return=i,at=x;else e:for(i=b;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 P=l.sibling;if(P!==null){P.return=l.return,at=P;break e}at=l.return}}if(Xt=o,Aa(),Ti&&typeof Ti.onPostCommitFiberRoot=="function")try{Ti.onPostCommitFiberRoot(Sy,e)}catch(M){}r=!0}return r}finally{fn=n,Ts.transition=t}}return!1}function GT(e,t,n){t=gd(n,t),t=YL(e,t,1),e=ga(e,t,1),t=co(),e!==null&&(Ih(e,1,t),Io(e,t))}function Kn(e,t,n){if(e.tag===3)GT(e,e,n);else for(;t!==null;){if(t.tag===3){GT(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(va===null||!va.has(r))){e=gd(n,e),e=QL(t,e,1),t=ga(t,e,1),e=co(),t!==null&&(Ih(t,1,e),Io(t,e));break}}t=t.return}}function QG(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=co(),e.pingedLanes|=e.suspendedLanes&n,Sr===e&&(Lr&n)===n&&(hr===4||hr===3&&(Lr&130023424)===Lr&&500>tr()-xP?fc(e,0):CP|=n),Io(e,t)}function gF(e,t){t===0&&(e.mode&1?(t=Ym,Ym<<=1,!(Ym&130023424)&&(Ym=4194304)):t=1);var n=co();e=yl(e,t),e!==null&&(Ih(e,t,n),Io(e,n))}function XG(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gF(e,n)}function ZG(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),gF(e,n)}var vF;vF=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Eo.current)Po=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Po=!1,BG(e,t,n);Po=!!(e.flags&131072)}else Po=!1,Ln&&t.flags&1048576&&wL(t,bv,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=mP(null,t,r,e,o,n);var s=gP();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,ko(r)?(s=!0,vv(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,uP(t),o.updater=_y,t.stateNode=o,o._reactInternals=t,ix(t,r,e,n),t=cx(null,t,r,!0,s,n)):(t.tag=0,Ln&&s&&rP(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=eK(r),e=Xs(r,e),o){case 0:t=ax(null,t,r,e,n);break e;case 1:t=LT(null,t,r,e,n);break e;case 11:t=DT(null,t,r,e,n);break e;case 14:t=AT(null,t,r,Xs(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:Xs(r,o),ax(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xs(r,o),LT(e,t,r,o,n);case 3:e:{if(eF(t),e===null)throw Error(He(387));r=t.pendingProps,s=t.memoizedState,o=s.element,PL(e,t),xv(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=FT(e,t,r,n,o);break e}else if(r!==o){o=gd(Error(He(424)),t),t=FT(e,t,r,n,o);break e}else for(qo=ma(t.stateNode.containerInfo.firstChild),Yo=t,Ln=!0,ei=null,n=ML(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 _L(t),e===null&&rx(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,ZC(r,o)?i=null:s!==null&&ZC(r,s)&&(t.flags|=32),JL(e,t),so(e,t,i,n),t.child;case 6:return e===null&&rx(t),null;case 13:return tF(e,t,n);case 4:return dP(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:Xs(r,o),DT(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(wv,r._currentValue),r._currentValue=i,s!==null)if(di(s.value,i)){if(s.children===o.children&&!Eo.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 c=s.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?a.next=a:(a.next=f.next,f.next=a),c.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),ox(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),ox(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=Os(o),r=r(o),t.flags|=1,so(e,t,r,n),t.child;case 14:return r=t.type,o=Xs(r,t.pendingProps),o=Xs(r.type,o),AT(e,t,r,o,n);case 15:return XL(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xs(r,o),Bg(e,t),t.tag=1,ko(r)?(e=!0,vv(t)):e=!1,Ju(t,n),kL(t,r,o),ix(t,r,o,n),cx(null,t,r,!0,e,n);case 19:return nF(e,t,n);case 22:return ZL(e,t,n)}throw Error(He(156,t.tag))};function yF(e,t){return UA(e,t)}function JG(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 _s(e,t,n,r){return new JG(e,t,n,r)}function kP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function eK(e){if(typeof e=="function")return kP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===WS)return 11;if(e===GS)return 14}return 2}function ba(e,t){var n=e.alternate;return n===null?(n=_s(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")kP(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case $u:return pc(n.children,o,s,t);case US:i=8,o|=8;break;case TC:return e=_s(12,n,t,o|2),e.elementType=TC,e.lanes=s,e;case $C:return e=_s(13,n,t,o),e.elementType=$C,e.lanes=s,e;case RC:return e=_s(19,n,t,o),e.elementType=RC,e.lanes=s,e;case IA:return Oy(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case EA:i=10;break e;case kA:i=9;break e;case WS:i=11;break e;case GS:i=14;break e;case Xl:i=16,r=null;break e}throw Error(He(130,e==null?e:typeof e,""))}return t=_s(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function pc(e,t,n,r){return e=_s(7,e,r,t),e.lanes=n,e}function Oy(e,t,n,r){return e=_s(22,e,r,t),e.elementType=IA,e.lanes=n,e.stateNode={isHidden:!1},e}function Pw(e,t,n){return e=_s(6,e,null,t),e.lanes=n,e}function Ew(e,t,n){return t=_s(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tK(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=sw(0),this.expirationTimes=sw(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sw(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function IP(e,t,n,r,o,s,i,l,a){return e=new tK(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=_s(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},uP(s),e}function nK(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 bF(e){if(!e)return ka;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(ko(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(ko(n))return yL(e,n,t)}return t}function wF(e,t,n,r,o,s,i,l,a){return e=IP(n,r,!0,e,o,s,i,l,a),e.context=bF(null),n=e.current,r=co(),o=ya(n),s=pl(r,o),s.callback=t!=null?t:null,ga(n,s,o),e.current.lanes=o,Ih(e,o,r),Io(e,r),e}function Dy(e,t,n,r){var o=t.current,s=co(),i=ya(o);return n=bF(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=ga(o,t,i),e!==null&&(li(e,o,i,s),Lg(e,o,i)),i}function Tv(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 KT(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function MP(e,t){KT(e,t),(e=e.alternate)&&KT(e,t)}function rK(){return null}var CF=typeof reportError=="function"?reportError:function(e){console.error(e)};function _P(e){this._internalRoot=e}Ay.prototype.render=_P.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(He(409));Dy(e,t,null,null)};Ay.prototype.unmount=_P.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;kc(function(){Dy(null,e,null,null)}),t[vl]=null}};function Ay(e){this._internalRoot=e}Ay.prototype.unstable_scheduleHydration=function(e){if(e){var t=XA();e={blockedOn:null,target:e,priority:t};for(var n=0;n<na.length&&t!==0&&t<na[n].priority;n++);na.splice(n,0,e),n===0&&JA(e)}};function TP(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ly(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function qT(){}function oK(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var c=Tv(i);s.call(c)}}var i=wF(t,r,e,0,null,!1,!1,"",qT);return e._reactRootContainer=i,e[vl]=i.current,Hp(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 c=Tv(a);l.call(c)}}var a=IP(e,0,!1,null,null,!1,!1,"",qT);return e._reactRootContainer=a,e[vl]=a.current,Hp(e.nodeType===8?e.parentNode:e),kc(function(){Dy(t,a,n,r)}),a}function Fy(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=Tv(i);l.call(a)}}Dy(t,i,e,o)}else i=oK(n,t,e,o,r);return Tv(i)}YA=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ep(t.pendingLanes);n!==0&&(YS(t,n|1),Io(t,tr()),!(Xt&6)&&(vd=tr()+500,Aa()))}break;case 13:kc(function(){var r=yl(e,1);if(r!==null){var o=co();li(r,e,1,o)}}),MP(e,1)}};QS=function(e){if(e.tag===13){var t=yl(e,134217728);if(t!==null){var n=co();li(t,e,134217728,n)}MP(e,134217728)}};QA=function(e){if(e.tag===13){var t=ya(e),n=yl(e,t);if(n!==null){var r=co();li(n,e,t,r)}MP(e,t)}};XA=function(){return fn};ZA=function(e,t){var n=fn;try{return fn=e,t()}finally{fn=n}};jC=function(e,t,n){switch(t){case"input":if(AC(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=Iy(r);if(!o)throw Error(He(90));_A(r),AC(r,o)}}}break;case"textarea":$A(e,n);break;case"select":t=n.value,t!=null&&Yu(e,!!n.multiple,t,!1)}};NA=SP;BA=kc;var sK={usingClientEntryPoint:!1,Events:[_h,Au,Iy,LA,FA,SP]},Af={findFiberByHostInstance:ic,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},iK={bundleType:Af.bundleType,version:Af.version,rendererPackageName:Af.rendererPackageName,rendererConfig:Af.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=jA(e),e===null?null:e.stateNode},findFiberByHostInstance:Af.findFiberByHostInstance||rK,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{Sy=ig.inject(iK),Ti=ig}catch(e){}}ss.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sK;ss.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!TP(t))throw Error(He(200));return nK(e,t,null,n)};ss.createRoot=function(e,t){if(!TP(e))throw Error(He(299));var n=!1,r="",o=CF;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=IP(e,1,!1,null,null,n,!1,r,o),e[vl]=t.current,Hp(e.nodeType===8?e.parentNode:e),new _P(t)};ss.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=jA(t),e=e===null?null:e.stateNode,e};ss.flushSync=function(e){return kc(e)};ss.hydrate=function(e,t,n){if(!Ly(t))throw Error(He(200));return Fy(null,e,t,!0,n)};ss.hydrateRoot=function(e,t,n){if(!TP(e))throw Error(He(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=CF;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=wF(t,null,e,1,n!=null?n:null,o,!1,s,i),e[vl]=t.current,Hp(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 Ay(t)};ss.render=function(e,t,n){if(!Ly(t))throw Error(He(200));return Fy(null,e,t,!1,n)};ss.unmountComponentAtNode=function(e){if(!Ly(e))throw Error(He(40));return e._reactRootContainer?(kc(function(){Fy(null,null,e,!1,function(){e._reactRootContainer=null,e[vl]=null})}),!0):!1};ss.unstable_batchedUpdates=SP;ss.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ly(n))throw Error(He(200));if(e==null||e._reactInternals===void 0)throw Error(He(38));return Fy(e,t,n,!1,r)};ss.version="18.2.0-next-9e3b772b8-20220608";function xF(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(xF)}catch(e){console.error(e)}}xF(),wA.exports=ss;var Bd=wA.exports;const lg=pi(Bd);var SF,YT=Bd;SF=YT.createRoot,YT.hydrateRoot;const lK="modulepreload",aK=function(e){return"/"+e},QT={},cK=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=aK(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 c=document.createElement("link");if(c.rel=i?"stylesheet":lK,i||(c.as="script",c.crossOrigin=""),c.href=s,document.head.appendChild(c),i)return new Promise((f,p)=>{c.addEventListener("load",f),c.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})};var uA;if(!((uA=window.crypto)!=null&&uA.subtle)){let t;console.debug("poly subtle");const e={digest(n,r){return rt(this,null,function*(){if(n!=="SHA-512")return alert(n+" required but not supported");const s=(yield cK(()=>import("./sha512-a65f7625.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 Zp(){return Zp=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},Zp.apply(this,arguments)}var la;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(la||(la={}));const XT="popstate";function uK(e){e===void 0&&(e={});function t(o,s){let{pathname:i="/",search:l="",hash:a=""}=zc(o.location.hash.substr(1));return Cx("",{pathname:i,search:l,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(o,s){let i=o.document.querySelector("base"),l="";if(i&&i.getAttribute("href")){let a=o.location.href,c=a.indexOf("#");l=c===-1?a:a.slice(0,c)}return l+"#"+(typeof s=="string"?s:$v(s))}function r(o,s){Ny(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(s)+")")}return fK(t,n,r,e)}function gr(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function Ny(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function dK(){return Math.random().toString(36).substr(2,8)}function ZT(e,t){return{usr:e.state,key:e.key,idx:t}}function Cx(e,t,n,r){return n===void 0&&(n=null),Zp({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?zc(t):t,{state:n,key:t&&t.key||r||dK()})}function $v(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 fK(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,l=la.Pop,a=null,c=f();c==null&&(c=0,i.replaceState(Zp({},i.state,{idx:c}),""));function f(){return(i.state||{idx:null}).idx}function p(){l=la.Pop;let C=f(),w=C==null?null:C-c;c=C,a&&a({action:l,location:m.location,delta:w})}function h(C,w){l=la.Push;let b=Cx(m.location,C,w);n&&n(b,C),c=f()+1;let x=ZT(b,c),P=m.createHref(b);try{i.pushState(x,"",P)}catch(M){o.location.assign(P)}s&&a&&a({action:l,location:m.location,delta:1})}function y(C,w){l=la.Replace;let b=Cx(m.location,C,w);n&&n(b,C),c=f();let x=ZT(b,c),P=m.createHref(b);i.replaceState(x,"",P),s&&a&&a({action:l,location:m.location,delta:0})}function v(C){let w=o.location.origin!=="null"?o.location.origin:o.location.href,b=typeof C=="string"?C:$v(C);return gr(w,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,w)}let m={get action(){return l},get location(){return e(o,i)},listen(C){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(XT,p),a=C,()=>{o.removeEventListener(XT,p),a=null}},createHref(C){return t(o,C)},createURL:v,encodeLocation(C){let w=v(C);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:h,replace:y,go(C){return i.go(C)}};return m}var JT;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(JT||(JT={}));function pK(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=PF(e);hK(s);let i=null;for(let l=0;i==null&&l<s.length;++l)i=SK(s[l],kK(o));return i}function PF(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 c=wa([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 "'+c+'".')),PF(s.children,t,f,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:CK(c,s.index),routesMeta:f})};return e.forEach((s,i)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))o(s,i);else for(let a of EF(s.path))o(s,i,a)}),t}function EF(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=EF(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 hK(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:xK(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const mK=/^:\w+$/,gK=3,vK=2,yK=1,bK=10,wK=-2,e$=e=>e==="*";function CK(e,t){let n=e.split("/"),r=n.length;return n.some(e$)&&(r+=wK),t&&(r+=vK),n.filter(o=>!e$(o)).reduce((o,s)=>o+(mK.test(s)?gK:s===""?yK:bK),r)}function xK(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 SK(e,t){let{routesMeta:n}=e,r={},o="/",s=[];for(let i=0;i<n.length;++i){let l=n[i],a=i===n.length-1,c=o==="/"?t:t.slice(o.length)||"/",f=PK({path:l.relativePath,caseSensitive:l.caseSensitive,end:a},c);if(!f)return null;Object.assign(r,f.params);let p=l.route;s.push({params:r,pathname:wa([o,f.pathname]),pathnameBase:TK(wa([o,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(o=wa([o,f.pathnameBase]))}return s}function PK(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=EK(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],i=s.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((c,f,p)=>{if(f==="*"){let h=l[p]||"";i=s.slice(0,s.length-h.length).replace(/(.)\/+$/,"$1")}return c[f]=IK(l[p]||"",f),c},{}),pathname:s,pathnameBase:i,pattern:e}}function EK(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ny(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 kK(e){try{return decodeURI(e)}catch(t){return Ny(!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 IK(e,t){try{return decodeURIComponent(e)}catch(n){return Ny(!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 MK(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:_K(n,t):t,search:$K(r),hash:RK(o)}}function _K(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 kw(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 kF(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function IF(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=zc(e):(o=Zp({},e),gr(!o.pathname||!o.pathname.includes("?"),kw("?","pathname","search",o)),gr(!o.pathname||!o.pathname.includes("#"),kw("#","pathname","hash",o)),gr(!o.search||!o.search.includes("#"),kw("#","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 h=i.split("/");for(;h[0]==="..";)h.shift(),p-=1;o.pathname=h.join("/")}l=p>=0?t[p]:"/"}let a=MK(o,l),c=i&&i!=="/"&&i.endsWith("/"),f=(s||i===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(c||f)&&(a.pathname+="/"),a}const wa=e=>e.join("/").replace(/\/\/+/g,"/"),TK=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$K=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,RK=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function OK(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const MF=["post","put","patch","delete"];new Set(MF);const DK=["get",...MF];new Set(DK);/**
|
|
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 AK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const LK=typeof Object.is=="function"?Object.is:AK,{useState:FK,useEffect:NK,useLayoutEffect:BK,useDebugValue:zK}=Cc;function VK(e,t,n){const r=t(),[{inst:o},s]=FK({inst:{value:r,getSnapshot:t}});return BK(()=>{o.value=r,o.getSnapshot=t,Iw(o)&&s({inst:o})},[e,r,t]),NK(()=>(Iw(o)&&s({inst:o}),e(()=>{Iw(o)&&s({inst:o})})),[e]),zK(r),r}function Iw(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!LK(n,r)}catch(r){return!0}}function jK(e,t,n){return t()}const HK=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",UK=!HK,WK=UK?jK:VK;"useSyncExternalStore"in Cc&&(e=>e.useSyncExternalStore)(Cc);const _F=u.createContext(null),RP=u.createContext(null),zd=u.createContext(null),By=u.createContext(null),Vd=u.createContext({outlet:null,matches:[]}),TF=u.createContext(null);function xx(){return xx=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},xx.apply(this,arguments)}function GK(e,t){let{relative:n}=t===void 0?{}:t;$h()||gr(!1);let{basename:r,navigator:o}=u.useContext(zd),{hash:s,pathname:i,search:l}=OP(e,{relative:n}),a=i;return r!=="/"&&(a=i==="/"?r:wa([r,i])),o.createHref({pathname:a,search:l,hash:s})}function $h(){return u.useContext(By)!=null}function jd(){return $h()||gr(!1),u.useContext(By).location}function $F(){$h()||gr(!1);let{basename:e,navigator:t}=u.useContext(zd),{matches:n}=u.useContext(Vd),{pathname:r}=jd(),o=JSON.stringify(kF(n).map(l=>l.pathnameBase)),s=u.useRef(!1);return u.useEffect(()=>{s.current=!0}),u.useCallback(function(l,a){if(a===void 0&&(a={}),!s.current)return;if(typeof l=="number"){t.go(l);return}let c=IF(l,JSON.parse(o),r,a.relative==="path");e!=="/"&&(c.pathname=c.pathname==="/"?e:wa([e,c.pathname])),(a.replace?t.replace:t.push)(c,a.state,a)},[e,t,o,r])}function OP(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=u.useContext(Vd),{pathname:o}=jd(),s=JSON.stringify(kF(r).map(i=>i.pathnameBase));return u.useMemo(()=>IF(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function KK(e,t){$h()||gr(!1);let{navigator:n}=u.useContext(zd),r=u.useContext(RP),{matches:o}=u.useContext(Vd),s=o[o.length-1],i=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let a=jd(),c;if(t){var f;let m=typeof t=="string"?zc(t):t;l==="/"||(f=m.pathname)!=null&&f.startsWith(l)||gr(!1),c=m}else c=a;let p=c.pathname||"/",h=l==="/"?p:p.slice(l.length)||"/",y=pK(e,{pathname:h}),v=XK(y&&y.map(m=>Object.assign({},m,{params:Object.assign({},i,m.params),pathname:wa([l,n.encodeLocation?n.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?l:wa([l,n.encodeLocation?n.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),o,r||void 0);return t&&v?u.createElement(By.Provider,{value:{location:xx({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:la.Pop}},v):v}function qK(){let e=tq(),t=OK(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},s=null;return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),n?u.createElement("pre",{style:o},n):null,s)}class YK extends u.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?u.createElement(Vd.Provider,{value:this.props.routeContext},u.createElement(TF.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function QK(e){let{routeContext:t,match:n,children:r}=e,o=u.useContext(_F);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement(Vd.Provider,{value:t},r)}function XK(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,c=null;n&&(i.route.ErrorBoundary?c=u.createElement(i.route.ErrorBoundary,null):i.route.errorElement?c=i.route.errorElement:c=u.createElement(qK,null));let f=t.concat(r.slice(0,l+1)),p=()=>{let h=s;return a?h=c:i.route.Component?h=u.createElement(i.route.Component,null):i.route.element&&(h=i.route.element),u.createElement(QK,{match:i,routeContext:{outlet:s,matches:f},children:h})};return n&&(i.route.ErrorBoundary||i.route.errorElement||l===0)?u.createElement(YK,{location:n.location,component:c,error:a,children:p(),routeContext:{outlet:null,matches:f}}):p()},null)}var t$;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(t$||(t$={}));var Rv;(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"})(Rv||(Rv={}));function ZK(e){let t=u.useContext(RP);return t||gr(!1),t}function JK(e){let t=u.useContext(Vd);return t||gr(!1),t}function eq(e){let t=JK(),n=t.matches[t.matches.length-1];return n.route.id||gr(!1),n.route.id}function tq(){var e;let t=u.useContext(TF),n=ZK(Rv.UseRouteError),r=eq(Rv.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function Sx(e){gr(!1)}function nq(e){let{basename:t="/",children:n=null,location:r,navigationType:o=la.Pop,navigator:s,static:i=!1}=e;$h()&&gr(!1);let l=t.replace(/^\/*/,"/"),a=u.useMemo(()=>({basename:l,navigator:s,static:i}),[l,s,i]);typeof r=="string"&&(r=zc(r));let{pathname:c="/",search:f="",hash:p="",state:h=null,key:y="default"}=r,v=u.useMemo(()=>{let m=$P(c,l);return m==null?null:{location:{pathname:m,search:f,hash:p,state:h,key:y},navigationType:o}},[l,c,f,p,h,y,o]);return v==null?null:u.createElement(zd.Provider,{value:a},u.createElement(By.Provider,{children:n,value:v}))}function rq(e){let{children:t,location:n}=e,r=u.useContext(_F),o=r&&!t?r.router.routes:Px(t);return KK(o,n)}var n$;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(n$||(n$={}));new Promise(()=>{});function Px(e,t){t===void 0&&(t=[]);let n=[];return u.Children.forEach(e,(r,o)=>{if(!u.isValidElement(r))return;let s=[...t,o];if(r.type===u.Fragment){n.push.apply(n,Px(r.props.children,s));return}r.type!==Sx&&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=Px(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 Ov(){return Ov=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},Ov.apply(this,arguments)}function RF(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 oq(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sq(e,t){return e.button===0&&(!t||t==="_self")&&!oq(e)}const iq=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],lq=["aria-current","caseSensitive","className","end","style","to","children"];function aq(e){let{basename:t,children:n,window:r}=e,o=u.useRef();o.current==null&&(o.current=uK({window:r,v5Compat:!0}));let s=o.current,[i,l]=u.useState({action:s.action,location:s.location});return u.useLayoutEffect(()=>s.listen(l),[s]),u.createElement(nq,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:s})}const cq=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",uq=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,DP=u.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:i,state:l,target:a,to:c,preventScrollReset:f}=t,p=RF(t,iq),{basename:h}=u.useContext(zd),y,v=!1;if(typeof c=="string"&&uq.test(c)&&(y=c,cq)){let b=new URL(window.location.href),x=c.startsWith("//")?new URL(b.protocol+c):new URL(c),P=$P(x.pathname,h);x.origin===b.origin&&P!=null?c=P+x.search+x.hash:v=!0}let m=GK(c,{relative:o}),C=fq(c,{replace:i,state:l,target:a,preventScrollReset:f,relative:o});function w(b){r&&r(b),b.defaultPrevented||C(b)}return u.createElement("a",Ov({},p,{href:y||m,onClick:v||s?r:w,ref:n,target:a}))}),dq=u.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:s="",end:i=!1,style:l,to:a,children:c}=t,f=RF(t,lq),p=OP(a,{relative:f.relative}),h=jd(),y=u.useContext(RP),{navigator:v}=u.useContext(zd),m=v.encodeLocation?v.encodeLocation(p).pathname:p.pathname,C=h.pathname,w=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(C=C.toLowerCase(),w=w?w.toLowerCase():null,m=m.toLowerCase());let b=C===m||!i&&C.startsWith(m)&&C.charAt(m.length)==="/",x=w!=null&&(w===m||!i&&w.startsWith(m)&&w.charAt(m.length)==="/"),P=b?r:void 0,M;typeof s=="function"?M=s({isActive:b,isPending:x}):M=[s,b?"active":null,x?"pending":null].filter(Boolean).join(" ");let E=typeof l=="function"?l({isActive:b,isPending:x}):l;return u.createElement(DP,Ov({},f,{"aria-current":P,className:M,ref:n,style:E,to:a}),typeof c=="function"?c({isActive:b,isPending:x}):c)});var r$;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(r$||(r$={}));var o$;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(o$||(o$={}));function fq(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:i}=t===void 0?{}:t,l=$F(),a=jd(),c=OP(e,{relative:i});return u.useCallback(f=>{if(sq(f,n)){f.preventDefault();let p=r!==void 0?r:$v(a)===$v(c);l(e,{replace:p,state:o,preventScrollReset:s,relative:i})}},[a,l,c,r,o,n,e,s,i])}const pq={black:"#000",white:"#fff"},Jp=pq,hq={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=hq,mq={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=mq,gq={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=gq,vq={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=vq,yq={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=yq,bq={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"},Lf=bq,wq={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"},Cq=wq;function xq(e,t){return()=>null}function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S.apply(this,arguments)}function il(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function OF(e){if(!il(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=OF(e[n])}),t}function Yr(e,t,n={clone:!0}){const r=n.clone?S({},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])?OF(t[o]):t[o]:r[o]=t[o])}),r}var DF={exports:{}},Sq="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Pq=Sq,Eq=Pq;function AF(){}function LF(){}LF.resetWarningCache=AF;var kq=function(){function e(r,o,s,i,l,a){if(a!==Eq){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:LF,resetWarningCache:AF};return n.PropTypes=n,n};DF.exports=kq();var Iq=DF.exports;const W=pi(Iq);function Ia(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 AP=Symbol.for("react.element"),LP=Symbol.for("react.portal"),zy=Symbol.for("react.fragment"),Vy=Symbol.for("react.strict_mode"),jy=Symbol.for("react.profiler"),Hy=Symbol.for("react.provider"),Uy=Symbol.for("react.context"),Mq=Symbol.for("react.server_context"),Wy=Symbol.for("react.forward_ref"),Gy=Symbol.for("react.suspense"),Ky=Symbol.for("react.suspense_list"),qy=Symbol.for("react.memo"),Yy=Symbol.for("react.lazy"),_q=Symbol.for("react.offscreen"),FF;FF=Symbol.for("react.module.reference");function Bs(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case AP:switch(e=e.type,e){case zy:case jy:case Vy:case Gy:case Ky:return e;default:switch(e=e&&e.$$typeof,e){case Mq:case Uy:case Wy:case Yy:case qy:case Hy:return e;default:return t}}case LP:return t}}}gn.ContextConsumer=Uy;gn.ContextProvider=Hy;gn.Element=AP;gn.ForwardRef=Wy;gn.Fragment=zy;gn.Lazy=Yy;gn.Memo=qy;gn.Portal=LP;gn.Profiler=jy;gn.StrictMode=Vy;gn.Suspense=Gy;gn.SuspenseList=Ky;gn.isAsyncMode=function(){return!1};gn.isConcurrentMode=function(){return!1};gn.isContextConsumer=function(e){return Bs(e)===Uy};gn.isContextProvider=function(e){return Bs(e)===Hy};gn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===AP};gn.isForwardRef=function(e){return Bs(e)===Wy};gn.isFragment=function(e){return Bs(e)===zy};gn.isLazy=function(e){return Bs(e)===Yy};gn.isMemo=function(e){return Bs(e)===qy};gn.isPortal=function(e){return Bs(e)===LP};gn.isProfiler=function(e){return Bs(e)===jy};gn.isStrictMode=function(e){return Bs(e)===Vy};gn.isSuspense=function(e){return Bs(e)===Gy};gn.isSuspenseList=function(e){return Bs(e)===Ky};gn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===zy||e===jy||e===Vy||e===Gy||e===Ky||e===_q||typeof e=="object"&&e!==null&&(e.$$typeof===Yy||e.$$typeof===qy||e.$$typeof===Hy||e.$$typeof===Uy||e.$$typeof===Wy||e.$$typeof===FF||e.getModuleId!==void 0)};gn.typeOf=Bs;const Tq=W.oneOfType([W.func,W.object]),NF=Tq;function Pe(e){if(typeof e!="string")throw new Error(Ia(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ex(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function La(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 $q(e,t){return()=>null}function xp(e,t){var n,r;return u.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function pn(e){return e&&e.ownerDocument||document}function Jo(e){return pn(e).defaultView||window}function Rq(e,t){return()=>null}function eh(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Oq=typeof window!="undefined"?u.useLayoutEffect:u.useEffect,Nt=Oq;let s$=0;function Dq(e){const[t,n]=u.useState(e),r=e||t;return u.useEffect(()=>{t==null&&(s$+=1,n(`mui-${s$}`))},[t]),r}const i$=Cc["useId".toString()];function Kt(e){if(i$!==void 0){const t=i$();return e!=null?e:t}return Dq(e)}function Aq(e,t,n,r,o){return null}function Qr({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=u.useRef(e!==void 0),[s,i]=u.useState(t),l=o?e:s,a=u.useCallback(c=>{o||i(c)},[]);return[l,a]}function Ye(e){const t=u.useRef(e);return Nt(()=>{t.current=e}),u.useRef((...n)=>(0,t.current)(...n)).current}function kt(...e){return u.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{eh(n,t)})},e)}let Qy=!0,kx=!1,l$;const Lq={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 Fq(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Lq[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Nq(e){e.metaKey||e.altKey||e.ctrlKey||(Qy=!0)}function Mw(){Qy=!1}function Bq(){this.visibilityState==="hidden"&&kx&&(Qy=!0)}function zq(e){e.addEventListener("keydown",Nq,!0),e.addEventListener("mousedown",Mw,!0),e.addEventListener("pointerdown",Mw,!0),e.addEventListener("touchstart",Mw,!0),e.addEventListener("visibilitychange",Bq,!0)}function Vq(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return Qy||Fq(t)}function Xy(){const e=u.useCallback(o=>{o!=null&&zq(o.ownerDocument)},[]),t=u.useRef(!1);function n(){return t.current?(kx=!0,window.clearTimeout(l$),l$=window.setTimeout(()=>{kx=!1},100),t.current=!1,!0):!1}function r(o){return Vq(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function BF(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let pu;function zF(){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 jq(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(zF()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Hq=e=>{const t=u.useRef({});return u.useEffect(()=>{t.current=e}),t.current},FP=Hq;function NP(e,t){const n=S({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=S({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},s=t[r];n[r]={},!s||!Object.keys(s)?n[r]=o:!o||!Object.keys(o)?n[r]=s:(n[r]=S({},s),Object.keys(o).forEach(i=>{n[r][i]=NP(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 a$=e=>e,Uq=()=>{let e=a$;return{configure(t){e=t},generate(t){return e(t)},reset(){e=a$}}},Wq=Uq(),BP=Wq,Gq={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=Gq[t];return r?`${n}-${r}`:`${BP.generate(e)}-${t}`}function We(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ke(e,o,n)}),r}const Ic="$$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 VF(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Kq=/^((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)-.*))$/,qq=VF(function(e){return Kq.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Yq(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 Qq(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 Xq=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(Qq(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Yq(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-",Dv="-moz-",tn="-webkit-",jF="comm",zP="rule",VP="decl",Zq="@import",HF="@keyframes",Jq="@layer",eY=Math.abs,Zy=String.fromCharCode,tY=Object.assign;function nY(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 UF(e){return e.trim()}function rY(e,t){return(e=t.exec(e))?e[0]:e}function nn(e,t,n){return e.replace(t,n)}function Ix(e,t){return e.indexOf(t)}function Dr(e,t){return e.charCodeAt(t)|0}function th(e,t,n){return e.slice(t,n)}function Ei(e){return e.length}function jP(e){return e.length}function ag(e,t){return t.push(e),e}function oY(e,t){return e.map(t).join("")}var Jy=1,yd=1,WF=0,$o=0,ar=0,Hd="";function e1(e,t,n,r,o,s,i){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Jy,column:yd,length:i,return:""}}function Ff(e,t){return tY(e1("",null,null,"",null,null,0),e,{length:-e.length},t)}function sY(){return ar}function iY(){return ar=$o>0?Dr(Hd,--$o):0,yd--,ar===10&&(yd=1,Jy--),ar}function Qo(){return ar=$o<WF?Dr(Hd,$o++):0,yd++,ar===10&&(yd=1,Jy++),ar}function Ri(){return Dr(Hd,$o)}function Hg(){return $o}function Rh(e,t){return th(Hd,e,t)}function nh(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 GF(e){return Jy=yd=1,WF=Ei(Hd=e),$o=0,[]}function KF(e){return Hd="",e}function Ug(e){return UF(Rh($o-1,Mx(e===91?e+2:e===40?e+1:e)))}function lY(e){for(;(ar=Ri())&&ar<33;)Qo();return nh(e)>2||nh(ar)>3?"":" "}function aY(e,t){for(;--t&&Qo()&&!(ar<48||ar>102||ar>57&&ar<65||ar>70&&ar<97););return Rh(e,Hg()+(t<6&&Ri()==32&&Qo()==32))}function Mx(e){for(;Qo();)switch(ar){case e:return $o;case 34:case 39:e!==34&&e!==39&&Mx(ar);break;case 40:e===41&&Mx(e);break;case 92:Qo();break}return $o}function cY(e,t){for(;Qo()&&e+ar!==47+10;)if(e+ar===42+42&&Ri()===47)break;return"/*"+Rh(t,$o-1)+"*"+Zy(e===47?e:Qo())}function uY(e){for(;!nh(Ri());)Qo();return Rh(e,$o)}function dY(e){return KF(Wg("",null,null,null,[""],e=GF(e),0,[0],e))}function Wg(e,t,n,r,o,s,i,l,a){for(var c=0,f=0,p=i,h=0,y=0,v=0,m=1,C=1,w=1,b=0,x="",P=o,M=s,E=r,k=x;C;)switch(v=b,b=Qo()){case 40:if(v!=108&&Dr(k,p-1)==58){Ix(k+=nn(Ug(b),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:k+=Ug(b);break;case 9:case 10:case 13:case 32:k+=lY(v);break;case 92:k+=aY(Hg()-1,7);continue;case 47:switch(Ri()){case 42:case 47:ag(fY(cY(Qo(),Hg()),t,n),a);break;default:k+="/"}break;case 123*m:l[c++]=Ei(k)*w;case 125*m:case 59:case 0:switch(b){case 0:case 125:C=0;case 59+f:w==-1&&(k=nn(k,/\f/g,"")),y>0&&Ei(k)-p&&ag(y>32?u$(k+";",r,n,p-1):u$(nn(k," ","")+";",r,n,p-2),a);break;case 59:k+=";";default:if(ag(E=c$(k,t,n,c,f,o,l,x,P=[],M=[],p),s),b===123)if(f===0)Wg(k,t,E,E,P,s,p,l,M);else switch(h===99&&Dr(k,3)===110?100:h){case 100:case 108:case 109:case 115:Wg(e,E,E,r&&ag(c$(e,E,E,0,0,o,l,x,o,P=[],p),M),o,M,p,l,r?P:M);break;default:Wg(k,E,E,E,[""],M,0,l,M)}}c=f=y=0,m=w=1,x=k="",p=i;break;case 58:p=1+Ei(k),y=v;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&iY()==125)continue}switch(k+=Zy(b),b*m){case 38:w=f>0?1:(k+="\f",-1);break;case 44:l[c++]=(Ei(k)-1)*w,w=1;break;case 64:Ri()===45&&(k+=Ug(Qo())),h=Ri(),f=p=Ei(x=k+=uY(Hg())),b++;break;case 45:v===45&&Ei(k)==2&&(m=0)}}return s}function c$(e,t,n,r,o,s,i,l,a,c,f){for(var p=o-1,h=o===0?s:[""],y=jP(h),v=0,m=0,C=0;v<r;++v)for(var w=0,b=th(e,p+1,p=eY(m=i[v])),x=e;w<y;++w)(x=UF(m>0?h[w]+" "+b:nn(b,/&\f/g,h[w])))&&(a[C++]=x);return e1(e,t,n,o===0?zP:l,a,c,f)}function fY(e,t,n){return e1(e,t,n,jF,Zy(sY()),th(e,2,-2),0)}function u$(e,t,n,r){return e1(e,t,n,VP,th(e,0,r),th(e,r+1,-1),r)}function td(e,t){for(var n="",r=jP(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function pY(e,t,n,r){switch(e.type){case Jq:if(e.children.length)break;case Zq:case VP:return e.return=e.return||e.value;case jF:return"";case HF:return e.return=e.value+"{"+td(e.children,r)+"}";case zP:e.value=e.props.join(",")}return Ei(n=td(e.children,r))?e.return=e.value+"{"+n+"}":""}function hY(e){var t=jP(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 mY(e){return function(t){t.root||(t=t.return)&&e(t)}}var gY=function(t,n,r){for(var o=0,s=0;o=s,s=Ri(),o===38&&s===12&&(n[r]=1),!nh(s);)Qo();return Rh(t,$o)},vY=function(t,n){var r=-1,o=44;do switch(nh(o)){case 0:o===38&&Ri()===12&&(n[r]=1),t[r]+=gY($o-1,n,r);break;case 2:t[r]+=Ug(o);break;case 4:if(o===44){t[++r]=Ri()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Zy(o)}while(o=Qo());return t},yY=function(t,n){return KF(vY(GF(t),n))},d$=new WeakMap,bY=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&&!d$.get(r))&&!o){d$.set(t,!0);for(var s=[],i=yY(n,s),l=r.props,a=0,c=0;a<i.length;a++)for(var f=0;f<l.length;f++,c++)t.props[c]=s[a]?i[a].replace(/&\f/g,l[f]):l[f]+" "+i[a]}}},wY=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function qF(e,t){switch(nY(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+Dv+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(Ei(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"+Dv+(Dr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ix(e,"stretch")?qF(nn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Dr(e,t+1)!==115)break;case 6444:switch(Dr(e,Ei(e)-3-(~Ix(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 CY=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case VP:t.return=qF(t.value,t.length);break;case HF:return td([Ff(t,{value:nn(t.value,"@","@"+tn)})],o);case zP:if(t.length)return oY(t.props,function(s){switch(rY(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return td([Ff(t,{props:[nn(s,/:(read-\w+)/,":"+Dv+"$1")]})],o);case"::placeholder":return td([Ff(t,{props:[nn(s,/:(plac\w+)/,":"+tn+"input-$1")]}),Ff(t,{props:[nn(s,/:(plac\w+)/,":"+Dv+"$1")]}),Ff(t,{props:[nn(s,/:(plac\w+)/,Hr+"input-$1")]})],o)}return""})}},xY=[CY],SY=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var C=m.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||xY,s={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var C=m.getAttribute("data-emotion").split(" "),w=1;w<C.length;w++)s[C[w]]=!0;l.push(m)});var a,c=[bY,wY];{var f,p=[pY,mY(function(m){f.insert(m)})],h=hY(c.concat(o,p)),y=function(C){return td(dY(C),h)};a=function(C,w,b,x){f=b,y(C?C+"{"+w.styles+"}":w.styles),x&&(v.inserted[w.name]=!0)}}var v={key:n,sheet:new Xq({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:a};return v.sheet.hydrate(l),v},YF={exports:{}},hn={};/** @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 kr=typeof Symbol=="function"&&Symbol.for,HP=kr?Symbol.for("react.element"):60103,UP=kr?Symbol.for("react.portal"):60106,t1=kr?Symbol.for("react.fragment"):60107,n1=kr?Symbol.for("react.strict_mode"):60108,r1=kr?Symbol.for("react.profiler"):60114,o1=kr?Symbol.for("react.provider"):60109,s1=kr?Symbol.for("react.context"):60110,WP=kr?Symbol.for("react.async_mode"):60111,i1=kr?Symbol.for("react.concurrent_mode"):60111,l1=kr?Symbol.for("react.forward_ref"):60112,a1=kr?Symbol.for("react.suspense"):60113,PY=kr?Symbol.for("react.suspense_list"):60120,c1=kr?Symbol.for("react.memo"):60115,u1=kr?Symbol.for("react.lazy"):60116,EY=kr?Symbol.for("react.block"):60121,kY=kr?Symbol.for("react.fundamental"):60117,IY=kr?Symbol.for("react.responder"):60118,MY=kr?Symbol.for("react.scope"):60119;function ls(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case HP:switch(e=e.type,e){case WP:case i1:case t1:case r1:case n1:case a1:return e;default:switch(e=e&&e.$$typeof,e){case s1:case l1:case u1:case c1:case o1:return e;default:return t}}case UP:return t}}}function QF(e){return ls(e)===i1}hn.AsyncMode=WP;hn.ConcurrentMode=i1;hn.ContextConsumer=s1;hn.ContextProvider=o1;hn.Element=HP;hn.ForwardRef=l1;hn.Fragment=t1;hn.Lazy=u1;hn.Memo=c1;hn.Portal=UP;hn.Profiler=r1;hn.StrictMode=n1;hn.Suspense=a1;hn.isAsyncMode=function(e){return QF(e)||ls(e)===WP};hn.isConcurrentMode=QF;hn.isContextConsumer=function(e){return ls(e)===s1};hn.isContextProvider=function(e){return ls(e)===o1};hn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===HP};hn.isForwardRef=function(e){return ls(e)===l1};hn.isFragment=function(e){return ls(e)===t1};hn.isLazy=function(e){return ls(e)===u1};hn.isMemo=function(e){return ls(e)===c1};hn.isPortal=function(e){return ls(e)===UP};hn.isProfiler=function(e){return ls(e)===r1};hn.isStrictMode=function(e){return ls(e)===n1};hn.isSuspense=function(e){return ls(e)===a1};hn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===t1||e===i1||e===r1||e===n1||e===a1||e===PY||typeof e=="object"&&e!==null&&(e.$$typeof===u1||e.$$typeof===c1||e.$$typeof===o1||e.$$typeof===s1||e.$$typeof===l1||e.$$typeof===kY||e.$$typeof===IY||e.$$typeof===MY||e.$$typeof===EY)};hn.typeOf=ls;YF.exports=hn;var _Y=YF.exports,XF=_Y,TY={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},$Y={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ZF={};ZF[XF.ForwardRef]=TY;ZF[XF.Memo]=$Y;var RY=!0;function OY(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var JF=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||RY===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},e4=function(t,n,r){JF(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 DY(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 AY={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},LY=/[A-Z]|^ms/g,FY=/_EMO_([^_]+?)_([^]*?)_EMO_/g,t4=function(t){return t.charCodeAt(1)===45},f$=function(t){return t!=null&&typeof t!="boolean"},_w=VF(function(e){return t4(e)?e:e.replace(LY,"-$&").toLowerCase()}),p$=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(FY,function(r,o,s){return ki={name:o,styles:s,next:ki},o})}return AY[t]!==1&&!t4(t)&&typeof n=="number"&&n!==0?n+"px":n};function rh(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 ki={name:n.name,styles:n.styles,next:ki},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ki={name:r.name,styles:r.styles,next:ki},r=r.next;var o=n.styles+";";return o}return NY(e,t,n)}case"function":{if(e!==void 0){var s=ki,i=n(e);return ki=s,rh(e,t,i)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function NY(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=rh(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]+"}":f$(i)&&(r+=_w(s)+":"+p$(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++)f$(i[l])&&(r+=_w(s)+":"+p$(s,i[l])+";");else{var a=rh(e,t,i);switch(s){case"animation":case"animationName":{r+=_w(s)+":"+a+";";break}default:r+=s+"{"+a+"}"}}}return r}var h$=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ki,GP=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="";ki=void 0;var i=t[0];i==null||i.raw===void 0?(o=!1,s+=rh(r,n,i)):s+=i[0];for(var l=1;l<t.length;l++)s+=rh(r,n,t[l]),o&&(s+=i[l]);h$.lastIndex=0;for(var a="",c;(c=h$.exec(s))!==null;)a+="-"+c[1];var f=DY(s)+a;return{name:f,styles:s,next:ki}},BY=function(t){return t()},n4=Cc["useInsertionEffect"]?Cc["useInsertionEffect"]:!1,zY=n4||BY,m$=n4||u.useLayoutEffect,r4=u.createContext(typeof HTMLElement!="undefined"?SY({key:"css"}):null);r4.Provider;var o4=function(t){return u.forwardRef(function(n,r){var o=u.useContext(r4);return t(n,o,r)})},d1=u.createContext({}),VY=o4(function(e,t){var n=e.styles,r=GP([n],void 0,u.useContext(d1)),o=u.useRef();return m$(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]),m$(function(){var s=o.current,i=s[0],l=s[1];if(l){s[1]=!1;return}if(r.next!==void 0&&e4(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 Ma(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return GP(t)}var Ui=function(){var t=Ma.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_"}}},jY=qq,HY=function(t){return t!=="theme"},g$=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?jY:HY},v$=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},UY=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return JF(n,r,o),zY(function(){return e4(n,r,o)}),null},WY=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=v$(t,n,r),a=l||g$(o),c=!a("as");return function(){var f=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&p.push("label:"+s+";"),f[0]==null||f[0].raw===void 0)p.push.apply(p,f);else{p.push(f[0][0]);for(var h=f.length,y=1;y<h;y++)p.push(f[y],f[0][y])}var v=o4(function(m,C,w){var b=c&&m.as||o,x="",P=[],M=m;if(m.theme==null){M={};for(var E in m)M[E]=m[E];M.theme=u.useContext(d1)}typeof m.className=="string"?x=OY(C.registered,P,m.className):m.className!=null&&(x=m.className+" ");var k=GP(p.concat(P),C.registered,M);x+=C.key+"-"+k.name,i!==void 0&&(x+=" "+i);var R=c&&l===void 0?g$(b):a,O={};for(var _ in m)c&&_==="as"||R(_)&&(O[_]=m[_]);return O.className=x,O.ref=w,u.createElement(u.Fragment,null,u.createElement(UY,{cache:C,serialized:k,isStringTag:typeof b=="string"}),u.createElement(b,O))});return v.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=o,v.__emotion_styles=p,v.__emotion_forwardProp=l,Object.defineProperty(v,"toString",{value:function(){return"."+i}}),v.withComponent=function(m,C){return e(m,S({},n,C,{shouldForwardProp:v$(v,C,!0)})).apply(void 0,p)},v}},GY=["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"],_x=WY.bind();GY.forEach(function(e){_x[e]=_x(e)});var Tw={exports:{}},Nf={};/**
|
|
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 y$;function KY(){if(y$)return Nf;y$=1;var e=u,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(l,a,c){var f,p={},h=null,y=null;c!==void 0&&(h=""+c),a.key!==void 0&&(h=""+a.key),a.ref!==void 0&&(y=a.ref);for(f in a)r.call(a,f)&&!s.hasOwnProperty(f)&&(p[f]=a[f]);if(l&&l.defaultProps)for(f in a=l.defaultProps,a)p[f]===void 0&&(p[f]=a[f]);return{$$typeof:t,type:l,key:h,ref:y,props:p,_owner:o.current}}return Nf.Fragment=n,Nf.jsx=i,Nf.jsxs=i,Nf}var b$;function Je(){return b$||(b$=1,Tw.exports=KY()),Tw.exports}var D=Je();function qY(e){return e==null||Object.keys(e).length===0}function YY(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(qY(o)?n:o):t;return D.jsx(VY,{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 s4(e,t){return _x(e,t)}const QY=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},XY=["values","unit","step"],ZY=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>S({},n,{[r.key]:r.val}),{})};function JY(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=le(e,XY),s=ZY(t),i=Object.keys(s);function l(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function a(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,y){const v=i.indexOf(y);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(v!==-1&&typeof t[i[v]]=="number"?t[i[v]]:y)-r/100}${n})`}function f(h){return i.indexOf(h)+1<i.length?c(h,i[i.indexOf(h)+1]):l(h)}function p(h){const y=i.indexOf(h);return y===0?l(i[1]):y===i.length-1?a(i[y]):c(h,i[i.indexOf(h)+1]).replace("@media","@media not all and")}return S({keys:i,values:s,up:l,down:a,between:c,only:f,not:p,unit:n},o)}const eQ={borderRadius:4},tQ=eQ;function Sp(e,t){return t?Yr(e,t,{clone:!1}):e}const KP={xs:0,sm:600,md:900,lg:1200,xl:1536},w$={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${KP[e]}px)`};function Ro(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||w$;return t.reduce((i,l,a)=>(i[s.up(s.keys[a])]=n(t[a]),i),{})}if(typeof t=="object"){const s=r.breakpoints||w$;return Object.keys(t).reduce((i,l)=>{if(Object.keys(s.values||KP).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 i4(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const s=e.up(o);return r[s]={},r},{}))||{}}function l4(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function nQ(e,...t){const n=i4(e),r=[n,...t].reduce((o,s)=>Yr(o,s),{});return l4(Object.keys(n),r)}function rQ(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 hc({values:e,breakpoints:t,base:n}){const r=n||rQ(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 Av(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,c=bd(a,r)||{};return Ro(i,l,p=>{let h=Av(c,o,p);return p===h&&typeof p=="string"&&(h=Av(c,o,`${t}${p==="default"?"":Pe(p)}`,p)),n===!1?h:{[n]:h}})};return s.propTypes={},s.filterProps=[t],s}function oQ(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const sQ={m:"margin",p:"padding"},iQ={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},C$={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},lQ=oQ(e=>{if(e.length>2)if(C$[e])e=C$[e];else return[e];const[t,n]=e.split(""),r=sQ[t],o=iQ[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),qP=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],YP=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...qP,...YP];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 Mc(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 aQ(e,t){return n=>e.reduce((r,o)=>(r[o]=Mc(t,n),r),{})}function cQ(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=lQ(n),s=aQ(o,r),i=e[n];return Ro(e,i,s)}function a4(e,t){const n=QP(e.theme);return Object.keys(e).map(r=>cQ(e,t,r,n)).reduce(Sp,{})}function Wn(e){return a4(e,qP)}Wn.propTypes={};Wn.filterProps=qP;function Gn(e){return a4(e,YP)}Gn.propTypes={};Gn.filterProps=YP;function uQ(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 f1(...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]?Sp(o,t[s](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Ms(e){return typeof e!="number"?e:`${e}px solid`}function zs(e,t){return sr({prop:e,themeKey:"borders",transform:t})}const dQ=zs("border",Ms),fQ=zs("borderTop",Ms),pQ=zs("borderRight",Ms),hQ=zs("borderBottom",Ms),mQ=zs("borderLeft",Ms),gQ=zs("borderColor"),vQ=zs("borderTopColor"),yQ=zs("borderRightColor"),bQ=zs("borderBottomColor"),wQ=zs("borderLeftColor"),CQ=zs("outline",Ms),xQ=zs("outlineColor"),p1=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Oh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Mc(t,r)});return Ro(e,e.borderRadius,n)}return null};p1.propTypes={};p1.filterProps=["borderRadius"];f1(dQ,fQ,pQ,hQ,mQ,gQ,vQ,yQ,bQ,wQ,p1,CQ,xQ);const h1=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Oh(e.theme,"spacing",8),n=r=>({gap:Mc(t,r)});return Ro(e,e.gap,n)}return null};h1.propTypes={};h1.filterProps=["gap"];const m1=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Oh(e.theme,"spacing",8),n=r=>({columnGap:Mc(t,r)});return Ro(e,e.columnGap,n)}return null};m1.propTypes={};m1.filterProps=["columnGap"];const g1=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Oh(e.theme,"spacing",8),n=r=>({rowGap:Mc(t,r)});return Ro(e,e.rowGap,n)}return null};g1.propTypes={};g1.filterProps=["rowGap"];const SQ=sr({prop:"gridColumn"}),PQ=sr({prop:"gridRow"}),EQ=sr({prop:"gridAutoFlow"}),kQ=sr({prop:"gridAutoColumns"}),IQ=sr({prop:"gridAutoRows"}),MQ=sr({prop:"gridTemplateColumns"}),_Q=sr({prop:"gridTemplateRows"}),TQ=sr({prop:"gridTemplateAreas"}),$Q=sr({prop:"gridArea"});f1(h1,m1,g1,SQ,PQ,EQ,kQ,IQ,MQ,_Q,TQ,$Q);function nd(e,t){return t==="grey"?t:e}const RQ=sr({prop:"color",themeKey:"palette",transform:nd}),OQ=sr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:nd}),DQ=sr({prop:"backgroundColor",themeKey:"palette",transform:nd});f1(RQ,OQ,DQ);function Wo(e){return e<=1&&e!==0?`${e*100}%`:e}const AQ=sr({prop:"width",transform:Wo}),XP=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])||KP[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 Ro(e,e.maxWidth,t)}return null};XP.filterProps=["maxWidth"];const LQ=sr({prop:"minWidth",transform:Wo}),FQ=sr({prop:"height",transform:Wo}),NQ=sr({prop:"maxHeight",transform:Wo}),BQ=sr({prop:"minHeight",transform:Wo});sr({prop:"size",cssProperty:"width",transform:Wo});sr({prop:"size",cssProperty:"height",transform:Wo});const zQ=sr({prop:"boxSizing"});f1(AQ,XP,LQ,FQ,NQ,BQ,zQ);const VQ={border:{themeKey:"borders",transform:Ms},borderTop:{themeKey:"borders",transform:Ms},borderRight:{themeKey:"borders",transform:Ms},borderBottom:{themeKey:"borders",transform:Ms},borderLeft:{themeKey:"borders",transform:Ms},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ms},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:p1},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:h1},rowGap:{style:g1},columnGap:{style:m1},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:XP},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"}},v1=VQ;function jQ(...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 HQ(e,t){return typeof e=="function"?e(t):e}function UQ(){function e(n,r,o,s){const i={[n]:r,theme:o},l=s[n];if(!l)return{[n]:r};const{cssProperty:a=n,themeKey:c,transform:f,style:p}=l;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=bd(o,c)||{};return p?p(i):Ro(i,r,v=>{let m=Av(h,f,v);return v===m&&typeof v=="string"&&(m=Av(h,f,`${n}${v==="default"?"":Pe(v)}`,v)),a===!1?m:{[a]:m}})}function t(n){var r;const{sx:o,theme:s={}}=n||{};if(!o)return null;const i=(r=s.unstable_sxConfig)!=null?r:v1;function l(a){let c=a;if(typeof a=="function")c=a(s);else if(typeof a!="object")return a;if(!c)return null;const f=i4(s.breakpoints),p=Object.keys(f);let h=f;return Object.keys(c).forEach(y=>{const v=HQ(c[y],s);if(v!=null)if(typeof v=="object")if(i[y])h=Sp(h,e(y,v,s,i));else{const m=Ro({theme:s},v,C=>({[y]:C}));jQ(m,v)?h[y]=t({sx:v,theme:s}):h=Sp(h,m)}else h=Sp(h,e(y,v,s,i))}),l4(p,h)}return Array.isArray(o)?o.map(l):l(o)}return t}const c4=UQ();c4.filterProps=["sx"];const y1=c4,WQ=["breakpoints","palette","spacing","shape"];function b1(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={}}=e,i=le(e,WQ),l=JY(n),a=uQ(o);let c=Yr({breakpoints:l,direction:"ltr",components:{},palette:S({mode:"light"},r),spacing:a,shape:S({},tQ,s)},i);return c=t.reduce((f,p)=>Yr(f,p),c),c.unstable_sxConfig=S({},v1,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(p){return y1({sx:p,theme:this})},c}function GQ(e){return Object.keys(e).length===0}function w1(e=null){const t=u.useContext(d1);return!t||GQ(t)?e:t}const KQ=b1();function Ud(e=KQ){return w1(e)}function qQ({styles:e,themeId:t,defaultTheme:n={}}){const r=Ud(n),o=typeof e=="function"?e(t&&r[t]||r):e;return D.jsx(YY,{styles:o})}const YQ=["sx"],QQ=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:v1;return Object.keys(e).forEach(s=>{o[s]?r.systemProps[s]=e[s]:r.otherProps[s]=e[s]}),r};function C1(e){const{sx:t}=e,n=le(e,YQ),{systemProps:r,otherProps:o}=QQ(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...i)=>{const l=t(...i);return il(l)?S({},r,l):r}:s=S({},r,t),S({},o,{sx:s})}function u4(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=u4(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function xe(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=u4(e))&&(r&&(r+=" "),r+=t);return r}const XQ=["className","component"];function ZQ(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,s=s4("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(y1);return u.forwardRef(function(a,c){const f=Ud(n),p=C1(a),{className:h,component:y="div"}=p,v=le(p,XQ);return D.jsx(s,S({as:y,ref:c,className:xe(h,o?o(r):r),theme:t&&f[t]||f},v))})}const JQ=["variant"];function x$(e){return e.length===0}function d4(e){const{variant:t}=e,n=le(e,JQ);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=x$(r)?e[o]:Pe(e[o]):r+=`${x$(r)?o:Pe(o)}${Pe(e[o].toString())}`}),r}const eX=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function tX(e){return Object.keys(e).length===0}function nX(e){return typeof e=="string"&&e.charCodeAt(0)>96}const rX=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,Lv=e=>{const t={};return e&&e.forEach(n=>{const r=d4(n.props);t[r]=n.style}),t},oX=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),Lv(n)},Fv=(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[d4(s.props)])}),o},sX=(e,t,n,r)=>{var o;const s=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return Fv(e,t,s)};function Pp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const iX=b1(),lX=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Gg({defaultTheme:e,theme:t,themeId:n}){return tX(t)?e:t[n]||t}function aX(e){return e?(t,n)=>n[e]:null}const S$=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(S({},t,{theme:Gg(S({},t,{defaultTheme:n,themeId:r}))}));let s;if(o&&o.variants&&(s=o.variants,delete o.variants),s){const i=Fv(t,Lv(s),s);return[o,...i]}return o};function f4(e={}){const{themeId:t,defaultTheme:n=iX,rootShouldForwardProp:r=Pp,slotShouldForwardProp:o=Pp}=e,s=i=>y1(S({},i,{theme:Gg(S({},i,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(i,l={})=>{QY(i,P=>P.filter(M=>!(M!=null&&M.__mui_systemSx)));const{name:a,slot:c,skipVariantsResolver:f,skipSx:p,overridesResolver:h=aX(lX(c))}=l,y=le(l,eX),v=f!==void 0?f:c&&c!=="Root"&&c!=="root"||!1,m=p||!1;let C,w=Pp;c==="Root"||c==="root"?w=r:c?w=o:nX(i)&&(w=void 0);const b=s4(i,S({shouldForwardProp:w,label:C},y)),x=(P,...M)=>{const E=M?M.map(_=>{if(typeof _=="function"&&_.__emotion_real!==_)return L=>S$({styledArg:_,props:L,defaultTheme:n,themeId:t});if(il(_)){let L=_,B;return _&&_.variants&&(B=_.variants,delete L.variants,L=z=>{let T=_;return Fv(z,Lv(B),B).forEach(F=>{T=Yr(T,F)}),T}),L}return _}):[];let k=P;if(il(P)){let _;P&&P.variants&&(_=P.variants,delete k.variants,k=L=>{let B=P;return Fv(L,Lv(_),_).forEach(T=>{B=Yr(B,T)}),B})}else typeof P=="function"&&P.__emotion_real!==P&&(k=_=>S$({styledArg:P,props:_,defaultTheme:n,themeId:t}));a&&h&&E.push(_=>{const L=Gg(S({},_,{defaultTheme:n,themeId:t})),B=rX(a,L);if(B){const z={};return Object.entries(B).forEach(([T,$])=>{z[T]=typeof $=="function"?$(S({},_,{theme:L})):$}),h(_,z)}return null}),a&&!v&&E.push(_=>{const L=Gg(S({},_,{defaultTheme:n,themeId:t}));return sX(_,oX(a,L),L,a)}),m||E.push(s);const R=E.length-M.length;if(Array.isArray(P)&&R>0){const _=new Array(R).fill("");k=[...P,..._],k.raw=[...P.raw,..._]}const O=b(k,...E);return i.muiName&&(O.muiName=i.muiName),O};return b.withConfig&&(x.withConfig=b.withConfig),x}}const cX=f4(),Ir=cX;function p4(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:NP(t.components[n].defaultProps,r)}function h4({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ud(n);return r&&(o=o[r]||o),p4({theme:o,name:t,props:e})}function ZP(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function uX(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 _c(e){if(e.type)return e;if(e.charAt(0)==="#")return _c(uX(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Ia(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(Ia(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}function x1(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 dX(e){e=_c(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),i=(c,f=(c+n/30)%12)=>o-s*Math.max(Math.min(f-3,9-f,1),-1);let l="rgb";const a=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",a.push(t[3])),x1({type:l,values:a})}function P$(e){e=_c(e);let t=e.type==="hsl"||e.type==="hsla"?_c(dX(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:bs((n+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function fX(e,t){const n=P$(e),r=P$(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function lt(e,t){return e=_c(e),t=ZP(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,x1(e)}function Tc(e,t){if(e=_c(e),t=ZP(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 x1(e)}function $c(e,t){if(e=_c(e),t=ZP(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 x1(e)}const pX=u.createContext(null),m4=pX;function g4(){return u.useContext(m4)}const hX=typeof Symbol=="function"&&Symbol.for,mX=hX?Symbol.for("mui.nested"):"__THEME_NESTED__";function gX(e,t){return typeof t=="function"?t(e):S({},e,t)}function vX(e){const{children:t,theme:n}=e,r=g4(),o=u.useMemo(()=>{const s=r===null?n:gX(r,n);return s!=null&&(s[mX]=r!==null),s},[n,r]);return D.jsx(m4.Provider,{value:o,children:t})}const E$={};function k$(e,t,n,r=!1){return u.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const s=n(o),i=e?S({},t,{[e]:s}):s;return r?()=>i:i}return e?S({},t,{[e]:n}):S({},t,n)},[e,t,n,r])}function yX(e){const{children:t,theme:n,themeId:r}=e,o=w1(E$),s=g4()||E$,i=k$(r,o,n),l=k$(r,s,n,!0);return D.jsx(vX,{theme:l,children:D.jsx(d1.Provider,{value:i,children:t})})}const bX=["component","direction","spacing","divider","children","className","useFlexGap"],wX=b1(),CX=Ir("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function xX(e){return h4({props:e,name:"MuiStack",defaultTheme:wX})}function SX(e,t){const n=u.Children.toArray(e).filter(Boolean);return n.reduce((r,o,s)=>(r.push(o),s<n.length-1&&r.push(u.cloneElement(t,{key:`separator-${s}`})),r),[])}const PX=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],EX=({ownerState:e,theme:t})=>{let n=S({display:"flex",flexDirection:"column"},Ro({theme:t},hc({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,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(a[c]=!0),a),{}),s=hc({values:e.direction,base:o}),i=hc({values:e.spacing,base:o});typeof s=="object"&&Object.keys(s).forEach((a,c,f)=>{if(!s[a]){const h=c>0?s[f[c-1]]:"column";s[a]=h}}),n=Yr(n,Ro({theme:t},i,(a,c)=>e.useFlexGap?{gap:Mc(r,a)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${PX(c?s[c]:e.direction)}`]:Mc(r,a)}}))}return n=nQ(t.breakpoints,n),n};function kX(e={}){const{createStyledComponent:t=CX,useThemeProps:n=xX,componentName:r="MuiStack"}=e,o=()=>Te({root:["root"]},a=>Ke(r,a),{}),s=t(EX);return u.forwardRef(function(a,c){const f=n(a),p=C1(f),{component:h="div",direction:y="column",spacing:v=0,divider:m,children:C,className:w,useFlexGap:b=!1}=p,x=le(p,bX),P={direction:y,spacing:v,useFlexGap:b},M=o();return D.jsx(s,S({as:h,ownerState:P,ref:c,className:xe(M.root,w)},x,{children:m?SX(C,m):C}))})}function IX(e,t){return S({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const MX=["mode","contrastThreshold","tonalOffset"],I$={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:Jp.white,default:Jp.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}},$w={text:{primary:Jp.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:Jp.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 M$(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=$c(e.main,o):t==="dark"&&(e.dark=Tc(e.main,s)))}function _X(e="light"){return e==="dark"?{main:uu[200],light:uu[50],dark:uu[400]}:{main:uu[700],light:uu[400],dark:uu[800]}}function TX(e="light"){return e==="dark"?{main:cu[200],light:cu[50],dark:cu[400]}:{main:cu[500],light:cu[300],dark:cu[700]}}function $X(e="light"){return e==="dark"?{main:au[500],light:au[300],dark:au[700]}:{main:au[700],light:au[400],dark:au[800]}}function RX(e="light"){return e==="dark"?{main:du[400],light:du[300],dark:du[700]}:{main:du[700],light:du[500],dark:du[900]}}function OX(e="light"){return e==="dark"?{main:fu[400],light:fu[300],dark:fu[700]}:{main:fu[800],light:fu[500],dark:fu[900]}}function DX(e="light"){return e==="dark"?{main:Lf[400],light:Lf[300],dark:Lf[700]}:{main:"#ed6c02",light:Lf[500],dark:Lf[900]}}function AX(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=le(e,MX),s=e.primary||_X(t),i=e.secondary||TX(t),l=e.error||$X(t),a=e.info||RX(t),c=e.success||OX(t),f=e.warning||DX(t);function p(m){return fX(m,$w.text.primary)>=n?$w.text.primary:I$.text.primary}const h=({color:m,name:C,mainShade:w=500,lightShade:b=300,darkShade:x=700})=>{if(m=S({},m),!m.main&&m[w]&&(m.main=m[w]),!m.hasOwnProperty("main"))throw new Error(Ia(11,C?` (${C})`:"",w));if(typeof m.main!="string")throw new Error(Ia(12,C?` (${C})`:"",JSON.stringify(m.main)));return M$(m,"light",b,r),M$(m,"dark",x,r),m.contrastText||(m.contrastText=p(m.main)),m},y={dark:$w,light:I$};return Yr(S({common:S({},Jp),mode:t,primary:h({color:s,name:"primary"}),secondary:h({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:f,name:"warning"}),info:h({color:a,name:"info"}),success:h({color:c,name:"success"}),grey:Cq,contrastThreshold:n,getContrastText:p,augmentColor:h,tonalOffset:r},y[t]),o)}const LX=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function FX(e){return Math.round(e*1e5)/1e5}const _$={textTransform:"uppercase"},T$='"Roboto", "Helvetica", "Arial", sans-serif';function NX(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=T$,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:c=16,allVariants:f,pxToRem:p}=n,h=le(n,LX),y=o/14,v=p||(w=>`${w/c*y}rem`),m=(w,b,x,P,M)=>S({fontFamily:r,fontWeight:w,fontSize:v(b),lineHeight:x},r===T$?{letterSpacing:`${FX(P/b)}em`}:{},M,f),C={h1:m(s,96,1.167,-1.5),h2:m(s,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(l,14,1.75,.4,_$),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,_$),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Yr(S({htmlFontSize:c,pxToRem:v,fontFamily:r,fontSize:o,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:a},C),h,{clone:!1})}const BX=.2,zX=.14,VX=.12;function On(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${BX})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${zX})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${VX})`].join(",")}const jX=["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)],HX=jX,UX=["duration","easing","delay"],WX={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)"},v4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function $$(e){return`${Math.round(e)}ms`}function GX(e){if(!e)return 0;const t=e/36;return Math.round((4+15*bs(t,.25)+t/5)*10)}function KX(e){const t=S({},WX,e.easing),n=S({},v4,e.duration);return S({getAutoHeightDuration:GX,create:(o=["all"],s={})=>{const{duration:i=n.standard,easing:l=t.easeInOut,delay:a=0}=s;return le(s,UX),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof i=="string"?i:$$(i)} ${l} ${typeof a=="string"?a:$$(a)}`).join(",")}},e,{easing:t,duration:n})}const qX={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},YX=qX,QX=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function JP(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:s={}}=e,i=le(e,QX);if(e.vars)throw new Error(Ia(18));const l=AX(r),a=b1(e);let c=Yr(a,{mixins:IX(a.breakpoints,n),palette:l,shadows:HX.slice(),typography:NX(l,s),transitions:KX(o),zIndex:S({},YX)});return c=Yr(c,i),c=t.reduce((f,p)=>Yr(f,p),c),c.unstable_sxConfig=S({},v1,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(p){return y1({sx:p,theme:this})},c}function XX(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function ZX(e){return parseFloat(e)}const JX=JP(),S1=JX;function vn(){const e=Ud(S1);return e[Ic]||e}function je({props:e,name:t}){return h4({props:e,name:t,defaultTheme:S1,themeId:Ic})}const Jr=e=>Pp(e)&&e!=="classes",eZ=Pp,tZ=f4({themeId:Ic,defaultTheme:S1,rootShouldForwardProp:Jr}),oe=tZ,nZ=["theme"];function rZ(e){let{theme:t}=e,n=le(e,nZ);const r=t[Ic];return D.jsx(yX,S({},n,{themeId:r?Ic:void 0,theme:r||t}))}const oZ=e=>{let t;return e<1?t=5.11916*bs(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},R$=oZ;function sZ(e){return Ke("MuiSvgIcon",e)}We("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const iZ=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],lZ=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Pe(t)}`,`fontSize${Pe(n)}`]};return Te(o,sZ,r)},aZ=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,c,f,p,h,y,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(i=s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem",medium:((l=e.typography)==null||(a=l.pxToRem)==null?void 0:a.call(l,24))||"1.5rem",large:((c=e.typography)==null||(f=c.pxToRem)==null?void 0:f.call(c,35))||"2.1875rem"}[t.fontSize],color:(p=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?p:{action:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),y4=u.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:c,inheritViewBox:f=!1,titleAccess:p,viewBox:h="0 0 24 24"}=r,y=le(r,iZ),v=u.isValidElement(o)&&o.type==="svg",m=S({},r,{color:i,component:l,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:h,hasSvgAsChild:v}),C={};f||(C.viewBox=h);const w=lZ(m);return D.jsxs(aZ,S({as:l,className:xe(w.root,s),focusable:"false",color:c,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n},C,y,v&&o.props,{ownerState:m,children:[v?o.props.children:o,p?D.jsx("title",{children:p}):null]}))});y4.muiName="SvgIcon";const O$=y4;function bt(e,t){function n(r,o){return D.jsx(O$,S({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=O$.muiName,u.memo(u.forwardRef(n))}const cZ={configure:e=>{BP.configure(e)}},uZ=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Pe,createChainedFunction:Ex,createSvgIcon:bt,debounce:La,deprecatedPropType:$q,isMuiElement:xp,ownerDocument:pn,ownerWindow:Jo,requirePropFactory:Rq,setRef:eh,unstable_ClassNameGenerator:cZ,unstable_useEnhancedEffect:Nt,unstable_useId:Kt,unsupportedProp:Aq,useControlled:Qr,useEventCallback:Ye,useForkRef:kt,useIsFocusVisible:Xy},Symbol.toStringTag,{value:"Module"}));function Tx(e,t){return Tx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Tx(e,t)}function P1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Tx(e,t)}function dZ(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function fZ(e,t){e.classList?e.classList.add(t):dZ(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function D$(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function pZ(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=D$(e.className,t):e.setAttribute("class",D$(e.className&&e.className.baseVal||"",t))}const A$={disabled:!1},Nv=Ko.createContext(null);var b4=function(t){return t.scrollTop},np="unmounted",rc="exited",oc="entering",Pu="entered",$x="exiting",Il=function(e){P1(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=rc,s.appearStatus=oc):a=Pu:r.unmountOnExit||r.mountOnEnter?a=np:a=rc,s.state={status:a},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===np?{status:rc}: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!==oc&&i!==Pu&&(s=oc):(i===oc||i===Pu)&&(s=$x)}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===oc){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:lg.findDOMNode(this);i&&b4(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rc&&this.setState({status:np})},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],c=a[0],f=a[1],p=this.getTimeouts(),h=l?p.appear:p.enter;if(!o&&!i||A$.disabled){this.safeSetState({status:Pu},function(){s.props.onEntered(c)});return}this.props.onEnter(c,f),this.safeSetState({status:oc},function(){s.props.onEntering(c,f),s.onTransitionEnd(h,function(){s.safeSetState({status:Pu},function(){s.props.onEntered(c,f)})})})},n.performExit=function(){var o=this,s=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:lg.findDOMNode(this);if(!s||A$.disabled){this.safeSetState({status:rc},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:$x},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:rc},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],c=a[0],f=a[1];this.props.addEndListener(c,f)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===np)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 Ko.createElement(Nv.Provider,{value:null},typeof i=="function"?i(o,l):Ko.cloneElement(Ko.Children.only(i),l))},t}(Ko.Component);Il.contextType=Nv;Il.propTypes={};function hu(){}Il.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};Il.UNMOUNTED=np;Il.EXITED=rc;Il.ENTERING=oc;Il.ENTERED=Pu;Il.EXITING=$x;const Dh=Il;var hZ=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return fZ(t,r)})},Rw=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return pZ(t,r)})},e2=function(e){P1(t,e);function t(){for(var r,o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return r=e.call.apply(e,[this].concat(s))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(l,a){var c=r.resolveArguments(l,a),f=c[0],p=c[1];r.removeClasses(f,"exit"),r.addClass(f,p?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(l,a)},r.onEntering=function(l,a){var c=r.resolveArguments(l,a),f=c[0],p=c[1],h=p?"appear":"enter";r.addClass(f,h,"active"),r.props.onEntering&&r.props.onEntering(l,a)},r.onEntered=function(l,a){var c=r.resolveArguments(l,a),f=c[0],p=c[1],h=p?"appear":"enter";r.removeClasses(f,h),r.addClass(f,h,"done"),r.props.onEntered&&r.props.onEntered(l,a)},r.onExit=function(l){var a=r.resolveArguments(l),c=a[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(l)},r.onExiting=function(l){var a=r.resolveArguments(l),c=a[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(l)},r.onExited=function(l){var a=r.resolveArguments(l),c=a[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(l)},r.resolveArguments=function(l,a){return r.props.nodeRef?[r.props.nodeRef.current,l]:[l,a]},r.getClassNames=function(l){var a=r.props.classNames,c=typeof a=="string",f=c&&a?a+"-":"",p=c?""+f+l:a[l],h=c?p+"-active":a[l+"Active"],y=c?p+"-done":a[l+"Done"];return{baseClassName:p,activeClassName:h,doneClassName:y}},r}var n=t.prototype;return n.addClass=function(o,s,i){var l=this.getClassNames(s)[i+"ClassName"],a=this.getClassNames("enter"),c=a.doneClassName;s==="appear"&&i==="done"&&c&&(l+=" "+c),i==="active"&&o&&b4(o),l&&(this.appliedClasses[s][i]=l,hZ(o,l))},n.removeClasses=function(o,s){var i=this.appliedClasses[s],l=i.base,a=i.active,c=i.done;this.appliedClasses[s]={},l&&Rw(o,l),a&&Rw(o,a),c&&Rw(o,c)},n.render=function(){var o=this.props;o.classNames;var s=le(o,["classNames"]);return Ko.createElement(Dh,S({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Ko.Component);e2.defaultProps={classNames:""};e2.propTypes={};const mZ=e2;function Rx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t2(e,t){var n=function(s){return t&&u.isValidElement(s)?t(s):s},r=Object.create(null);return e&&u.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function gZ(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var r=Object.create(null),o=[];for(var s in e)s in t?o.length&&(r[s]=o,o=[]):o.push(s);var i,l={};for(var a in t){if(r[a])for(i=0;i<r[a].length;i++){var c=r[a][i];l[r[a][i]]=n(c)}l[a]=n(a)}for(i=0;i<o.length;i++)l[o[i]]=n(o[i]);return l}function cc(e,t,n){return n[t]!=null?n[t]:e.props[t]}function vZ(e,t){return t2(e.children,function(n){return u.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:cc(n,"appear",e),enter:cc(n,"enter",e),exit:cc(n,"exit",e)})})}function yZ(e,t,n){var r=t2(e.children),o=gZ(t,r);return Object.keys(o).forEach(function(s){var i=o[s];if(u.isValidElement(i)){var l=s in t,a=s in r,c=t[s],f=u.isValidElement(c)&&!c.props.in;a&&(!l||f)?o[s]=u.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:cc(i,"exit",e),enter:cc(i,"enter",e)}):!a&&l&&!f?o[s]=u.cloneElement(i,{in:!1}):a&&l&&u.isValidElement(c)&&(o[s]=u.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:cc(i,"exit",e),enter:cc(i,"enter",e)}))}}),o}var bZ=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},wZ={component:"div",childFactory:function(t){return t}},n2=function(e){P1(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=s.handleExited.bind(Rx(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?vZ(o,l):yZ(o,i,l),firstRender:!1}},n.handleExited=function(o,s){var i=t2(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(l){var a=S({},l.children);return delete a[o.key],{children:a}}))},n.render=function(){var o=this.props,s=o.component,i=o.childFactory,l=le(o,["component","childFactory"]),a=this.state.contextValue,c=bZ(this.state.children).map(i);return delete l.appear,delete l.enter,delete l.exit,s===null?Ko.createElement(Nv.Provider,{value:a},c):Ko.createElement(Nv.Provider,{value:a},Ko.createElement(s,l,c))},t}(Ko.Component);n2.propTypes={};n2.defaultProps=wZ;const r2=n2,o2=e=>e.scrollTop;function _a(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 CZ(e){return Ke("MuiCollapse",e)}We("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const xZ=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],SZ=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Te(r,CZ,n)},PZ=oe("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>S({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&S({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),EZ=oe("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>S({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),kZ=oe("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>S({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),w4=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiCollapse"}),{addEndListener:o,children:s,className:i,collapsedSize:l="0px",component:a,easing:c,in:f,onEnter:p,onEntered:h,onEntering:y,onExit:v,onExited:m,onExiting:C,orientation:w="vertical",style:b,timeout:x=v4.standard,TransitionComponent:P=Dh}=r,M=le(r,xZ),E=S({},r,{orientation:w,collapsedSize:l}),k=SZ(E),R=vn(),O=u.useRef(),_=u.useRef(null),L=u.useRef(),B=typeof l=="number"?`${l}px`:l,z=w==="horizontal",T=z?"width":"height";u.useEffect(()=>()=>{clearTimeout(O.current)},[]);const $=u.useRef(null),F=kt(n,$),j=J=>se=>{if(J){const Z=$.current;se===void 0?J(Z):J(Z,se)}},A=()=>_.current?_.current[z?"clientWidth":"clientHeight"]:0,N=j((J,se)=>{_.current&&z&&(_.current.style.position="absolute"),J.style[T]=B,p&&p(J,se)}),H=j((J,se)=>{const Z=A();_.current&&z&&(_.current.style.position="");const{duration:he,easing:ne}=_a({style:b,timeout:x,easing:c},{mode:"enter"});if(x==="auto"){const re=R.transitions.getAutoHeightDuration(Z);J.style.transitionDuration=`${re}ms`,L.current=re}else J.style.transitionDuration=typeof he=="string"?he:`${he}ms`;J.style[T]=`${Z}px`,J.style.transitionTimingFunction=ne,y&&y(J,se)}),K=j((J,se)=>{J.style[T]="auto",h&&h(J,se)}),Y=j(J=>{J.style[T]=`${A()}px`,v&&v(J)}),te=j(m),Q=j(J=>{const se=A(),{duration:Z,easing:he}=_a({style:b,timeout:x,easing:c},{mode:"exit"});if(x==="auto"){const ne=R.transitions.getAutoHeightDuration(se);J.style.transitionDuration=`${ne}ms`,L.current=ne}else J.style.transitionDuration=typeof Z=="string"?Z:`${Z}ms`;J.style[T]=B,J.style.transitionTimingFunction=he,C&&C(J)}),X=J=>{x==="auto"&&(O.current=setTimeout(J,L.current||0)),o&&o($.current,J)};return D.jsx(P,S({in:f,onEnter:N,onEntered:K,onEntering:H,onExit:Y,onExited:te,onExiting:Q,addEndListener:X,nodeRef:$,timeout:x==="auto"?null:x},M,{children:(J,se)=>D.jsx(PZ,S({as:a,className:xe(k.root,i,{entered:k.entered,exited:!f&&B==="0px"&&k.hidden}[J]),style:S({[z?"minWidth":"minHeight"]:B},b),ownerState:S({},E,{state:J}),ref:F},se,{children:D.jsx(EZ,{ownerState:S({},E,{state:J}),className:k.wrapper,ref:_,children:D.jsx(kZ,{ownerState:S({},E,{state:J}),className:k.wrapperInner,children:s})})}))}))});w4.muiSupportAuto=!0;const Bv=w4;function IZ(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 MZ=["className","component","elevation","square","variant"],_Z=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Te(s,IZ,o)},TZ=oe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return S({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&S({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${lt("#fff",R$(t.elevation))}, ${lt("#fff",R$(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),$Z=u.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,c=le(r,MZ),f=S({},r,{component:s,elevation:i,square:l,variant:a}),p=_Z(f);return D.jsx(TZ,S({as:s,ownerState:f,className:xe(p.root,o),ref:n},c))}),Vs=$Z;function RZ(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:i,in:l,onExited:a,timeout:c}=e,[f,p]=u.useState(!1),h=xe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:i,height:i,top:-(i/2)+s,left:-(i/2)+o},v=xe(n.child,f&&n.childLeaving,r&&n.childPulsate);return!l&&!f&&p(!0),u.useEffect(()=>{if(!l&&a!=null){const m=setTimeout(a,c);return()=>{clearTimeout(m)}}},[a,l,c]),D.jsx("span",{className:h,style:y,children:D.jsx("span",{className:v})})}const OZ=We("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ps=OZ,DZ=["center","classes","className"];let E1=e=>e,L$,F$,N$,B$;const Ox=550,AZ=80,LZ=Ui(L$||(L$=E1`
|
|
89
|
-
0% {
|
|
90
|
-
transform: scale(0);
|
|
91
|
-
opacity: 0.1;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
100% {
|
|
95
|
-
transform: scale(1);
|
|
96
|
-
opacity: 0.3;
|
|
97
|
-
}
|
|
98
|
-
`)),FZ=Ui(F$||(F$=E1`
|
|
99
|
-
0% {
|
|
100
|
-
opacity: 1;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
100% {
|
|
104
|
-
opacity: 0;
|
|
105
|
-
}
|
|
106
|
-
`)),NZ=Ui(N$||(N$=E1`
|
|
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
|
-
`)),BZ=oe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),zZ=oe(RZ,{name:"MuiTouchRipple",slot:"Ripple"})(B$||(B$=E1`
|
|
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
|
-
`),Ps.rippleVisible,LZ,Ox,({theme:e})=>e.transitions.easing.easeInOut,Ps.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ps.child,Ps.childLeaving,FZ,Ox,({theme:e})=>e.transitions.easing.easeInOut,Ps.childPulsate,NZ,({theme:e})=>e.transitions.easing.easeInOut),VZ=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:i}=r,l=le(r,DZ),[a,c]=u.useState([]),f=u.useRef(0),p=u.useRef(null);u.useEffect(()=>{p.current&&(p.current(),p.current=null)},[a]);const h=u.useRef(!1),y=u.useRef(0),v=u.useRef(null),m=u.useRef(null);u.useEffect(()=>()=>{y.current&&clearTimeout(y.current)},[]);const C=u.useCallback(P=>{const{pulsate:M,rippleX:E,rippleY:k,rippleSize:R,cb:O}=P;c(_=>[..._,D.jsx(zZ,{classes:{ripple:xe(s.ripple,Ps.ripple),rippleVisible:xe(s.rippleVisible,Ps.rippleVisible),ripplePulsate:xe(s.ripplePulsate,Ps.ripplePulsate),child:xe(s.child,Ps.child),childLeaving:xe(s.childLeaving,Ps.childLeaving),childPulsate:xe(s.childPulsate,Ps.childPulsate)},timeout:Ox,pulsate:M,rippleX:E,rippleY:k,rippleSize:R},f.current)]),f.current+=1,p.current=O},[s]),w=u.useCallback((P={},M={},E=()=>{})=>{const{pulsate:k=!1,center:R=o||M.pulsate,fakeElement:O=!1}=M;if((P==null?void 0:P.type)==="mousedown"&&h.current){h.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(h.current=!0);const _=O?null:m.current,L=_?_.getBoundingClientRect():{width:0,height:0,left:0,top:0};let B,z,T;if(R||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)B=Math.round(L.width/2),z=Math.round(L.height/2);else{const{clientX:$,clientY:F}=P.touches&&P.touches.length>0?P.touches[0]:P;B=Math.round($-L.left),z=Math.round(F-L.top)}if(R)T=Math.sqrt((2*bs(L.width,2)+bs(L.height,2))/3),T%2===0&&(T+=1);else{const $=Math.max(Math.abs((_?_.clientWidth:0)-B),B)*2+2,F=Math.max(Math.abs((_?_.clientHeight:0)-z),z)*2+2;T=Math.sqrt(bs($,2)+bs(F,2))}P!=null&&P.touches?v.current===null&&(v.current=()=>{C({pulsate:k,rippleX:B,rippleY:z,rippleSize:T,cb:E})},y.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},AZ)):C({pulsate:k,rippleX:B,rippleY:z,rippleSize:T,cb:E})},[o,C]),b=u.useCallback(()=>{w({},{pulsate:!0})},[w]),x=u.useCallback((P,M)=>{if(clearTimeout(y.current),(P==null?void 0:P.type)==="touchend"&&v.current){v.current(),v.current=null,y.current=setTimeout(()=>{x(P,M)});return}v.current=null,c(E=>E.length>0?E.slice(1):E),p.current=M},[]);return u.useImperativeHandle(n,()=>({pulsate:b,start:w,stop:x}),[b,w,x]),D.jsx(BZ,S({className:xe(Ps.root,s.root,i),ref:m},l,{children:D.jsx(r2,{component:null,exit:!0,children:a})}))}),jZ=VZ;function HZ(e){return Ke("MuiButtonBase",e)}const UZ=We("MuiButtonBase",["root","disabled","focusVisible"]),WZ=UZ,GZ=["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"],KZ=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Te({root:["root",t&&"disabled",n&&"focusVisible"]},HZ,o);return n&&r&&(i.root+=` ${r}`),i},qZ=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"},[`&.${WZ.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),YZ=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:i,className:l,component:a="button",disabled:c=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:h=!1,LinkComponent:y="a",onBlur:v,onClick:m,onContextMenu:C,onDragLeave:w,onFocus:b,onFocusVisible:x,onKeyDown:P,onKeyUp:M,onMouseDown:E,onMouseLeave:k,onMouseUp:R,onTouchEnd:O,onTouchMove:_,onTouchStart:L,tabIndex:B=0,TouchRippleProps:z,touchRippleRef:T,type:$}=r,F=le(r,GZ),j=u.useRef(null),A=u.useRef(null),N=kt(A,T),{isFocusVisibleRef:H,onFocus:K,onBlur:Y,ref:te}=Xy(),[Q,X]=u.useState(!1);c&&Q&&X(!1),u.useImperativeHandle(o,()=>({focusVisible:()=>{X(!0),j.current.focus()}}),[]);const[J,se]=u.useState(!1);u.useEffect(()=>{se(!0)},[]);const Z=J&&!f&&!c;u.useEffect(()=>{Q&&h&&!f&&J&&A.current.pulsate()},[f,h,Q,J]);function he(Le,ht,Zt=p){return Ye(Pt=>(ht&&ht(Pt),!Zt&&A.current&&A.current[Le](Pt),!0))}const ne=he("start",E),re=he("stop",C),me=he("stop",w),ce=he("stop",R),Se=he("stop",Le=>{Q&&Le.preventDefault(),k&&k(Le)}),ke=he("start",L),ae=he("stop",O),Ie=he("stop",_),ye=he("stop",Le=>{Y(Le),H.current===!1&&X(!1),v&&v(Le)},!1),Me=Ye(Le=>{j.current||(j.current=Le.currentTarget),K(Le),H.current===!0&&(X(!0),x&&x(Le)),b&&b(Le)}),pe=()=>{const Le=j.current;return a&&a!=="button"&&!(Le.tagName==="A"&&Le.href)},fe=u.useRef(!1),de=Ye(Le=>{h&&!fe.current&&Q&&A.current&&Le.key===" "&&(fe.current=!0,A.current.stop(Le,()=>{A.current.start(Le)})),Le.target===Le.currentTarget&&pe()&&Le.key===" "&&Le.preventDefault(),P&&P(Le),Le.target===Le.currentTarget&&pe()&&Le.key==="Enter"&&!c&&(Le.preventDefault(),m&&m(Le))}),be=Ye(Le=>{h&&Le.key===" "&&A.current&&Q&&!Le.defaultPrevented&&(fe.current=!1,A.current.stop(Le,()=>{A.current.pulsate(Le)})),M&&M(Le),m&&Le.target===Le.currentTarget&&pe()&&Le.key===" "&&!Le.defaultPrevented&&m(Le)});let _e=a;_e==="button"&&(F.href||F.to)&&(_e=y);const Ne={};_e==="button"?(Ne.type=$===void 0?"button":$,Ne.disabled=c):(!F.href&&!F.to&&(Ne.role="button"),c&&(Ne["aria-disabled"]=c));const Ge=kt(n,te,j),Ve=S({},r,{centerRipple:s,component:a,disabled:c,disableRipple:f,disableTouchRipple:p,focusRipple:h,tabIndex:B,focusVisible:Q}),Ue=KZ(Ve);return D.jsxs(qZ,S({as:_e,className:xe(Ue.root,l),ownerState:Ve,onBlur:ye,onClick:m,onContextMenu:re,onFocus:Me,onKeyDown:de,onKeyUp:be,onMouseDown:ne,onMouseLeave:Se,onMouseUp:ce,onDragLeave:me,onTouchEnd:ae,onTouchMove:Ie,onTouchStart:ke,ref:Ge,tabIndex:c?-1:B,type:$},Ne,F,{children:[i,Z?D.jsx(jZ,S({ref:N,center:s},z)):null]}))}),fi=YZ;function QZ(e){return Ke("MuiAlert",e)}const XZ=We("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),z$=XZ;function ZZ(e){return Ke("MuiIconButton",e)}const JZ=We("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),eJ=JZ,tJ=["edge","children","className","color","disabled","disableFocusRipple","size"],nJ=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,ZZ,t)},rJ=oe(fi,{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})=>S({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`: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 S({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&S({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":S({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`: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)},{[`&.${eJ.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),oJ=u.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:c=!1,size:f="medium"}=r,p=le(r,tJ),h=S({},r,{edge:o,color:l,disabled:a,disableFocusRipple:c,size:f}),y=nJ(h);return D.jsx(rJ,S({className:xe(y.root,i),centerRipple:!0,focusRipple:!c,disabled:a,ref:n,ownerState:h},p,{children:s}))}),xr=oJ,sJ=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"),iJ=bt(D.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),lJ=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"),aJ=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"),C4=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"),cJ=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],uJ=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,QZ,o)},dJ=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"?Tc:$c,r=e.palette.mode==="light"?$c:Tc,o=t.color||t.severity;return S({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${z$.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}`,[`& .${z$.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&S({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}))}),fJ=oe("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),pJ=oe("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),V$=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}),j$={success:D.jsx(sJ,{fontSize:"inherit"}),warning:D.jsx(iJ,{fontSize:"inherit"}),error:D.jsx(lJ,{fontSize:"inherit"}),info:D.jsx(aJ,{fontSize:"inherit"})},hJ=u.forwardRef(function(t,n){var r,o,s,i,l,a;const c=je({props:t,name:"MuiAlert"}),{action:f,children:p,className:h,closeText:y="Close",color:v,components:m={},componentsProps:C={},icon:w,iconMapping:b=j$,onClose:x,role:P="alert",severity:M="success",slotProps:E={},slots:k={},variant:R="standard"}=c,O=le(c,cJ),_=S({},c,{color:v,severity:M,variant:R}),L=uJ(_),B=(r=(o=k.closeButton)!=null?o:m.CloseButton)!=null?r:xr,z=(s=(i=k.closeIcon)!=null?i:m.CloseIcon)!=null?s:C4,T=(l=E.closeButton)!=null?l:C.closeButton,$=(a=E.closeIcon)!=null?a:C.closeIcon;return D.jsxs(dJ,S({role:P,elevation:0,ownerState:_,className:xe(L.root,h),ref:n},O,{children:[w!==!1?D.jsx(fJ,{ownerState:_,className:L.icon,children:w||b[M]||j$[M]}):null,D.jsx(pJ,{ownerState:_,className:L.message,children:p}),f!=null?D.jsx(V$,{ownerState:_,className:L.action,children:f}):null,f==null&&x?D.jsx(V$,{ownerState:_,className:L.action,children:D.jsx(B,S({size:"small","aria-label":y,title:y,color:"inherit",onClick:x},T,{children:D.jsx(z,S({fontSize:"small"},$))}))}):null]}))}),Er=hJ;function mJ(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 gJ=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],vJ=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,mJ,i)},yJ=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})=>S({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),H$={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},bJ={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},wJ=e=>bJ[e]||e,CJ=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiTypography"}),o=wJ(r.color),s=C1(S({},r,{color:o})),{align:i="inherit",className:l,component:a,gutterBottom:c=!1,noWrap:f=!1,paragraph:p=!1,variant:h="body1",variantMapping:y=H$}=s,v=le(s,gJ),m=S({},s,{align:i,color:o,className:l,component:a,gutterBottom:c,noWrap:f,paragraph:p,variant:h,variantMapping:y}),C=a||(p?"p":y[h]||H$[h])||"span",w=vJ(m);return D.jsx(yJ,S({as:C,ref:n,ownerState:m,className:xe(w.root,l)},v))}),qn=CJ;function xJ(e){return Ke("MuiAppBar",e)}We("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const SJ=["className","color","enableColorOnDark","position"],PJ=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Pe(t)}`,`position${Pe(n)}`]};return Te(o,xJ,r)},cg=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,EJ=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 S({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&S({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&S({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&S({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg: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"}))}),kJ=u.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,SJ),c=S({},r,{color:s,position:l,enableColorOnDark:i}),f=PJ(c);return D.jsx(EJ,S({square:!0,component:"header",ownerState:c,elevation:4,className:xe(f.root,o,l==="fixed"&&"mui-fixed"),ref:n},a))}),IJ=kJ;function Rc(e){return typeof e=="string"}function rp(e,t,n){return e===void 0||Rc(e)?t:S({},t,{ownerState:S({},t.ownerState,n)})}const MJ={disableDefaultClasses:!1},_J=u.createContext(MJ);function TJ(e){const{disableDefaultClasses:t}=u.useContext(_J);return n=>t?"":e(n)}function x4(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 k1(e,t,n){return typeof e=="function"?e(t,n):e}function U$(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 $J(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const y=xe(n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),v=S({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=S({},n,o,r);return y.length>0&&(m.className=y),Object.keys(v).length>0&&(m.style=v),{props:m,internalRef:void 0}}const i=x4(S({},o,r)),l=U$(r),a=U$(o),c=t(i),f=xe(c==null?void 0:c.className,n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),p=S({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=S({},c,n,a,l);return f.length>0&&(h.className=f),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:c.ref}}const RJ=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function qt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:s=!1}=e,i=le(e,RJ),l=s?{}:k1(r,o),{props:a,internalRef:c}=$J(S({},i,{externalSlotProps:l})),f=kt(c,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return rp(n,S({},a,{ref:f}),o)}function OJ(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,s=FP({badgeContent:t,max:r});let i=n;n===!1&&t===0&&!o&&(i=!0);const{badgeContent:l,max:a=r}=i?s:e,c=l&&Number(l)>a?`${a}+`:l;return{badgeContent:l,invisible:i,max:a,displayValue:c}}function W$(e){return e.substring(2).toLowerCase()}function DJ(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function S4(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:s="onTouchEnd"}=e,i=u.useRef(!1),l=u.useRef(null),a=u.useRef(!1),c=u.useRef(!1);u.useEffect(()=>(setTimeout(()=>{a.current=!0},0),()=>{a.current=!1}),[]);const f=kt(t.ref,l),p=Ye(v=>{const m=c.current;c.current=!1;const C=pn(l.current);if(!a.current||!l.current||"clientX"in v&&DJ(v,C))return;if(i.current){i.current=!1;return}let w;v.composedPath?w=v.composedPath().indexOf(l.current)>-1:w=!C.documentElement.contains(v.target)||l.current.contains(v.target),!w&&(n||!m)&&o(v)}),h=v=>m=>{c.current=!0;const C=t.props[v];C&&C(m)},y={ref:f};return s!==!1&&(y[s]=h(s)),u.useEffect(()=>{if(s!==!1){const v=W$(s),m=pn(l.current),C=()=>{i.current=!0};return m.addEventListener(v,p),m.addEventListener("touchmove",C),()=>{m.removeEventListener(v,p),m.removeEventListener("touchmove",C)}}},[p,s]),r!==!1&&(y[r]=h(r)),u.useEffect(()=>{if(r!==!1){const v=W$(r),m=pn(l.current);return m.addEventListener(v,p),()=>{m.removeEventListener(v,p)}}},[p,r]),D.jsx(u.Fragment,{children:u.cloneElement(t,y)})}const AJ=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function LJ(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 FJ(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 NJ(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||FJ(e))}function BJ(e){const t=[],n=[];return Array.from(e.querySelectorAll(AJ)).forEach((r,o)=>{const s=LJ(r);s===-1||!NJ(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 zJ(){return!0}function s2(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=BJ,isEnabled:i=zJ,open:l}=e,a=u.useRef(!1),c=u.useRef(null),f=u.useRef(null),p=u.useRef(null),h=u.useRef(null),y=u.useRef(!1),v=u.useRef(null),m=kt(t.ref,v),C=u.useRef(null);u.useEffect(()=>{!l||!v.current||(y.current=!n)},[n,l]),u.useEffect(()=>{if(!l||!v.current)return;const x=pn(v.current);return v.current.contains(x.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),y.current&&v.current.focus()),()=>{o||(p.current&&p.current.focus&&(a.current=!0,p.current.focus()),p.current=null)}},[l]),u.useEffect(()=>{if(!l||!v.current)return;const x=pn(v.current),P=k=>{C.current=k,!(r||!i()||k.key!=="Tab")&&x.activeElement===v.current&&k.shiftKey&&(a.current=!0,f.current&&f.current.focus())},M=()=>{const k=v.current;if(k===null)return;if(!x.hasFocus()||!i()||a.current){a.current=!1;return}if(k.contains(x.activeElement)||r&&x.activeElement!==c.current&&x.activeElement!==f.current)return;if(x.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!y.current)return;let R=[];if((x.activeElement===c.current||x.activeElement===f.current)&&(R=s(v.current)),R.length>0){var O,_;const L=!!((O=C.current)!=null&&O.shiftKey&&((_=C.current)==null?void 0:_.key)==="Tab"),B=R[0],z=R[R.length-1];typeof B!="string"&&typeof z!="string"&&(L?z.focus():B.focus())}else k.focus()};x.addEventListener("focusin",M),x.addEventListener("keydown",P,!0);const E=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(E),x.removeEventListener("focusin",M),x.removeEventListener("keydown",P,!0)}},[n,r,o,i,l,s]);const w=x=>{p.current===null&&(p.current=x.relatedTarget),y.current=!0,h.current=x.target;const P=t.props.onFocus;P&&P(x)},b=x=>{p.current===null&&(p.current=x.relatedTarget),y.current=!0};return D.jsxs(u.Fragment,{children:[D.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),u.cloneElement(t,{ref:m,onFocus:w}),D.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:f,"data-testid":"sentinelEnd"})]})}var Mo="top",As="bottom",Ls="right",_o="left",i2="auto",Ah=[Mo,As,Ls,_o],wd="start",oh="end",VJ="clippingParents",P4="viewport",Bf="popper",jJ="reference",G$=Ah.reduce(function(e,t){return e.concat([t+"-"+wd,t+"-"+oh])},[]),E4=[].concat(Ah,[i2]).reduce(function(e,t){return e.concat([t,t+"-"+wd,t+"-"+oh])},[]),HJ="beforeRead",UJ="read",WJ="afterRead",GJ="beforeMain",KJ="main",qJ="afterMain",YJ="beforeWrite",QJ="write",XJ="afterWrite",ZJ=[HJ,UJ,WJ,GJ,KJ,qJ,YJ,QJ,XJ];function zi(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 Oc(e){var t=es(e).Element;return e instanceof t||e instanceof Element}function $s(e){var t=es(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function l2(e){if(typeof ShadowRoot=="undefined")return!1;var t=es(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function JJ(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];!$s(s)||!zi(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 eee(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=i.reduce(function(a,c){return a[c]="",a},{});!$s(o)||!zi(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(a){o.removeAttribute(a)}))})}}const tee={name:"applyStyles",enabled:!0,phase:"write",fn:JJ,effect:eee,requires:["computeStyles"]};function Oi(e){return e.split("-")[0]}var mc=Math.max,zv=Math.min,Cd=Math.round;function Dx(){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 k4(){return!/^((?!chrome|android).)*safari/i.test(Dx())}function xd(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&$s(e)&&(o=e.offsetWidth>0&&Cd(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Cd(r.height)/e.offsetHeight||1);var i=Oc(e)?es(e):window,l=i.visualViewport,a=!k4()&&n,c=(r.left+(a&&l?l.offsetLeft:0))/o,f=(r.top+(a&&l?l.offsetTop:0))/s,p=r.width/o,h=r.height/s;return{width:p,height:h,top:f,right:c+p,bottom:f+h,left:c,x:c,y:f}}function a2(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 I4(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&l2(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 nee(e){return["table","td","th"].indexOf(zi(e))>=0}function Fa(e){return((Oc(e)?e.ownerDocument:e.document)||window.document).documentElement}function I1(e){return zi(e)==="html"?e:e.assignedSlot||e.parentNode||(l2(e)?e.host:null)||Fa(e)}function K$(e){return!$s(e)||wl(e).position==="fixed"?null:e.offsetParent}function ree(e){var t=/firefox/i.test(Dx()),n=/Trident/i.test(Dx());if(n&&$s(e)){var r=wl(e);if(r.position==="fixed")return null}var o=I1(e);for(l2(o)&&(o=o.host);$s(o)&&["html","body"].indexOf(zi(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=K$(e);n&&nee(n)&&wl(n).position==="static";)n=K$(n);return n&&(zi(n)==="html"||zi(n)==="body"&&wl(n).position==="static")?t:n||ree(e)||t}function c2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ep(e,t,n){return mc(e,zv(t,n))}function oee(e,t,n){var r=Ep(e,t,n);return r>n?n:r}function M4(){return{top:0,right:0,bottom:0,left:0}}function _4(e){return Object.assign({},M4(),e)}function T4(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var see=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,_4(typeof t!="number"?t:T4(t,Ah))};function iee(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Oi(n.placement),a=c2(l),c=[_o,Ls].indexOf(l)>=0,f=c?"height":"width";if(!(!s||!i)){var p=see(o.padding,n),h=a2(s),y=a==="y"?Mo:_o,v=a==="y"?As:Ls,m=n.rects.reference[f]+n.rects.reference[a]-i[a]-n.rects.popper[f],C=i[a]-n.rects.reference[a],w=Lh(s),b=w?a==="y"?w.clientHeight||0:w.clientWidth||0:0,x=m/2-C/2,P=p[y],M=b-h[f]-p[v],E=b/2-h[f]/2+x,k=Ep(P,E,M),R=a;n.modifiersData[r]=(t={},t[R]=k,t.centerOffset=k-E,t)}}function lee(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)||I4(t.elements.popper,o)&&(t.elements.arrow=o))}const aee={name:"arrow",enabled:!0,phase:"main",fn:iee,effect:lee,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Sd(e){return e.split("-")[1]}var cee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uee(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 q$(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,i=e.offsets,l=e.position,a=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,p=e.isFixed,h=i.x,y=h===void 0?0:h,v=i.y,m=v===void 0?0:v,C=typeof f=="function"?f({x:y,y:m}):{x:y,y:m};y=C.x,m=C.y;var w=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),x=_o,P=Mo,M=window;if(c){var E=Lh(n),k="clientHeight",R="clientWidth";if(E===es(n)&&(E=Fa(n),wl(E).position!=="static"&&l==="absolute"&&(k="scrollHeight",R="scrollWidth")),E=E,o===Mo||(o===_o||o===Ls)&&s===oh){P=As;var O=p&&E===M&&M.visualViewport?M.visualViewport.height:E[k];m-=O-r.height,m*=a?1:-1}if(o===_o||(o===Mo||o===As)&&s===oh){x=Ls;var _=p&&E===M&&M.visualViewport?M.visualViewport.width:E[R];y-=_-r.width,y*=a?1:-1}}var L=Object.assign({position:l},c&&cee),B=f===!0?uee({x:y,y:m},es(n)):{x:y,y:m};if(y=B.x,m=B.y,a){var z;return Object.assign({},L,(z={},z[P]=b?"0":"",z[x]=w?"0":"",z.transform=(M.devicePixelRatio||1)<=1?"translate("+y+"px, "+m+"px)":"translate3d("+y+"px, "+m+"px, 0)",z))}return Object.assign({},L,(t={},t[P]=b?m+"px":"",t[x]=w?y+"px":"",t.transform="",t))}function dee(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,i=s===void 0?!0:s,l=n.roundOffsets,a=l===void 0?!0:l,c={placement:Oi(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,q$(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,q$(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const fee={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:dee,data:{}};var ug={passive:!0};function pee(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),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(f){f.addEventListener("scroll",n.update,ug)}),l&&a.addEventListener("resize",n.update,ug),function(){s&&c.forEach(function(f){f.removeEventListener("scroll",n.update,ug)}),l&&a.removeEventListener("resize",n.update,ug)}}const hee={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pee,data:{}};var mee={left:"right",right:"left",bottom:"top",top:"bottom"};function Kg(e){return e.replace(/left|right|bottom|top/g,function(t){return mee[t]})}var gee={start:"end",end:"start"};function Y$(e){return e.replace(/start|end/g,function(t){return gee[t]})}function u2(e){var t=es(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function d2(e){return xd(Fa(e)).left+u2(e).scrollLeft}function vee(e,t){var n=es(e),r=Fa(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,l=0,a=0;if(o){s=o.width,i=o.height;var c=k4();(c||!c&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:s,height:i,x:l+d2(e),y:a}}function yee(e){var t,n=Fa(e),r=u2(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=mc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=mc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+d2(e),a=-r.scrollTop;return wl(o||n).direction==="rtl"&&(l+=mc(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:l,y:a}}function f2(e){var t=wl(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function $4(e){return["html","body","#document"].indexOf(zi(e))>=0?e.ownerDocument.body:$s(e)&&f2(e)?e:$4(I1(e))}function kp(e,t){var n;t===void 0&&(t=[]);var r=$4(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=es(r),i=o?[s].concat(s.visualViewport||[],f2(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(kp(I1(i)))}function Ax(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bee(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===P4?Ax(vee(e,n)):Oc(t)?bee(t,n):Ax(yee(Fa(e)))}function wee(e){var t=kp(I1(e)),n=["absolute","fixed"].indexOf(wl(e).position)>=0,r=n&&$s(e)?Lh(e):e;return Oc(r)?t.filter(function(o){return Oc(o)&&I4(o,r)&&zi(o)!=="body"}):[]}function Cee(e,t,n,r){var o=t==="clippingParents"?wee(e):[].concat(t),s=[].concat(o,[n]),i=s[0],l=s.reduce(function(a,c){var f=Q$(e,c,r);return a.top=mc(f.top,a.top),a.right=zv(f.right,a.right),a.bottom=zv(f.bottom,a.bottom),a.left=mc(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 R4(e){var t=e.reference,n=e.element,r=e.placement,o=r?Oi(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 As:a={x:i,y:t.y+t.height};break;case Ls:a={x:t.x+t.width,y:l};break;case _o:a={x:t.x-n.width,y:l};break;default:a={x:t.x,y:t.y}}var c=o?c2(o):null;if(c!=null){var f=c==="y"?"height":"width";switch(s){case wd:a[c]=a[c]-(t[f]/2-n[f]/2);break;case oh:a[c]=a[c]+(t[f]/2-n[f]/2);break}}return a}function sh(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?VJ:l,c=n.rootBoundary,f=c===void 0?P4:c,p=n.elementContext,h=p===void 0?Bf:p,y=n.altBoundary,v=y===void 0?!1:y,m=n.padding,C=m===void 0?0:m,w=_4(typeof C!="number"?C:T4(C,Ah)),b=h===Bf?jJ:Bf,x=e.rects.popper,P=e.elements[v?b:h],M=Cee(Oc(P)?P:P.contextElement||Fa(e.elements.popper),a,f,i),E=xd(e.elements.reference),k=R4({reference:E,element:x,strategy:"absolute",placement:o}),R=Ax(Object.assign({},x,k)),O=h===Bf?R:E,_={top:M.top-O.top+w.top,bottom:O.bottom-M.bottom+w.bottom,left:M.left-O.left+w.left,right:O.right-M.right+w.right},L=e.modifiersData.offset;if(h===Bf&&L){var B=L[o];Object.keys(_).forEach(function(z){var T=[Ls,As].indexOf(z)>=0?1:-1,$=[Mo,As].indexOf(z)>=0?"y":"x";_[z]+=B[$]*T})}return _}function xee(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,i=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,c=a===void 0?E4:a,f=Sd(r),p=f?l?G$:G$.filter(function(v){return Sd(v)===f}):Ah,h=p.filter(function(v){return c.indexOf(v)>=0});h.length===0&&(h=p);var y=h.reduce(function(v,m){return v[m]=sh(e,{placement:m,boundary:o,rootBoundary:s,padding:i})[Oi(m)],v},{});return Object.keys(y).sort(function(v,m){return y[v]-y[m]})}function See(e){if(Oi(e)===i2)return[];var t=Kg(e);return[Y$(e),t,Y$(t)]}function Pee(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,l=i===void 0?!0:i,a=n.fallbackPlacements,c=n.padding,f=n.boundary,p=n.rootBoundary,h=n.altBoundary,y=n.flipVariations,v=y===void 0?!0:y,m=n.allowedAutoPlacements,C=t.options.placement,w=Oi(C),b=w===C,x=a||(b||!v?[Kg(C)]:See(C)),P=[C].concat(x).reduce(function(Q,X){return Q.concat(Oi(X)===i2?xee(t,{placement:X,boundary:f,rootBoundary:p,padding:c,flipVariations:v,allowedAutoPlacements:m}):X)},[]),M=t.rects.reference,E=t.rects.popper,k=new Map,R=!0,O=P[0],_=0;_<P.length;_++){var L=P[_],B=Oi(L),z=Sd(L)===wd,T=[Mo,As].indexOf(B)>=0,$=T?"width":"height",F=sh(t,{placement:L,boundary:f,rootBoundary:p,altBoundary:h,padding:c}),j=T?z?Ls:_o:z?As:Mo;M[$]>E[$]&&(j=Kg(j));var A=Kg(j),N=[];if(s&&N.push(F[B]<=0),l&&N.push(F[j]<=0,F[A]<=0),N.every(function(Q){return Q})){O=L,R=!1;break}k.set(L,N)}if(R)for(var H=v?3:1,K=function(X){var J=P.find(function(se){var Z=k.get(se);if(Z)return Z.slice(0,X).every(function(he){return he})});if(J)return O=J,"break"},Y=H;Y>0;Y--){var te=K(Y);if(te==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const Eee={name:"flip",enabled:!0,phase:"main",fn:Pee,requiresIfExists:["offset"],data:{_skip:!1}};function X$(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 Z$(e){return[Mo,Ls,As,_o].some(function(t){return e[t]>=0})}function kee(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=sh(t,{elementContext:"reference"}),l=sh(t,{altBoundary:!0}),a=X$(i,r),c=X$(l,o,s),f=Z$(a),p=Z$(c);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}const Iee={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:kee};function Mee(e,t,n){var r=Oi(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,Ls].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}function _ee(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=E4.reduce(function(f,p){return f[p]=Mee(p,t.rects,s),f},{}),l=i[t.placement],a=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const Tee={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_ee};function $ee(e){var t=e.state,n=e.name;t.modifiersData[n]=R4({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Ree={name:"popperOffsets",enabled:!0,phase:"read",fn:$ee,data:{}};function Oee(e){return e==="x"?"y":"x"}function Dee(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,l=i===void 0?!1:i,a=n.boundary,c=n.rootBoundary,f=n.altBoundary,p=n.padding,h=n.tether,y=h===void 0?!0:h,v=n.tetherOffset,m=v===void 0?0:v,C=sh(t,{boundary:a,rootBoundary:c,padding:p,altBoundary:f}),w=Oi(t.placement),b=Sd(t.placement),x=!b,P=c2(w),M=Oee(P),E=t.modifiersData.popperOffsets,k=t.rects.reference,R=t.rects.popper,O=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,_=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(E){if(s){var z,T=P==="y"?Mo:_o,$=P==="y"?As:Ls,F=P==="y"?"height":"width",j=E[P],A=j+C[T],N=j-C[$],H=y?-R[F]/2:0,K=b===wd?k[F]:R[F],Y=b===wd?-R[F]:-k[F],te=t.elements.arrow,Q=y&&te?a2(te):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:M4(),J=X[T],se=X[$],Z=Ep(0,k[F],Q[F]),he=x?k[F]/2-H-Z-J-_.mainAxis:K-Z-J-_.mainAxis,ne=x?-k[F]/2+H+Z+se+_.mainAxis:Y+Z+se+_.mainAxis,re=t.elements.arrow&&Lh(t.elements.arrow),me=re?P==="y"?re.clientTop||0:re.clientLeft||0:0,ce=(z=L==null?void 0:L[P])!=null?z:0,Se=j+he-ce-me,ke=j+ne-ce,ae=Ep(y?zv(A,Se):A,j,y?mc(N,ke):N);E[P]=ae,B[P]=ae-j}if(l){var Ie,ye=P==="x"?Mo:_o,Me=P==="x"?As:Ls,pe=E[M],fe=M==="y"?"height":"width",de=pe+C[ye],be=pe-C[Me],_e=[Mo,_o].indexOf(w)!==-1,Ne=(Ie=L==null?void 0:L[M])!=null?Ie:0,Ge=_e?de:pe-k[fe]-R[fe]-Ne+_.altAxis,Ve=_e?pe+k[fe]+R[fe]-Ne-_.altAxis:be,Ue=y&&_e?oee(Ge,pe,Ve):Ep(y?Ge:de,pe,y?Ve:be);E[M]=Ue,B[M]=Ue-pe}t.modifiersData[r]=B}}const Aee={name:"preventOverflow",enabled:!0,phase:"main",fn:Dee,requiresIfExists:["offset"]};function Lee(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Fee(e){return e===es(e)||!$s(e)?u2(e):Lee(e)}function Nee(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 Bee(e,t,n){n===void 0&&(n=!1);var r=$s(t),o=$s(t)&&Nee(t),s=Fa(t),i=xd(e,o,n),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((zi(t)!=="body"||f2(s))&&(l=Fee(t)),$s(t)?(a=xd(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):s&&(a.x=d2(s))),{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function zee(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 Vee(e){var t=zee(e);return ZJ.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function jee(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Hee(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 J$={placement:"bottom",modifiers:[],strategy:"absolute"};function eR(){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 Uee(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?J$:o;return function(l,a,c){c===void 0&&(c=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},J$,s),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},p=[],h=!1,y={state:f,setOptions:function(w){var b=typeof w=="function"?w(f.options):w;m(),f.options=Object.assign({},s,f.options,b),f.scrollParents={reference:Oc(l)?kp(l):l.contextElement?kp(l.contextElement):[],popper:kp(a)};var x=Vee(Hee([].concat(r,f.options.modifiers)));return f.orderedModifiers=x.filter(function(P){return P.enabled}),v(),y.update()},forceUpdate:function(){if(!h){var w=f.elements,b=w.reference,x=w.popper;if(eR(b,x)){f.rects={reference:Bee(b,Lh(x),f.options.strategy==="fixed"),popper:a2(x)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(_){return f.modifiersData[_.name]=Object.assign({},_.data)});for(var P=0;P<f.orderedModifiers.length;P++){if(f.reset===!0){f.reset=!1,P=-1;continue}var M=f.orderedModifiers[P],E=M.fn,k=M.options,R=k===void 0?{}:k,O=M.name;typeof E=="function"&&(f=E({state:f,options:R,name:O,instance:y})||f)}}}},update:jee(function(){return new Promise(function(C){y.forceUpdate(),C(f)})}),destroy:function(){m(),h=!0}};if(!eR(l,a))return y;y.setOptions(c).then(function(C){!h&&c.onFirstUpdate&&c.onFirstUpdate(C)});function v(){f.orderedModifiers.forEach(function(C){var w=C.name,b=C.options,x=b===void 0?{}:b,P=C.effect;if(typeof P=="function"){var M=P({state:f,name:w,instance:y,options:x}),E=function(){};p.push(M||E)}})}function m(){p.forEach(function(C){return C()}),p=[]}return y}}var Wee=[hee,Ree,fee,tee,Tee,Eee,Aee,aee,Iee],Gee=Uee({defaultModifiers:Wee});function Kee(e){return typeof e=="function"?e():e}const O4=u.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[i,l]=u.useState(null),a=kt(u.isValidElement(r)?r.ref:null,n);if(Nt(()=>{s||l(Kee(o)||document.body)},[o,s]),Nt(()=>{if(i&&!s)return eh(n,i),()=>{eh(n,null)}},[n,i,s]),s){if(u.isValidElement(r)){const c={ref:a};return u.cloneElement(r,c)}return D.jsx(u.Fragment,{children:r})}return D.jsx(u.Fragment,{children:i&&Bd.createPortal(r,i)})});function qee(e){return Ke("MuiPopper",e)}We("MuiPopper",["root"]);const Yee=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Qee=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Xee(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 Lx(e){return typeof e=="function"?e():e}function Zee(e){return e.nodeType!==void 0}const Jee=()=>Te({root:["root"]},TJ(qee)),ete={},tte=u.forwardRef(function(t,n){var r;const{anchorEl:o,children:s,direction:i,disablePortal:l,modifiers:a,open:c,placement:f,popperOptions:p,popperRef:h,slotProps:y={},slots:v={},TransitionProps:m}=t,C=le(t,Yee),w=u.useRef(null),b=kt(w,n),x=u.useRef(null),P=kt(x,h),M=u.useRef(P);Nt(()=>{M.current=P},[P]),u.useImperativeHandle(h,()=>x.current,[]);const E=Xee(f,i),[k,R]=u.useState(E),[O,_]=u.useState(Lx(o));u.useEffect(()=>{x.current&&x.current.forceUpdate()}),u.useEffect(()=>{o&&_(Lx(o))},[o]),Nt(()=>{if(!O||!c)return;const $=A=>{R(A.placement)};let F=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:A})=>{$(A)}}];a!=null&&(F=F.concat(a)),p&&p.modifiers!=null&&(F=F.concat(p.modifiers));const j=Gee(O,w.current,S({placement:E},p,{modifiers:F}));return M.current(j),()=>{j.destroy(),M.current(null)}},[O,l,a,c,p,E]);const L={placement:k};m!==null&&(L.TransitionProps=m);const B=Jee(),z=(r=v.root)!=null?r:"div",T=qt({elementType:z,externalSlotProps:y.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:b},ownerState:t,className:B.root});return D.jsx(z,S({},T,{children:typeof s=="function"?s(L):s}))}),nte=u.forwardRef(function(t,n){const{anchorEl:r,children:o,container:s,direction:i="ltr",disablePortal:l=!1,keepMounted:a=!1,modifiers:c,open:f,placement:p="bottom",popperOptions:h=ete,popperRef:y,style:v,transition:m=!1,slotProps:C={},slots:w={}}=t,b=le(t,Qee),[x,P]=u.useState(!0),M=()=>{P(!1)},E=()=>{P(!0)};if(!a&&!f&&(!m||x))return null;let k;if(s)k=s;else if(r){const _=Lx(r);k=_&&Zee(_)?pn(_).body:pn(null).body}const R=!f&&a&&(!m||x)?"none":void 0,O=m?{in:f,onEnter:M,onExited:E}:void 0;return D.jsx(O4,{disablePortal:l,container:k,children:D.jsx(tte,S({anchorEl:r,direction:i,disablePortal:l,modifiers:c,ref:n,open:m?!x:f,placement:p,popperOptions:h,popperRef:y,slotProps:C,slots:w},b,{style:S({position:"fixed",top:0,left:0,display:R},v),TransitionProps:O,children:o}))})});function rte(e){const t=pn(e);return t.body===e?Jo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ip(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function tR(e){return parseInt(Jo(e).getComputedStyle(e).paddingRight,10)||0}function ote(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 nR(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,i=>{const l=s.indexOf(i)===-1,a=!ote(i);l&&a&&Ip(i,o)})}function Ow(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function ste(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(rte(r)){const i=BF(pn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${tR(r)+i}px`;const l=pn(r).querySelectorAll(".mui-fixed");[].forEach.call(l,a=>{n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${tR(a)+i}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=pn(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 ite(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class lte{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&&Ip(t.modalRef,!1);const o=ite(n);nR(n,t.mount,t.modalRef,o,!0);const s=Ow(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=Ow(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=ste(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Ow(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&&Ip(t.modalRef,n),nR(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&&Ip(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function ate(e){return typeof e=="function"?e():e}function cte(e){return e?e.props.hasOwnProperty("in"):!1}const ute=new lte;function dte(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=ute,closeAfterTransition:s=!1,onTransitionEnter:i,onTransitionExited:l,children:a,onClose:c,open:f,rootRef:p}=e,h=u.useRef({}),y=u.useRef(null),v=u.useRef(null),m=kt(v,p),[C,w]=u.useState(!f),b=cte(a);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const P=()=>pn(y.current),M=()=>(h.current.modalRef=v.current,h.current.mount=y.current,h.current),E=()=>{o.mount(M(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},k=Ye(()=>{const F=ate(t)||P().body;o.add(M(),F),v.current&&E()}),R=u.useCallback(()=>o.isTopModal(M()),[o]),O=Ye(F=>{y.current=F,F&&(f&&R()?E():v.current&&Ip(v.current,x))}),_=u.useCallback(()=>{o.remove(M(),x)},[x,o]);u.useEffect(()=>()=>{_()},[_]),u.useEffect(()=>{f?k():(!b||!s)&&_()},[f,_,b,s,k]);const L=F=>j=>{var A;(A=F.onKeyDown)==null||A.call(F,j),!(j.key!=="Escape"||j.which===229||!R())&&(n||(j.stopPropagation(),c&&c(j,"escapeKeyDown")))},B=F=>j=>{var A;(A=F.onClick)==null||A.call(F,j),j.target===j.currentTarget&&c&&c(j,"backdropClick")};return{getRootProps:(F={})=>{const j=x4(e);delete j.onTransitionEnter,delete j.onTransitionExited;const A=S({},j,F);return S({role:"presentation"},A,{onKeyDown:L(A),ref:m})},getBackdropProps:(F={})=>{const j=F;return S({"aria-hidden":!0},j,{onClick:B(j),open:f})},getTransitionProps:()=>{const F=()=>{w(!1),i&&i()},j=()=>{w(!0),l&&l(),s&&_()};return{onEnter:Ex(F,a==null?void 0:a.props.onEnter),onExited:Ex(j,a==null?void 0:a.props.onExited)}},rootRef:m,portalRef:O,isTopModal:R,exited:C,hasTransition:b}}const fte=["onChange","maxRows","minRows","style","value"];function dg(e){return parseInt(e,10)||0}const pte={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function rR(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const hte=u.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:s=1,style:i,value:l}=t,a=le(t,fte),{current:c}=u.useRef(l!=null),f=u.useRef(null),p=kt(n,f),h=u.useRef(null),y=u.useRef(0),[v,m]=u.useState({outerHeightStyle:0}),C=u.useCallback(()=>{const P=f.current,E=Jo(P).getComputedStyle(P);if(E.width==="0px")return{outerHeightStyle:0};const k=h.current;k.style.width=E.width,k.value=P.value||t.placeholder||"x",k.value.slice(-1)===`
|
|
162
|
-
`&&(k.value+=" ");const R=E.boxSizing,O=dg(E.paddingBottom)+dg(E.paddingTop),_=dg(E.borderBottomWidth)+dg(E.borderTopWidth),L=k.scrollHeight;k.value="x";const B=k.scrollHeight;let z=L;s&&(z=Math.max(Number(s)*B,z)),o&&(z=Math.min(Number(o)*B,z)),z=Math.max(z,B);const T=z+(R==="border-box"?O+_:0),$=Math.abs(z-L)<=1;return{outerHeightStyle:T,overflow:$}},[o,s,t.placeholder]),w=(P,M)=>{const{outerHeightStyle:E,overflow:k}=M;return y.current<20&&(E>0&&Math.abs((P.outerHeightStyle||0)-E)>1||P.overflow!==k)?(y.current+=1,{overflow:k,outerHeightStyle:E}):P},b=u.useCallback(()=>{const P=C();rR(P)||m(M=>w(M,P))},[C]);Nt(()=>{const P=()=>{const L=C();rR(L)||Bd.flushSync(()=>{m(B=>w(B,L))})},M=()=>{y.current=0,P()};let E;const k=La(M),R=f.current,O=Jo(R);O.addEventListener("resize",k);let _;return typeof ResizeObserver!="undefined"&&(_=new ResizeObserver(M),_.observe(R)),()=>{k.clear(),cancelAnimationFrame(E),O.removeEventListener("resize",k),_&&_.disconnect()}},[C]),Nt(()=>{b()}),u.useEffect(()=>{y.current=0},[l]);const x=P=>{y.current=0,c||b(),r&&r(P)};return D.jsxs(u.Fragment,{children:[D.jsx("textarea",S({value:l,onChange:x,ref:p,rows:s,style:S({height:v.outerHeightStyle,overflow:v.overflow?"hidden":void 0},i)},a)),D.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:S({},pte.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function oR(e){return typeof e.normalize!="undefined"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function D4(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:s,trim:i=!1}=e;return(l,{inputValue:a,getOptionLabel:c})=>{let f=i?a.trim():a;n&&(f=f.toLowerCase()),t&&(f=oR(f));const p=f?l.filter(h=>{let y=(s||c)(h);return n&&(y=y.toLowerCase()),t&&(y=oR(y)),o==="start"?y.indexOf(f)===0:y.indexOf(f)>-1}):l;return typeof r=="number"?p.slice(0,r):p}}function Dw(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const mte=D4(),sR=5,gte=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function vte(e){const{unstable_isActiveElementInListbox:t=gte,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:s=!1,blurOnSelect:i=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:a=!1,componentName:c="useAutocomplete",defaultValue:f=e.multiple?[]:null,disableClearable:p=!1,disableCloseOnSelect:h=!1,disabled:y,disabledItemsFocusable:v=!1,disableListWrap:m=!1,filterOptions:C=mte,filterSelectedOptions:w=!1,freeSolo:b=!1,getOptionDisabled:x,getOptionKey:P,getOptionLabel:M=$e=>{var Ce;return(Ce=$e.label)!=null?Ce:$e},groupBy:E,handleHomeEndKeys:k=!e.freeSolo,id:R,includeInputInList:O=!1,inputValue:_,isOptionEqualToValue:L=($e,Ce)=>$e===Ce,multiple:B=!1,onChange:z,onClose:T,onHighlightChange:$,onInputChange:F,onOpen:j,open:A,openOnFocus:N=!1,options:H,readOnly:K=!1,selectOnFocus:Y=!e.freeSolo,value:te}=e,Q=Kt(R);let X=M;X=$e=>{const Ce=M($e);return typeof Ce!="string"?String(Ce):Ce};const J=u.useRef(!1),se=u.useRef(!0),Z=u.useRef(null),he=u.useRef(null),[ne,re]=u.useState(null),[me,ce]=u.useState(-1),Se=o?0:-1,ke=u.useRef(Se),[ae,Ie]=Qr({controlled:te,default:f,name:c}),[ye,Me]=Qr({controlled:_,default:"",name:c,state:"inputValue"}),[pe,fe]=u.useState(!1),de=u.useCallback(($e,Ce)=>{if(!(B?ae.length<Ce.length:Ce!==null)&&!l)return;let ft;if(B)ft="";else if(Ce==null)ft="";else{const Wt=X(Ce);ft=typeof Wt=="string"?Wt:""}ye!==ft&&(Me(ft),F&&F($e,ft,"reset"))},[X,ye,B,F,Me,l,ae]),[be,_e]=Qr({controlled:A,default:!1,name:c,state:"open"}),[Ne,Ge]=u.useState(!0),Ve=!B&&ae!=null&&ye===X(ae),Ue=be&&!K,Le=Ue?C(H.filter($e=>!(w&&(B?ae:[ae]).some(Ce=>Ce!==null&&L($e,Ce)))),{inputValue:Ve&&Ne?"":ye,getOptionLabel:X}):[],ht=FP({filteredOptions:Le,value:ae,inputValue:ye});u.useEffect(()=>{const $e=ae!==ht.value;pe&&!$e||b&&!$e||de(null,ae)},[ae,de,pe,ht.value,b]);const Zt=be&&Le.length>0&&!K,Pt=Ye($e=>{$e===-1?Z.current.focus():ne.querySelector(`[data-tag-index="${$e}"]`).focus()});u.useEffect(()=>{B&&me>ae.length-1&&(ce(-1),Pt(-1))},[ae,B,me,Pt]);function wt($e,Ce){if(!he.current||$e<0||$e>=Le.length)return-1;let Qe=$e;for(;;){const ft=he.current.querySelector(`[data-option-index="${Qe}"]`),Wt=v?!1:!ft||ft.disabled||ft.getAttribute("aria-disabled")==="true";if(ft&&ft.hasAttribute("tabindex")&&!Wt)return Qe;if(Ce==="next"?Qe=(Qe+1)%Le.length:Qe=(Qe-1+Le.length)%Le.length,Qe===$e)return-1}}const Xe=Ye(({event:$e,index:Ce,reason:Qe="auto"})=>{if(ke.current=Ce,Ce===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${Q}-option-${Ce}`),$&&$($e,Ce===-1?null:Le[Ce],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(Ce===-1){Wt.scrollTop=0;return}const $n=he.current.querySelector(`[data-option-index="${Ce}"]`);if($n&&($n.classList.add(`${n}-focused`),Qe==="keyboard"&&$n.classList.add(`${n}-focusVisible`),Wt.scrollHeight>Wt.clientHeight&&Qe!=="mouse"&&Qe!=="touch")){const Nn=$n,St=Wt.clientHeight+Wt.scrollTop,Xn=Nn.offsetTop+Nn.offsetHeight;Xn>St?Wt.scrollTop=Xn-Wt.clientHeight:Nn.offsetTop-Nn.offsetHeight*(E?1.3:0)<Wt.scrollTop&&(Wt.scrollTop=Nn.offsetTop-Nn.offsetHeight*(E?1.3:0))}}),Oe=Ye(({event:$e,diff:Ce,direction:Qe="next",reason:ft="auto"})=>{if(!Ue)return;const $n=wt((()=>{const Nn=Le.length-1;if(Ce==="reset")return Se;if(Ce==="start")return 0;if(Ce==="end")return Nn;const St=ke.current+Ce;return St<0?St===-1&&O?-1:m&&ke.current!==-1||Math.abs(Ce)>1?0:Nn:St>Nn?St===Nn+1&&O?-1:m||Math.abs(Ce)>1?Nn:0:St})(),Qe);if(Xe({index:$n,reason:ft,event:$e}),r&&Ce!=="reset")if($n===-1)Z.current.value=ye;else{const Nn=X(Le[$n]);Z.current.value=Nn,Nn.toLowerCase().indexOf(ye.toLowerCase())===0&&ye.length>0&&Z.current.setSelectionRange(ye.length,Nn.length)}}),qe=()=>{const $e=(Ce,Qe)=>{const ft=Ce?X(Ce):"",Wt=Qe?X(Qe):"";return ft===Wt};if(ke.current!==-1&&ht.filteredOptions&&ht.filteredOptions.length!==Le.length&&ht.inputValue===ye&&(B?ae.length===ht.value.length&&ht.value.every((Ce,Qe)=>X(ae[Qe])===X(Ce)):$e(ht.value,ae))){const Ce=ht.filteredOptions[ke.current];if(Ce&&Le.some(ft=>X(ft)===X(Ce)))return!0}return!1},mt=u.useCallback(()=>{if(!Ue||qe())return;const $e=B?ae[0]:ae;if(Le.length===0||$e==null){Oe({diff:"reset"});return}if(he.current){if($e!=null){const Ce=Le[ke.current];if(B&&Ce&&Dw(ae,ft=>L(Ce,ft))!==-1)return;const Qe=Dw(Le,ft=>L(ft,$e));Qe===-1?Oe({diff:"reset"}):Xe({index:Qe});return}if(ke.current>=Le.length-1){Xe({index:Le.length-1});return}Xe({index:ke.current})}},[Le.length,B?!1:ae,w,Oe,Xe,Ue,ye,B]),vt=Ye($e=>{eh(he,$e),$e&&mt()});u.useEffect(()=>{mt()},[mt]);const Tt=$e=>{be||(_e(!0),Ge(!0),j&&j($e))},Yt=($e,Ce)=>{be&&(_e(!1),T&&T($e,Ce))},Qt=($e,Ce,Qe,ft)=>{if(B){if(ae.length===Ce.length&&ae.every((Wt,$n)=>Wt===Ce[$n]))return}else if(ae===Ce)return;z&&z($e,Ce,Qe,ft),Ie(Ce)},Pn=u.useRef(!1),bn=($e,Ce,Qe="selectOption",ft="options")=>{let Wt=Qe,$n=Ce;if(B){$n=Array.isArray(ae)?ae.slice():[];const Nn=Dw($n,St=>L(Ce,St));Nn===-1?$n.push(Ce):ft!=="freeSolo"&&($n.splice(Nn,1),Wt="removeOption")}de($e,$n),Qt($e,$n,Wt,{option:Ce}),!h&&(!$e||!$e.ctrlKey&&!$e.metaKey)&&Yt($e,Wt),(i===!0||i==="touch"&&Pn.current||i==="mouse"&&!Pn.current)&&Z.current.blur()};function gt($e,Ce){if($e===-1)return-1;let Qe=$e;for(;;){if(Ce==="next"&&Qe===ae.length||Ce==="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+=Ce==="next"?1:-1;else return Qe}}const Rt=($e,Ce)=>{if(!B)return;ye===""&&Yt($e,"toggleInput");let Qe=me;me===-1?ye===""&&Ce==="previous"&&(Qe=ae.length-1):(Qe+=Ce==="next"?1:-1,Qe<0&&(Qe=0),Qe===ae.length&&(Qe=-1)),Qe=gt(Qe,Ce),ce(Qe),Pt(Qe)},vr=$e=>{J.current=!0,Me(""),F&&F($e,"","clear"),Qt($e,B?[]:null,"clear")},ir=$e=>Ce=>{if($e.onKeyDown&&$e.onKeyDown(Ce),!Ce.defaultMuiPrevented&&(me!==-1&&["ArrowLeft","ArrowRight"].indexOf(Ce.key)===-1&&(ce(-1),Pt(-1)),Ce.which!==229))switch(Ce.key){case"Home":Ue&&k&&(Ce.preventDefault(),Oe({diff:"start",direction:"next",reason:"keyboard",event:Ce}));break;case"End":Ue&&k&&(Ce.preventDefault(),Oe({diff:"end",direction:"previous",reason:"keyboard",event:Ce}));break;case"PageUp":Ce.preventDefault(),Oe({diff:-sR,direction:"previous",reason:"keyboard",event:Ce}),Tt(Ce);break;case"PageDown":Ce.preventDefault(),Oe({diff:sR,direction:"next",reason:"keyboard",event:Ce}),Tt(Ce);break;case"ArrowDown":Ce.preventDefault(),Oe({diff:1,direction:"next",reason:"keyboard",event:Ce}),Tt(Ce);break;case"ArrowUp":Ce.preventDefault(),Oe({diff:-1,direction:"previous",reason:"keyboard",event:Ce}),Tt(Ce);break;case"ArrowLeft":Rt(Ce,"previous");break;case"ArrowRight":Rt(Ce,"next");break;case"Enter":if(ke.current!==-1&&Ue){const Qe=Le[ke.current],ft=x?x(Qe):!1;if(Ce.preventDefault(),ft)return;bn(Ce,Qe,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else b&&ye!==""&&Ve===!1&&(B&&Ce.preventDefault(),bn(Ce,ye,"createOption","freeSolo"));break;case"Escape":Ue?(Ce.preventDefault(),Ce.stopPropagation(),Yt(Ce,"escape")):a&&(ye!==""||B&&ae.length>0)&&(Ce.preventDefault(),Ce.stopPropagation(),vr(Ce));break;case"Backspace":if(B&&!K&&ye===""&&ae.length>0){const Qe=me===-1?ae.length-1:me,ft=ae.slice();ft.splice(Qe,1),Qt(Ce,ft,"removeOption",{option:ae[Qe]})}break;case"Delete":if(B&&!K&&ye===""&&ae.length>0&&me!==-1){const Qe=me,ft=ae.slice();ft.splice(Qe,1),Qt(Ce,ft,"removeOption",{option:ae[Qe]})}break}},$l=$e=>{fe(!0),N&&!J.current&&Tt($e)},cs=$e=>{if(t(he)){Z.current.focus();return}fe(!1),se.current=!0,J.current=!1,s&&ke.current!==-1&&Ue?bn($e,Le[ke.current],"blur"):s&&b&&ye!==""?bn($e,ye,"blur","freeSolo"):l&&de($e,ae),Yt($e,"blur")},Tn=$e=>{const Ce=$e.target.value;ye!==Ce&&(Me(Ce),Ge(!1),F&&F($e,Ce,"input")),Ce===""?!p&&!B&&Qt($e,null,"clear"):Tt($e)},an=$e=>{const Ce=Number($e.currentTarget.getAttribute("data-option-index"));ke.current!==Ce&&Xe({event:$e,index:Ce,reason:"mouse"})},yr=$e=>{Xe({event:$e,index:Number($e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Pn.current=!0},ho=$e=>{const Ce=Number($e.currentTarget.getAttribute("data-option-index"));bn($e,Le[Ce],"selectOption"),Pn.current=!1},us=$e=>Ce=>{const Qe=ae.slice();Qe.splice($e,1),Qt(Ce,Qe,"removeOption",{option:ae[$e]})},lr=$e=>{be?Yt($e,"toggleInput"):Tt($e)},Oo=$e=>{$e.currentTarget.contains($e.target)&&$e.target.getAttribute("id")!==Q&&$e.preventDefault()},gi=$e=>{$e.currentTarget.contains($e.target)&&(Z.current.focus(),Y&&se.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.current.select(),se.current=!1)},Mr=$e=>{!y&&(ye===""||!be)&&lr($e)};let Nr=b&&ye.length>0;Nr=Nr||(B?ae.length>0:ae!==null);let Hs=Le;return E&&(Hs=Le.reduce(($e,Ce,Qe)=>{const ft=E(Ce);return $e.length>0&&$e[$e.length-1].group===ft?$e[$e.length-1].options.push(Ce):$e.push({key:Qe,index:Qe,group:ft,options:[Ce]}),$e},[])),y&&pe&&cs(),{getRootProps:($e={})=>S({"aria-owns":Zt?`${Q}-listbox`:null},$e,{onKeyDown:ir($e),onMouseDown:Oo,onClick:gi}),getInputLabelProps:()=>({id:`${Q}-label`,htmlFor:Q}),getInputProps:()=>({id:Q,value:ye,onBlur:cs,onFocus:$l,onChange:Tn,onMouseDown:Mr,"aria-activedescendant":Ue?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Zt?`${Q}-listbox`:void 0,"aria-expanded":Zt,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:y}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:vr}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:lr}),getTagProps:({index:$e})=>S({key:$e,"data-tag-index":$e,tabIndex:-1},!K&&{onDelete:us($e)}),getListboxProps:()=>({role:"listbox",id:`${Q}-listbox`,"aria-labelledby":`${Q}-label`,ref:vt,onMouseDown:$e=>{$e.preventDefault()}}),getOptionProps:({index:$e,option:Ce})=>{var Qe;const ft=(B?ae:[ae]).some($n=>$n!=null&&L(Ce,$n)),Wt=x?x(Ce):!1;return{key:(Qe=P==null?void 0:P(Ce))!=null?Qe:X(Ce),tabIndex:-1,role:"option",id:`${Q}-option-${$e}`,onMouseMove:an,onClick:ho,onTouchStart:yr,"data-option-index":$e,"aria-disabled":Wt,"aria-selected":ft}},id:Q,inputValue:ye,value:ae,dirty:Nr,expanded:Ue&&ne,popupOpen:Ue,focused:pe||me!==-1,anchorEl:ne,setAnchorEl:re,focusedTag:me,groupedOptions:Hs}}const yte=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],bte=oe(nte,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wte=u.forwardRef(function(t,n){var r;const o=w1(),s=je({props:t,name:"MuiPopper"}),{anchorEl:i,component:l,components:a,componentsProps:c,container:f,disablePortal:p,keepMounted:h,modifiers:y,open:v,placement:m,popperOptions:C,popperRef:w,transition:b,slots:x,slotProps:P}=s,M=le(s,yte),E=(r=x==null?void 0:x.root)!=null?r:a==null?void 0:a.Root,k=S({anchorEl:i,container:f,disablePortal:p,keepMounted:h,modifiers:y,open:v,placement:m,popperOptions:C,popperRef:w,transition:b},M);return D.jsx(bte,S({as:l,direction:o==null?void 0:o.direction,slots:{root:E},slotProps:P!=null?P:c},k,{ref:n}))}),Na=wte;function Cte(e){return Ke("MuiListSubheader",e)}We("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const xte=["className","color","component","disableGutters","disableSticky","inset"],Ste=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,Cte,t)},Pte=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})=>S({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),A4=u.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:c=!1}=r,f=le(r,xte),p=S({},r,{color:s,component:i,disableGutters:l,disableSticky:a,inset:c}),h=Ste(p);return D.jsx(Pte,S({as:i,className:xe(h.root,o),ref:n,ownerState:p},f))});A4.muiSkipListHighlight=!0;const Ete=A4,kte=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 Ite(e){return Ke("MuiChip",e)}const Mte=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=Mte,_te=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Tte=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:s,onDelete:i,clickable:l,variant:a}=e,c={root:["root",a,n&&"disabled",`size${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(c,Ite,t)},$te=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 S({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Jt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Jt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Jt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Jt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Jt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Jt.icon}`]:S({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&S({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Jt.deleteIcon}`]:S({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`: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})=>S({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`: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})=>S({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Jt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Jt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Jt.avatar}`]:{marginLeft:4},[`& .${Jt.avatarSmall}`]:{marginLeft:2},[`& .${Jt.icon}`]:{marginLeft:4},[`& .${Jt.iconSmall}`]:{marginLeft:2},[`& .${Jt.deleteIcon}`]:{marginRight:5},[`& .${Jt.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`: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}}})),Rte=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})=>S({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function iR(e){return e.key==="Backspace"||e.key==="Delete"}const Ote=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:i,color:l="default",component:a,deleteIcon:c,disabled:f=!1,icon:p,label:h,onClick:y,onDelete:v,onKeyDown:m,onKeyUp:C,size:w="medium",variant:b="filled",tabIndex:x,skipFocusWhenDisabled:P=!1}=r,M=le(r,_te),E=u.useRef(null),k=kt(E,n),R=N=>{N.stopPropagation(),v&&v(N)},O=N=>{N.currentTarget===N.target&&iR(N)&&N.preventDefault(),m&&m(N)},_=N=>{N.currentTarget===N.target&&(v&&iR(N)?v(N):N.key==="Escape"&&E.current&&E.current.blur()),C&&C(N)},L=i!==!1&&y?!0:i,B=L||v?fi:a||"div",z=S({},r,{component:B,disabled:f,size:w,color:l,iconColor:u.isValidElement(p)&&p.props.color||l,onDelete:!!v,clickable:L,variant:b}),T=Tte(z),$=B===fi?S({component:a||"div",focusVisibleClassName:T.focusVisible},v&&{disableRipple:!0}):{};let F=null;v&&(F=c&&u.isValidElement(c)?u.cloneElement(c,{className:xe(c.props.className,T.deleteIcon),onClick:R}):D.jsx(kte,{className:xe(T.deleteIcon),onClick:R}));let j=null;o&&u.isValidElement(o)&&(j=u.cloneElement(o,{className:xe(T.avatar,o.props.className)}));let A=null;return p&&u.isValidElement(p)&&(A=u.cloneElement(p,{className:xe(T.icon,p.props.className)})),D.jsxs($te,S({as:B,className:xe(T.root,s),disabled:L&&f?!0:void 0,onClick:y,onKeyDown:O,onKeyUp:_,ref:k,tabIndex:P&&f?-1:x,ownerState:z},$,M,{children:[j||A,D.jsx(Rte,{className:xe(T.label),ownerState:z,children:h}),F]}))}),Fh=Ote;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 Dte=u.createContext(void 0),M1=Dte;function Ml(){return u.useContext(M1)}function Ate(e){return D.jsx(qQ,S({},e,{defaultTheme:S1,themeId:Ic}))}function lR(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Vv(e,t=!1){return e&&(lR(e.value)&&e.value!==""||t&&lR(e.defaultValue)&&e.defaultValue!=="")}function Lte(e){return e.startAdornment}function Fte(e){return Ke("MuiInputBase",e)}const Nte=We("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ho=Nte,Bte=["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"],_1=(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]},T1=(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]},zte=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:s,focused:i,formControl:l,fullWidth:a,hiddenLabel:c,multiline:f,readOnly:p,size:h,startAdornment:y,type:v}=e,m={root:["root",`color${Pe(n)}`,r&&"disabled",o&&"error",a&&"fullWidth",i&&"focused",l&&"formControl",h&&h!=="medium"&&`size${Pe(h)}`,f&&"multiline",y&&"adornedStart",s&&"adornedEnd",c&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",f&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",y&&"inputAdornedStart",s&&"inputAdornedEnd",p&&"readOnly"]};return Te(m,Fte,t)},$1=oe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:_1})(({theme:e,ownerState:t})=>S({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ho.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&S({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),R1=oe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:T1})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=S({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},s=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return S({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${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"})}),Vte=D.jsx(Ate,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),jte=u.forwardRef(function(t,n){var r;const o=je({props:t,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:i,autoFocus:l,className:a,components:c={},componentsProps:f={},defaultValue:p,disabled:h,disableInjectingGlobalStyles:y,endAdornment:v,fullWidth:m=!1,id:C,inputComponent:w="input",inputProps:b={},inputRef:x,maxRows:P,minRows:M,multiline:E=!1,name:k,onBlur:R,onChange:O,onClick:_,onFocus:L,onKeyDown:B,onKeyUp:z,placeholder:T,readOnly:$,renderSuffix:F,rows:j,slotProps:A={},slots:N={},startAdornment:H,type:K="text",value:Y}=o,te=le(o,Bte),Q=b.value!=null?b.value:Y,{current:X}=u.useRef(Q!=null),J=u.useRef(),se=u.useCallback(Ue=>{},[]),Z=kt(J,x,b.ref,se),[he,ne]=u.useState(!1),re=Ml(),me=Vc({props:o,muiFormControl:re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});me.focused=re?re.focused:he,u.useEffect(()=>{!re&&h&&he&&(ne(!1),R&&R())},[re,h,he,R]);const ce=re&&re.onFilled,Se=re&&re.onEmpty,ke=u.useCallback(Ue=>{Vv(Ue)?ce&&ce():Se&&Se()},[ce,Se]);Nt(()=>{X&&ke({value:Q})},[Q,ke,X]);const ae=Ue=>{if(me.disabled){Ue.stopPropagation();return}L&&L(Ue),b.onFocus&&b.onFocus(Ue),re&&re.onFocus?re.onFocus(Ue):ne(!0)},Ie=Ue=>{R&&R(Ue),b.onBlur&&b.onBlur(Ue),re&&re.onBlur?re.onBlur(Ue):ne(!1)},ye=(Ue,...Le)=>{if(!X){const ht=Ue.target||J.current;if(ht==null)throw new Error(Ia(1));ke({value:ht.value})}b.onChange&&b.onChange(Ue,...Le),O&&O(Ue,...Le)};u.useEffect(()=>{ke(J.current)},[]);const Me=Ue=>{J.current&&Ue.currentTarget===Ue.target&&J.current.focus(),_&&_(Ue)};let pe=w,fe=b;E&&pe==="input"&&(j?fe=S({type:void 0,minRows:j,maxRows:j},fe):fe=S({type:void 0,maxRows:P,minRows:M},fe),pe=hte);const de=Ue=>{ke(Ue.animationName==="mui-auto-fill-cancel"?J.current:{value:"x"})};u.useEffect(()=>{re&&re.setAdornedStart(!!H)},[re,H]);const be=S({},o,{color:me.color||"primary",disabled:me.disabled,endAdornment:v,error:me.error,focused:me.focused,formControl:re,fullWidth:m,hiddenLabel:me.hiddenLabel,multiline:E,size:me.size,startAdornment:H,type:K}),_e=zte(be),Ne=N.root||c.Root||$1,Ge=A.root||f.root||{},Ve=N.input||c.Input||R1;return fe=S({},fe,(r=A.input)!=null?r:f.input),D.jsxs(u.Fragment,{children:[!y&&Vte,D.jsxs(Ne,S({},Ge,!Rc(Ne)&&{ownerState:S({},be,Ge.ownerState)},{ref:n,onClick:Me},te,{className:xe(_e.root,Ge.className,a,$&&"MuiInputBase-readOnly"),children:[H,D.jsx(M1.Provider,{value:null,children:D.jsx(Ve,S({ownerState:be,"aria-invalid":me.error,"aria-describedby":s,autoComplete:i,autoFocus:l,defaultValue:p,disabled:me.disabled,id:C,onAnimationStart:de,name:k,placeholder:T,readOnly:$,required:me.required,rows:j,value:Q,onKeyDown:B,onKeyUp:z,type:K},fe,!Rc(Ve)&&{as:pe,ownerState:S({},be,fe.ownerState)},{ref:Z,className:xe(_e.input,fe.className,$&&"MuiInputBase-readOnly"),onBlur:Ie,onChange:ye,onFocus:ae}))}),v,F?F(S({},me,{startAdornment:H})):null]}))]})}),Wd=jte;function Hte(e){return Ke("MuiInput",e)}const Ute=S({},Ho,We("MuiInput",["root","underline","input"])),oa=Ute;function Wte(e){return Ke("MuiOutlinedInput",e)}const Gte=S({},Ho,We("MuiOutlinedInput",["root","notchedOutline","input"])),Pi=Gte;function Kte(e){return Ke("MuiFilledInput",e)}const qte=S({},Ho,We("MuiFilledInput",["root","underline","input"])),Uo=qte,L4=bt(D.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Yte(e){return Ke("MuiAutocomplete",e)}const Qte=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=Qte;var aR,cR;const Xte=["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"],Zte=["ref"],Jte=["key"],ene=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:s,hasClearIcon:i,hasPopupIcon:l,inputFocused:a,popupOpen:c,size:f}=e,p={root:["root",r&&"expanded",o&&"focused",s&&"fullWidth",i&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",a&&"inputFocused"],tag:["tag",`tagSize${Pe(f)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Te(p,Yte,t)},tne=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})=>S({[`&.${zt.focused} .${zt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${zt.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${zt.tag}`]:S({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}},[`& .${oa.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${oa.root}.${Ho.sizeSmall}`]:{[`& .${oa.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Pi.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}},[`& .${Pi.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}`]:S({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),nne=oe("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),rne=oe(xr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),one=oe(xr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>S({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>S({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),sne=oe(Na,{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})=>S({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),ine=oe(Vs,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>S({},e.typography.body1,{overflow:"auto"})),lne=oe("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),ane=oe("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),cne=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)}}}})),une=oe(Ete,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),dne=oe("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${zt.option}`]:{paddingLeft:24}}),fne=u.forwardRef(function(t,n){var r,o,s,i;const l=je({props:t,name:"MuiAutocomplete"}),{autoComplete:a=!1,autoHighlight:c=!1,autoSelect:f=!1,blurOnSelect:p=!1,ChipProps:h,className:y,clearIcon:v=aR||(aR=D.jsx(C4,{fontSize:"small"})),clearOnBlur:m=!l.freeSolo,clearOnEscape:C=!1,clearText:w="Clear",closeText:b="Close",componentsProps:x={},defaultValue:P=l.multiple?[]:null,disableClearable:M=!1,disableCloseOnSelect:E=!1,disabled:k=!1,disabledItemsFocusable:R=!1,disableListWrap:O=!1,disablePortal:_=!1,filterSelectedOptions:L=!1,forcePopupIcon:B="auto",freeSolo:z=!1,fullWidth:T=!1,getLimitTagsText:$=Ce=>`+${Ce}`,getOptionLabel:F,groupBy:j,handleHomeEndKeys:A=!l.freeSolo,includeInputInList:N=!1,limitTags:H=-1,ListboxComponent:K="ul",ListboxProps:Y,loading:te=!1,loadingText:Q="Loading…",multiple:X=!1,noOptionsText:J="No options",openOnFocus:se=!1,openText:Z="Open",PaperComponent:he=Vs,PopperComponent:ne=Na,popupIcon:re=cR||(cR=D.jsx(L4,{})),readOnly:me=!1,renderGroup:ce,renderInput:Se,renderOption:ke,renderTags:ae,selectOnFocus:Ie=!l.freeSolo,size:ye="medium",slotProps:Me={}}=l,pe=le(l,Xte),{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}=vte(S({},l,{componentName:"Autocomplete"})),Yt=!M&&!k&&ht&&!me,Qt=(!z||B===!0)&&B!==!1,{onMouseDown:Pn}=de(),{ref:bn}=Y!=null?Y:{},gt=Ve(),{ref:Rt}=gt,vr=le(gt,Zte),ir=kt(Rt,bn),cs=F||(Ce=>{var Qe;return(Qe=Ce.label)!=null?Qe:Ce}),Tn=S({},l,{disablePortal:_,expanded:Zt,focused:Xe,fullWidth:T,getOptionLabel:cs,hasClearIcon:Yt,hasPopupIcon:Qt,inputFocused:Oe===-1,popupOpen:wt,size:ye}),an=ene(Tn);let yr;if(X&&Le.length>0){const Ce=Qe=>S({className:an.tag,disabled:k},Ge(Qe));ae?yr=ae(Le,Ce,Tn):yr=Le.map((Qe,ft)=>D.jsx(Fh,S({label:cs(Qe),size:ye},Ce({index:ft}),h)))}if(H>-1&&Array.isArray(yr)){const Ce=yr.length-H;!Xe&&Ce>0&&(yr=yr.splice(0,H),yr.push(D.jsx("span",{className:an.tag,children:$(Ce)},yr.length)))}const us=ce||(Ce=>D.jsxs("li",{children:[D.jsx(une,{className:an.groupLabel,ownerState:Tn,component:"div",children:Ce.group}),D.jsx(dne,{className:an.groupUl,ownerState:Tn,children:Ce.children})]},Ce.key)),Oo=ke||((Ce,Qe)=>{const{key:ft}=Ce,Wt=le(Ce,Jte);return D.jsx("li",S({},Wt,{children:cs(Qe)}),ft)}),gi=(Ce,Qe)=>{const ft=Ue({option:Ce,index:Qe});return Oo(S({},ft,{className:an.option}),Ce,{selected:ft["aria-selected"],index:Qe,inputValue:vt},Tn)},Mr=(r=Me.clearIndicator)!=null?r:x.clearIndicator,Nr=(o=Me.paper)!=null?o:x.paper,Hs=(s=Me.popper)!=null?s:x.popper,$e=(i=Me.popupIndicator)!=null?i:x.popupIndicator;return D.jsxs(u.Fragment,{children:[D.jsx(tne,S({ref:n,className:xe(an.root,y),ownerState:Tn},fe(pe),{children:Se({id:Pt,disabled:k,fullWidth:!0,size:ye==="small"?"small":void 0,InputLabelProps:be(),InputProps:S({ref:mt,className:an.inputRoot,startAdornment:yr,onClick:Ce=>{Ce.target===Ce.currentTarget&&Pn(Ce)}},(Yt||Qt)&&{endAdornment:D.jsxs(nne,{className:an.endAdornment,ownerState:Tn,children:[Yt?D.jsx(rne,S({},Ne(),{"aria-label":w,title:w,ownerState:Tn},Mr,{className:xe(an.clearIndicator,Mr==null?void 0:Mr.className),children:v})):null,Qt?D.jsx(one,S({},_e(),{disabled:k,"aria-label":wt?b:Z,title:wt?b:Z,ownerState:Tn},$e,{className:xe(an.popupIndicator,$e==null?void 0:$e.className),children:re})):null]})}),inputProps:S({className:an.input,disabled:k,readOnly:me},de())})})),qe?D.jsx(sne,S({as:ne,disablePortal:_,style:{width:qe?qe.clientWidth:null},ownerState:Tn,role:"presentation",anchorEl:qe,open:wt},Hs,{className:xe(an.popper,Hs==null?void 0:Hs.className),children:D.jsxs(ine,S({ownerState:Tn,as:he},Nr,{className:xe(an.paper,Nr==null?void 0:Nr.className),children:[te&&Tt.length===0?D.jsx(lne,{className:an.loading,ownerState:Tn,children:Q}):null,Tt.length===0&&!z&&!te?D.jsx(ane,{className:an.noOptions,ownerState:Tn,role:"presentation",onMouseDown:Ce=>{Ce.preventDefault()},children:J}):null,Tt.length>0?D.jsx(cne,S({as:K,className:an.listbox,ownerState:Tn},vr,Y,{ref:ir,children:Tt.map((Ce,Qe)=>j?us({key:Ce.key,group:Ce.group,children:Ce.options.map((ft,Wt)=>gi(ft,Ce.index+Wt))}):gi(Ce,Qe))})):null]}))})):null]})}),Nh=fne,pne=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],hne={entering:{opacity:1},entered:{opacity:1}},mne=u.forwardRef(function(t,n){const r=vn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:i=!0,children:l,easing:a,in:c,onEnter:f,onEntered:p,onEntering:h,onExit:y,onExited:v,onExiting:m,style:C,timeout:w=o,TransitionComponent:b=Dh}=t,x=le(t,pne),P=u.useRef(null),M=kt(P,l.ref,n),E=T=>$=>{if(T){const F=P.current;$===void 0?T(F):T(F,$)}},k=E(h),R=E((T,$)=>{o2(T);const F=_a({style:C,timeout:w,easing:a},{mode:"enter"});T.style.webkitTransition=r.transitions.create("opacity",F),T.style.transition=r.transitions.create("opacity",F),f&&f(T,$)}),O=E(p),_=E(m),L=E(T=>{const $=_a({style:C,timeout:w,easing:a},{mode:"exit"});T.style.webkitTransition=r.transitions.create("opacity",$),T.style.transition=r.transitions.create("opacity",$),y&&y(T)}),B=E(v),z=T=>{s&&s(P.current,T)};return D.jsx(b,S({appear:i,in:c,nodeRef:P,onEnter:R,onEntered:O,onEntering:k,onExit:L,onExited:B,onExiting:_,addEndListener:z,timeout:w},x,{children:(T,$)=>u.cloneElement(l,S({style:S({opacity:0,visibility:T==="exited"&&!c?"hidden":void 0},hne[T],C,l.props.style),ref:M},$))}))}),Gd=mne;function gne(e){return Ke("MuiBackdrop",e)}We("MuiBackdrop",["root","invisible"]);const vne=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],yne=e=>{const{classes:t,invisible:n}=e;return Te({root:["root",n&&"invisible"]},gne,t)},bne=oe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>S({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),wne=u.forwardRef(function(t,n){var r,o,s;const i=je({props:t,name:"MuiBackdrop"}),{children:l,className:a,component:c="div",components:f={},componentsProps:p={},invisible:h=!1,open:y,slotProps:v={},slots:m={},TransitionComponent:C=Gd,transitionDuration:w}=i,b=le(i,vne),x=S({},i,{component:c,invisible:h}),P=yne(x),M=(r=v.root)!=null?r:p.root;return D.jsx(C,S({in:y,timeout:w},b,{children:D.jsx(bne,S({"aria-hidden":!0},M,{as:(o=(s=m.root)!=null?s:f.Root)!=null?o:c,className:xe(P.root,a,M==null?void 0:M.className),ownerState:S({},x,M==null?void 0:M.ownerState),classes:P,ref:n,children:l}))}))}),F4=wne;function Cne(e){return Ke("MuiBadge",e)}const xne=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"]),jl=xne,Sne=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Aw=10,Lw=4,Pne=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,Cne,i)},Ene=oe("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),kne=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})=>S({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Aw*2,lineHeight:1,padding:"0 6px",height:Aw*2,borderRadius:Aw,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:Lw,height:Lw*2,minWidth:Lw*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%",[`&.${jl.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%",[`&.${jl.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%",[`&.${jl.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%",[`&.${jl.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%",[`&.${jl.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%",[`&.${jl.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%",[`&.${jl.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%",[`&.${jl.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),Ine=u.forwardRef(function(t,n){var r,o,s,i,l,a;const c=je({props:t,name:"MuiBadge"}),{anchorOrigin:f={vertical:"top",horizontal:"right"},className:p,component:h,components:y={},componentsProps:v={},children:m,overlap:C="rectangular",color:w="default",invisible:b=!1,max:x=99,badgeContent:P,slots:M,slotProps:E,showZero:k=!1,variant:R="standard"}=c,O=le(c,Sne),{badgeContent:_,invisible:L,max:B,displayValue:z}=OJ({max:x,invisible:b,badgeContent:P,showZero:k}),T=FP({anchorOrigin:f,color:w,overlap:C,variant:R,badgeContent:P}),$=L||_==null&&R!=="dot",{color:F=w,overlap:j=C,anchorOrigin:A=f,variant:N=R}=$?T:c,H=N!=="dot"?z:void 0,K=S({},c,{badgeContent:_,invisible:$,max:B,displayValue:H,showZero:k,anchorOrigin:A,color:F,overlap:j,variant:N}),Y=Pne(K),te=(r=(o=M==null?void 0:M.root)!=null?o:y.Root)!=null?r:Ene,Q=(s=(i=M==null?void 0:M.badge)!=null?i:y.Badge)!=null?s:kne,X=(l=E==null?void 0:E.root)!=null?l:v.root,J=(a=E==null?void 0:E.badge)!=null?a:v.badge,se=qt({elementType:te,externalSlotProps:X,externalForwardedProps:O,additionalProps:{ref:n,as:h},ownerState:K,className:xe(X==null?void 0:X.className,Y.root,p)}),Z=qt({elementType:Q,externalSlotProps:J,ownerState:K,className:xe(Y.badge,J==null?void 0:J.className)});return D.jsxs(te,S({},se,{children:[m,D.jsx(Q,S({},Z,{children:H}))]}))}),N4=Ine,Mne=We("MuiBox",["root"]),_ne=Mne,Tne=JP(),$ne=ZQ({themeId:Ic,defaultTheme:Tne,defaultClassName:_ne.root,generateClassName:BP.generate}),ze=$ne;function Rne(e){return Ke("MuiButton",e)}const One=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=One,Dne=u.createContext({}),Ane=Dne,Lne=u.createContext(void 0),Fne=Lne,Nne=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Bne=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,Rne,i);return S({},i,a)},B4=e=>S({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),zne=oe(fi,{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 S({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":S({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`: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":S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${fg.focusVisible}`]:S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${fg.disabled}`]:S({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${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"}}),Vne=oe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Pe(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},B4(e))),jne=oe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Pe(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},B4(e))),Hne=u.forwardRef(function(t,n){const r=u.useContext(Ane),o=u.useContext(Fne),s=NP(r,t),i=je({props:s,name:"MuiButton"}),{children:l,color:a="primary",component:c="button",className:f,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:y=!1,endIcon:v,focusVisibleClassName:m,fullWidth:C=!1,size:w="medium",startIcon:b,type:x,variant:P="text"}=i,M=le(i,Nne),E=S({},i,{color:a,component:c,disabled:p,disableElevation:h,disableFocusRipple:y,fullWidth:C,size:w,type:x,variant:P}),k=Bne(E),R=b&&D.jsx(Vne,{className:k.startIcon,ownerState:E,children:b}),O=v&&D.jsx(jne,{className:k.endIcon,ownerState:E,children:v}),_=o||"";return D.jsxs(zne,S({ownerState:E,className:xe(r.className,k.root,f,_),component:c,disabled:p,focusRipple:!y,focusVisibleClassName:xe(k.focusVisible,m),ref:n,type:x},M,{classes:k,children:[R,l,O]}))}),Yn=Hne;function Une(e){return Ke("MuiCard",e)}We("MuiCard",["root"]);const Wne=["className","raised"],Gne=e=>{const{classes:t}=e;return Te({root:["root"]},Une,t)},Kne=oe(Vs,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),qne=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiCard"}),{className:o,raised:s=!1}=r,i=le(r,Wne),l=S({},r,{raised:s}),a=Gne(l);return D.jsx(Kne,S({className:xe(a.root,o),elevation:s?8:void 0,ref:n,ownerState:l},i))}),O1=qne;function Yne(e){return Ke("MuiCardContent",e)}We("MuiCardContent",["root"]);const Qne=["className","component"],Xne=e=>{const{classes:t}=e;return Te({root:["root"]},Yne,t)},Zne=oe("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Jne=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiCardContent"}),{className:o,component:s="div"}=r,i=le(r,Qne),l=S({},r,{component:s}),a=Xne(l);return D.jsx(Zne,S({as:s,className:xe(a.root,o),ownerState:l,ref:n},i))}),D1=Jne;function ere(e){return Ke("PrivateSwitchBase",e)}We("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const tre=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],nre=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,ere,t)},rre=oe(fi)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ore=oe("input",{shouldForwardProp:Jr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),sre=u.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:s,className:i,defaultChecked:l,disabled:a,disableFocusRipple:c=!1,edge:f=!1,icon:p,id:h,inputProps:y,inputRef:v,name:m,onBlur:C,onChange:w,onFocus:b,readOnly:x,required:P=!1,tabIndex:M,type:E,value:k}=t,R=le(t,tre),[O,_]=Qr({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),L=Ml(),B=N=>{b&&b(N),L&&L.onFocus&&L.onFocus(N)},z=N=>{C&&C(N),L&&L.onBlur&&L.onBlur(N)},T=N=>{if(N.nativeEvent.defaultPrevented)return;const H=N.target.checked;_(H),w&&w(N,H)};let $=a;L&&typeof $=="undefined"&&($=L.disabled);const F=E==="checkbox"||E==="radio",j=S({},t,{checked:O,disabled:$,disableFocusRipple:c,edge:f}),A=nre(j);return D.jsxs(rre,S({component:"span",className:xe(A.root,i),centerRipple:!0,focusRipple:!c,disabled:$,tabIndex:null,role:void 0,onFocus:B,onBlur:z,ownerState:j,ref:n},R,{children:[D.jsx(ore,S({autoFocus:r,checked:o,defaultChecked:l,className:A.input,disabled:$,id:F?h:void 0,name:m,onChange:T,readOnly:x,ref:v,required:P,ownerState:j,tabIndex:M,type:E},E==="checkbox"&&k===void 0?{}:{value:k},y)),O?s:p]}))}),z4=sre,ire=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"),lre=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"),are=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 cre(e){return Ke("MuiCheckbox",e)}const ure=We("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Fw=ure,dre=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],fre=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,cre,t);return S({},t,i)},pre=oe(z4,{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})=>S({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`: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"&&{[`&.${Fw.checked}, &.${Fw.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Fw.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),hre=D.jsx(lre,{}),mre=D.jsx(ire,{}),gre=D.jsx(are,{}),vre=u.forwardRef(function(t,n){var r,o;const s=je({props:t,name:"MuiCheckbox"}),{checkedIcon:i=hre,color:l="primary",icon:a=mre,indeterminate:c=!1,indeterminateIcon:f=gre,inputProps:p,size:h="medium",className:y}=s,v=le(s,dre),m=c?f:a,C=c?f:i,w=S({},s,{color:l,indeterminate:c,size:h}),b=fre(w);return D.jsx(pre,S({type:"checkbox",inputProps:S({"data-indeterminate":c},p),icon:u.cloneElement(m,{fontSize:(r=m.props.fontSize)!=null?r:h}),checkedIcon:u.cloneElement(C,{fontSize:(o=C.props.fontSize)!=null?o:h}),ownerState:w,ref:n,className:xe(b.root,y)},v,{classes:b}))}),V4=vre;function yre(e){return Ke("MuiCircularProgress",e)}We("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const bre=["className","color","disableShrink","size","style","thickness","value","variant"];let A1=e=>e,uR,dR,fR,pR;const Hl=44,wre=Ui(uR||(uR=A1`
|
|
163
|
-
0% {
|
|
164
|
-
transform: rotate(0deg);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
100% {
|
|
168
|
-
transform: rotate(360deg);
|
|
169
|
-
}
|
|
170
|
-
`)),Cre=Ui(dR||(dR=A1`
|
|
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
|
-
`)),xre=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,yre,t)},Sre=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})=>S({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Ma(fR||(fR=A1`
|
|
186
|
-
animation: ${0} 1.4s linear infinite;
|
|
187
|
-
`),wre)),Pre=oe("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Ere=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})=>S({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Ma(pR||(pR=A1`
|
|
188
|
-
animation: ${0} 1.4s ease-in-out infinite;
|
|
189
|
-
`),Cre)),kre=u.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:c=3.6,value:f=0,variant:p="indeterminate"}=r,h=le(r,bre),y=S({},r,{color:s,disableShrink:i,size:l,thickness:c,value:f,variant:p}),v=xre(y),m={},C={},w={};if(p==="determinate"){const b=2*Math.PI*((Hl-c)/2);m.strokeDasharray=b.toFixed(3),w["aria-valuenow"]=Math.round(f),m.strokeDashoffset=`${((100-f)/100*b).toFixed(3)}px`,C.transform="rotate(-90deg)"}return D.jsx(Sre,S({className:xe(v.root,o),style:S({width:l,height:l},C,a),ownerState:y,ref:n,role:"progressbar"},w,h,{children:D.jsx(Pre,{className:v.svg,ownerState:y,viewBox:`${Hl/2} ${Hl/2} ${Hl} ${Hl}`,children:D.jsx(Ere,{className:v.circle,style:m,ownerState:y,cx:Hl,cy:Hl,r:(Hl-c)/2,fill:"none",strokeWidth:c})})}))}),Vi=kre;function Ire(e){return Ke("MuiModal",e)}We("MuiModal",["root","hidden","backdrop"]);const Mre=["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"],_re=e=>{const{open:t,exited:n,classes:r}=e;return Te({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Ire,r)},Tre=oe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>S({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),$re=oe(F4,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Rre=u.forwardRef(function(t,n){var r,o,s,i,l,a;const c=je({name:"MuiModal",props:t}),{BackdropComponent:f=$re,BackdropProps:p,className:h,closeAfterTransition:y=!1,children:v,container:m,component:C,components:w={},componentsProps:b={},disableAutoFocus:x=!1,disableEnforceFocus:P=!1,disableEscapeKeyDown:M=!1,disablePortal:E=!1,disableRestoreFocus:k=!1,disableScrollLock:R=!1,hideBackdrop:O=!1,keepMounted:_=!1,onBackdropClick:L,open:B,slotProps:z,slots:T}=c,$=le(c,Mre),F=S({},c,{closeAfterTransition:y,disableAutoFocus:x,disableEnforceFocus:P,disableEscapeKeyDown:M,disablePortal:E,disableRestoreFocus:k,disableScrollLock:R,hideBackdrop:O,keepMounted:_}),{getRootProps:j,getBackdropProps:A,getTransitionProps:N,portalRef:H,isTopModal:K,exited:Y,hasTransition:te}=dte(S({},F,{rootRef:n})),Q=S({},F,{exited:Y}),X=_re(Q),J={};if(v.props.tabIndex===void 0&&(J.tabIndex="-1"),te){const{onEnter:ce,onExited:Se}=N();J.onEnter=ce,J.onExited=Se}const se=(r=(o=T==null?void 0:T.root)!=null?o:w.Root)!=null?r:Tre,Z=(s=(i=T==null?void 0:T.backdrop)!=null?i:w.Backdrop)!=null?s:f,he=(l=z==null?void 0:z.root)!=null?l:b.root,ne=(a=z==null?void 0:z.backdrop)!=null?a:b.backdrop,re=qt({elementType:se,externalSlotProps:he,externalForwardedProps:$,getSlotProps:j,additionalProps:{ref:n,as:C},ownerState:Q,className:xe(h,he==null?void 0:he.className,X==null?void 0:X.root,!Q.open&&Q.exited&&(X==null?void 0:X.hidden))}),me=qt({elementType:Z,externalSlotProps:ne,additionalProps:p,getSlotProps:ce=>A(S({},ce,{onClick:Se=>{L&&L(Se),ce!=null&&ce.onClick&&ce.onClick(Se)}})),className:xe(ne==null?void 0:ne.className,p==null?void 0:p.className,X==null?void 0:X.backdrop),ownerState:Q});return!_&&!B&&(!te||Y)?null:D.jsx(O4,{ref:H,container:m,disablePortal:E,children:D.jsxs(se,S({},re,{children:[!O&&f?D.jsx(Z,S({},me)):null,D.jsx(s2,{disableEnforceFocus:P,disableAutoFocus:x,disableRestoreFocus:k,isEnabled:K,open:B,children:u.cloneElement(v,J)})]}))})}),L1=Rre;function Ore(e){return Ke("MuiDialog",e)}const Dre=We("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Mp=Dre,Are=u.createContext({}),j4=Are,Lre=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Fre=oe(F4,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Nre=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,Ore,t)},Bre=oe(L1,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),zre=oe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Pe(n.scroll)}`]]}})(({ownerState:e})=>S({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Vre=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})=>S({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Mp.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}`,[`&.${Mp.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,[`&.${Mp.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),jre=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialog"}),o=vn(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":l,BackdropComponent:a,BackdropProps:c,children:f,className:p,disableEscapeKeyDown:h=!1,fullScreen:y=!1,fullWidth:v=!1,maxWidth:m="sm",onBackdropClick:C,onClose:w,open:b,PaperComponent:x=Vs,PaperProps:P={},scroll:M="paper",TransitionComponent:E=Gd,transitionDuration:k=s,TransitionProps:R}=r,O=le(r,Lre),_=S({},r,{disableEscapeKeyDown:h,fullScreen:y,fullWidth:v,maxWidth:m,scroll:M}),L=Nre(_),B=u.useRef(),z=j=>{B.current=j.target===j.currentTarget},T=j=>{B.current&&(B.current=null,C&&C(j),w&&w(j,"backdropClick"))},$=Kt(l),F=u.useMemo(()=>({titleId:$}),[$]);return D.jsx(Bre,S({className:xe(L.root,p),closeAfterTransition:!0,components:{Backdrop:Fre},componentsProps:{backdrop:S({transitionDuration:k,as:a},c)},disableEscapeKeyDown:h,onClose:w,open:b,ref:n,onClick:T,ownerState:_},O,{children:D.jsx(E,S({appear:!0,in:b,timeout:k,role:"presentation"},R,{children:D.jsx(zre,{className:xe(L.container),onMouseDown:z,ownerState:_,children:D.jsx(Vre,S({as:x,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":$},P,{className:xe(L.paper,P.className),ownerState:_,children:D.jsx(j4.Provider,{value:F,children:f})}))})}))}))}),H4=jre;function Hre(e){return Ke("MuiDialogActions",e)}We("MuiDialogActions",["root","spacing"]);const Ure=["className","disableSpacing"],Wre=e=>{const{classes:t,disableSpacing:n}=e;return Te({root:["root",!n&&"spacing"]},Hre,t)},Gre=oe("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>S({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Kre=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1}=r,i=le(r,Ure),l=S({},r,{disableSpacing:s}),a=Wre(l);return D.jsx(Gre,S({className:xe(a.root,o),ownerState:l,ref:n},i))}),qre=Kre;function Yre(e){return Ke("MuiDialogContent",e)}We("MuiDialogContent",["root","dividers"]);function Qre(e){return Ke("MuiDialogTitle",e)}const Xre=We("MuiDialogTitle",["root"]),Zre=Xre,Jre=["className","dividers"],eoe=e=>{const{classes:t,dividers:n}=e;return Te({root:["root",n&&"dividers"]},Yre,t)},toe=oe("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>S({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${Zre.root} + &`]:{paddingTop:0}})),noe=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1}=r,i=le(r,Jre),l=S({},r,{dividers:s}),a=eoe(l);return D.jsx(toe,S({className:xe(a.root,o),ownerState:l,ref:n},i))}),U4=noe,roe=["className","id"],ooe=e=>{const{classes:t}=e;return Te({root:["root"]},Qre,t)},soe=oe(qn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),ioe=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialogTitle"}),{className:o,id:s}=r,i=le(r,roe),l=r,a=ooe(l),{titleId:c=s}=u.useContext(j4);return D.jsx(soe,S({component:"h2",className:xe(a.root,o),ownerState:l,ref:n,variant:"h6",id:s!=null?s:c},i))}),loe=ioe;function aoe(e){return Ke("MuiDivider",e)}const coe=We("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),hR=coe,uoe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],doe=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"]},aoe,r)},foe=oe("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>S({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`: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})=>S({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>S({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),poe=oe("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>S({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),W4=u.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:c=!1,orientation:f="horizontal",role:p=l!=="hr"?"separator":void 0,textAlign:h="center",variant:y="fullWidth"}=r,v=le(r,uoe),m=S({},r,{absolute:o,component:l,flexItem:a,light:c,orientation:f,role:p,textAlign:h,variant:y}),C=doe(m);return D.jsx(foe,S({as:l,className:xe(C.root,i),role:p,ref:n,ownerState:m},v,{children:s?D.jsx(poe,{className:C.wrapper,ownerState:m,children:s}):null}))});W4.muiSkipListHighlight=!0;const ih=W4,hoe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function moe(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),s=Jo(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const c=s.getComputedStyle(t);i=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let l=0,a=0;if(i&&i!=="none"&&typeof i=="string"){const c=i.split("(")[1].split(")")[0].split(",");l=parseInt(c[4],10),a=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+l-r.left}px)`:`translateX(${s.innerWidth+l-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-l}px)`:`translateX(-${r.left+r.width-l}px)`:e==="up"?o?`translateY(${o.bottom+a-r.top}px)`:`translateY(${s.innerHeight+a-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-a}px)`:`translateY(-${r.top+r.height-a}px)`}function goe(e){return typeof e=="function"?e():e}function pg(e,t,n){const r=goe(n),o=moe(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const voe=u.forwardRef(function(t,n){const r=vn(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:a,container:c,direction:f="down",easing:p=o,in:h,onEnter:y,onEntered:v,onEntering:m,onExit:C,onExited:w,onExiting:b,style:x,timeout:P=s,TransitionComponent:M=Dh}=t,E=le(t,hoe),k=u.useRef(null),R=kt(a.ref,k,n),O=A=>N=>{A&&(N===void 0?A(k.current):A(k.current,N))},_=O((A,N)=>{pg(f,A,c),o2(A),y&&y(A,N)}),L=O((A,N)=>{const H=_a({timeout:P,style:x,easing:p},{mode:"enter"});A.style.webkitTransition=r.transitions.create("-webkit-transform",S({},H)),A.style.transition=r.transitions.create("transform",S({},H)),A.style.webkitTransform="none",A.style.transform="none",m&&m(A,N)}),B=O(v),z=O(b),T=O(A=>{const N=_a({timeout:P,style:x,easing:p},{mode:"exit"});A.style.webkitTransition=r.transitions.create("-webkit-transform",N),A.style.transition=r.transitions.create("transform",N),pg(f,A,c),C&&C(A)}),$=O(A=>{A.style.webkitTransition="",A.style.transition="",w&&w(A)}),F=A=>{i&&i(k.current,A)},j=u.useCallback(()=>{k.current&&pg(f,k.current,c)},[f,c]);return u.useEffect(()=>{if(h||f==="down"||f==="right")return;const A=La(()=>{k.current&&pg(f,k.current,c)}),N=Jo(k.current);return N.addEventListener("resize",A),()=>{A.clear(),N.removeEventListener("resize",A)}},[f,h,c]),u.useEffect(()=>{h||j()},[h,j]),D.jsx(M,S({nodeRef:k,onEnter:_,onEntered:B,onEntering:L,onExit:T,onExited:$,onExiting:z,addEndListener:F,appear:l,in:h,timeout:P},E,{children:(A,N)=>u.cloneElement(a,S({ref:R,style:S({visibility:A==="exited"&&!h?"hidden":void 0},x,a.props.style)},N))}))}),yoe=voe;function boe(e){return Ke("MuiDrawer",e)}We("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const woe=["BackdropProps"],Coe=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],G4=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},xoe=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,boe,t)},Soe=oe(L1,{name:"MuiDrawer",slot:"Root",overridesResolver:G4})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),mR=oe("div",{shouldForwardProp:Jr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:G4})({flex:"0 0 auto"}),Poe=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})=>S({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),K4={left:"right",right:"left",top:"down",bottom:"up"};function Eoe(e){return["left","right"].indexOf(e)!==-1}function koe(e,t){return e.direction==="rtl"&&Eoe(t)?K4[t]:t}const Ioe=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiDrawer"}),o=vn(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:i="left",BackdropProps:l,children:a,className:c,elevation:f=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:h}={},onClose:y,open:v=!1,PaperProps:m={},SlideProps:C,TransitionComponent:w=yoe,transitionDuration:b=s,variant:x="temporary"}=r,P=le(r.ModalProps,woe),M=le(r,Coe),E=u.useRef(!1);u.useEffect(()=>{E.current=!0},[]);const k=koe(o,i),O=S({},r,{anchor:i,elevation:f,open:v,variant:x},M),_=xoe(O),L=D.jsx(Poe,S({elevation:x==="temporary"?f:0,square:!0},m,{className:xe(_.paper,m.className),ownerState:O,children:a}));if(x==="permanent")return D.jsx(mR,S({className:xe(_.root,_.docked,c),ownerState:O,ref:n},M,{children:L}));const B=D.jsx(w,S({in:v,direction:K4[k],timeout:b,appear:E.current},C,{children:L}));return x==="persistent"?D.jsx(mR,S({className:xe(_.root,_.docked,c),ownerState:O,ref:n},M,{children:B})):D.jsx(Soe,S({BackdropProps:S({},l,h,{transitionDuration:b}),className:xe(_.root,_.modal,c),open:v,ownerState:O,onClose:y,hideBackdrop:p,ref:n},M,P,{children:B}))}),Moe=Ioe,_oe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Toe=e=>{const{classes:t,disableUnderline:n}=e,o=Te({root:["root",!n&&"underline"],input:["input"]},Kte,t);return S({},t,o)},$oe=oe($1,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[..._1(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return S({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s}},[`&.${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&&S({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Roe=oe(R1,{name:"MuiFilledInput",slot:"Input",overridesResolver:T1})(({theme:e,ownerState:t})=>S({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),q4=u.forwardRef(function(t,n){var r,o,s,i;const l=je({props:t,name:"MuiFilledInput"}),{components:a={},componentsProps:c,fullWidth:f=!1,inputComponent:p="input",multiline:h=!1,slotProps:y,slots:v={},type:m="text"}=l,C=le(l,_oe),w=S({},l,{fullWidth:f,inputComponent:p,multiline:h,type:m}),b=Toe(l),x={root:{ownerState:w},input:{ownerState:w}},P=(y!=null?y:c)?Yr(x,y!=null?y:c):x,M=(r=(o=v.root)!=null?o:a.Root)!=null?r:$oe,E=(s=(i=v.input)!=null?i:a.Input)!=null?s:Roe;return D.jsx(Wd,S({slots:{root:M,input:E},componentsProps:P,fullWidth:f,inputComponent:p,multiline:h,ref:n,type:m},C,{classes:b}))});q4.muiName="Input";const Y4=q4;function Ooe(e){return Ke("MuiFormControl",e)}We("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Doe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Aoe=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Pe(n)}`,r&&"fullWidth"]};return Te(o,Ooe,t)},Loe=oe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${Pe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>S({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Foe=u.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:c=!1,focused:f,fullWidth:p=!1,hiddenLabel:h=!1,margin:y="none",required:v=!1,size:m="medium",variant:C="outlined"}=r,w=le(r,Doe),b=S({},r,{color:i,component:l,disabled:a,error:c,fullWidth:p,hiddenLabel:h,margin:y,required:v,size:m,variant:C}),x=Aoe(b),[P,M]=u.useState(()=>{let z=!1;return o&&u.Children.forEach(o,T=>{if(!xp(T,["Input","Select"]))return;const $=xp(T,["Select"])?T.props.input:T;$&&Lte($.props)&&(z=!0)}),z}),[E,k]=u.useState(()=>{let z=!1;return o&&u.Children.forEach(o,T=>{xp(T,["Input","Select"])&&(Vv(T.props,!0)||Vv(T.props.inputProps,!0))&&(z=!0)}),z}),[R,O]=u.useState(!1);a&&R&&O(!1);const _=f!==void 0&&!a?f:R;let L;const B=u.useMemo(()=>({adornedStart:P,setAdornedStart:M,color:i,disabled:a,error:c,filled:E,focused:_,fullWidth:p,hiddenLabel:h,size:m,onBlur:()=>{O(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{O(!0)},registerEffect:L,required:v,variant:C}),[P,i,a,c,E,_,p,h,L,v,m,C]);return D.jsx(M1.Provider,{value:B,children:D.jsx(Loe,S({as:l,ownerState:b,className:xe(x.root,s),ref:n},w,{children:o}))})}),Q4=Foe,Noe=kX({createStyledComponent:oe("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>je({props:e,name:"MuiStack"})}),Boe=Noe;function zoe(e){return Ke("MuiFormControlLabel",e)}const Voe=We("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),op=Voe,joe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Hoe=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,zoe,t)},Uoe=oe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${op.label}`]:t.label},t.root,t[`labelPlacement${Pe(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${op.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},{[`& .${op.label}`]:{[`&.${op.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),Woe=oe("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${op.error}`]:{color:(e.vars||e).palette.error.main}})),Goe=u.forwardRef(function(t,n){var r,o;const s=je({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:l={},control:a,disabled:c,disableTypography:f,label:p,labelPlacement:h="end",required:y,slotProps:v={}}=s,m=le(s,joe),C=Ml(),w=(r=c!=null?c:a.props.disabled)!=null?r:C==null?void 0:C.disabled,b=y!=null?y:a.props.required,x={disabled:w,required:b};["checked","name","onChange","value","inputRef"].forEach(O=>{typeof a.props[O]=="undefined"&&typeof s[O]!="undefined"&&(x[O]=s[O])});const P=Vc({props:s,muiFormControl:C,states:["error"]}),M=S({},s,{disabled:w,labelPlacement:h,required:b,error:P.error}),E=Hoe(M),k=(o=v.typography)!=null?o:l.typography;let R=p;return R!=null&&R.type!==qn&&!f&&(R=D.jsx(qn,S({component:"span"},k,{className:xe(E.label,k==null?void 0:k.className),children:R}))),D.jsxs(Uoe,S({className:xe(E.root,i),ownerState:M,ref:n},m,{children:[u.cloneElement(a,x),b?D.jsxs(Boe,{display:"block",children:[R,D.jsxs(Woe,{ownerState:M,"aria-hidden":!0,className:E.asterisk,children:[" ","*"]})]}):R]}))}),X4=Goe;function Koe(e){return Ke("MuiFormHelperText",e)}const qoe=We("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),gR=qoe;var vR;const Yoe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Qoe=e=>{const{classes:t,contained:n,size:r,disabled:o,error:s,filled:i,focused:l,required:a}=e,c={root:["root",o&&"disabled",s&&"error",r&&`size${Pe(r)}`,n&&"contained",l&&"focused",i&&"filled",a&&"required"]};return Te(c,Koe,t)},Xoe=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})=>S({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${gR.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${gR.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Zoe=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:i="p"}=r,l=le(r,Yoe),a=Ml(),c=Vc({props:r,muiFormControl:a,states:["variant","size","disabled","error","filled","focused","required"]}),f=S({},r,{component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),p=Qoe(f);return D.jsx(Xoe,S({as:i,ownerState:f,className:xe(p.root,s),ref:n},l,{children:o===" "?vR||(vR=D.jsx("span",{className:"notranslate",children:""})):o}))}),Kd=Zoe;function Joe(e){return Ke("MuiFormLabel",e)}const ese=We("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),_p=ese,tse=["children","className","color","component","disabled","error","filled","focused","required"],nse=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,Joe,t)},rse=oe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${_p.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${_p.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${_p.error}`]:{color:(e.vars||e).palette.error.main}})),ose=oe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${_p.error}`]:{color:(e.vars||e).palette.error.main}})),sse=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiFormLabel"}),{children:o,className:s,component:i="label"}=r,l=le(r,tse),a=Ml(),c=Vc({props:r,muiFormControl:a,states:["color","required","focused","disabled","error","filled"]}),f=S({},r,{color:c.color||"primary",component:i,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),p=nse(f);return D.jsxs(rse,S({as:i,ownerState:f,className:xe(p.root,s),ref:n},l,{children:[o,c.required&&D.jsxs(ose,{ownerState:f,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}))}),Z4=sse,ise=u.createContext(),yR=ise;function lse(e){return Ke("MuiGrid",e)}const ase=[0,1,2,3,4,5,6,7,8,9,10],cse=["column-reverse","column","row-reverse","row"],use=["nowrap","wrap-reverse","wrap"],zf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],lh=We("MuiGrid",["root","container","item","zeroMinWidth",...ase.map(e=>`spacing-xs-${e}`),...cse.map(e=>`direction-xs-${e}`),...use.map(e=>`wrap-xs-${e}`),...zf.map(e=>`grid-xs-${e}`),...zf.map(e=>`grid-sm-${e}`),...zf.map(e=>`grid-md-${e}`),...zf.map(e=>`grid-lg-${e}`),...zf.map(e=>`grid-xl-${e}`)]),dse=["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 fse({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=hc({values:t.columns,breakpoints:e.breakpoints.values}),l=typeof i=="object"?i[o]:i;if(l==null)return r;const a=`${Math.round(n/l*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const f=e.spacing(t.columnSpacing);if(f!=="0px"){const p=`calc(${a} + ${rd(f)})`;c={flexBasis:p,maxWidth:p}}}s=S({flexBasis:a,flexGrow:0,maxWidth:a},c)}return e.breakpoints.values[o]===0?Object.assign(r,s):r[e.breakpoints.up(o)]=s,r},{})}function pse({theme:e,ownerState:t}){const n=hc({values:t.direction,breakpoints:e.breakpoints.values});return Ro({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${lh.item}`]={maxWidth:"none"}),o})}function J4({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 hse({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const s=hc({values:r,breakpoints:e.breakpoints.values});let i;typeof s=="object"&&(i=J4({breakpoints:e.breakpoints.values,values:s})),o=Ro({theme:e},s,(l,a)=>{var c;const f=e.spacing(l);return f!=="0px"?{marginTop:`-${rd(f)}`,[`& > .${lh.item}`]:{paddingTop:rd(f)}}:(c=i)!=null&&c.includes(a)?{}:{marginTop:0,[`& > .${lh.item}`]:{paddingTop:0}}})}return o}function mse({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const s=hc({values:r,breakpoints:e.breakpoints.values});let i;typeof s=="object"&&(i=J4({breakpoints:e.breakpoints.values,values:s})),o=Ro({theme:e},s,(l,a)=>{var c;const f=e.spacing(l);return f!=="0px"?{width:`calc(100% + ${rd(f)})`,marginLeft:`-${rd(f)}`,[`& > .${lh.item}`]:{paddingLeft:rd(f)}}:(c=i)!=null&&c.includes(a)?{}:{width:"100%",marginLeft:0,[`& > .${lh.item}`]:{paddingLeft:0}}})}return o}function gse(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 vse=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:c}=n;let f=[];r&&(f=gse(i,c,t));const p=[];return c.forEach(h=>{const y=n[h];y&&p.push(t[`grid-${h}-${String(y)}`])}),[t.root,r&&t.container,s&&t.item,a&&t.zeroMinWidth,...f,o!=="row"&&t[`direction-xs-${String(o)}`],l!=="wrap"&&t[`wrap-xs-${String(l)}`],...p]}})(({ownerState:e})=>S({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),pse,hse,mse,fse);function yse(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 bse=e=>{const{classes:t,container:n,direction:r,item:o,spacing:s,wrap:i,zeroMinWidth:l,breakpoints:a}=e;let c=[];n&&(c=yse(s,a));const f=[];a.forEach(h=>{const y=e[h];y&&f.push(`grid-${h}-${String(y)}`)});const p={root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...f]};return Te(p,lse,t)},wse=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiGrid"}),{breakpoints:o}=vn(),s=C1(r),{className:i,columns:l,columnSpacing:a,component:c="div",container:f=!1,direction:p="row",item:h=!1,rowSpacing:y,spacing:v=0,wrap:m="wrap",zeroMinWidth:C=!1}=s,w=le(s,dse),b=y||v,x=a||v,P=u.useContext(yR),M=f?l||12:P,E={},k=S({},w);o.keys.forEach(_=>{w[_]!=null&&(E[_]=w[_],delete k[_])});const R=S({},s,{columns:M,container:f,direction:p,item:h,rowSpacing:b,columnSpacing:x,wrap:m,zeroMinWidth:C,spacing:v},E,{breakpoints:o.keys}),O=bse(R);return D.jsx(yR.Provider,{value:M,children:D.jsx(vse,S({ownerState:R,className:xe(O.root,i),as:c,ref:n},k))})}),oi=wse,Cse=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Fx(e){return`scale(${e}, ${bs(e,2)})`}const xse={entering:{opacity:1,transform:Fx(1)},entered:{opacity:1,transform:"none"}},Nw=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),eN=u.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:i,in:l,onEnter:a,onEntered:c,onEntering:f,onExit:p,onExited:h,onExiting:y,style:v,timeout:m="auto",TransitionComponent:C=Dh}=t,w=le(t,Cse),b=u.useRef(),x=u.useRef(),P=vn(),M=u.useRef(null),E=kt(M,s.ref,n),k=$=>F=>{if($){const j=M.current;F===void 0?$(j):$(j,F)}},R=k(f),O=k(($,F)=>{o2($);const{duration:j,delay:A,easing:N}=_a({style:v,timeout:m,easing:i},{mode:"enter"});let H;m==="auto"?(H=P.transitions.getAutoHeightDuration($.clientHeight),x.current=H):H=j,$.style.transition=[P.transitions.create("opacity",{duration:H,delay:A}),P.transitions.create("transform",{duration:Nw?H:H*.666,delay:A,easing:N})].join(","),a&&a($,F)}),_=k(c),L=k(y),B=k($=>{const{duration:F,delay:j,easing:A}=_a({style:v,timeout:m,easing:i},{mode:"exit"});let N;m==="auto"?(N=P.transitions.getAutoHeightDuration($.clientHeight),x.current=N):N=F,$.style.transition=[P.transitions.create("opacity",{duration:N,delay:j}),P.transitions.create("transform",{duration:Nw?N:N*.666,delay:Nw?j:j||N*.333,easing:A})].join(","),$.style.opacity=0,$.style.transform=Fx(.75),p&&p($)}),z=k(h),T=$=>{m==="auto"&&(b.current=setTimeout($,x.current||0)),r&&r(M.current,$)};return u.useEffect(()=>()=>{clearTimeout(b.current)},[]),D.jsx(C,S({appear:o,in:l,nodeRef:M,onEnter:O,onEntered:_,onEntering:R,onExit:B,onExited:z,onExiting:L,addEndListener:T,timeout:m==="auto"?null:m},w,{children:($,F)=>u.cloneElement(s,S({style:S({opacity:0,transform:Fx(.75),visibility:$==="exited"&&!l?"hidden":void 0},xse[$],v,s.props.style),ref:E},F))}))});eN.muiSupportAuto=!0;const ah=eN;function Sse(e,t,n,r,o){const[s,i]=u.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Nt(()=>{let l=!0;if(!n)return;const a=n(e),c=()=>{l&&i(a.matches)};return c(),a.addListener(c),()=>{l=!1,a.removeListener(c)}},[e,n]),s}const tN=Cc["useSyncExternalStore"];function Pse(e,t,n,r,o){const s=u.useCallback(()=>t,[t]),i=u.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:f}=r(e);return()=>f}return s},[s,e,r,o,n]),[l,a]=u.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const f=n(e);return[()=>f.matches,p=>(f.addListener(p),()=>{f.removeListener(p)})]},[s,n,e]);return tN(a,l,i)}function F1(e,t={}){const n=w1(),r=typeof window!="undefined"&&typeof window.matchMedia!="undefined",{defaultMatches:o=!1,matchMedia:s=r?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:l=!1}=p4({name:"MuiUseMediaQuery",props:t,theme:n});let a=typeof e=="function"?e(n):e;return a=a.replace(/^@media( ?)/m,""),(tN!==void 0?Pse:Sse)(a,o,s,i,l)}const Ese=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],kse=e=>{const{classes:t,disableUnderline:n}=e,o=Te({root:["root",!n&&"underline"],input:["input"]},Hte,t);return S({},t,o)},Ise=oe($1,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[..._1(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),S({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${oa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${oa.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(.${oa.disabled}, .${oa.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${oa.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Mse=oe(R1,{name:"MuiInput",slot:"Input",overridesResolver:T1})({}),nN=u.forwardRef(function(t,n){var r,o,s,i;const l=je({props:t,name:"MuiInput"}),{disableUnderline:a,components:c={},componentsProps:f,fullWidth:p=!1,inputComponent:h="input",multiline:y=!1,slotProps:v,slots:m={},type:C="text"}=l,w=le(l,Ese),b=kse(l),P={root:{ownerState:{disableUnderline:a}}},M=(v!=null?v:f)?Yr(v!=null?v:f,P):P,E=(r=(o=m.root)!=null?o:c.Root)!=null?r:Ise,k=(s=(i=m.input)!=null?i:c.Input)!=null?s:Mse;return D.jsx(Wd,S({slots:{root:E,input:k},slotProps:M,fullWidth:p,inputComponent:h,multiline:y,ref:n,type:C},w,{classes:b}))});nN.muiName="Input";const rN=nN;function _se(e){return Ke("MuiInputAdornment",e)}const Tse=We("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),bR=Tse;var wR;const $se=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Rse=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Pe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Ose=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,_se,t)},Dse=oe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Rse})(({theme:e,ownerState:t})=>S({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${bR.positionStart}&:not(.${bR.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Ase=u.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:c,variant:f}=r,p=le(r,$se),h=Ml()||{};let y=f;f&&h.variant,h&&!y&&(y=h.variant);const v=S({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:l,position:c,variant:y}),m=Ose(v);return D.jsx(M1.Provider,{value:null,children:D.jsx(Dse,S({as:i,ownerState:v,className:xe(m.root,s),ref:n},p,{children:typeof o=="string"&&!a?D.jsx(qn,{color:"text.secondary",children:o}):D.jsxs(u.Fragment,{children:[c==="start"?wR||(wR=D.jsx("span",{className:"notranslate",children:""})):null,o]})}))})}),Cl=Ase;function Lse(e){return Ke("MuiInputLabel",e)}We("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Fse=["disableAnimation","margin","shrink","variant","className"],Nse=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"]},c=Te(a,Lse,t);return S({},t,c)},Bse=oe(Z4,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_p.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>S({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&S({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&S({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&S({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}),t.variant==="standard"&&{"&:not(label) + div":{marginTop:16}})),zse=u.forwardRef(function(t,n){const r=je({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:s,className:i}=r,l=le(r,Fse),a=Ml();let c=s;typeof c=="undefined"&&a&&(c=a.filled||a.focused||a.adornedStart);const f=Vc({props:r,muiFormControl:a,states:["size","variant","required","focused"]}),p=S({},r,{disableAnimation:o,formControl:a,shrink:c,size:f.size,variant:f.variant,required:f.required,focused:f.focused}),h=Nse(p);return D.jsx(Bse,S({"data-shrink":c,ownerState:p,ref:n,className:xe(h.root,i)},l,{classes:h}))}),oN=zse;function Vse(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 jse=["className","color","value","valueBuffer","variant"];let qd=e=>e,CR,xR,SR,PR,ER,kR;const Nx=4,Hse=Ui(CR||(CR=qd`
|
|
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
|
-
`)),Use=Ui(xR||(xR=qd`
|
|
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
|
-
`)),Wse=Ui(SR||(SR=qd`
|
|
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
|
-
`)),Gse=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,Vse,t)},p2=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?$c(e.palette[t].main,.62):Tc(e.palette[t].main,.5),Kse=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})=>S({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:p2(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)"})),qse=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=p2(t,e.color);return S({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},Ma(PR||(PR=qd`
|
|
235
|
-
animation: ${0} 3s infinite linear;
|
|
236
|
-
`),Wse)),Yse=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})=>S({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${Nx}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${Nx}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Ma(ER||(ER=qd`
|
|
237
|
-
width: auto;
|
|
238
|
-
animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
239
|
-
`),Hse)),Qse=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})=>S({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:p2(t,e.color),transition:`transform .${Nx}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Ma(kR||(kR=qd`
|
|
240
|
-
width: auto;
|
|
241
|
-
animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
242
|
-
`),Use)),Xse=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiLinearProgress"}),{className:o,color:s="primary",value:i,valueBuffer:l,variant:a="indeterminate"}=r,c=le(r,jse),f=S({},r,{color:s,variant:a}),p=Gse(f),h=vn(),y={},v={bar1:{},bar2:{}};if((a==="determinate"||a==="buffer")&&i!==void 0){y["aria-valuenow"]=Math.round(i),y["aria-valuemin"]=0,y["aria-valuemax"]=100;let m=i-100;h.direction==="rtl"&&(m=-m),v.bar1.transform=`translateX(${m}%)`}if(a==="buffer"&&l!==void 0){let m=(l||0)-100;h.direction==="rtl"&&(m=-m),v.bar2.transform=`translateX(${m}%)`}return D.jsxs(Kse,S({className:xe(p.root,o),ownerState:f,role:"progressbar"},y,{ref:n},c,{children:[a==="buffer"?D.jsx(qse,{className:p.dashed,ownerState:f}):null,D.jsx(Yse,{className:p.bar1,ownerState:f,style:v.bar1}),a==="determinate"?null:D.jsx(Qse,{className:p.bar2,ownerState:f,style:v.bar2})]}))}),jv=Xse;function Zse(e){return Ke("MuiLink",e)}const Jse=We("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),eie=Jse,sN={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},tie=e=>sN[e]||e,nie=({theme:e,ownerState:t})=>{const n=tie(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)},rie=nie,oie=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],sie=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,Zse,t)},iie=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})=>S({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&S({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:rie({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"},[`&.${eie.focusVisible}`]:{outline:"auto"}})),lie=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiLink"}),{className:o,color:s="primary",component:i="a",onBlur:l,onFocus:a,TypographyClasses:c,underline:f="always",variant:p="inherit",sx:h}=r,y=le(r,oie),{isFocusVisibleRef:v,onBlur:m,onFocus:C,ref:w}=Xy(),[b,x]=u.useState(!1),P=kt(n,w),M=O=>{m(O),v.current===!1&&x(!1),l&&l(O)},E=O=>{C(O),v.current===!0&&x(!0),a&&a(O)},k=S({},r,{color:s,component:i,focusVisible:b,underline:f,variant:p}),R=sie(k);return D.jsx(iie,S({color:s,className:xe(R.root,o),classes:c,component:i,onBlur:M,onFocus:E,ref:P,ownerState:k,variant:p,sx:[...Object.keys(sN).includes(s)?[]:[{color:s}],...Array.isArray(h)?h:[h]]},y))}),ts=lie,aie=u.createContext({}),ai=aie;function cie(e){return Ke("MuiList",e)}We("MuiList",["root","padding","dense","subheader"]);const uie=["children","className","component","dense","disablePadding","subheader"],die=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Te({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},cie,t)},fie=oe("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>S({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),pie=u.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:c}=r,f=le(r,uie),p=u.useMemo(()=>({dense:l}),[l]),h=S({},r,{component:i,dense:l,disablePadding:a}),y=die(h);return D.jsx(ai.Provider,{value:p,children:D.jsxs(fie,S({as:i,className:xe(y.root,s),ref:n,ownerState:h},f,{children:[c,o]}))})}),Bh=pie;function hie(e){return Ke("MuiListItem",e)}const mie=We("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Eu=mie;function gie(e){return Ke("MuiListItemButton",e)}const vie=We("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),ku=vie,yie=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],bie=(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]},wie=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:s,divider:i,selected:l}=e,c=Te({root:["root",r&&"dense",!s&&"gutters",i&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},gie,n);return S({},n,c)},Cie=oe(fi,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:bie})(({theme:e,ownerState:t})=>S({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${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.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)}},[`&.${ku.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ku.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})),xie=u.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:c=!1,divider:f=!1,focusVisibleClassName:p,selected:h=!1,className:y}=r,v=le(r,yie),m=u.useContext(ai),C=u.useMemo(()=>({dense:a||m.dense||!1,alignItems:o,disableGutters:c}),[o,m.dense,a,c]),w=u.useRef(null);Nt(()=>{s&&w.current&&w.current.focus()},[s]);const b=S({},r,{alignItems:o,dense:C.dense,disableGutters:c,divider:f,selected:h}),x=wie(b),P=kt(w,n);return D.jsx(ai.Provider,{value:C,children:D.jsx(Cie,S({ref:P,href:v.href||v.to,component:(v.href||v.to)&&i==="div"?"button":i,focusVisibleClassName:xe(x.focusVisible,p),ownerState:b,className:xe(x.root,y)},v,{classes:x,children:l}))})}),Sie=xie;function Pie(e){return Ke("MuiListItemSecondaryAction",e)}We("MuiListItemSecondaryAction",["root","disableGutters"]);const Eie=["className"],kie=e=>{const{disableGutters:t,classes:n}=e;return Te({root:["root",t&&"disableGutters"]},Pie,n)},Iie=oe("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>S({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),iN=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,s=le(r,Eie),i=u.useContext(ai),l=S({},r,{disableGutters:i.disableGutters}),a=kie(l);return D.jsx(Iie,S({className:xe(a.root,o),ownerState:l,ref:n},s))});iN.muiName="ListItemSecondaryAction";const Mie=iN,_ie=["className"],Tie=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],$ie=(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]},Rie=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:s,disableGutters:i,disablePadding:l,divider:a,hasSecondaryAction:c,selected:f}=e;return Te({root:["root",o&&"dense",!i&&"gutters",!l&&"padding",a&&"divider",s&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",f&&"selected"],container:["container"]},hie,r)},Oie=oe("div",{name:"MuiListItem",slot:"Root",overridesResolver:$ie})(({theme:e,ownerState:t})=>S({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&S({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${ku.root}`]:{paddingRight:48}},{[`&.${Eu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${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.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"}},[`&.${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)}}},t.hasSecondaryAction&&{paddingRight:48})),Die=oe("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Aie=u.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:c,components:f={},componentsProps:p={},ContainerComponent:h="li",ContainerProps:{className:y}={},dense:v=!1,disabled:m=!1,disableGutters:C=!1,disablePadding:w=!1,divider:b=!1,focusVisibleClassName:x,secondaryAction:P,selected:M=!1,slotProps:E={},slots:k={}}=r,R=le(r.ContainerProps,_ie),O=le(r,Tie),_=u.useContext(ai),L=u.useMemo(()=>({dense:v||_.dense||!1,alignItems:o,disableGutters:C}),[o,_.dense,v,C]),B=u.useRef(null);Nt(()=>{s&&B.current&&B.current.focus()},[s]);const z=u.Children.toArray(l),T=z.length&&xp(z[z.length-1],["ListItemSecondaryAction"]),$=S({},r,{alignItems:o,autoFocus:s,button:i,dense:L.dense,disabled:m,disableGutters:C,disablePadding:w,divider:b,hasSecondaryAction:T,selected:M}),F=Rie($),j=kt(B,n),A=k.root||f.Root||Oie,N=E.root||p.root||{},H=S({className:xe(F.root,N.className,a),disabled:m},O);let K=c||"li";return i&&(H.component=c||"div",H.focusVisibleClassName=xe(Eu.focusVisible,x),K=fi),T?(K=!H.component&&!c?"div":K,h==="li"&&(K==="li"?K="div":H.component==="li"&&(H.component="div")),D.jsx(ai.Provider,{value:L,children:D.jsxs(Die,S({as:h,className:xe(F.container,y),ref:j,ownerState:$},R,{children:[D.jsx(A,S({},N,!Rc(A)&&{as:K,ownerState:S({},$,N.ownerState)},H,{children:z})),z.pop()]}))})):D.jsx(ai.Provider,{value:L,children:D.jsxs(A,S({},N,{as:K,ref:j},!Rc(A)&&{ownerState:S({},$,N.ownerState)},H,{children:[z,P&&D.jsx(Mie,{children:P})]}))})}),h2=Aie;function Lie(e){return Ke("MuiListItemIcon",e)}const Fie=We("MuiListItemIcon",["root","alignItemsFlexStart"]),IR=Fie,Nie=["className"],Bie=e=>{const{alignItems:t,classes:n}=e;return Te({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Lie,n)},zie=oe("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>S({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Vie=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiListItemIcon"}),{className:o}=r,s=le(r,Nie),i=u.useContext(ai),l=S({},r,{alignItems:i.alignItems}),a=Bie(l);return D.jsx(zie,S({className:xe(a.root,o),ownerState:l,ref:n},s))}),hl=Vie;function jie(e){return Ke("MuiListItemText",e)}const Hie=We("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Hv=Hie,Uie=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Wie=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"]},jie,t)},Gie=oe("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Hv.primary}`]:t.primary},{[`& .${Hv.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>S({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Kie=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiListItemText"}),{children:o,className:s,disableTypography:i=!1,inset:l=!1,primary:a,primaryTypographyProps:c,secondary:f,secondaryTypographyProps:p}=r,h=le(r,Uie),{dense:y}=u.useContext(ai);let v=a!=null?a:o,m=f;const C=S({},r,{disableTypography:i,inset:l,primary:!!v,secondary:!!m,dense:y}),w=Wie(C);return v!=null&&v.type!==qn&&!i&&(v=D.jsx(qn,S({variant:y?"body2":"body1",className:w.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:v}))),m!=null&&m.type!==qn&&!i&&(m=D.jsx(qn,S({variant:"body2",className:w.secondary,color:"text.secondary",display:"block"},p,{children:m}))),D.jsxs(Gie,S({className:xe(w.root,s),ownerState:C,ref:n},h,{children:[v,m]}))}),Di=Kie,qie=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Bw(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function MR(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function lN(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 Vf(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")||!lN(l,s)||a)l=o(e,l,n);else return l.focus(),!0}return!1}const Yie=u.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:i,className:l,disabledItemsFocusable:a=!1,disableListWrap:c=!1,onKeyDown:f,variant:p="selectedMenu"}=t,h=le(t,qie),y=u.useRef(null),v=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Nt(()=>{o&&y.current.focus()},[o]),u.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,P)=>{const M=!y.current.style.width;if(x.clientHeight<y.current.clientHeight&&M){const E=`${BF(pn(x))}px`;y.current.style[P.direction==="rtl"?"paddingLeft":"paddingRight"]=E,y.current.style.width=`calc(100% + ${E})`}return y.current}}),[]);const m=x=>{const P=y.current,M=x.key,E=pn(P).activeElement;if(M==="ArrowDown")x.preventDefault(),Vf(P,E,c,a,Bw);else if(M==="ArrowUp")x.preventDefault(),Vf(P,E,c,a,MR);else if(M==="Home")x.preventDefault(),Vf(P,null,c,a,Bw);else if(M==="End")x.preventDefault(),Vf(P,null,c,a,MR);else if(M.length===1){const k=v.current,R=M.toLowerCase(),O=performance.now();k.keys.length>0&&(O-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&R!==k.keys[0]&&(k.repeating=!1)),k.lastTime=O,k.keys.push(R);const _=E&&!k.repeating&&lN(E,k);k.previousKeyMatched&&(_||Vf(P,E,!1,a,Bw,k))?x.preventDefault():k.previousKeyMatched=!1}f&&f(x)},C=kt(y,n);let w=-1;u.Children.forEach(i,(x,P)=>{if(!u.isValidElement(x)){w===P&&(w+=1,w>=i.length&&(w=-1));return}x.props.disabled||(p==="selectedMenu"&&x.props.selected||w===-1)&&(w=P),w===P&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(w+=1,w>=i.length&&(w=-1))});const b=u.Children.map(i,(x,P)=>{if(P===w){const M={};return s&&(M.autoFocus=!0),x.props.tabIndex===void 0&&p==="selectedMenu"&&(M.tabIndex=0),u.cloneElement(x,M)}return x});return D.jsx(Bh,S({role:"menu",ref:C,className:l,onKeyDown:m,tabIndex:o?0:-1},h,{children:b}))}),Yd=Yie;function Qie(e){return Ke("MuiPopover",e)}We("MuiPopover",["root","paper"]);const Xie=["onEntering"],Zie=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Jie=["slotProps"];function _R(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function TR(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 zw(e){return typeof e=="function"?e():e}const ele=e=>{const{classes:t}=e;return Te({root:["root"],paper:["paper"]},Qie,t)},tle=oe(L1,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),aN=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}),nle=u.forwardRef(function(t,n){var r,o,s;const i=je({props:t,name:"MuiPopover"}),{action:l,anchorEl:a,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:p="anchorEl",children:h,className:y,container:v,elevation:m=8,marginThreshold:C=16,open:w,PaperProps:b={},slots:x,slotProps:P,transformOrigin:M={vertical:"top",horizontal:"left"},TransitionComponent:E=ah,transitionDuration:k="auto",TransitionProps:{onEntering:R}={},disableScrollLock:O=!1}=i,_=le(i.TransitionProps,Xie),L=le(i,Zie),B=(r=P==null?void 0:P.paper)!=null?r:b,z=u.useRef(),T=kt(z,B.ref),$=S({},i,{anchorOrigin:c,anchorReference:p,elevation:m,marginThreshold:C,externalPaperSlotProps:B,transformOrigin:M,TransitionComponent:E,transitionDuration:k,TransitionProps:_}),F=ele($),j=u.useCallback(()=>{if(p==="anchorPosition")return f;const ce=zw(a),ke=(ce&&ce.nodeType===1?ce:pn(z.current).body).getBoundingClientRect();return{top:ke.top+_R(ke,c.vertical),left:ke.left+TR(ke,c.horizontal)}},[a,c.horizontal,c.vertical,f,p]),A=u.useCallback(ce=>({vertical:_R(ce,M.vertical),horizontal:TR(ce,M.horizontal)}),[M.horizontal,M.vertical]),N=u.useCallback(ce=>{const Se={width:ce.offsetWidth,height:ce.offsetHeight},ke=A(Se);if(p==="none")return{top:null,left:null,transformOrigin:$R(ke)};const ae=j();let Ie=ae.top-ke.vertical,ye=ae.left-ke.horizontal;const Me=Ie+Se.height,pe=ye+Se.width,fe=Jo(zw(a)),de=fe.innerHeight-C,be=fe.innerWidth-C;if(C!==null&&Ie<C){const _e=Ie-C;Ie-=_e,ke.vertical+=_e}else if(C!==null&&Me>de){const _e=Me-de;Ie-=_e,ke.vertical+=_e}if(C!==null&&ye<C){const _e=ye-C;ye-=_e,ke.horizontal+=_e}else if(pe>be){const _e=pe-be;ye-=_e,ke.horizontal+=_e}return{top:`${Math.round(Ie)}px`,left:`${Math.round(ye)}px`,transformOrigin:$R(ke)}},[a,p,j,A,C]),[H,K]=u.useState(w),Y=u.useCallback(()=>{const ce=z.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]);u.useEffect(()=>(O&&window.addEventListener("scroll",Y),()=>window.removeEventListener("scroll",Y)),[a,O,Y]);const te=(ce,Se)=>{R&&R(ce,Se),Y()},Q=()=>{K(!1)};u.useEffect(()=>{w&&Y()}),u.useImperativeHandle(l,()=>w?{updatePosition:()=>{Y()}}:null,[w,Y]),u.useEffect(()=>{if(!w)return;const ce=La(()=>{Y()}),Se=Jo(a);return Se.addEventListener("resize",ce),()=>{ce.clear(),Se.removeEventListener("resize",ce)}},[a,w,Y]);let X=k;k==="auto"&&!E.muiSupportAuto&&(X=void 0);const J=v||(a?pn(zw(a)).body:void 0),se=(o=x==null?void 0:x.root)!=null?o:tle,Z=(s=x==null?void 0:x.paper)!=null?s:aN,he=qt({elementType:Z,externalSlotProps:S({},B,{style:H?B.style:S({},B.style,{opacity:0})}),additionalProps:{elevation:m,ref:T},ownerState:$,className:xe(F.paper,B==null?void 0:B.className)}),ne=qt({elementType:se,externalSlotProps:(P==null?void 0:P.root)||{},externalForwardedProps:L,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:J,open:w},ownerState:$,className:xe(F.root,y)}),{slotProps:re}=ne,me=le(ne,Jie);return D.jsx(se,S({},me,!Rc(se)&&{slotProps:re,disableScrollLock:O},{children:D.jsx(E,S({appear:!0,in:w,onEntering:te,onExited:Q,timeout:X},_,{children:D.jsx(Z,S({},he,{children:h}))}))}))}),rle=nle;function ole(e){return Ke("MuiMenu",e)}We("MuiMenu",["root","paper","list"]);const sle=["onEntering"],ile=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],lle={vertical:"top",horizontal:"right"},ale={vertical:"top",horizontal:"left"},cle=e=>{const{classes:t}=e;return Te({root:["root"],paper:["paper"],list:["list"]},ole,t)},ule=oe(rle,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),dle=oe(aN,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),fle=oe(Yd,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ple=u.forwardRef(function(t,n){var r,o;const s=je({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:l,className:a,disableAutoFocusItem:c=!1,MenuListProps:f={},onClose:p,open:h,PaperProps:y={},PopoverClasses:v,transitionDuration:m="auto",TransitionProps:{onEntering:C}={},variant:w="selectedMenu",slots:b={},slotProps:x={}}=s,P=le(s.TransitionProps,sle),M=le(s,ile),E=vn(),k=E.direction==="rtl",R=S({},s,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:f,onEntering:C,PaperProps:y,transitionDuration:m,TransitionProps:P,variant:w}),O=cle(R),_=i&&!c&&h,L=u.useRef(null),B=(N,H)=>{L.current&&L.current.adjustStyleForScrollbar(N,E),C&&C(N,H)},z=N=>{N.key==="Tab"&&(N.preventDefault(),p&&p(N,"tabKeyDown"))};let T=-1;u.Children.map(l,(N,H)=>{u.isValidElement(N)&&(N.props.disabled||(w==="selectedMenu"&&N.props.selected||T===-1)&&(T=H))});const $=(r=b.paper)!=null?r:dle,F=(o=x.paper)!=null?o:y,j=qt({elementType:b.root,externalSlotProps:x.root,ownerState:R,className:[O.root,a]}),A=qt({elementType:$,externalSlotProps:F,ownerState:R,className:O.paper});return D.jsx(ule,S({onClose:p,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?lle:ale,slots:{paper:$,root:b.root},slotProps:{root:j,paper:A},open:h,ref:n,transitionDuration:m,TransitionProps:S({onEntering:B},P),ownerState:R},M,{classes:v,children:D.jsx(fle,S({onKeyDown:z,actions:L,autoFocus:i&&(T===-1||c),autoFocusItem:_,variant:w},f,{className:xe(O.list,f.className),children:l}))}))}),cN=ple;function hle(e){return Ke("MuiMenuItem",e)}const mle=We("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),jf=mle,gle=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],vle=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},yle=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"]},hle,i);return S({},i,a)},ble=oe(fi,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:vle})(({theme:e,ownerState:t})=>S({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${jf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${jf.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)}},[`&.${jf.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)}},[`&.${jf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${jf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${hR.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${hR.inset}`]:{marginLeft:52},[`& .${Hv.root}`]:{marginTop:0,marginBottom:0},[`& .${Hv.inset}`]:{paddingLeft:36},[`& .${IR.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&S({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${IR.root} svg`]:{fontSize:"1.25rem"}}))),wle=u.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:c,role:f="menuitem",tabIndex:p,className:h}=r,y=le(r,gle),v=u.useContext(ai),m=u.useMemo(()=>({dense:i||v.dense||!1,disableGutters:a}),[v.dense,i,a]),C=u.useRef(null);Nt(()=>{o&&C.current&&C.current.focus()},[o]);const w=S({},r,{dense:m.dense,divider:l,disableGutters:a}),b=yle(r),x=kt(C,n);let P;return r.disabled||(P=p!==void 0?p:-1),D.jsx(ai.Provider,{value:m,children:D.jsx(ble,S({ref:x,role:f,tabIndex:P,component:s,focusVisibleClassName:xe(b.focusVisible,c),className:xe(b.root,h)},y,{ownerState:w,classes:b}))})}),Pr=wle;function Cle(e){return Ke("MuiNativeSelect",e)}const xle=We("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),m2=xle,Sle=["className","disabled","error","IconComponent","inputRef","variant"],Ple=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,Cle,t)},uN=({ownerState:e,theme:t})=>S({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":S({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${m2.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}}),Ele=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,{[`&.${m2.multiple}`]:t.multiple}]}})(uN),dN=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${m2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),kle=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]}})(dN),Ile=u.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:i,inputRef:l,variant:a="standard"}=t,c=le(t,Sle),f=S({},t,{disabled:o,variant:a,error:s}),p=Ple(f);return D.jsxs(u.Fragment,{children:[D.jsx(Ele,S({ownerState:f,className:xe(p.select,r),disabled:o,ref:l||n},c)),t.multiple?null:D.jsx(kle,{as:i,ownerState:f,className:p.icon})]})}),Mle=Ile;var RR;const _le=["children","classes","className","label","notched"],Tle=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%"}),$le=oe("legend",{shouldForwardProp:Jr})(({ownerState:e,theme:t})=>S({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&S({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function Rle(e){const{className:t,label:n,notched:r}=e,o=le(e,_le),s=n!=null&&n!=="",i=S({},e,{notched:r,withLabel:s});return D.jsx(Tle,S({"aria-hidden":!0,className:t,ownerState:i},o,{children:D.jsx($le,{ownerState:i,children:s?D.jsx("span",{children:n}):RR||(RR=D.jsx("span",{className:"notranslate",children:""}))})}))}const Ole=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Dle=e=>{const{classes:t}=e,r=Te({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Wte,t);return S({},t,r)},Ale=oe($1,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:_1})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return S({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Pi.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Pi.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Pi.focused} .${Pi.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Pi.error} .${Pi.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Pi.disabled} .${Pi.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&S({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Lle=oe(Rle,{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}}),Fle=oe(R1,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:T1})(({theme:e,ownerState:t})=>S({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),fN=u.forwardRef(function(t,n){var r,o,s,i,l;const a=je({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:f=!1,inputComponent:p="input",label:h,multiline:y=!1,notched:v,slots:m={},type:C="text"}=a,w=le(a,Ole),b=Dle(a),x=Ml(),P=Vc({props:a,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),M=S({},a,{color:P.color||"primary",disabled:P.disabled,error:P.error,focused:P.focused,formControl:x,fullWidth:f,hiddenLabel:P.hiddenLabel,multiline:y,size:P.size,type:C}),E=(r=(o=m.root)!=null?o:c.Root)!=null?r:Ale,k=(s=(i=m.input)!=null?i:c.Input)!=null?s:Fle;return D.jsx(Wd,S({slots:{root:E,input:k},renderSuffix:R=>D.jsx(Lle,{ownerState:M,className:b.notchedOutline,label:h!=null&&h!==""&&P.required?l||(l=D.jsxs(u.Fragment,{children:[h," ","*"]})):h,notched:typeof v!="undefined"?v:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:f,inputComponent:p,multiline:y,ref:n,type:C},w,{classes:S({},b,{notchedOutline:null})}))});fN.muiName="Input";const pN=fN,OR=bt(D.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),DR=bt(D.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function Nle(e){return Ke("MuiSelect",e)}const Ble=We("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Hf=Ble;var AR;const zle=["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"],Vle=oe("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Hf.select}`]:t.select},{[`&.${Hf.select}`]:t[n.variant]},{[`&.${Hf.error}`]:t.error},{[`&.${Hf.multiple}`]:t.multiple}]}})(uN,{[`&.${Hf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),jle=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]}})(dN),Hle=oe("input",{shouldForwardProp:e=>eZ(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 LR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Ule(e){return e==null||typeof e=="string"&&!e.trim()}const Wle=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,Nle,t)},Gle=u.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":s,autoFocus:i,autoWidth:l,children:a,className:c,defaultOpen:f,defaultValue:p,disabled:h,displayEmpty:y,error:v=!1,IconComponent:m,inputRef:C,labelId:w,MenuProps:b={},multiple:x,name:P,onBlur:M,onChange:E,onClose:k,onFocus:R,onOpen:O,open:_,readOnly:L,renderValue:B,SelectDisplayProps:z={},tabIndex:T,value:$,variant:F="standard"}=t,j=le(t,zle),[A,N]=Qr({controlled:$,default:p,name:"Select"}),[H,K]=Qr({controlled:_,default:f,name:"Select"}),Y=u.useRef(null),te=u.useRef(null),[Q,X]=u.useState(null),{current:J}=u.useRef(_!=null),[se,Z]=u.useState(),he=kt(n,C),ne=u.useCallback(Xe=>{te.current=Xe,Xe&&X(Xe)},[]),re=Q==null?void 0:Q.parentNode;u.useImperativeHandle(he,()=>({focus:()=>{te.current.focus()},node:Y.current,value:A}),[A]),u.useEffect(()=>{f&&H&&Q&&!J&&(Z(l?null:re.clientWidth),te.current.focus())},[Q,l]),u.useEffect(()=>{i&&te.current.focus()},[i]),u.useEffect(()=>{if(!w)return;const Xe=pn(te.current).getElementById(w);if(Xe){const Oe=()=>{getSelection().isCollapsed&&te.current.focus()};return Xe.addEventListener("click",Oe),()=>{Xe.removeEventListener("click",Oe)}}},[w]);const me=(Xe,Oe)=>{Xe?O&&O(Oe):k&&k(Oe),J||(Z(l?null:re.clientWidth),K(Xe))},ce=Xe=>{Xe.button===0&&(Xe.preventDefault(),te.current.focus(),me(!0,Xe))},Se=Xe=>{me(!1,Xe)},ke=u.Children.toArray(a),ae=Xe=>{const Oe=ke.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(x){qe=Array.isArray(A)?A.slice():[];const mt=A.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),A!==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:P}}),E(vt,Xe)}x||me(!1,Oe)}},ye=Xe=>{L||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Xe.key)!==-1&&(Xe.preventDefault(),me(!0,Xe))},Me=Q!==null&&H,pe=Xe=>{!Me&&M&&(Object.defineProperty(Xe,"target",{writable:!0,value:{value:A,name:P}}),M(Xe))};delete j["aria-invalid"];let fe,de;const be=[];let _e=!1;(Vv({value:A})||y)&&(B?fe=B(A):_e=!0);const Ne=ke.map(Xe=>{if(!u.isValidElement(Xe))return null;let Oe;if(x){if(!Array.isArray(A))throw new Error(Ia(2));Oe=A.some(qe=>LR(qe,Xe.props.value)),Oe&&_e&&be.push(Xe.props.children)}else Oe=LR(A,Xe.props.value),Oe&&_e&&(de=Xe.props.children);return u.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&&(x?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&&J&&Q&&(Ge=re.clientWidth);let Ve;typeof T!="undefined"?Ve=T:Ve=h?null:0;const Ue=z.id||(P?`mui-component-select-${P}`:void 0),Le=S({},t,{variant:F,value:A,open:Me,error:v}),ht=Wle(Le),Zt=S({},b.PaperProps,(r=b.slotProps)==null?void 0:r.paper),Pt=Kt(),wt=Kt();return D.jsxs(u.Fragment,{children:[D.jsx(Vle,S({ref:ne,tabIndex:Ve,role:"combobox","aria-controls":Pt,"aria-disabled":h?"true":void 0,"aria-expanded":Me?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[w,Ue].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:ye,onMouseDown:h||L?null:ce,onBlur:pe,onFocus:R},z,{ownerState:Le,className:xe(z.className,ht.select,c),id:Ue,children:Ule(fe)?AR||(AR=D.jsx("span",{className:"notranslate",children:""})):fe})),D.jsx(Hle,S({"aria-invalid":v,value:Array.isArray(A)?A.join(","):A,name:P!=null?P:wt,ref:Y,"aria-hidden":!0,onChange:ae,tabIndex:-1,disabled:h,className:ht.nativeInput,autoFocus:i,ownerState:Le},j)),D.jsx(jle,{as:m,className:ht.icon,ownerState:Le}),D.jsx(cN,S({id:`menu-${P||""}`,anchorEl:re,open:Me,onClose:Se,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:S({"aria-labelledby":w,role:"listbox","aria-multiselectable":x?"true":void 0,disableListWrap:!0,id:Pt},b.MenuListProps),slotProps:S({},b.slotProps,{paper:S({},Zt,{style:S({minWidth:Ge},Zt!=null?Zt.style:null)})}),children:Ne}))]})}),Kle=Gle,qle=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Yle=["root"],Qle=e=>{const{classes:t}=e;return t},g2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Jr(e)&&e!=="variant",slot:"Root"},Xle=oe(rN,g2)(""),Zle=oe(pN,g2)(""),Jle=oe(Y4,g2)(""),hN=u.forwardRef(function(t,n){const r=je({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:i={},className:l,defaultOpen:a=!1,displayEmpty:c=!1,IconComponent:f=L4,id:p,input:h,inputProps:y,label:v,labelId:m,MenuProps:C,multiple:w=!1,native:b=!1,onClose:x,onOpen:P,open:M,renderValue:E,SelectDisplayProps:k,variant:R="outlined"}=r,O=le(r,qle),_=b?Mle:Kle,L=Ml(),B=Vc({props:r,muiFormControl:L,states:["variant","error"]}),z=B.variant||R,T=S({},r,{variant:z,classes:i}),$=Qle(T),F=le($,Yle),j=h||{standard:D.jsx(Xle,{ownerState:T}),outlined:D.jsx(Zle,{label:v,ownerState:T}),filled:D.jsx(Jle,{ownerState:T})}[z],A=kt(n,j.ref);return D.jsx(u.Fragment,{children:u.cloneElement(j,S({inputComponent:_,inputProps:S({children:s,error:B.error,IconComponent:f,variant:z,type:void 0,multiple:w},b?{id:p}:{autoWidth:o,defaultOpen:a,displayEmpty:c,labelId:m,MenuProps:C,onClose:x,onOpen:P,open:M,renderValue:E,SelectDisplayProps:S({id:p},k)},y,{classes:y?Yr(F,y.classes):F},h?h.props.inputProps:{})},w&&b&&z==="outlined"?{notched:!0}:{},{ref:A,className:xe(j.props.className,l,$.root)},!h&&{variant:z},O))})});hN.muiName="Select";const v2=hN;function eae(e){return Ke("MuiSkeleton",e)}We("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const tae=["animation","className","component","height","style","variant","width"];let Uv=e=>e,FR,NR,BR,zR;const nae=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"]},eae,t)},rae=Ui(FR||(FR=Uv`
|
|
243
|
-
0% {
|
|
244
|
-
opacity: 1;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
50% {
|
|
248
|
-
opacity: 0.4;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
100% {
|
|
252
|
-
opacity: 1;
|
|
253
|
-
}
|
|
254
|
-
`)),oae=Ui(NR||(NR=Uv`
|
|
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
|
-
`)),sae=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=XX(e.shape.borderRadius)||"px",r=ZX(e.shape.borderRadius);return S({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"&&Ma(BR||(BR=Uv`
|
|
268
|
-
animation: ${0} 2s ease-in-out 0.5s infinite;
|
|
269
|
-
`),rae),({ownerState:e,theme:t})=>e.animation==="wave"&&Ma(zR||(zR=Uv`
|
|
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
|
-
`),oae,(t.vars||t).palette.action.hover)),iae=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:s,component:i="span",height:l,style:a,variant:c="text",width:f}=r,p=le(r,tae),h=S({},r,{animation:o,component:i,variant:c,hasChildren:!!p.children}),y=nae(h);return D.jsx(sae,S({as:i,ref:n,className:xe(y.root,s),ownerState:h},p,{style:S({width:f,height:l},a)}))}),lae=iae;function aae(e){return Ke("MuiTooltip",e)}const cae=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),aa=cae,uae=["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 dae(e){return Math.round(e*1e5)/1e5}const fae=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,aae,t)},pae=oe(Na,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>S({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${aa.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${aa.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${aa.arrow}`]:S({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${aa.arrow}`]:S({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),hae=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})=>S({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:`${dae(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${aa.popper}[data-popper-placement*="left"] &`]:S({transformOrigin:"right center"},t.isRtl?S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):S({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${aa.popper}[data-popper-placement*="right"] &`]:S({transformOrigin:"left center"},t.isRtl?S({marginRight:"14px"},t.touch&&{marginRight:"24px"}):S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${aa.popper}[data-popper-placement*="top"] &`]:S({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${aa.popper}[data-popper-placement*="bottom"] &`]:S({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),mae=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,Vw=null,Uf={x:0,y:0};function mg(e,t){return n=>{t&&t(n),e(n)}}const gae=u.forwardRef(function(t,n){var r,o,s,i,l,a,c,f,p,h,y,v,m,C,w,b,x,P,M;const E=je({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:R,components:O={},componentsProps:_={},describeChild:L=!1,disableFocusListener:B=!1,disableHoverListener:z=!1,disableInteractive:T=!1,disableTouchListener:$=!1,enterDelay:F=100,enterNextDelay:j=0,enterTouchDelay:A=700,followCursor:N=!1,id:H,leaveDelay:K=0,leaveTouchDelay:Y=1500,onClose:te,onOpen:Q,open:X,placement:J="bottom",PopperComponent:se,PopperProps:Z={},slotProps:he={},slots:ne={},title:re,TransitionComponent:me=ah,TransitionProps:ce}=E,Se=le(E,uae),ke=u.isValidElement(R)?R:D.jsx("span",{children:R}),ae=vn(),Ie=ae.direction==="rtl",[ye,Me]=u.useState(),[pe,fe]=u.useState(null),de=u.useRef(!1),be=T||N,_e=u.useRef(),Ne=u.useRef(),Ge=u.useRef(),Ve=u.useRef(),[Ue,Le]=Qr({controlled:X,default:!1,name:"Tooltip",state:"open"});let ht=Ue;const Zt=Kt(H),Pt=u.useRef(),wt=u.useCallback(()=>{Pt.current!==void 0&&(document.body.style.WebkitUserSelect=Pt.current,Pt.current=void 0),clearTimeout(Ve.current)},[]);u.useEffect(()=>()=>{clearTimeout(_e.current),clearTimeout(Ne.current),clearTimeout(Ge.current),wt()},[wt]);const Xe=St=>{clearTimeout(Vw),hg=!0,Le(!0),Q&&!ht&&Q(St)},Oe=Ye(St=>{clearTimeout(Vw),Vw=setTimeout(()=>{hg=!1},800+K),Le(!1),te&&ht&&te(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&&j?Ne.current=setTimeout(()=>{Xe(St)},hg?j: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}=Xy(),[,Pn]=u.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=ke.props;Xn.onTouchStart&&Xn.onTouchStart(St)},vr=qe,ir=mt,$l=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)},A)},cs=St=>{ke.props.onTouchEnd&&ke.props.onTouchEnd(St),wt(),clearTimeout(Ge.current),Ge.current=setTimeout(()=>{Oe(St)},Y)};u.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=kt(ke.ref,Qt,Me,n);!re&&re!==0&&(ht=!1);const an=u.useRef(),yr=St=>{const Xn=ke.props;Xn.onMouseMove&&Xn.onMouseMove(St),Uf={x:St.clientX,y:St.clientY},an.current&&an.current.update()},ho={},us=typeof re=="string";L?(ho.title=!ht&&us&&!z?re:null,ho["aria-describedby"]=ht?Zt:null):(ho["aria-label"]=us?re:null,ho["aria-labelledby"]=ht&&!us?Zt:null);const lr=S({},ho,Se,ke.props,{className:xe(Se.className,ke.props.className),onTouchStart:Rt,ref:Tn},N?{onMouseMove:yr}:{}),Oo={};$||(lr.onTouchStart=$l,lr.onTouchEnd=cs),z||(lr.onMouseOver=mg(vr,lr.onMouseOver),lr.onMouseLeave=mg(ir,lr.onMouseLeave),be||(Oo.onMouseOver=vr,Oo.onMouseLeave=ir)),B||(lr.onFocus=mg(gt,lr.onFocus),lr.onBlur=mg(bn,lr.onBlur),be||(Oo.onFocus=gt,Oo.onBlur=bn));const gi=u.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)),S({},Z.popperOptions,{modifiers:Xn})},[pe,Z]),Mr=S({},E,{isRtl:Ie,arrow:k,disableInteractive:be,placement:J,PopperComponentProp:se,touch:de.current}),Nr=fae(Mr),Hs=(r=(o=ne.popper)!=null?o:O.Popper)!=null?r:pae,$e=(s=(i=(l=ne.transition)!=null?l:O.Transition)!=null?i:me)!=null?s:ah,Ce=(a=(c=ne.tooltip)!=null?c:O.Tooltip)!=null?a:hae,Qe=(f=(p=ne.arrow)!=null?p:O.Arrow)!=null?f:mae,ft=rp(Hs,S({},Z,(h=he.popper)!=null?h:_.popper,{className:xe(Nr.popper,Z==null?void 0:Z.className,(y=(v=he.popper)!=null?v:_.popper)==null?void 0:y.className)}),Mr),Wt=rp($e,S({},ce,(m=he.transition)!=null?m:_.transition),Mr),$n=rp(Ce,S({},(C=he.tooltip)!=null?C:_.tooltip,{className:xe(Nr.tooltip,(w=(b=he.tooltip)!=null?b:_.tooltip)==null?void 0:w.className)}),Mr),Nn=rp(Qe,S({},(x=he.arrow)!=null?x:_.arrow,{className:xe(Nr.arrow,(P=(M=he.arrow)!=null?M:_.arrow)==null?void 0:P.className)}),Mr);return D.jsxs(u.Fragment,{children:[u.cloneElement(ke,lr),D.jsx(Hs,S({as:se!=null?se:Na,placement:J,anchorEl:N?{getBoundingClientRect:()=>({top:Uf.y,left:Uf.x,right:Uf.x,bottom:Uf.y,width:0,height:0})}:ye,popperRef:an,open:ye?ht:!1,id:Zt,transition:!0},Oo,ft,{popperOptions:gi,children:({TransitionProps:St})=>D.jsx($e,S({timeout:ae.transitions.duration.shorter},St,Wt,{children:D.jsxs(Ce,S({},$n,{children:[re,k?D.jsx(Qe,S({},Nn,{ref:fe})):null]}))}))}))]})}),_l=gae;function vae(e){return Ke("MuiSwitch",e)}const yae=We("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Ur=yae,bae=["className","color","edge","size","sx"],wae=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,vae,t);return S({},t,a)},Cae=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})=>S({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${Ur.thumb}`]:{width:16,height:16},[`& .${Ur.switchBase}`]:{padding:4,[`&.${Ur.checked}`]:{transform:"translateX(16px)"}}})),xae=oe(z4,{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})=>S({"&: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"?$c(e.palette[t.color].main,.62):Tc(e.palette[t.color].main,.55)}`}},[`&.${Ur.checked} + .${Ur.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),Sae=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}`})),Pae=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%"})),Eae=u.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,c=le(r,bae),f=S({},r,{color:s,edge:i,size:l}),p=wae(f),h=D.jsx(Pae,{className:p.thumb,ownerState:f});return D.jsxs(Cae,{className:xe(p.root,o),sx:a,ownerState:f,children:[D.jsx(xae,S({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:f},c,{classes:S({},p,{root:p.switchBase})})),D.jsx(Sae,{className:p.track,ownerState:f})]})}),mN=Eae;function kae(e){return Ke("MuiTab",e)}const Iae=We("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Za=Iae,Mae=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],_ae=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:s,label:i,selected:l,disabled:a}=e,c={root:["root",s&&i&&"labelIcon",`textColor${Pe(n)}`,r&&"fullWidth",o&&"wrapped",l&&"selected",a&&"disabled"],iconWrapper:["iconWrapper"]};return Te(c,kae,t)},Tae=oe(fi,{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})=>S({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Za.iconWrapper}`]:S({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Za.selected}`]:{opacity:1},[`&.${Za.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Za.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Za.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Za.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Za.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)})),$ae=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiTab"}),{className:o,disabled:s=!1,disableFocusRipple:i=!1,fullWidth:l,icon:a,iconPosition:c="top",indicator:f,label:p,onChange:h,onClick:y,onFocus:v,selected:m,selectionFollowsFocus:C,textColor:w="inherit",value:b,wrapped:x=!1}=r,P=le(r,Mae),M=S({},r,{disabled:s,disableFocusRipple:i,selected:m,icon:!!a,iconPosition:c,label:!!p,fullWidth:l,textColor:w,wrapped:x}),E=_ae(M),k=a&&p&&u.isValidElement(a)?u.cloneElement(a,{className:xe(E.iconWrapper,a.props.className)}):a,R=_=>{!m&&h&&h(_,b),y&&y(_)},O=_=>{C&&!m&&h&&h(_,b),v&&v(_)};return D.jsxs(Tae,S({focusRipple:!i,className:xe(E.root,o),ref:n,role:"tab","aria-selected":m,disabled:s,onClick:R,onFocus:O,ownerState:M,tabIndex:m?0:-1},P,{children:[c==="top"||c==="start"?D.jsxs(u.Fragment,{children:[k,p]}):D.jsxs(u.Fragment,{children:[p,k]}),f]}))}),Wv=$ae,Rae=u.createContext(),Oae=Rae,Dae=u.createContext(),Aae=Dae;function Lae(e){return Ke("MuiTableCell",e)}const Fae=We("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Nae=Fae,Bae=["align","className","component","padding","scope","size","sortDirection","variant"],zae=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,Lae,t)},Vae=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})=>S({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
293
|
-
${e.palette.mode==="light"?$c(lt(e.palette.divider,1),.88):Tc(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",[`&.${Nae.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})),jae=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiTableCell"}),{align:o="inherit",className:s,component:i,padding:l,scope:a,size:c,sortDirection:f,variant:p}=r,h=le(r,Bae),y=u.useContext(Oae),v=u.useContext(Aae),m=v&&v.variant==="head";let C;i?C=i:C=m?"th":"td";let w=a;C==="td"?w=void 0:!w&&m&&(w="col");const b=p||v&&v.variant,x=S({},r,{align:o,component:C,padding:l||(y&&y.padding?y.padding:"normal"),size:c||(y&&y.size?y.size:"medium"),sortDirection:f,stickyHeader:b==="head"&&y&&y.stickyHeader,variant:b}),P=zae(x);let M=null;return f&&(M=f==="asc"?"ascending":"descending"),D.jsx(Vae,S({as:C,ref:n,className:xe(P.root,s),"aria-sort":M,scope:w,ownerState:x},h))}),Bx=jae;function Hae(e){return Ke("MuiToolbar",e)}We("MuiToolbar",["root","gutters","regular","dense"]);const Uae=["className","component","disableGutters","variant"],Wae=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Te({root:["root",!n&&"gutters",r]},Hae,t)},Gae=oe("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>S({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Kae=u.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,Uae),c=S({},r,{component:s,disableGutters:i,variant:l}),f=Wae(c);return D.jsx(Gae,S({as:s,className:xe(f.root,o),ref:n,ownerState:c},a))}),gN=Kae,zx=bt(D.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Vx=bt(D.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var VR,jR,HR,UR,WR,GR,KR,qR;const qae=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slotProps"],Yae=u.forwardRef(function(t,n){var r,o,s,i;const{backIconButtonProps:l,count:a,disabled:c=!1,getItemAriaLabel:f,nextIconButtonProps:p,onPageChange:h,page:y,rowsPerPage:v,showFirstButton:m,showLastButton:C,slotProps:w}=t,b=le(t,qae),x=vn(),P=R=>{h(R,0)},M=R=>{h(R,y-1)},E=R=>{h(R,y+1)},k=R=>{h(R,Math.max(0,Math.ceil(a/v)-1))};return D.jsxs("div",S({ref:n},b,{children:[m&&D.jsx(xr,S({onClick:P,disabled:c||y===0,"aria-label":f("first",y),title:f("first",y)},(r=w==null?void 0:w.firstButton)!=null?r:{},{children:x.direction==="rtl"?VR||(VR=D.jsx(DR,{})):jR||(jR=D.jsx(OR,{}))})),D.jsx(xr,S({onClick:M,disabled:c||y===0,color:"inherit","aria-label":f("previous",y),title:f("previous",y)},(o=w==null?void 0:w.previousButton)!=null?o:l,{children:x.direction==="rtl"?HR||(HR=D.jsx(Vx,{})):UR||(UR=D.jsx(zx,{}))})),D.jsx(xr,S({onClick:E,disabled:c||(a!==-1?y>=Math.ceil(a/v)-1:!1),color:"inherit","aria-label":f("next",y),title:f("next",y)},(s=w==null?void 0:w.nextButton)!=null?s:p,{children:x.direction==="rtl"?WR||(WR=D.jsx(zx,{})):GR||(GR=D.jsx(Vx,{}))})),C&&D.jsx(xr,S({onClick:k,disabled:c||y>=Math.ceil(a/v)-1,"aria-label":f("last",y),title:f("last",y)},(i=w==null?void 0:w.lastButton)!=null?i:{},{children:x.direction==="rtl"?KR||(KR=D.jsx(OR,{})):qR||(qR=D.jsx(DR,{}))}))]}))}),Qae=Yae;function Xae(e){return Ke("MuiTablePagination",e)}const Zae=We("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),gc=Zae;var YR;const Jae=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps"],ece=oe(Bx,{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}})),tce=oe(gN,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>S({[`& .${gc.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},[`& .${gc.actions}`]:{flexShrink:0,marginLeft:20}})),nce=oe("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),rce=oe("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>S({},e.typography.body2,{flexShrink:0})),oce=oe(v2,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>S({[`& .${gc.selectIcon}`]:t.selectIcon,[`& .${gc.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${gc.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),sce=oe(Pr,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),ice=oe("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>S({},e.typography.body2,{flexShrink:0}));function lce({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function ace(e){return`Go to ${e} page`}const cce=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"]},Xae,t)},uce=u.forwardRef(function(t,n){var r;const o=je({props:t,name:"MuiTablePagination"}),{ActionsComponent:s=Qae,backIconButtonProps:i,className:l,colSpan:a,component:c=Bx,count:f,disabled:p=!1,getItemAriaLabel:h=ace,labelDisplayedRows:y=lce,labelRowsPerPage:v="Rows per page:",nextIconButtonProps:m,onPageChange:C,onRowsPerPageChange:w,page:b,rowsPerPage:x,rowsPerPageOptions:P=[10,25,50,100],SelectProps:M={},showFirstButton:E=!1,showLastButton:k=!1,slotProps:R}=o,O=le(o,Jae),_=o,L=cce(_),B=(r=R==null?void 0:R.select)!=null?r:M,z=B.native?"option":sce;let T;(c===Bx||c==="td")&&(T=a||1e3);const $=Kt(B.id),F=Kt(B.labelId),j=()=>f===-1?(b+1)*x:x===-1?f:Math.min(f,(b+1)*x);return D.jsx(ece,S({colSpan:T,ref:n,as:c,ownerState:_,className:xe(L.root,l)},O,{children:D.jsxs(tce,{className:L.toolbar,children:[D.jsx(nce,{className:L.spacer}),P.length>1&&D.jsx(rce,{className:L.selectLabel,id:F,children:v}),P.length>1&&D.jsx(oce,S({variant:"standard"},!B.variant&&{input:YR||(YR=D.jsx(Wd,{}))},{value:x,onChange:w,id:$,labelId:F},B,{classes:S({},B.classes,{root:xe(L.input,L.selectRoot,(B.classes||{}).root),select:xe(L.select,(B.classes||{}).select),icon:xe(L.selectIcon,(B.classes||{}).icon)}),disabled:p,children:P.map(A=>u.createElement(z,S({},!Rc(z)&&{ownerState:_},{className:L.menuItem,key:A.label?A.label:A,value:A.value?A.value:A}),A.label?A.label:A))})),D.jsx(ice,{className:L.displayedRows,children:y({from:f===0?0:b*x+1,to:j(),count:f===-1?-1:f,page:b})}),D.jsx(s,{className:L.actions,backIconButtonProps:i,count:f,nextIconButtonProps:m,onPageChange:C,page:b,rowsPerPage:x,showFirstButton:E,showLastButton:k,slotProps:R==null?void 0:R.actions,getItemAriaLabel:h,disabled:p})]})}))}),dce=uce;function fce(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function pce(e,t,n,r={},o=()=>{}){const{ease:s=fce,duration:i=300}=r;let l=null;const a=t[e];let c=!1;const f=()=>{c=!0},p=h=>{if(c){o(new Error("Animation cancelled"));return}l===null&&(l=h);const y=Math.min(1,(h-l)/i);if(t[e]=s(y)*(n-a)+a,y>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(p)};return a===n?(o(new Error("Element already at target position")),f):(requestAnimationFrame(p),f)}const hce=["onChange"],mce={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function gce(e){const{onChange:t}=e,n=le(e,hce),r=u.useRef(),o=u.useRef(null),s=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Nt(()=>{const i=La(()=>{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]),u.useEffect(()=>{s(),t(r.current)},[t]),D.jsx("div",S({style:mce,ref:o},n))}function vce(e){return Ke("MuiTabScrollButton",e)}const yce=We("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),bce=yce,wce=["className","slots","slotProps","direction","orientation","disabled"],Cce=e=>{const{classes:t,orientation:n,disabled:r}=e;return Te({root:["root",n,r&&"disabled"]},vce,t)},xce=oe(fi,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>S({width:40,flexShrink:0,opacity:.8,[`&.${bce.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Sce=u.forwardRef(function(t,n){var r,o;const s=je({props:t,name:"MuiTabScrollButton"}),{className:i,slots:l={},slotProps:a={},direction:c}=s,f=le(s,wce),h=vn().direction==="rtl",y=S({isRtl:h},s),v=Cce(y),m=(r=l.StartScrollButtonIcon)!=null?r:zx,C=(o=l.EndScrollButtonIcon)!=null?o:Vx,w=qt({elementType:m,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:y}),b=qt({elementType:C,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:y});return D.jsx(xce,S({component:"div",className:xe(v.root,i),ref:n,role:null,ownerState:y,tabIndex:null},f,{children:c==="left"?D.jsx(m,S({},w)):D.jsx(C,S({},b))}))}),Pce=Sce;function Ece(e){return Ke("MuiTabs",e)}const kce=We("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),qg=kce,Ice=["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,XR=(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}}},Mce=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"]},Ece,a)},_ce=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})=>S({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${qg.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Tce=oe("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>S({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),$ce=oe("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>S({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Rce=oe("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>S({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Oce=oe(gce)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),ZR={},Dce=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiTabs"}),o=vn(),s=o.direction==="rtl",{"aria-label":i,"aria-labelledby":l,action:a,centered:c=!1,children:f,className:p,component:h="div",allowScrollButtonsMobile:y=!1,indicatorColor:v="primary",onChange:m,orientation:C="horizontal",ScrollButtonComponent:w=Pce,scrollButtons:b="auto",selectionFollowsFocus:x,slots:P={},slotProps:M={},TabIndicatorProps:E={},TabScrollButtonProps:k={},textColor:R="primary",value:O,variant:_="standard",visibleScrollbar:L=!1}=r,B=le(r,Ice),z=_==="scrollable",T=C==="vertical",$=T?"scrollTop":"scrollLeft",F=T?"top":"left",j=T?"bottom":"right",A=T?"clientHeight":"clientWidth",N=T?"height":"width",H=S({},r,{component:h,allowScrollButtonsMobile:y,indicatorColor:v,orientation:C,vertical:T,scrollButtons:b,textColor:R,variant:_,visibleScrollbar:L,fixed:!z,hideScrollbar:z&&!L,scrollableX:z&&!T,scrollableY:z&&T,centered:c&&!z,scrollButtonsHideMobile:!y}),K=Mce(H),Y=qt({elementType:P.StartScrollButtonIcon,externalSlotProps:M.startScrollButtonIcon,ownerState:H}),te=qt({elementType:P.EndScrollButtonIcon,externalSlotProps:M.endScrollButtonIcon,ownerState:H}),[Q,X]=u.useState(!1),[J,se]=u.useState(ZR),[Z,he]=u.useState(!1),[ne,re]=u.useState(!1),[me,ce]=u.useState(!1),[Se,ke]=u.useState({overflow:"hidden",scrollbarWidth:0}),ae=new Map,Ie=u.useRef(null),ye=u.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:jq(Oe,o.direction),scrollWidth:Oe.scrollWidth,top:vt.top,bottom:vt.bottom,left:vt.left,right:vt.right}}let mt;if(Oe&&O!==!1){const vt=ye.current.children;if(vt.length>0){const Tt=vt[ae.get(O)];mt=Tt?Tt.getBoundingClientRect():null}}return{tabsMeta:qe,tabMeta:mt}},pe=Ye(()=>{const{tabsMeta:Oe,tabMeta:qe}=Me();let mt=0,vt;if(T)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(J[vt])||isNaN(J[N]))se(Tt);else{const Yt=Math.abs(J[vt]-Tt[vt]),Qt=Math.abs(J[N]-Tt[N]);(Yt>=1||Qt>=1)&&se(Tt)}}),fe=(Oe,{animation:qe=!0}={})=>{qe?pce($,Ie.current,Oe,{duration:o.transitions.duration.standard}):Ie.current[$]=Oe},de=Oe=>{let qe=Ie.current[$];T?qe+=Oe:(qe+=Oe*(s?-1:1),qe*=s&&zF()==="reverse"?-1:1),fe(qe)},be=()=>{const Oe=Ie.current[A];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[A]>Oe){vt===0&&(qe=Oe);break}qe+=Tt[A]}return qe},_e=()=>{de(-1*be())},Ne=()=>{de(be())},Ge=u.useCallback(Oe=>{ke({overflow:null,scrollbarWidth:Oe})},[]),Ve=()=>{const Oe={};Oe.scrollbarSizeListener=z?D.jsx(Oce,{onChange:Ge,className:xe(K.scrollableX,K.hideScrollbar)}):null;const mt=z&&(b==="auto"&&(Z||ne)||b===!0);return Oe.scrollButtonStart=mt?D.jsx(w,S({slots:{StartScrollButtonIcon:P.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Y},orientation:C,direction:s?"right":"left",onClick:_e,disabled:!Z},k,{className:xe(K.scrollButtons,k.className)})):null,Oe.scrollButtonEnd=mt?D.jsx(w,S({slots:{EndScrollButtonIcon:P.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:te},orientation:C,direction:s?"left":"right",onClick:Ne,disabled:!ne},k,{className:xe(K.scrollButtons,k.className)})):null,Oe},Ue=Ye(Oe=>{const{tabsMeta:qe,tabMeta:mt}=Me();if(!(!mt||!qe)){if(mt[F]<qe[F]){const vt=qe[$]+(mt[F]-qe[F]);fe(vt,{animation:Oe})}else if(mt[j]>qe[j]){const vt=qe[$]+(mt[j]-qe[j]);fe(vt,{animation:Oe})}}}),Le=Ye(()=>{z&&b!==!1&&ce(!me)});u.useEffect(()=>{const Oe=La(()=>{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]),u.useEffect(()=>{const Oe=Array.from(ye.current.children),qe=Oe.length;if(typeof IntersectionObserver!="undefined"&&qe>0&&z&&b!==!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()}}},[z,b,me,f==null?void 0:f.length]),u.useEffect(()=>{X(!0)},[]),u.useEffect(()=>{pe()}),u.useEffect(()=>{Ue(ZR!==J)},[Ue,J]),u.useImperativeHandle(a,()=>({updateIndicator:pe,updateScrollButtons:Le}),[pe,Le]);const ht=D.jsx(Rce,S({},E,{className:xe(K.indicator,E.className),ownerState:H,style:S({},J,E.style)}));let Zt=0;const Pt=u.Children.map(f,Oe=>{if(!u.isValidElement(Oe))return null;const qe=Oe.props.value===void 0?Zt:Oe.props.value;ae.set(qe,Zt);const mt=qe===O;return Zt+=1,u.cloneElement(Oe,S({fullWidth:_==="fullWidth",indicator:mt&&!Q&&ht,selected:mt,selectionFollowsFocus:x,onChange:m,textColor:R,value:qe},Zt===1&&O===!1&&!Oe.props.tabIndex?{tabIndex:0}:{}))}),wt=Oe=>{const qe=ye.current,mt=pn(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,XR);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,XR);break}},Xe=Ve();return D.jsxs(_ce,S({className:xe(K.root,p),ownerState:H,ref:n,as:h},B,{children:[Xe.scrollButtonStart,Xe.scrollbarSizeListener,D.jsxs(Tce,{className:K.scroller,ownerState:H,style:{overflow:Se.overflow,[T?`margin${s?"Left":"Right"}`:"marginBottom"]:L?void 0:-Se.scrollbarWidth},ref:Ie,children:[D.jsx($ce,{"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}),Q&&ht]}),Xe.scrollButtonEnd]}))}),y2=Dce;function Ace(e){return Ke("MuiTextField",e)}We("MuiTextField",["root"]);const Lce=["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"],Fce={standard:rN,filled:Y4,outlined:pN},Nce=e=>{const{classes:t}=e;return Te({root:["root"]},Ace,t)},Bce=oe(Q4,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zce=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:i,className:l,color:a="primary",defaultValue:c,disabled:f=!1,error:p=!1,FormHelperTextProps:h,fullWidth:y=!1,helperText:v,id:m,InputLabelProps:C,inputProps:w,InputProps:b,inputRef:x,label:P,maxRows:M,minRows:E,multiline:k=!1,name:R,onBlur:O,onChange:_,onFocus:L,placeholder:B,required:z=!1,rows:T,select:$=!1,SelectProps:F,type:j,value:A,variant:N="outlined"}=r,H=le(r,Lce),K=S({},r,{autoFocus:s,color:a,disabled:f,error:p,fullWidth:y,multiline:k,required:z,select:$,variant:N}),Y=Nce(K),te={};N==="outlined"&&(C&&typeof C.shrink!="undefined"&&(te.notched=C.shrink),te.label=P),$&&((!F||!F.native)&&(te.id=void 0),te["aria-describedby"]=void 0);const Q=Kt(m),X=v&&Q?`${Q}-helper-text`:void 0,J=P&&Q?`${Q}-label`:void 0,se=Fce[N],Z=D.jsx(se,S({"aria-describedby":X,autoComplete:o,autoFocus:s,defaultValue:c,fullWidth:y,multiline:k,name:R,rows:T,maxRows:M,minRows:E,type:j,value:A,id:Q,inputRef:x,onBlur:O,onChange:_,onFocus:L,placeholder:B,inputProps:w},te,b));return D.jsxs(Bce,S({className:xe(Y.root,l),disabled:f,error:p,fullWidth:y,ref:n,required:z,color:a,variant:N,ownerState:K},H,{children:[P!=null&&P!==""&&D.jsx(oN,S({htmlFor:Q,id:J},C,{children:P})),$?D.jsx(v2,S({"aria-describedby":X,id:Q,labelId:J,value:A,input:Z},F,{children:i})):Z,v&&D.jsx(Kd,S({id:X},h,{children:v}))]}))}),Ba=zce;var b2={},vN={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})(vN);var et=vN.exports,jw={};const Vce=dA(uZ);var JR;function tt(){return JR||(JR=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Vce}(jw)),jw}var jce=et;Object.defineProperty(b2,"__esModule",{value:!0});var yN=b2.default=void 0,Hce=jce(tt()),Uce=Je(),Wce=(0,Hce.default)((0,Uce.jsx)("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree");yN=b2.default=Wce;var w2={},Gce=et;Object.defineProperty(w2,"__esModule",{value:!0});var bN=w2.default=void 0,Kce=Gce(tt()),qce=Je(),Yce=(0,Kce.default)((0,qce.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");bN=w2.default=Yce;var C2={},Qce=et;Object.defineProperty(C2,"__esModule",{value:!0});var wN=C2.default=void 0,Xce=Qce(tt()),Zce=Je(),Jce=(0,Xce.default)((0,Zce.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");wN=C2.default=Jce;var x2={},eue=et;Object.defineProperty(x2,"__esModule",{value:!0});var N1=x2.default=void 0,tue=eue(tt()),nue=Je(),rue=(0,tue.default)((0,nue.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");N1=x2.default=rue;var S2={},oue=et;Object.defineProperty(S2,"__esModule",{value:!0});var P2=S2.default=void 0,sue=oue(tt()),iue=Je(),lue=(0,sue.default)((0,iue.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");P2=S2.default=lue;var E2={},aue=et;Object.defineProperty(E2,"__esModule",{value:!0});var CN=E2.default=void 0,cue=aue(tt()),eO=Je(),uue=(0,cue.default)([(0,eO.jsx)("circle",{cx:"10",cy:"8",r:"4"},"0"),(0,eO.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");CN=E2.default=uue;var k2={},due=et;Object.defineProperty(k2,"__esModule",{value:!0});var xN=k2.default=void 0,fue=due(tt()),pue=Je(),hue=(0,fue.default)((0,pue.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");xN=k2.default=hue;var I2={},mue=et;Object.defineProperty(I2,"__esModule",{value:!0});var Gv=I2.default=void 0,gue=mue(tt()),vue=Je(),yue=(0,gue.default)((0,vue.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");Gv=I2.default=yue;var M2={},bue=et;Object.defineProperty(M2,"__esModule",{value:!0});var _2=M2.default=void 0,wue=bue(tt()),Cue=Je(),xue=(0,wue.default)((0,Cue.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");_2=M2.default=xue;var T2={},Sue=et;Object.defineProperty(T2,"__esModule",{value:!0});var SN=T2.default=void 0,Pue=Sue(tt()),Eue=Je(),kue=(0,Pue.default)((0,Eue.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");SN=T2.default=kue;var $2={},Iue=et;Object.defineProperty($2,"__esModule",{value:!0});var PN=$2.default=void 0,Mue=Iue(tt()),_ue=Je(),Tue=(0,Mue.default)((0,_ue.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");PN=$2.default=Tue;var Kv={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
|
-
*/Kv.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",l="Invalid `variable` option passed into `_.template`",a="__lodash_hash_undefined__",c=500,f="__lodash_placeholder__",p=1,h=2,y=4,v=1,m=2,C=1,w=2,b=4,x=8,P=16,M=32,E=64,k=128,R=256,O=512,_=30,L="...",B=800,z=16,T=1,$=2,F=3,j=1/0,A=9007199254740991,N=17976931348623157e292,H=0/0,K=4294967295,Y=K-1,te=K>>>1,Q=[["ary",k],["bind",C],["bindKey",w],["curry",x],["curryRight",P],["flip",O],["partial",M],["partialRight",E],["rearg",R]],X="[object Arguments]",J="[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]",ke="[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,$l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cs=/^\w*$/,Tn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,an=/[\\^$.*+?()[\]{}|]/g,yr=RegExp(an.source),ho=/^\s+/,us=/\s/,lr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Oo=/\{\n\/\* \[wrapped with (.+)\] \*/,gi=/,? & /,Mr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Nr=/[()=,{}\[\]\/\s]/,Hs=/\\(\\)?/g,$e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ce=/\w*$/,Qe=/^[-+]0x[0-9a-f]+$/i,ft=/^0b[01]+$/i,Wt=/^\[object .+?Constructor\]$/,$n=/^0o[0-7]+$/i,Nn=/^(?:0|[1-9]\d*)$/,St=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xn=/($^)/,Tz=/['\n\r\u2028\u2029\\]/g,nm="\\ud800-\\udfff",$z="\\u0300-\\u036f",Rz="\\ufe20-\\ufe2f",Oz="\\u20d0-\\u20ff",hI=$z+Rz+Oz,mI="\\u2700-\\u27bf",gI="a-z\\xdf-\\xf6\\xf8-\\xff",Dz="\\xac\\xb1\\xd7\\xf7",Az="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Lz="\\u2000-\\u206f",Fz=" \\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",vI="A-Z\\xc0-\\xd6\\xd8-\\xde",yI="\\ufe0e\\ufe0f",bI=Dz+Az+Lz+Fz,j0="['’]",Nz="["+nm+"]",wI="["+bI+"]",rm="["+hI+"]",CI="\\d+",Bz="["+mI+"]",xI="["+gI+"]",SI="[^"+nm+bI+CI+mI+gI+vI+"]",H0="\\ud83c[\\udffb-\\udfff]",zz="(?:"+rm+"|"+H0+")",PI="[^"+nm+"]",U0="(?:\\ud83c[\\udde6-\\uddff]){2}",W0="[\\ud800-\\udbff][\\udc00-\\udfff]",Kc="["+vI+"]",EI="\\u200d",kI="(?:"+xI+"|"+SI+")",Vz="(?:"+Kc+"|"+SI+")",II="(?:"+j0+"(?:d|ll|m|re|s|t|ve))?",MI="(?:"+j0+"(?:D|LL|M|RE|S|T|VE))?",_I=zz+"?",TI="["+yI+"]?",jz="(?:"+EI+"(?:"+[PI,U0,W0].join("|")+")"+TI+_I+")*",Hz="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Uz="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$I=TI+_I+jz,Wz="(?:"+[Bz,U0,W0].join("|")+")"+$I,Gz="(?:"+[PI+rm+"?",rm,U0,W0,Nz].join("|")+")",Kz=RegExp(j0,"g"),qz=RegExp(rm,"g"),G0=RegExp(H0+"(?="+H0+")|"+Gz+$I,"g"),Yz=RegExp([Kc+"?"+xI+"+"+II+"(?="+[wI,Kc,"$"].join("|")+")",Vz+"+"+MI+"(?="+[wI,Kc+kI,"$"].join("|")+")",Kc+"?"+kI+"+"+II,Kc+"+"+MI,Uz,Hz,CI,Wz].join("|"),"g"),Qz=RegExp("["+EI+nm+hI+yI+"]"),Xz=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Zz=["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"],Jz=-1,En={};En[Le]=En[ht]=En[Zt]=En[Pt]=En[wt]=En[Xe]=En[Oe]=En[qe]=En[mt]=!0,En[X]=En[J]=En[Ve]=En[Z]=En[Ue]=En[he]=En[re]=En[me]=En[Se]=En[ke]=En[Ie]=En[pe]=En[fe]=En[de]=En[Ne]=!1;var wn={};wn[X]=wn[J]=wn[Ve]=wn[Ue]=wn[Z]=wn[he]=wn[Le]=wn[ht]=wn[Zt]=wn[Pt]=wn[wt]=wn[Se]=wn[ke]=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 eV={À:"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"},tV={"&":"&","<":"<",">":">",'"':""","'":"'"},nV={"&":"&","<":"<",">":">",""":'"',"'":"'"},rV={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},oV=parseFloat,sV=parseInt,RI=typeof ln=="object"&&ln&&ln.Object===Object&&ln,iV=typeof self=="object"&&self&&self.Object===Object&&self,_r=RI||iV||Function("return this")(),K0=t&&!t.nodeType&&t,Ha=K0&&!0&&e&&!e.nodeType&&e,OI=Ha&&Ha.exports===K0,q0=OI&&RI.process,ds=function(){try{var ge=Ha&&Ha.require&&Ha.require("util").types;return ge||q0&&q0.binding&&q0.binding("util")}catch(Re){}}(),DI=ds&&ds.isArrayBuffer,AI=ds&&ds.isDate,LI=ds&&ds.isMap,FI=ds&&ds.isRegExp,NI=ds&&ds.isSet,BI=ds&&ds.isTypedArray;function Do(ge,Re,Ee){switch(Ee.length){case 0:return ge.call(Re);case 1:return ge.call(Re,Ee[0]);case 2:return ge.call(Re,Ee[0],Ee[1]);case 3:return ge.call(Re,Ee[0],Ee[1],Ee[2])}return ge.apply(Re,Ee)}function lV(ge,Re,Ee,it){for(var It=-1,en=ge==null?0:ge.length;++It<en;){var ur=ge[It];Re(it,ur,Ee(ur),ge)}return it}function fs(ge,Re){for(var Ee=-1,it=ge==null?0:ge.length;++Ee<it&&Re(ge[Ee],Ee,ge)!==!1;);return ge}function aV(ge,Re){for(var Ee=ge==null?0:ge.length;Ee--&&Re(ge[Ee],Ee,ge)!==!1;);return ge}function zI(ge,Re){for(var Ee=-1,it=ge==null?0:ge.length;++Ee<it;)if(!Re(ge[Ee],Ee,ge))return!1;return!0}function Rl(ge,Re){for(var Ee=-1,it=ge==null?0:ge.length,It=0,en=[];++Ee<it;){var ur=ge[Ee];Re(ur,Ee,ge)&&(en[It++]=ur)}return en}function om(ge,Re){var Ee=ge==null?0:ge.length;return!!Ee&&qc(ge,Re,0)>-1}function Y0(ge,Re,Ee){for(var it=-1,It=ge==null?0:ge.length;++it<It;)if(Ee(Re,ge[it]))return!0;return!1}function Rn(ge,Re){for(var Ee=-1,it=ge==null?0:ge.length,It=Array(it);++Ee<it;)It[Ee]=Re(ge[Ee],Ee,ge);return It}function Ol(ge,Re){for(var Ee=-1,it=Re.length,It=ge.length;++Ee<it;)ge[It+Ee]=Re[Ee];return ge}function Q0(ge,Re,Ee,it){var It=-1,en=ge==null?0:ge.length;for(it&&en&&(Ee=ge[++It]);++It<en;)Ee=Re(Ee,ge[It],It,ge);return Ee}function cV(ge,Re,Ee,it){var It=ge==null?0:ge.length;for(it&&It&&(Ee=ge[--It]);It--;)Ee=Re(Ee,ge[It],It,ge);return Ee}function X0(ge,Re){for(var Ee=-1,it=ge==null?0:ge.length;++Ee<it;)if(Re(ge[Ee],Ee,ge))return!0;return!1}var uV=Z0("length");function dV(ge){return ge.split("")}function fV(ge){return ge.match(Mr)||[]}function VI(ge,Re,Ee){var it;return Ee(ge,function(It,en,ur){if(Re(It,en,ur))return it=en,!1}),it}function sm(ge,Re,Ee,it){for(var It=ge.length,en=Ee+(it?1:-1);it?en--:++en<It;)if(Re(ge[en],en,ge))return en;return-1}function qc(ge,Re,Ee){return Re===Re?PV(ge,Re,Ee):sm(ge,jI,Ee)}function pV(ge,Re,Ee,it){for(var It=Ee-1,en=ge.length;++It<en;)if(it(ge[It],Re))return It;return-1}function jI(ge){return ge!==ge}function HI(ge,Re){var Ee=ge==null?0:ge.length;return Ee?eb(ge,Re)/Ee:H}function Z0(ge){return function(Re){return Re==null?n:Re[ge]}}function J0(ge){return function(Re){return ge==null?n:ge[Re]}}function UI(ge,Re,Ee,it,It){return It(ge,function(en,ur,yn){Ee=it?(it=!1,en):Re(Ee,en,ur,yn)}),Ee}function hV(ge,Re){var Ee=ge.length;for(ge.sort(Re);Ee--;)ge[Ee]=ge[Ee].value;return ge}function eb(ge,Re){for(var Ee,it=-1,It=ge.length;++it<It;){var en=Re(ge[it]);en!==n&&(Ee=Ee===n?en:Ee+en)}return Ee}function tb(ge,Re){for(var Ee=-1,it=Array(ge);++Ee<ge;)it[Ee]=Re(Ee);return it}function mV(ge,Re){return Rn(Re,function(Ee){return[Ee,ge[Ee]]})}function WI(ge){return ge&&ge.slice(0,YI(ge)+1).replace(ho,"")}function Ao(ge){return function(Re){return ge(Re)}}function nb(ge,Re){return Rn(Re,function(Ee){return ge[Ee]})}function pf(ge,Re){return ge.has(Re)}function GI(ge,Re){for(var Ee=-1,it=ge.length;++Ee<it&&qc(Re,ge[Ee],0)>-1;);return Ee}function KI(ge,Re){for(var Ee=ge.length;Ee--&&qc(Re,ge[Ee],0)>-1;);return Ee}function gV(ge,Re){for(var Ee=ge.length,it=0;Ee--;)ge[Ee]===Re&&++it;return it}var vV=J0(eV),yV=J0(tV);function bV(ge){return"\\"+rV[ge]}function wV(ge,Re){return ge==null?n:ge[Re]}function Yc(ge){return Qz.test(ge)}function CV(ge){return Xz.test(ge)}function xV(ge){for(var Re,Ee=[];!(Re=ge.next()).done;)Ee.push(Re.value);return Ee}function rb(ge){var Re=-1,Ee=Array(ge.size);return ge.forEach(function(it,It){Ee[++Re]=[It,it]}),Ee}function qI(ge,Re){return function(Ee){return ge(Re(Ee))}}function Dl(ge,Re){for(var Ee=-1,it=ge.length,It=0,en=[];++Ee<it;){var ur=ge[Ee];(ur===Re||ur===f)&&(ge[Ee]=f,en[It++]=Ee)}return en}function im(ge){var Re=-1,Ee=Array(ge.size);return ge.forEach(function(it){Ee[++Re]=it}),Ee}function SV(ge){var Re=-1,Ee=Array(ge.size);return ge.forEach(function(it){Ee[++Re]=[it,it]}),Ee}function PV(ge,Re,Ee){for(var it=Ee-1,It=ge.length;++it<It;)if(ge[it]===Re)return it;return-1}function EV(ge,Re,Ee){for(var it=Ee+1;it--;)if(ge[it]===Re)return it;return it}function Qc(ge){return Yc(ge)?IV(ge):uV(ge)}function Us(ge){return Yc(ge)?MV(ge):dV(ge)}function YI(ge){for(var Re=ge.length;Re--&&us.test(ge.charAt(Re)););return Re}var kV=J0(nV);function IV(ge){for(var Re=G0.lastIndex=0;G0.test(ge);)++Re;return Re}function MV(ge){return ge.match(G0)||[]}function _V(ge){return ge.match(Yz)||[]}var TV=function ge(Re){Re=Re==null?_r:Xc.defaults(_r.Object(),Re,Xc.pick(_r,Zz));var Ee=Re.Array,it=Re.Date,It=Re.Error,en=Re.Function,ur=Re.Math,yn=Re.Object,ob=Re.RegExp,$V=Re.String,ps=Re.TypeError,lm=Ee.prototype,RV=en.prototype,Zc=yn.prototype,am=Re["__core-js_shared__"],cm=RV.toString,cn=Zc.hasOwnProperty,OV=0,QI=function(){var d=/[^.]+$/.exec(am&&am.keys&&am.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}(),um=Zc.toString,DV=cm.call(yn),AV=_r._,LV=ob("^"+cm.call(cn).replace(an,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dm=OI?Re.Buffer:n,Al=Re.Symbol,fm=Re.Uint8Array,XI=dm?dm.allocUnsafe:n,pm=qI(yn.getPrototypeOf,yn),ZI=yn.create,JI=Zc.propertyIsEnumerable,hm=lm.splice,eM=Al?Al.isConcatSpreadable:n,hf=Al?Al.iterator:n,Ua=Al?Al.toStringTag:n,mm=function(){try{var d=Ya(yn,"defineProperty");return d({},"",{}),d}catch(g){}}(),FV=Re.clearTimeout!==_r.clearTimeout&&Re.clearTimeout,NV=it&&it.now!==_r.Date.now&&it.now,BV=Re.setTimeout!==_r.setTimeout&&Re.setTimeout,gm=ur.ceil,vm=ur.floor,sb=yn.getOwnPropertySymbols,zV=dm?dm.isBuffer:n,tM=Re.isFinite,VV=lm.join,jV=qI(yn.keys,yn),dr=ur.max,Br=ur.min,HV=it.now,UV=Re.parseInt,nM=ur.random,WV=lm.reverse,ib=Ya(Re,"DataView"),mf=Ya(Re,"Map"),lb=Ya(Re,"Promise"),Jc=Ya(Re,"Set"),gf=Ya(Re,"WeakMap"),vf=Ya(yn,"create"),ym=gf&&new gf,eu={},GV=Qa(ib),KV=Qa(mf),qV=Qa(lb),YV=Qa(Jc),QV=Qa(gf),bm=Al?Al.prototype:n,yf=bm?bm.valueOf:n,rM=bm?bm.toString:n;function G(d){if(Un(d)&&!Mt(d)&&!(d instanceof Ht)){if(d instanceof hs)return d;if(cn.call(d,"__wrapped__"))return o_(d)}return new hs(d)}var tu=function(){function d(){}return function(g){if(!Bn(g))return{};if(ZI)return ZI(g);d.prototype=g;var I=new d;return d.prototype=n,I}}();function wm(){}function hs(d,g){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!g,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,hs.prototype=tu(wm.prototype),hs.prototype.constructor=hs;function Ht(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function XV(){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 ZV(){if(this.__filtered__){var d=new Ht(this);d.__dir__=-1,d.__filtered__=!0}else d=this.clone(),d.__dir__*=-1;return d}function JV(){var d=this.__wrapped__.value(),g=this.__dir__,I=Mt(d),V=g<0,U=I?d.length:0,q=dH(0,U,this.__views__),ee=q.start,ie=q.end,ve=ie-ee,De=V?ie:ee-1,Fe=this.__iteratees__,Be=Fe.length,nt=0,pt=Br(ve,this.__takeCount__);if(!I||!V&&U==ve&&pt==ve)return IM(d,this.__actions__);var Ct=[];e:for(;ve--&&nt<pt;){De+=g;for(var Dt=-1,xt=d[De];++Dt<Be;){var Bt=Fe[Dt],Gt=Bt.iteratee,No=Bt.type,ro=Gt(xt);if(No==$)xt=ro;else if(!ro){if(No==T)continue e;break e}}Ct[nt++]=xt}return Ct}Ht.prototype=tu(wm.prototype),Ht.prototype.constructor=Ht;function Wa(d){var g=-1,I=d==null?0:d.length;for(this.clear();++g<I;){var V=d[g];this.set(V[0],V[1])}}function ej(){this.__data__=vf?vf(null):{},this.size=0}function tj(d){var g=this.has(d)&&delete this.__data__[d];return this.size-=g?1:0,g}function nj(d){var g=this.__data__;if(vf){var I=g[d];return I===a?n:I}return cn.call(g,d)?g[d]:n}function rj(d){var g=this.__data__;return vf?g[d]!==n:cn.call(g,d)}function oj(d,g){var I=this.__data__;return this.size+=this.has(d)?0:1,I[d]=vf&&g===n?a:g,this}Wa.prototype.clear=ej,Wa.prototype.delete=tj,Wa.prototype.get=nj,Wa.prototype.has=rj,Wa.prototype.set=oj;function Ki(d){var g=-1,I=d==null?0:d.length;for(this.clear();++g<I;){var V=d[g];this.set(V[0],V[1])}}function sj(){this.__data__=[],this.size=0}function ij(d){var g=this.__data__,I=Cm(g,d);if(I<0)return!1;var V=g.length-1;return I==V?g.pop():hm.call(g,I,1),--this.size,!0}function lj(d){var g=this.__data__,I=Cm(g,d);return I<0?n:g[I][1]}function aj(d){return Cm(this.__data__,d)>-1}function cj(d,g){var I=this.__data__,V=Cm(I,d);return V<0?(++this.size,I.push([d,g])):I[V][1]=g,this}Ki.prototype.clear=sj,Ki.prototype.delete=ij,Ki.prototype.get=lj,Ki.prototype.has=aj,Ki.prototype.set=cj;function qi(d){var g=-1,I=d==null?0:d.length;for(this.clear();++g<I;){var V=d[g];this.set(V[0],V[1])}}function uj(){this.size=0,this.__data__={hash:new Wa,map:new(mf||Ki),string:new Wa}}function dj(d){var g=Om(this,d).delete(d);return this.size-=g?1:0,g}function fj(d){return Om(this,d).get(d)}function pj(d){return Om(this,d).has(d)}function hj(d,g){var I=Om(this,d),V=I.size;return I.set(d,g),this.size+=I.size==V?0:1,this}qi.prototype.clear=uj,qi.prototype.delete=dj,qi.prototype.get=fj,qi.prototype.has=pj,qi.prototype.set=hj;function Ga(d){var g=-1,I=d==null?0:d.length;for(this.__data__=new qi;++g<I;)this.add(d[g])}function mj(d){return this.__data__.set(d,a),this}function gj(d){return this.__data__.has(d)}Ga.prototype.add=Ga.prototype.push=mj,Ga.prototype.has=gj;function Ws(d){var g=this.__data__=new Ki(d);this.size=g.size}function vj(){this.__data__=new Ki,this.size=0}function yj(d){var g=this.__data__,I=g.delete(d);return this.size=g.size,I}function bj(d){return this.__data__.get(d)}function wj(d){return this.__data__.has(d)}function Cj(d,g){var I=this.__data__;if(I instanceof Ki){var V=I.__data__;if(!mf||V.length<o-1)return V.push([d,g]),this.size=++I.size,this;I=this.__data__=new qi(V)}return I.set(d,g),this.size=I.size,this}Ws.prototype.clear=vj,Ws.prototype.delete=yj,Ws.prototype.get=bj,Ws.prototype.has=wj,Ws.prototype.set=Cj;function oM(d,g){var I=Mt(d),V=!I&&Xa(d),U=!I&&!V&&zl(d),q=!I&&!V&&!U&&su(d),ee=I||V||U||q,ie=ee?tb(d.length,$V):[],ve=ie.length;for(var De in d)(g||cn.call(d,De))&&!(ee&&(De=="length"||U&&(De=="offset"||De=="parent")||q&&(De=="buffer"||De=="byteLength"||De=="byteOffset")||Zi(De,ve)))&&ie.push(De);return ie}function sM(d){var g=d.length;return g?d[yb(0,g-1)]:n}function xj(d,g){return Dm(mo(d),Ka(g,0,d.length))}function Sj(d){return Dm(mo(d))}function ab(d,g,I){(I!==n&&!Gs(d[g],I)||I===n&&!(g in d))&&Yi(d,g,I)}function bf(d,g,I){var V=d[g];(!(cn.call(d,g)&&Gs(V,I))||I===n&&!(g in d))&&Yi(d,g,I)}function Cm(d,g){for(var I=d.length;I--;)if(Gs(d[I][0],g))return I;return-1}function Pj(d,g,I,V){return Ll(d,function(U,q,ee){g(V,U,I(U),ee)}),V}function iM(d,g){return d&&yi(g,br(g),d)}function Ej(d,g){return d&&yi(g,vo(g),d)}function Yi(d,g,I){g=="__proto__"&&mm?mm(d,g,{configurable:!0,enumerable:!0,value:I,writable:!0}):d[g]=I}function cb(d,g){for(var I=-1,V=g.length,U=Ee(V),q=d==null;++I<V;)U[I]=q?n:Hb(d,g[I]);return U}function Ka(d,g,I){return d===d&&(I!==n&&(d=d<=I?d:I),g!==n&&(d=d>=g?d:g)),d}function ms(d,g,I,V,U,q){var ee,ie=g&p,ve=g&h,De=g&y;if(I&&(ee=U?I(d,V,U,q):I(d)),ee!==n)return ee;if(!Bn(d))return d;var Fe=Mt(d);if(Fe){if(ee=pH(d),!ie)return mo(d,ee)}else{var Be=zr(d),nt=Be==me||Be==ce;if(zl(d))return TM(d,ie);if(Be==Ie||Be==X||nt&&!U){if(ee=ve||nt?{}:YM(d),!ie)return ve?nH(d,Ej(ee,d)):tH(d,iM(ee,d))}else{if(!wn[Be])return U?d:{};ee=hH(d,Be,ie)}}q||(q=new Ws);var pt=q.get(d);if(pt)return pt;q.set(d,ee),P_(d)?d.forEach(function(xt){ee.add(ms(xt,g,I,xt,d,q))}):x_(d)&&d.forEach(function(xt,Bt){ee.set(Bt,ms(xt,g,I,Bt,d,q))});var Ct=De?ve?_b:Mb:ve?vo:br,Dt=Fe?n:Ct(d);return fs(Dt||d,function(xt,Bt){Dt&&(Bt=xt,xt=d[Bt]),bf(ee,Bt,ms(xt,g,I,Bt,d,q))}),ee}function kj(d){var g=br(d);return function(I){return lM(I,d,g)}}function lM(d,g,I){var V=I.length;if(d==null)return!V;for(d=yn(d);V--;){var U=I[V],q=g[U],ee=d[U];if(ee===n&&!(U in d)||!q(ee))return!1}return!0}function aM(d,g,I){if(typeof d!="function")throw new ps(i);return kf(function(){d.apply(n,I)},g)}function wf(d,g,I,V){var U=-1,q=om,ee=!0,ie=d.length,ve=[],De=g.length;if(!ie)return ve;I&&(g=Rn(g,Ao(I))),V?(q=Y0,ee=!1):g.length>=o&&(q=pf,ee=!1,g=new Ga(g));e:for(;++U<ie;){var Fe=d[U],Be=I==null?Fe:I(Fe);if(Fe=V||Fe!==0?Fe:0,ee&&Be===Be){for(var nt=De;nt--;)if(g[nt]===Be)continue e;ve.push(Fe)}else q(g,Be,V)||ve.push(Fe)}return ve}var Ll=AM(vi),cM=AM(db,!0);function Ij(d,g){var I=!0;return Ll(d,function(V,U,q){return I=!!g(V,U,q),I}),I}function xm(d,g,I){for(var V=-1,U=d.length;++V<U;){var q=d[V],ee=g(q);if(ee!=null&&(ie===n?ee===ee&&!Fo(ee):I(ee,ie)))var ie=ee,ve=q}return ve}function Mj(d,g,I,V){var U=d.length;for(I=Ot(I),I<0&&(I=-I>U?0:U+I),V=V===n||V>U?U:Ot(V),V<0&&(V+=U),V=I>V?0:k_(V);I<V;)d[I++]=g;return d}function uM(d,g){var I=[];return Ll(d,function(V,U,q){g(V,U,q)&&I.push(V)}),I}function Tr(d,g,I,V,U){var q=-1,ee=d.length;for(I||(I=gH),U||(U=[]);++q<ee;){var ie=d[q];g>0&&I(ie)?g>1?Tr(ie,g-1,I,V,U):Ol(U,ie):V||(U[U.length]=ie)}return U}var ub=LM(),dM=LM(!0);function vi(d,g){return d&&ub(d,g,br)}function db(d,g){return d&&dM(d,g,br)}function Sm(d,g){return Rl(g,function(I){return Ji(d[I])})}function qa(d,g){g=Nl(g,d);for(var I=0,V=g.length;d!=null&&I<V;)d=d[bi(g[I++])];return I&&I==V?d:n}function fM(d,g,I){var V=g(d);return Mt(d)?V:Ol(V,I(d))}function to(d){return d==null?d===n?_e:ae:Ua&&Ua in yn(d)?uH(d):SH(d)}function fb(d,g){return d>g}function _j(d,g){return d!=null&&cn.call(d,g)}function Tj(d,g){return d!=null&&g in yn(d)}function $j(d,g,I){return d>=Br(g,I)&&d<dr(g,I)}function pb(d,g,I){for(var V=I?Y0:om,U=d[0].length,q=d.length,ee=q,ie=Ee(q),ve=1/0,De=[];ee--;){var Fe=d[ee];ee&&g&&(Fe=Rn(Fe,Ao(g))),ve=Br(Fe.length,ve),ie[ee]=!I&&(g||U>=120&&Fe.length>=120)?new Ga(ee&&Fe):n}Fe=d[0];var Be=-1,nt=ie[0];e:for(;++Be<U&&De.length<ve;){var pt=Fe[Be],Ct=g?g(pt):pt;if(pt=I||pt!==0?pt:0,!(nt?pf(nt,Ct):V(De,Ct,I))){for(ee=q;--ee;){var Dt=ie[ee];if(!(Dt?pf(Dt,Ct):V(d[ee],Ct,I)))continue e}nt&&nt.push(Ct),De.push(pt)}}return De}function Rj(d,g,I,V){return vi(d,function(U,q,ee){g(V,I(U),q,ee)}),V}function Cf(d,g,I){g=Nl(g,d),d=JM(d,g);var V=d==null?d:d[bi(vs(g))];return V==null?n:Do(V,d,I)}function pM(d){return Un(d)&&to(d)==X}function Oj(d){return Un(d)&&to(d)==Ve}function Dj(d){return Un(d)&&to(d)==he}function xf(d,g,I,V,U){return d===g?!0:d==null||g==null||!Un(d)&&!Un(g)?d!==d&&g!==g:Aj(d,g,I,V,xf,U)}function Aj(d,g,I,V,U,q){var ee=Mt(d),ie=Mt(g),ve=ee?J:zr(d),De=ie?J:zr(g);ve=ve==X?Ie:ve,De=De==X?Ie:De;var Fe=ve==Ie,Be=De==Ie,nt=ve==De;if(nt&&zl(d)){if(!zl(g))return!1;ee=!0,Fe=!1}if(nt&&!Fe)return q||(q=new Ws),ee||su(d)?GM(d,g,I,V,U,q):aH(d,g,ve,I,V,U,q);if(!(I&v)){var pt=Fe&&cn.call(d,"__wrapped__"),Ct=Be&&cn.call(g,"__wrapped__");if(pt||Ct){var Dt=pt?d.value():d,xt=Ct?g.value():g;return q||(q=new Ws),U(Dt,xt,I,V,q)}}return nt?(q||(q=new Ws),cH(d,g,I,V,U,q)):!1}function Lj(d){return Un(d)&&zr(d)==Se}function hb(d,g,I,V){var U=I.length,q=U,ee=!V;if(d==null)return!q;for(d=yn(d);U--;){var ie=I[U];if(ee&&ie[2]?ie[1]!==d[ie[0]]:!(ie[0]in d))return!1}for(;++U<q;){ie=I[U];var ve=ie[0],De=d[ve],Fe=ie[1];if(ee&&ie[2]){if(De===n&&!(ve in d))return!1}else{var Be=new Ws;if(V)var nt=V(De,Fe,ve,d,g,Be);if(!(nt===n?xf(Fe,De,v|m,V,Be):nt))return!1}}return!0}function hM(d){if(!Bn(d)||yH(d))return!1;var g=Ji(d)?LV:Wt;return g.test(Qa(d))}function Fj(d){return Un(d)&&to(d)==pe}function Nj(d){return Un(d)&&zr(d)==fe}function Bj(d){return Un(d)&&zm(d.length)&&!!En[to(d)]}function mM(d){return typeof d=="function"?d:d==null?yo:typeof d=="object"?Mt(d)?yM(d[0],d[1]):vM(d):F_(d)}function mb(d){if(!Ef(d))return jV(d);var g=[];for(var I in yn(d))cn.call(d,I)&&I!="constructor"&&g.push(I);return g}function zj(d){if(!Bn(d))return xH(d);var g=Ef(d),I=[];for(var V in d)V=="constructor"&&(g||!cn.call(d,V))||I.push(V);return I}function gb(d,g){return d<g}function gM(d,g){var I=-1,V=go(d)?Ee(d.length):[];return Ll(d,function(U,q,ee){V[++I]=g(U,q,ee)}),V}function vM(d){var g=$b(d);return g.length==1&&g[0][2]?XM(g[0][0],g[0][1]):function(I){return I===d||hb(I,d,g)}}function yM(d,g){return Ob(d)&&QM(g)?XM(bi(d),g):function(I){var V=Hb(I,d);return V===n&&V===g?Ub(I,d):xf(g,V,v|m)}}function Pm(d,g,I,V,U){d!==g&&ub(g,function(q,ee){if(U||(U=new Ws),Bn(q))Vj(d,g,ee,I,Pm,V,U);else{var ie=V?V(Ab(d,ee),q,ee+"",d,g,U):n;ie===n&&(ie=q),ab(d,ee,ie)}},vo)}function Vj(d,g,I,V,U,q,ee){var ie=Ab(d,I),ve=Ab(g,I),De=ee.get(ve);if(De){ab(d,I,De);return}var Fe=q?q(ie,ve,I+"",d,g,ee):n,Be=Fe===n;if(Be){var nt=Mt(ve),pt=!nt&&zl(ve),Ct=!nt&&!pt&&su(ve);Fe=ve,nt||pt||Ct?Mt(ie)?Fe=ie:Zn(ie)?Fe=mo(ie):pt?(Be=!1,Fe=TM(ve,!0)):Ct?(Be=!1,Fe=$M(ve,!0)):Fe=[]:If(ve)||Xa(ve)?(Fe=ie,Xa(ie)?Fe=I_(ie):(!Bn(ie)||Ji(ie))&&(Fe=YM(ve))):Be=!1}Be&&(ee.set(ve,Fe),U(Fe,ve,V,q,ee),ee.delete(ve)),ab(d,I,Fe)}function bM(d,g){var I=d.length;if(I)return g+=g<0?I:0,Zi(g,I)?d[g]:n}function wM(d,g,I){g.length?g=Rn(g,function(q){return Mt(q)?function(ee){return qa(ee,q.length===1?q[0]:q)}:q}):g=[yo];var V=-1;g=Rn(g,Ao(yt()));var U=gM(d,function(q,ee,ie){var ve=Rn(g,function(De){return De(q)});return{criteria:ve,index:++V,value:q}});return hV(U,function(q,ee){return eH(q,ee,I)})}function jj(d,g){return CM(d,g,function(I,V){return Ub(d,V)})}function CM(d,g,I){for(var V=-1,U=g.length,q={};++V<U;){var ee=g[V],ie=qa(d,ee);I(ie,ee)&&Sf(q,Nl(ee,d),ie)}return q}function Hj(d){return function(g){return qa(g,d)}}function vb(d,g,I,V){var U=V?pV:qc,q=-1,ee=g.length,ie=d;for(d===g&&(g=mo(g)),I&&(ie=Rn(d,Ao(I)));++q<ee;)for(var ve=0,De=g[q],Fe=I?I(De):De;(ve=U(ie,Fe,ve,V))>-1;)ie!==d&&hm.call(ie,ve,1),hm.call(d,ve,1);return d}function xM(d,g){for(var I=d?g.length:0,V=I-1;I--;){var U=g[I];if(I==V||U!==q){var q=U;Zi(U)?hm.call(d,U,1):Cb(d,U)}}return d}function yb(d,g){return d+vm(nM()*(g-d+1))}function Uj(d,g,I,V){for(var U=-1,q=dr(gm((g-d)/(I||1)),0),ee=Ee(q);q--;)ee[V?q:++U]=d,d+=I;return ee}function bb(d,g){var I="";if(!d||g<1||g>A)return I;do g%2&&(I+=d),g=vm(g/2),g&&(d+=d);while(g);return I}function Ft(d,g){return Lb(ZM(d,g,yo),d+"")}function Wj(d){return sM(iu(d))}function Gj(d,g){var I=iu(d);return Dm(I,Ka(g,0,I.length))}function Sf(d,g,I,V){if(!Bn(d))return d;g=Nl(g,d);for(var U=-1,q=g.length,ee=q-1,ie=d;ie!=null&&++U<q;){var ve=bi(g[U]),De=I;if(ve==="__proto__"||ve==="constructor"||ve==="prototype")return d;if(U!=ee){var Fe=ie[ve];De=V?V(Fe,ve,ie):n,De===n&&(De=Bn(Fe)?Fe:Zi(g[U+1])?[]:{})}bf(ie,ve,De),ie=ie[ve]}return d}var SM=ym?function(d,g){return ym.set(d,g),d}:yo,Kj=mm?function(d,g){return mm(d,"toString",{configurable:!0,enumerable:!1,value:Gb(g),writable:!0})}:yo;function qj(d){return Dm(iu(d))}function gs(d,g,I){var V=-1,U=d.length;g<0&&(g=-g>U?0:U+g),I=I>U?U:I,I<0&&(I+=U),U=g>I?0:I-g>>>0,g>>>=0;for(var q=Ee(U);++V<U;)q[V]=d[V+g];return q}function Yj(d,g){var I;return Ll(d,function(V,U,q){return I=g(V,U,q),!I}),!!I}function Em(d,g,I){var V=0,U=d==null?V:d.length;if(typeof g=="number"&&g===g&&U<=te){for(;V<U;){var q=V+U>>>1,ee=d[q];ee!==null&&!Fo(ee)&&(I?ee<=g:ee<g)?V=q+1:U=q}return U}return wb(d,g,yo,I)}function wb(d,g,I,V){var U=0,q=d==null?0:d.length;if(q===0)return 0;g=I(g);for(var ee=g!==g,ie=g===null,ve=Fo(g),De=g===n;U<q;){var Fe=vm((U+q)/2),Be=I(d[Fe]),nt=Be!==n,pt=Be===null,Ct=Be===Be,Dt=Fo(Be);if(ee)var xt=V||Ct;else De?xt=Ct&&(V||nt):ie?xt=Ct&&nt&&(V||!pt):ve?xt=Ct&&nt&&!pt&&(V||!Dt):pt||Dt?xt=!1:xt=V?Be<=g:Be<g;xt?U=Fe+1:q=Fe}return Br(q,Y)}function PM(d,g){for(var I=-1,V=d.length,U=0,q=[];++I<V;){var ee=d[I],ie=g?g(ee):ee;if(!I||!Gs(ie,ve)){var ve=ie;q[U++]=ee===0?0:ee}}return q}function EM(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 rM?rM.call(d):"";var g=d+"";return g=="0"&&1/d==-j?"-0":g}function Fl(d,g,I){var V=-1,U=om,q=d.length,ee=!0,ie=[],ve=ie;if(I)ee=!1,U=Y0;else if(q>=o){var De=g?null:iH(d);if(De)return im(De);ee=!1,U=pf,ve=new Ga}else ve=g?[]:ie;e:for(;++V<q;){var Fe=d[V],Be=g?g(Fe):Fe;if(Fe=I||Fe!==0?Fe:0,ee&&Be===Be){for(var nt=ve.length;nt--;)if(ve[nt]===Be)continue e;g&&ve.push(Be),ie.push(Fe)}else U(ve,Be,I)||(ve!==ie&&ve.push(Be),ie.push(Fe))}return ie}function Cb(d,g){return g=Nl(g,d),d=JM(d,g),d==null||delete d[bi(vs(g))]}function kM(d,g,I,V){return Sf(d,g,I(qa(d,g)),V)}function km(d,g,I,V){for(var U=d.length,q=V?U:-1;(V?q--:++q<U)&&g(d[q],q,d););return I?gs(d,V?0:q,V?q+1:U):gs(d,V?q+1:0,V?U:q)}function IM(d,g){var I=d;return I instanceof Ht&&(I=I.value()),Q0(g,function(V,U){return U.func.apply(U.thisArg,Ol([V],U.args))},I)}function xb(d,g,I){var V=d.length;if(V<2)return V?Fl(d[0]):[];for(var U=-1,q=Ee(V);++U<V;)for(var ee=d[U],ie=-1;++ie<V;)ie!=U&&(q[U]=wf(q[U]||ee,d[ie],g,I));return Fl(Tr(q,1),g,I)}function MM(d,g,I){for(var V=-1,U=d.length,q=g.length,ee={};++V<U;){var ie=V<q?g[V]:n;I(ee,d[V],ie)}return ee}function Sb(d){return Zn(d)?d:[]}function Pb(d){return typeof d=="function"?d:yo}function Nl(d,g){return Mt(d)?d:Ob(d,g)?[d]:r_(sn(d))}var Qj=Ft;function Bl(d,g,I){var V=d.length;return I=I===n?V:I,!g&&I>=V?d:gs(d,g,I)}var _M=FV||function(d){return _r.clearTimeout(d)};function TM(d,g){if(g)return d.slice();var I=d.length,V=XI?XI(I):new d.constructor(I);return d.copy(V),V}function Eb(d){var g=new d.constructor(d.byteLength);return new fm(g).set(new fm(d)),g}function Xj(d,g){var I=g?Eb(d.buffer):d.buffer;return new d.constructor(I,d.byteOffset,d.byteLength)}function Zj(d){var g=new d.constructor(d.source,Ce.exec(d));return g.lastIndex=d.lastIndex,g}function Jj(d){return yf?yn(yf.call(d)):{}}function $M(d,g){var I=g?Eb(d.buffer):d.buffer;return new d.constructor(I,d.byteOffset,d.length)}function RM(d,g){if(d!==g){var I=d!==n,V=d===null,U=d===d,q=Fo(d),ee=g!==n,ie=g===null,ve=g===g,De=Fo(g);if(!ie&&!De&&!q&&d>g||q&&ee&&ve&&!ie&&!De||V&&ee&&ve||!I&&ve||!U)return 1;if(!V&&!q&&!De&&d<g||De&&I&&U&&!V&&!q||ie&&I&&U||!ee&&U||!ve)return-1}return 0}function eH(d,g,I){for(var V=-1,U=d.criteria,q=g.criteria,ee=U.length,ie=I.length;++V<ee;){var ve=RM(U[V],q[V]);if(ve){if(V>=ie)return ve;var De=I[V];return ve*(De=="desc"?-1:1)}}return d.index-g.index}function OM(d,g,I,V){for(var U=-1,q=d.length,ee=I.length,ie=-1,ve=g.length,De=dr(q-ee,0),Fe=Ee(ve+De),Be=!V;++ie<ve;)Fe[ie]=g[ie];for(;++U<ee;)(Be||U<q)&&(Fe[I[U]]=d[U]);for(;De--;)Fe[ie++]=d[U++];return Fe}function DM(d,g,I,V){for(var U=-1,q=d.length,ee=-1,ie=I.length,ve=-1,De=g.length,Fe=dr(q-ie,0),Be=Ee(Fe+De),nt=!V;++U<Fe;)Be[U]=d[U];for(var pt=U;++ve<De;)Be[pt+ve]=g[ve];for(;++ee<ie;)(nt||U<q)&&(Be[pt+I[ee]]=d[U++]);return Be}function mo(d,g){var I=-1,V=d.length;for(g||(g=Ee(V));++I<V;)g[I]=d[I];return g}function yi(d,g,I,V){var U=!I;I||(I={});for(var q=-1,ee=g.length;++q<ee;){var ie=g[q],ve=V?V(I[ie],d[ie],ie,I,d):n;ve===n&&(ve=d[ie]),U?Yi(I,ie,ve):bf(I,ie,ve)}return I}function tH(d,g){return yi(d,Rb(d),g)}function nH(d,g){return yi(d,KM(d),g)}function Im(d,g){return function(I,V){var U=Mt(I)?lV:Pj,q=g?g():{};return U(I,d,yt(V,2),q)}}function nu(d){return Ft(function(g,I){var V=-1,U=I.length,q=U>1?I[U-1]:n,ee=U>2?I[2]:n;for(q=d.length>3&&typeof q=="function"?(U--,q):n,ee&&no(I[0],I[1],ee)&&(q=U<3?n:q,U=1),g=yn(g);++V<U;){var ie=I[V];ie&&d(g,ie,V,q)}return g})}function AM(d,g){return function(I,V){if(I==null)return I;if(!go(I))return d(I,V);for(var U=I.length,q=g?U:-1,ee=yn(I);(g?q--:++q<U)&&V(ee[q],q,ee)!==!1;);return I}}function LM(d){return function(g,I,V){for(var U=-1,q=yn(g),ee=V(g),ie=ee.length;ie--;){var ve=ee[d?ie:++U];if(I(q[ve],ve,q)===!1)break}return g}}function rH(d,g,I){var V=g&C,U=Pf(d);function q(){var ee=this&&this!==_r&&this instanceof q?U:d;return ee.apply(V?I:this,arguments)}return q}function FM(d){return function(g){g=sn(g);var I=Yc(g)?Us(g):n,V=I?I[0]:g.charAt(0),U=I?Bl(I,1).join(""):g.slice(1);return V[d]()+U}}function ru(d){return function(g){return Q0(A_(D_(g).replace(Kz,"")),d,"")}}function Pf(d){return function(){var g=arguments;switch(g.length){case 0:return new d;case 1:return new d(g[0]);case 2:return new d(g[0],g[1]);case 3:return new d(g[0],g[1],g[2]);case 4:return new d(g[0],g[1],g[2],g[3]);case 5:return new d(g[0],g[1],g[2],g[3],g[4]);case 6:return new d(g[0],g[1],g[2],g[3],g[4],g[5]);case 7:return new d(g[0],g[1],g[2],g[3],g[4],g[5],g[6])}var I=tu(d.prototype),V=d.apply(I,g);return Bn(V)?V:I}}function oH(d,g,I){var V=Pf(d);function U(){for(var q=arguments.length,ee=Ee(q),ie=q,ve=ou(U);ie--;)ee[ie]=arguments[ie];var De=q<3&&ee[0]!==ve&&ee[q-1]!==ve?[]:Dl(ee,ve);if(q-=De.length,q<I)return jM(d,g,Mm,U.placeholder,n,ee,De,n,n,I-q);var Fe=this&&this!==_r&&this instanceof U?V:d;return Do(Fe,this,ee)}return U}function NM(d){return function(g,I,V){var U=yn(g);if(!go(g)){var q=yt(I,3);g=br(g),I=function(ie){return q(U[ie],ie,U)}}var ee=d(g,I,V);return ee>-1?U[q?g[ee]:ee]:n}}function BM(d){return Xi(function(g){var I=g.length,V=I,U=hs.prototype.thru;for(d&&g.reverse();V--;){var q=g[V];if(typeof q!="function")throw new ps(i);if(U&&!ee&&Rm(q)=="wrapper")var ee=new hs([],!0)}for(V=ee?V:I;++V<I;){q=g[V];var ie=Rm(q),ve=ie=="wrapper"?Tb(q):n;ve&&Db(ve[0])&&ve[1]==(k|x|M|R)&&!ve[4].length&&ve[9]==1?ee=ee[Rm(ve[0])].apply(ee,ve[3]):ee=q.length==1&&Db(q)?ee[ie]():ee.thru(q)}return function(){var De=arguments,Fe=De[0];if(ee&&De.length==1&&Mt(Fe))return ee.plant(Fe).value();for(var Be=0,nt=I?g[Be].apply(this,De):Fe;++Be<I;)nt=g[Be].call(this,nt);return nt}})}function Mm(d,g,I,V,U,q,ee,ie,ve,De){var Fe=g&k,Be=g&C,nt=g&w,pt=g&(x|P),Ct=g&O,Dt=nt?n:Pf(d);function xt(){for(var Bt=arguments.length,Gt=Ee(Bt),No=Bt;No--;)Gt[No]=arguments[No];if(pt)var ro=ou(xt),Bo=gV(Gt,ro);if(V&&(Gt=OM(Gt,V,U,pt)),q&&(Gt=DM(Gt,q,ee,pt)),Bt-=Bo,pt&&Bt<De){var Jn=Dl(Gt,ro);return jM(d,g,Mm,xt.placeholder,I,Gt,Jn,ie,ve,De-Bt)}var Ks=Be?I:this,tl=nt?Ks[d]:d;return Bt=Gt.length,ie?Gt=PH(Gt,ie):Ct&&Bt>1&&Gt.reverse(),Fe&&ve<Bt&&(Gt.length=ve),this&&this!==_r&&this instanceof xt&&(tl=Dt||Pf(tl)),tl.apply(Ks,Gt)}return xt}function zM(d,g){return function(I,V){return Rj(I,d,g(V),{})}}function _m(d,g){return function(I,V){var U;if(I===n&&V===n)return g;if(I!==n&&(U=I),V!==n){if(U===n)return V;typeof I=="string"||typeof V=="string"?(I=Lo(I),V=Lo(V)):(I=EM(I),V=EM(V)),U=d(I,V)}return U}}function kb(d){return Xi(function(g){return g=Rn(g,Ao(yt())),Ft(function(I){var V=this;return d(g,function(U){return Do(U,V,I)})})})}function Tm(d,g){g=g===n?" ":Lo(g);var I=g.length;if(I<2)return I?bb(g,d):g;var V=bb(g,gm(d/Qc(g)));return Yc(g)?Bl(Us(V),0,d).join(""):V.slice(0,d)}function sH(d,g,I,V){var U=g&C,q=Pf(d);function ee(){for(var ie=-1,ve=arguments.length,De=-1,Fe=V.length,Be=Ee(Fe+ve),nt=this&&this!==_r&&this instanceof ee?q:d;++De<Fe;)Be[De]=V[De];for(;ve--;)Be[De++]=arguments[++ie];return Do(nt,U?I:this,Be)}return ee}function VM(d){return function(g,I,V){return V&&typeof V!="number"&&no(g,I,V)&&(I=V=n),g=el(g),I===n?(I=g,g=0):I=el(I),V=V===n?g<I?1:-1:el(V),Uj(g,I,V,d)}}function $m(d){return function(g,I){return typeof g=="string"&&typeof I=="string"||(g=ys(g),I=ys(I)),d(g,I)}}function jM(d,g,I,V,U,q,ee,ie,ve,De){var Fe=g&x,Be=Fe?ee:n,nt=Fe?n:ee,pt=Fe?q:n,Ct=Fe?n:q;g|=Fe?M:E,g&=~(Fe?E:M),g&b||(g&=~(C|w));var Dt=[d,g,U,pt,Be,Ct,nt,ie,ve,De],xt=I.apply(n,Dt);return Db(d)&&e_(xt,Dt),xt.placeholder=V,t_(xt,d,g)}function Ib(d){var g=ur[d];return function(I,V){if(I=ys(I),V=V==null?0:Br(Ot(V),292),V&&tM(I)){var U=(sn(I)+"e").split("e"),q=g(U[0]+"e"+(+U[1]+V));return U=(sn(q)+"e").split("e"),+(U[0]+"e"+(+U[1]-V))}return g(I)}}var iH=Jc&&1/im(new Jc([,-0]))[1]==j?function(d){return new Jc(d)}:Yb;function HM(d){return function(g){var I=zr(g);return I==Se?rb(g):I==fe?SV(g):mV(g,d(g))}}function Qi(d,g,I,V,U,q,ee,ie){var ve=g&w;if(!ve&&typeof d!="function")throw new ps(i);var De=V?V.length:0;if(De||(g&=~(M|E),V=U=n),ee=ee===n?ee:dr(Ot(ee),0),ie=ie===n?ie:Ot(ie),De-=U?U.length:0,g&E){var Fe=V,Be=U;V=U=n}var nt=ve?n:Tb(d),pt=[d,g,I,V,U,Fe,Be,q,ee,ie];if(nt&&CH(pt,nt),d=pt[0],g=pt[1],I=pt[2],V=pt[3],U=pt[4],ie=pt[9]=pt[9]===n?ve?0:d.length:dr(pt[9]-De,0),!ie&&g&(x|P)&&(g&=~(x|P)),!g||g==C)var Ct=rH(d,g,I);else g==x||g==P?Ct=oH(d,g,ie):(g==M||g==(C|M))&&!U.length?Ct=sH(d,g,I,V):Ct=Mm.apply(n,pt);var Dt=nt?SM:e_;return t_(Dt(Ct,pt),d,g)}function UM(d,g,I,V){return d===n||Gs(d,Zc[I])&&!cn.call(V,I)?g:d}function WM(d,g,I,V,U,q){return Bn(d)&&Bn(g)&&(q.set(g,d),Pm(d,g,n,WM,q),q.delete(g)),d}function lH(d){return If(d)?n:d}function GM(d,g,I,V,U,q){var ee=I&v,ie=d.length,ve=g.length;if(ie!=ve&&!(ee&&ve>ie))return!1;var De=q.get(d),Fe=q.get(g);if(De&&Fe)return De==g&&Fe==d;var Be=-1,nt=!0,pt=I&m?new Ga:n;for(q.set(d,g),q.set(g,d);++Be<ie;){var Ct=d[Be],Dt=g[Be];if(V)var xt=ee?V(Dt,Ct,Be,g,d,q):V(Ct,Dt,Be,d,g,q);if(xt!==n){if(xt)continue;nt=!1;break}if(pt){if(!X0(g,function(Bt,Gt){if(!pf(pt,Gt)&&(Ct===Bt||U(Ct,Bt,I,V,q)))return pt.push(Gt)})){nt=!1;break}}else if(!(Ct===Dt||U(Ct,Dt,I,V,q))){nt=!1;break}}return q.delete(d),q.delete(g),nt}function aH(d,g,I,V,U,q,ee){switch(I){case Ue:if(d.byteLength!=g.byteLength||d.byteOffset!=g.byteOffset)return!1;d=d.buffer,g=g.buffer;case Ve:return!(d.byteLength!=g.byteLength||!q(new fm(d),new fm(g)));case Z:case he:case ke:return Gs(+d,+g);case re:return d.name==g.name&&d.message==g.message;case pe:case de:return d==g+"";case Se:var ie=rb;case fe:var ve=V&v;if(ie||(ie=im),d.size!=g.size&&!ve)return!1;var De=ee.get(d);if(De)return De==g;V|=m,ee.set(d,g);var Fe=GM(ie(d),ie(g),V,U,q,ee);return ee.delete(d),Fe;case be:if(yf)return yf.call(d)==yf.call(g)}return!1}function cH(d,g,I,V,U,q){var ee=I&v,ie=Mb(d),ve=ie.length,De=Mb(g),Fe=De.length;if(ve!=Fe&&!ee)return!1;for(var Be=ve;Be--;){var nt=ie[Be];if(!(ee?nt in g:cn.call(g,nt)))return!1}var pt=q.get(d),Ct=q.get(g);if(pt&&Ct)return pt==g&&Ct==d;var Dt=!0;q.set(d,g),q.set(g,d);for(var xt=ee;++Be<ve;){nt=ie[Be];var Bt=d[nt],Gt=g[nt];if(V)var No=ee?V(Gt,Bt,nt,g,d,q):V(Bt,Gt,nt,d,g,q);if(!(No===n?Bt===Gt||U(Bt,Gt,I,V,q):No)){Dt=!1;break}xt||(xt=nt=="constructor")}if(Dt&&!xt){var ro=d.constructor,Bo=g.constructor;ro!=Bo&&"constructor"in d&&"constructor"in g&&!(typeof ro=="function"&&ro instanceof ro&&typeof Bo=="function"&&Bo instanceof Bo)&&(Dt=!1)}return q.delete(d),q.delete(g),Dt}function Xi(d){return Lb(ZM(d,n,l_),d+"")}function Mb(d){return fM(d,br,Rb)}function _b(d){return fM(d,vo,KM)}var Tb=ym?function(d){return ym.get(d)}:Yb;function Rm(d){for(var g=d.name+"",I=eu[g],V=cn.call(eu,g)?I.length:0;V--;){var U=I[V],q=U.func;if(q==null||q==d)return U.name}return g}function ou(d){var g=cn.call(G,"placeholder")?G:d;return g.placeholder}function yt(){var d=G.iteratee||Kb;return d=d===Kb?mM:d,arguments.length?d(arguments[0],arguments[1]):d}function Om(d,g){var I=d.__data__;return vH(g)?I[typeof g=="string"?"string":"hash"]:I.map}function $b(d){for(var g=br(d),I=g.length;I--;){var V=g[I],U=d[V];g[I]=[V,U,QM(U)]}return g}function Ya(d,g){var I=wV(d,g);return hM(I)?I:n}function uH(d){var g=cn.call(d,Ua),I=d[Ua];try{d[Ua]=n;var V=!0}catch(q){}var U=um.call(d);return V&&(g?d[Ua]=I:delete d[Ua]),U}var Rb=sb?function(d){return d==null?[]:(d=yn(d),Rl(sb(d),function(g){return JI.call(d,g)}))}:Qb,KM=sb?function(d){for(var g=[];d;)Ol(g,Rb(d)),d=pm(d);return g}:Qb,zr=to;(ib&&zr(new ib(new ArrayBuffer(1)))!=Ue||mf&&zr(new mf)!=Se||lb&&zr(lb.resolve())!=ye||Jc&&zr(new Jc)!=fe||gf&&zr(new gf)!=Ne)&&(zr=function(d){var g=to(d),I=g==Ie?d.constructor:n,V=I?Qa(I):"";if(V)switch(V){case GV:return Ue;case KV:return Se;case qV:return ye;case YV:return fe;case QV:return Ne}return g});function dH(d,g,I){for(var V=-1,U=I.length;++V<U;){var q=I[V],ee=q.size;switch(q.type){case"drop":d+=ee;break;case"dropRight":g-=ee;break;case"take":g=Br(g,d+ee);break;case"takeRight":d=dr(d,g-ee);break}}return{start:d,end:g}}function fH(d){var g=d.match(Oo);return g?g[1].split(gi):[]}function qM(d,g,I){g=Nl(g,d);for(var V=-1,U=g.length,q=!1;++V<U;){var ee=bi(g[V]);if(!(q=d!=null&&I(d,ee)))break;d=d[ee]}return q||++V!=U?q:(U=d==null?0:d.length,!!U&&zm(U)&&Zi(ee,U)&&(Mt(d)||Xa(d)))}function pH(d){var g=d.length,I=new d.constructor(g);return g&&typeof d[0]=="string"&&cn.call(d,"index")&&(I.index=d.index,I.input=d.input),I}function YM(d){return typeof d.constructor=="function"&&!Ef(d)?tu(pm(d)):{}}function hH(d,g,I){var V=d.constructor;switch(g){case Ve:return Eb(d);case Z:case he:return new V(+d);case Ue:return Xj(d,I);case Le:case ht:case Zt:case Pt:case wt:case Xe:case Oe:case qe:case mt:return $M(d,I);case Se:return new V;case ke:case de:return new V(d);case pe:return Zj(d);case fe:return new V;case be:return Jj(d)}}function mH(d,g){var I=g.length;if(!I)return d;var V=I-1;return g[V]=(I>1?"& ":"")+g[V],g=g.join(I>2?", ":" "),d.replace(lr,`{
|
|
301
|
-
/* [wrapped with `+g+`] */
|
|
302
|
-
`)}function gH(d){return Mt(d)||Xa(d)||!!(eM&&d&&d[eM])}function Zi(d,g){var I=typeof d;return g=g==null?A:g,!!g&&(I=="number"||I!="symbol"&&Nn.test(d))&&d>-1&&d%1==0&&d<g}function no(d,g,I){if(!Bn(I))return!1;var V=typeof g;return(V=="number"?go(I)&&Zi(g,I.length):V=="string"&&g in I)?Gs(I[g],d):!1}function Ob(d,g){if(Mt(d))return!1;var I=typeof d;return I=="number"||I=="symbol"||I=="boolean"||d==null||Fo(d)?!0:cs.test(d)||!$l.test(d)||g!=null&&d in yn(g)}function vH(d){var g=typeof d;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?d!=="__proto__":d===null}function Db(d){var g=Rm(d),I=G[g];if(typeof I!="function"||!(g in Ht.prototype))return!1;if(d===I)return!0;var V=Tb(I);return!!V&&d===V[0]}function yH(d){return!!QI&&QI in d}var bH=am?Ji:Xb;function Ef(d){var g=d&&d.constructor,I=typeof g=="function"&&g.prototype||Zc;return d===I}function QM(d){return d===d&&!Bn(d)}function XM(d,g){return function(I){return I==null?!1:I[d]===g&&(g!==n||d in yn(I))}}function wH(d){var g=Nm(d,function(V){return I.size===c&&I.clear(),V}),I=g.cache;return g}function CH(d,g){var I=d[1],V=g[1],U=I|V,q=U<(C|w|k),ee=V==k&&I==x||V==k&&I==R&&d[7].length<=g[8]||V==(k|R)&&g[7].length<=g[8]&&I==x;if(!(q||ee))return d;V&C&&(d[2]=g[2],U|=I&C?0:b);var ie=g[3];if(ie){var ve=d[3];d[3]=ve?OM(ve,ie,g[4]):ie,d[4]=ve?Dl(d[3],f):g[4]}return ie=g[5],ie&&(ve=d[5],d[5]=ve?DM(ve,ie,g[6]):ie,d[6]=ve?Dl(d[5],f):g[6]),ie=g[7],ie&&(d[7]=ie),V&k&&(d[8]=d[8]==null?g[8]:Br(d[8],g[8])),d[9]==null&&(d[9]=g[9]),d[0]=g[0],d[1]=U,d}function xH(d){var g=[];if(d!=null)for(var I in yn(d))g.push(I);return g}function SH(d){return um.call(d)}function ZM(d,g,I){return g=dr(g===n?d.length-1:g,0),function(){for(var V=arguments,U=-1,q=dr(V.length-g,0),ee=Ee(q);++U<q;)ee[U]=V[g+U];U=-1;for(var ie=Ee(g+1);++U<g;)ie[U]=V[U];return ie[g]=I(ee),Do(d,this,ie)}}function JM(d,g){return g.length<2?d:qa(d,gs(g,0,-1))}function PH(d,g){for(var I=d.length,V=Br(g.length,I),U=mo(d);V--;){var q=g[V];d[V]=Zi(q,I)?U[q]:n}return d}function Ab(d,g){if(!(g==="constructor"&&typeof d[g]=="function")&&g!="__proto__")return d[g]}var e_=n_(SM),kf=BV||function(d,g){return _r.setTimeout(d,g)},Lb=n_(Kj);function t_(d,g,I){var V=g+"";return Lb(d,mH(V,EH(fH(V),I)))}function n_(d){var g=0,I=0;return function(){var V=HV(),U=z-(V-I);if(I=V,U>0){if(++g>=B)return arguments[0]}else g=0;return d.apply(n,arguments)}}function Dm(d,g){var I=-1,V=d.length,U=V-1;for(g=g===n?V:g;++I<g;){var q=yb(I,U),ee=d[q];d[q]=d[I],d[I]=ee}return d.length=g,d}var r_=wH(function(d){var g=[];return d.charCodeAt(0)===46&&g.push(""),d.replace(Tn,function(I,V,U,q){g.push(U?q.replace(Hs,"$1"):V||I)}),g});function bi(d){if(typeof d=="string"||Fo(d))return d;var g=d+"";return g=="0"&&1/d==-j?"-0":g}function Qa(d){if(d!=null){try{return cm.call(d)}catch(g){}try{return d+""}catch(g){}}return""}function EH(d,g){return fs(Q,function(I){var V="_."+I[0];g&I[1]&&!om(d,V)&&d.push(V)}),d.sort()}function o_(d){if(d instanceof Ht)return d.clone();var g=new hs(d.__wrapped__,d.__chain__);return g.__actions__=mo(d.__actions__),g.__index__=d.__index__,g.__values__=d.__values__,g}function kH(d,g,I){(I?no(d,g,I):g===n)?g=1:g=dr(Ot(g),0);var V=d==null?0:d.length;if(!V||g<1)return[];for(var U=0,q=0,ee=Ee(gm(V/g));U<V;)ee[q++]=gs(d,U,U+=g);return ee}function IH(d){for(var g=-1,I=d==null?0:d.length,V=0,U=[];++g<I;){var q=d[g];q&&(U[V++]=q)}return U}function MH(){var d=arguments.length;if(!d)return[];for(var g=Ee(d-1),I=arguments[0],V=d;V--;)g[V-1]=arguments[V];return Ol(Mt(I)?mo(I):[I],Tr(g,1))}var _H=Ft(function(d,g){return Zn(d)?wf(d,Tr(g,1,Zn,!0)):[]}),TH=Ft(function(d,g){var I=vs(g);return Zn(I)&&(I=n),Zn(d)?wf(d,Tr(g,1,Zn,!0),yt(I,2)):[]}),$H=Ft(function(d,g){var I=vs(g);return Zn(I)&&(I=n),Zn(d)?wf(d,Tr(g,1,Zn,!0),n,I):[]});function RH(d,g,I){var V=d==null?0:d.length;return V?(g=I||g===n?1:Ot(g),gs(d,g<0?0:g,V)):[]}function OH(d,g,I){var V=d==null?0:d.length;return V?(g=I||g===n?1:Ot(g),g=V-g,gs(d,0,g<0?0:g)):[]}function DH(d,g){return d&&d.length?km(d,yt(g,3),!0,!0):[]}function AH(d,g){return d&&d.length?km(d,yt(g,3),!0):[]}function LH(d,g,I,V){var U=d==null?0:d.length;return U?(I&&typeof I!="number"&&no(d,g,I)&&(I=0,V=U),Mj(d,g,I,V)):[]}function s_(d,g,I){var V=d==null?0:d.length;if(!V)return-1;var U=I==null?0:Ot(I);return U<0&&(U=dr(V+U,0)),sm(d,yt(g,3),U)}function i_(d,g,I){var V=d==null?0:d.length;if(!V)return-1;var U=V-1;return I!==n&&(U=Ot(I),U=I<0?dr(V+U,0):Br(U,V-1)),sm(d,yt(g,3),U,!0)}function l_(d){var g=d==null?0:d.length;return g?Tr(d,1):[]}function FH(d){var g=d==null?0:d.length;return g?Tr(d,j):[]}function NH(d,g){var I=d==null?0:d.length;return I?(g=g===n?1:Ot(g),Tr(d,g)):[]}function BH(d){for(var g=-1,I=d==null?0:d.length,V={};++g<I;){var U=d[g];V[U[0]]=U[1]}return V}function a_(d){return d&&d.length?d[0]:n}function zH(d,g,I){var V=d==null?0:d.length;if(!V)return-1;var U=I==null?0:Ot(I);return U<0&&(U=dr(V+U,0)),qc(d,g,U)}function VH(d){var g=d==null?0:d.length;return g?gs(d,0,-1):[]}var jH=Ft(function(d){var g=Rn(d,Sb);return g.length&&g[0]===d[0]?pb(g):[]}),HH=Ft(function(d){var g=vs(d),I=Rn(d,Sb);return g===vs(I)?g=n:I.pop(),I.length&&I[0]===d[0]?pb(I,yt(g,2)):[]}),UH=Ft(function(d){var g=vs(d),I=Rn(d,Sb);return g=typeof g=="function"?g:n,g&&I.pop(),I.length&&I[0]===d[0]?pb(I,n,g):[]});function WH(d,g){return d==null?"":VV.call(d,g)}function vs(d){var g=d==null?0:d.length;return g?d[g-1]:n}function GH(d,g,I){var V=d==null?0:d.length;if(!V)return-1;var U=V;return I!==n&&(U=Ot(I),U=U<0?dr(V+U,0):Br(U,V-1)),g===g?EV(d,g,U):sm(d,jI,U,!0)}function KH(d,g){return d&&d.length?bM(d,Ot(g)):n}var qH=Ft(c_);function c_(d,g){return d&&d.length&&g&&g.length?vb(d,g):d}function YH(d,g,I){return d&&d.length&&g&&g.length?vb(d,g,yt(I,2)):d}function QH(d,g,I){return d&&d.length&&g&&g.length?vb(d,g,n,I):d}var XH=Xi(function(d,g){var I=d==null?0:d.length,V=cb(d,g);return xM(d,Rn(g,function(U){return Zi(U,I)?+U:U}).sort(RM)),V});function ZH(d,g){var I=[];if(!(d&&d.length))return I;var V=-1,U=[],q=d.length;for(g=yt(g,3);++V<q;){var ee=d[V];g(ee,V,d)&&(I.push(ee),U.push(V))}return xM(d,U),I}function Fb(d){return d==null?d:WV.call(d)}function JH(d,g,I){var V=d==null?0:d.length;return V?(I&&typeof I!="number"&&no(d,g,I)?(g=0,I=V):(g=g==null?0:Ot(g),I=I===n?V:Ot(I)),gs(d,g,I)):[]}function e9(d,g){return Em(d,g)}function t9(d,g,I){return wb(d,g,yt(I,2))}function n9(d,g){var I=d==null?0:d.length;if(I){var V=Em(d,g);if(V<I&&Gs(d[V],g))return V}return-1}function r9(d,g){return Em(d,g,!0)}function o9(d,g,I){return wb(d,g,yt(I,2),!0)}function s9(d,g){var I=d==null?0:d.length;if(I){var V=Em(d,g,!0)-1;if(Gs(d[V],g))return V}return-1}function i9(d){return d&&d.length?PM(d):[]}function l9(d,g){return d&&d.length?PM(d,yt(g,2)):[]}function a9(d){var g=d==null?0:d.length;return g?gs(d,1,g):[]}function c9(d,g,I){return d&&d.length?(g=I||g===n?1:Ot(g),gs(d,0,g<0?0:g)):[]}function u9(d,g,I){var V=d==null?0:d.length;return V?(g=I||g===n?1:Ot(g),g=V-g,gs(d,g<0?0:g,V)):[]}function d9(d,g){return d&&d.length?km(d,yt(g,3),!1,!0):[]}function f9(d,g){return d&&d.length?km(d,yt(g,3)):[]}var p9=Ft(function(d){return Fl(Tr(d,1,Zn,!0))}),h9=Ft(function(d){var g=vs(d);return Zn(g)&&(g=n),Fl(Tr(d,1,Zn,!0),yt(g,2))}),m9=Ft(function(d){var g=vs(d);return g=typeof g=="function"?g:n,Fl(Tr(d,1,Zn,!0),n,g)});function g9(d){return d&&d.length?Fl(d):[]}function v9(d,g){return d&&d.length?Fl(d,yt(g,2)):[]}function y9(d,g){return g=typeof g=="function"?g:n,d&&d.length?Fl(d,n,g):[]}function Nb(d){if(!(d&&d.length))return[];var g=0;return d=Rl(d,function(I){if(Zn(I))return g=dr(I.length,g),!0}),tb(g,function(I){return Rn(d,Z0(I))})}function u_(d,g){if(!(d&&d.length))return[];var I=Nb(d);return g==null?I:Rn(I,function(V){return Do(g,n,V)})}var b9=Ft(function(d,g){return Zn(d)?wf(d,g):[]}),w9=Ft(function(d){return xb(Rl(d,Zn))}),C9=Ft(function(d){var g=vs(d);return Zn(g)&&(g=n),xb(Rl(d,Zn),yt(g,2))}),x9=Ft(function(d){var g=vs(d);return g=typeof g=="function"?g:n,xb(Rl(d,Zn),n,g)}),S9=Ft(Nb);function P9(d,g){return MM(d||[],g||[],bf)}function E9(d,g){return MM(d||[],g||[],Sf)}var k9=Ft(function(d){var g=d.length,I=g>1?d[g-1]:n;return I=typeof I=="function"?(d.pop(),I):n,u_(d,I)});function d_(d){var g=G(d);return g.__chain__=!0,g}function I9(d,g){return g(d),d}function Am(d,g){return g(d)}var M9=Xi(function(d){var g=d.length,I=g?d[0]:0,V=this.__wrapped__,U=function(q){return cb(q,d)};return g>1||this.__actions__.length||!(V instanceof Ht)||!Zi(I)?this.thru(U):(V=V.slice(I,+I+(g?1:0)),V.__actions__.push({func:Am,args:[U],thisArg:n}),new hs(V,this.__chain__).thru(function(q){return g&&!q.length&&q.push(n),q}))});function _9(){return d_(this)}function T9(){return new hs(this.value(),this.__chain__)}function $9(){this.__values__===n&&(this.__values__=E_(this.value()));var d=this.__index__>=this.__values__.length,g=d?n:this.__values__[this.__index__++];return{done:d,value:g}}function R9(){return this}function O9(d){for(var g,I=this;I instanceof wm;){var V=o_(I);V.__index__=0,V.__values__=n,g?U.__wrapped__=V:g=V;var U=V;I=I.__wrapped__}return U.__wrapped__=d,g}function D9(){var d=this.__wrapped__;if(d instanceof Ht){var g=d;return this.__actions__.length&&(g=new Ht(this)),g=g.reverse(),g.__actions__.push({func:Am,args:[Fb],thisArg:n}),new hs(g,this.__chain__)}return this.thru(Fb)}function A9(){return IM(this.__wrapped__,this.__actions__)}var L9=Im(function(d,g,I){cn.call(d,I)?++d[I]:Yi(d,I,1)});function F9(d,g,I){var V=Mt(d)?zI:Ij;return I&&no(d,g,I)&&(g=n),V(d,yt(g,3))}function N9(d,g){var I=Mt(d)?Rl:uM;return I(d,yt(g,3))}var B9=NM(s_),z9=NM(i_);function V9(d,g){return Tr(Lm(d,g),1)}function j9(d,g){return Tr(Lm(d,g),j)}function H9(d,g,I){return I=I===n?1:Ot(I),Tr(Lm(d,g),I)}function f_(d,g){var I=Mt(d)?fs:Ll;return I(d,yt(g,3))}function p_(d,g){var I=Mt(d)?aV:cM;return I(d,yt(g,3))}var U9=Im(function(d,g,I){cn.call(d,I)?d[I].push(g):Yi(d,I,[g])});function W9(d,g,I,V){d=go(d)?d:iu(d),I=I&&!V?Ot(I):0;var U=d.length;return I<0&&(I=dr(U+I,0)),Vm(d)?I<=U&&d.indexOf(g,I)>-1:!!U&&qc(d,g,I)>-1}var G9=Ft(function(d,g,I){var V=-1,U=typeof g=="function",q=go(d)?Ee(d.length):[];return Ll(d,function(ee){q[++V]=U?Do(g,ee,I):Cf(ee,g,I)}),q}),K9=Im(function(d,g,I){Yi(d,I,g)});function Lm(d,g){var I=Mt(d)?Rn:gM;return I(d,yt(g,3))}function q9(d,g,I,V){return d==null?[]:(Mt(g)||(g=g==null?[]:[g]),I=V?n:I,Mt(I)||(I=I==null?[]:[I]),wM(d,g,I))}var Y9=Im(function(d,g,I){d[I?0:1].push(g)},function(){return[[],[]]});function Q9(d,g,I){var V=Mt(d)?Q0:UI,U=arguments.length<3;return V(d,yt(g,4),I,U,Ll)}function X9(d,g,I){var V=Mt(d)?cV:UI,U=arguments.length<3;return V(d,yt(g,4),I,U,cM)}function Z9(d,g){var I=Mt(d)?Rl:uM;return I(d,Bm(yt(g,3)))}function J9(d){var g=Mt(d)?sM:Wj;return g(d)}function e8(d,g,I){(I?no(d,g,I):g===n)?g=1:g=Ot(g);var V=Mt(d)?xj:Gj;return V(d,g)}function t8(d){var g=Mt(d)?Sj:qj;return g(d)}function n8(d){if(d==null)return 0;if(go(d))return Vm(d)?Qc(d):d.length;var g=zr(d);return g==Se||g==fe?d.size:mb(d).length}function r8(d,g,I){var V=Mt(d)?X0:Yj;return I&&no(d,g,I)&&(g=n),V(d,yt(g,3))}var o8=Ft(function(d,g){if(d==null)return[];var I=g.length;return I>1&&no(d,g[0],g[1])?g=[]:I>2&&no(g[0],g[1],g[2])&&(g=[g[0]]),wM(d,Tr(g,1),[])}),Fm=NV||function(){return _r.Date.now()};function s8(d,g){if(typeof g!="function")throw new ps(i);return d=Ot(d),function(){if(--d<1)return g.apply(this,arguments)}}function h_(d,g,I){return g=I?n:g,g=d&&g==null?d.length:g,Qi(d,k,n,n,n,n,g)}function m_(d,g){var I;if(typeof g!="function")throw new ps(i);return d=Ot(d),function(){return--d>0&&(I=g.apply(this,arguments)),d<=1&&(g=n),I}}var Bb=Ft(function(d,g,I){var V=C;if(I.length){var U=Dl(I,ou(Bb));V|=M}return Qi(d,V,g,I,U)}),g_=Ft(function(d,g,I){var V=C|w;if(I.length){var U=Dl(I,ou(g_));V|=M}return Qi(g,V,d,I,U)});function v_(d,g,I){g=I?n:g;var V=Qi(d,x,n,n,n,n,n,g);return V.placeholder=v_.placeholder,V}function y_(d,g,I){g=I?n:g;var V=Qi(d,P,n,n,n,n,n,g);return V.placeholder=y_.placeholder,V}function b_(d,g,I){var V,U,q,ee,ie,ve,De=0,Fe=!1,Be=!1,nt=!0;if(typeof d!="function")throw new ps(i);g=ys(g)||0,Bn(I)&&(Fe=!!I.leading,Be="maxWait"in I,q=Be?dr(ys(I.maxWait)||0,g):q,nt="trailing"in I?!!I.trailing:nt);function pt(Jn){var Ks=V,tl=U;return V=U=n,De=Jn,ee=d.apply(tl,Ks),ee}function Ct(Jn){return De=Jn,ie=kf(Bt,g),Fe?pt(Jn):ee}function Dt(Jn){var Ks=Jn-ve,tl=Jn-De,N_=g-Ks;return Be?Br(N_,q-tl):N_}function xt(Jn){var Ks=Jn-ve,tl=Jn-De;return ve===n||Ks>=g||Ks<0||Be&&tl>=q}function Bt(){var Jn=Fm();if(xt(Jn))return Gt(Jn);ie=kf(Bt,Dt(Jn))}function Gt(Jn){return ie=n,nt&&V?pt(Jn):(V=U=n,ee)}function No(){ie!==n&&_M(ie),De=0,V=ve=U=ie=n}function ro(){return ie===n?ee:Gt(Fm())}function Bo(){var Jn=Fm(),Ks=xt(Jn);if(V=arguments,U=this,ve=Jn,Ks){if(ie===n)return Ct(ve);if(Be)return _M(ie),ie=kf(Bt,g),pt(ve)}return ie===n&&(ie=kf(Bt,g)),ee}return Bo.cancel=No,Bo.flush=ro,Bo}var i8=Ft(function(d,g){return aM(d,1,g)}),l8=Ft(function(d,g,I){return aM(d,ys(g)||0,I)});function a8(d){return Qi(d,O)}function Nm(d,g){if(typeof d!="function"||g!=null&&typeof g!="function")throw new ps(i);var I=function(){var V=arguments,U=g?g.apply(this,V):V[0],q=I.cache;if(q.has(U))return q.get(U);var ee=d.apply(this,V);return I.cache=q.set(U,ee)||q,ee};return I.cache=new(Nm.Cache||qi),I}Nm.Cache=qi;function Bm(d){if(typeof d!="function")throw new ps(i);return function(){var g=arguments;switch(g.length){case 0:return!d.call(this);case 1:return!d.call(this,g[0]);case 2:return!d.call(this,g[0],g[1]);case 3:return!d.call(this,g[0],g[1],g[2])}return!d.apply(this,g)}}function c8(d){return m_(2,d)}var u8=Qj(function(d,g){g=g.length==1&&Mt(g[0])?Rn(g[0],Ao(yt())):Rn(Tr(g,1),Ao(yt()));var I=g.length;return Ft(function(V){for(var U=-1,q=Br(V.length,I);++U<q;)V[U]=g[U].call(this,V[U]);return Do(d,this,V)})}),zb=Ft(function(d,g){var I=Dl(g,ou(zb));return Qi(d,M,n,g,I)}),w_=Ft(function(d,g){var I=Dl(g,ou(w_));return Qi(d,E,n,g,I)}),d8=Xi(function(d,g){return Qi(d,R,n,n,n,g)});function f8(d,g){if(typeof d!="function")throw new ps(i);return g=g===n?g:Ot(g),Ft(d,g)}function p8(d,g){if(typeof d!="function")throw new ps(i);return g=g==null?0:dr(Ot(g),0),Ft(function(I){var V=I[g],U=Bl(I,0,g);return V&&Ol(U,V),Do(d,this,U)})}function h8(d,g,I){var V=!0,U=!0;if(typeof d!="function")throw new ps(i);return Bn(I)&&(V="leading"in I?!!I.leading:V,U="trailing"in I?!!I.trailing:U),b_(d,g,{leading:V,maxWait:g,trailing:U})}function m8(d){return h_(d,1)}function g8(d,g){return zb(Pb(g),d)}function v8(){if(!arguments.length)return[];var d=arguments[0];return Mt(d)?d:[d]}function y8(d){return ms(d,y)}function b8(d,g){return g=typeof g=="function"?g:n,ms(d,y,g)}function w8(d){return ms(d,p|y)}function C8(d,g){return g=typeof g=="function"?g:n,ms(d,p|y,g)}function x8(d,g){return g==null||lM(d,g,br(g))}function Gs(d,g){return d===g||d!==d&&g!==g}var S8=$m(fb),P8=$m(function(d,g){return d>=g}),Xa=pM(function(){return arguments}())?pM:function(d){return Un(d)&&cn.call(d,"callee")&&!JI.call(d,"callee")},Mt=Ee.isArray,E8=DI?Ao(DI):Oj;function go(d){return d!=null&&zm(d.length)&&!Ji(d)}function Zn(d){return Un(d)&&go(d)}function k8(d){return d===!0||d===!1||Un(d)&&to(d)==Z}var zl=zV||Xb,I8=AI?Ao(AI):Dj;function M8(d){return Un(d)&&d.nodeType===1&&!If(d)}function _8(d){if(d==null)return!0;if(go(d)&&(Mt(d)||typeof d=="string"||typeof d.splice=="function"||zl(d)||su(d)||Xa(d)))return!d.length;var g=zr(d);if(g==Se||g==fe)return!d.size;if(Ef(d))return!mb(d).length;for(var I in d)if(cn.call(d,I))return!1;return!0}function T8(d,g){return xf(d,g)}function $8(d,g,I){I=typeof I=="function"?I:n;var V=I?I(d,g):n;return V===n?xf(d,g,n,I):!!V}function Vb(d){if(!Un(d))return!1;var g=to(d);return g==re||g==ne||typeof d.message=="string"&&typeof d.name=="string"&&!If(d)}function R8(d){return typeof d=="number"&&tM(d)}function Ji(d){if(!Bn(d))return!1;var g=to(d);return g==me||g==ce||g==se||g==Me}function C_(d){return typeof d=="number"&&d==Ot(d)}function zm(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=A}function Bn(d){var g=typeof d;return d!=null&&(g=="object"||g=="function")}function Un(d){return d!=null&&typeof d=="object"}var x_=LI?Ao(LI):Lj;function O8(d,g){return d===g||hb(d,g,$b(g))}function D8(d,g,I){return I=typeof I=="function"?I:n,hb(d,g,$b(g),I)}function A8(d){return S_(d)&&d!=+d}function L8(d){if(bH(d))throw new It(s);return hM(d)}function F8(d){return d===null}function N8(d){return d==null}function S_(d){return typeof d=="number"||Un(d)&&to(d)==ke}function If(d){if(!Un(d)||to(d)!=Ie)return!1;var g=pm(d);if(g===null)return!0;var I=cn.call(g,"constructor")&&g.constructor;return typeof I=="function"&&I instanceof I&&cm.call(I)==DV}var jb=FI?Ao(FI):Fj;function B8(d){return C_(d)&&d>=-A&&d<=A}var P_=NI?Ao(NI):Nj;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=BI?Ao(BI):Bj;function z8(d){return d===n}function V8(d){return Un(d)&&zr(d)==Ne}function j8(d){return Un(d)&&to(d)==Ge}var H8=$m(gb),U8=$m(function(d,g){return d<=g});function E_(d){if(!d)return[];if(go(d))return Vm(d)?Us(d):mo(d);if(hf&&d[hf])return xV(d[hf]());var g=zr(d),I=g==Se?rb:g==fe?im:iu;return I(d)}function el(d){if(!d)return d===0?d:0;if(d=ys(d),d===j||d===-j){var g=d<0?-1:1;return g*N}return d===d?d:0}function Ot(d){var g=el(d),I=g%1;return g===g?I?g-I:g:0}function k_(d){return d?Ka(Ot(d),0,K):0}function ys(d){if(typeof d=="number")return d;if(Fo(d))return H;if(Bn(d)){var g=typeof d.valueOf=="function"?d.valueOf():d;d=Bn(g)?g+"":g}if(typeof d!="string")return d===0?d:+d;d=WI(d);var I=ft.test(d);return I||$n.test(d)?sV(d.slice(2),I?2:8):Qe.test(d)?H:+d}function I_(d){return yi(d,vo(d))}function W8(d){return d?Ka(Ot(d),-A,A):d===0?d:0}function sn(d){return d==null?"":Lo(d)}var G8=nu(function(d,g){if(Ef(g)||go(g)){yi(g,br(g),d);return}for(var I in g)cn.call(g,I)&&bf(d,I,g[I])}),M_=nu(function(d,g){yi(g,vo(g),d)}),jm=nu(function(d,g,I,V){yi(g,vo(g),d,V)}),K8=nu(function(d,g,I,V){yi(g,br(g),d,V)}),q8=Xi(cb);function Y8(d,g){var I=tu(d);return g==null?I:iM(I,g)}var Q8=Ft(function(d,g){d=yn(d);var I=-1,V=g.length,U=V>2?g[2]:n;for(U&&no(g[0],g[1],U)&&(V=1);++I<V;)for(var q=g[I],ee=vo(q),ie=-1,ve=ee.length;++ie<ve;){var De=ee[ie],Fe=d[De];(Fe===n||Gs(Fe,Zc[De])&&!cn.call(d,De))&&(d[De]=q[De])}return d}),X8=Ft(function(d){return d.push(n,WM),Do(__,n,d)});function Z8(d,g){return VI(d,yt(g,3),vi)}function J8(d,g){return VI(d,yt(g,3),db)}function e7(d,g){return d==null?d:ub(d,yt(g,3),vo)}function t7(d,g){return d==null?d:dM(d,yt(g,3),vo)}function n7(d,g){return d&&vi(d,yt(g,3))}function r7(d,g){return d&&db(d,yt(g,3))}function o7(d){return d==null?[]:Sm(d,br(d))}function s7(d){return d==null?[]:Sm(d,vo(d))}function Hb(d,g,I){var V=d==null?n:qa(d,g);return V===n?I:V}function i7(d,g){return d!=null&&qM(d,g,_j)}function Ub(d,g){return d!=null&&qM(d,g,Tj)}var l7=zM(function(d,g,I){g!=null&&typeof g.toString!="function"&&(g=um.call(g)),d[g]=I},Gb(yo)),a7=zM(function(d,g,I){g!=null&&typeof g.toString!="function"&&(g=um.call(g)),cn.call(d,g)?d[g].push(I):d[g]=[I]},yt),c7=Ft(Cf);function br(d){return go(d)?oM(d):mb(d)}function vo(d){return go(d)?oM(d,!0):zj(d)}function u7(d,g){var I={};return g=yt(g,3),vi(d,function(V,U,q){Yi(I,g(V,U,q),V)}),I}function d7(d,g){var I={};return g=yt(g,3),vi(d,function(V,U,q){Yi(I,U,g(V,U,q))}),I}var f7=nu(function(d,g,I){Pm(d,g,I)}),__=nu(function(d,g,I,V){Pm(d,g,I,V)}),p7=Xi(function(d,g){var I={};if(d==null)return I;var V=!1;g=Rn(g,function(q){return q=Nl(q,d),V||(V=q.length>1),q}),yi(d,_b(d),I),V&&(I=ms(I,p|h|y,lH));for(var U=g.length;U--;)Cb(I,g[U]);return I});function h7(d,g){return T_(d,Bm(yt(g)))}var m7=Xi(function(d,g){return d==null?{}:jj(d,g)});function T_(d,g){if(d==null)return{};var I=Rn(_b(d),function(V){return[V]});return g=yt(g),CM(d,I,function(V,U){return g(V,U[0])})}function g7(d,g,I){g=Nl(g,d);var V=-1,U=g.length;for(U||(U=1,d=n);++V<U;){var q=d==null?n:d[bi(g[V])];q===n&&(V=U,q=I),d=Ji(q)?q.call(d):q}return d}function v7(d,g,I){return d==null?d:Sf(d,g,I)}function y7(d,g,I,V){return V=typeof V=="function"?V:n,d==null?d:Sf(d,g,I,V)}var $_=HM(br),R_=HM(vo);function b7(d,g,I){var V=Mt(d),U=V||zl(d)||su(d);if(g=yt(g,4),I==null){var q=d&&d.constructor;U?I=V?new q:[]:Bn(d)?I=Ji(q)?tu(pm(d)):{}:I={}}return(U?fs:vi)(d,function(ee,ie,ve){return g(I,ee,ie,ve)}),I}function w7(d,g){return d==null?!0:Cb(d,g)}function C7(d,g,I){return d==null?d:kM(d,g,Pb(I))}function x7(d,g,I,V){return V=typeof V=="function"?V:n,d==null?d:kM(d,g,Pb(I),V)}function iu(d){return d==null?[]:nb(d,br(d))}function S7(d){return d==null?[]:nb(d,vo(d))}function P7(d,g,I){return I===n&&(I=g,g=n),I!==n&&(I=ys(I),I=I===I?I:0),g!==n&&(g=ys(g),g=g===g?g:0),Ka(ys(d),g,I)}function E7(d,g,I){return g=el(g),I===n?(I=g,g=0):I=el(I),d=ys(d),$j(d,g,I)}function k7(d,g,I){if(I&&typeof I!="boolean"&&no(d,g,I)&&(g=I=n),I===n&&(typeof g=="boolean"?(I=g,g=n):typeof d=="boolean"&&(I=d,d=n)),d===n&&g===n?(d=0,g=1):(d=el(d),g===n?(g=d,d=0):g=el(g)),d>g){var V=d;d=g,g=V}if(I||d%1||g%1){var U=nM();return Br(d+U*(g-d+oV("1e-"+((U+"").length-1))),g)}return yb(d,g)}var I7=ru(function(d,g,I){return g=g.toLowerCase(),d+(I?O_(g):g)});function O_(d){return Wb(sn(d).toLowerCase())}function D_(d){return d=sn(d),d&&d.replace(St,vV).replace(qz,"")}function M7(d,g,I){d=sn(d),g=Lo(g);var V=d.length;I=I===n?V:Ka(Ot(I),0,V);var U=I;return I-=g.length,I>=0&&d.slice(I,U)==g}function _7(d){return d=sn(d),d&>.test(d)?d.replace(Pn,yV):d}function T7(d){return d=sn(d),d&&yr.test(d)?d.replace(an,"\\$&"):d}var $7=ru(function(d,g,I){return d+(I?"-":"")+g.toLowerCase()}),R7=ru(function(d,g,I){return d+(I?" ":"")+g.toLowerCase()}),O7=FM("toLowerCase");function D7(d,g,I){d=sn(d),g=Ot(g);var V=g?Qc(d):0;if(!g||V>=g)return d;var U=(g-V)/2;return Tm(vm(U),I)+d+Tm(gm(U),I)}function A7(d,g,I){d=sn(d),g=Ot(g);var V=g?Qc(d):0;return g&&V<g?d+Tm(g-V,I):d}function L7(d,g,I){d=sn(d),g=Ot(g);var V=g?Qc(d):0;return g&&V<g?Tm(g-V,I)+d:d}function F7(d,g,I){return I||g==null?g=0:g&&(g=+g),UV(sn(d).replace(ho,""),g||0)}function N7(d,g,I){return(I?no(d,g,I):g===n)?g=1:g=Ot(g),bb(sn(d),g)}function B7(){var d=arguments,g=sn(d[0]);return d.length<3?g:g.replace(d[1],d[2])}var z7=ru(function(d,g,I){return d+(I?"_":"")+g.toLowerCase()});function V7(d,g,I){return I&&typeof I!="number"&&no(d,g,I)&&(g=I=n),I=I===n?K:I>>>0,I?(d=sn(d),d&&(typeof g=="string"||g!=null&&!jb(g))&&(g=Lo(g),!g&&Yc(d))?Bl(Us(d),0,I):d.split(g,I)):[]}var j7=ru(function(d,g,I){return d+(I?" ":"")+Wb(g)});function H7(d,g,I){return d=sn(d),I=I==null?0:Ka(Ot(I),0,d.length),g=Lo(g),d.slice(I,I+g.length)==g}function U7(d,g,I){var V=G.templateSettings;I&&no(d,g,I)&&(g=n),d=sn(d),g=jm({},g,V,UM);var U=jm({},g.imports,V.imports,UM),q=br(U),ee=nb(U,q),ie,ve,De=0,Fe=g.interpolate||Xn,Be="__p += '",nt=ob((g.escape||Xn).source+"|"+Fe.source+"|"+(Fe===ir?$e:Xn).source+"|"+(g.evaluate||Xn).source+"|$","g"),pt="//# sourceURL="+(cn.call(g,"sourceURL")?(g.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Jz+"]")+`
|
|
303
|
-
`;d.replace(nt,function(xt,Bt,Gt,No,ro,Bo){return Gt||(Gt=No),Be+=d.slice(De,Bo).replace(Tz,bV),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(g,"variable")&&g.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=L_(function(){return en(q,pt+"return "+Be).apply(n,ee)});if(Dt.source=Be,Vb(Dt))throw Dt;return Dt}function W7(d){return sn(d).toLowerCase()}function G7(d){return sn(d).toUpperCase()}function K7(d,g,I){if(d=sn(d),d&&(I||g===n))return WI(d);if(!d||!(g=Lo(g)))return d;var V=Us(d),U=Us(g),q=GI(V,U),ee=KI(V,U)+1;return Bl(V,q,ee).join("")}function q7(d,g,I){if(d=sn(d),d&&(I||g===n))return d.slice(0,YI(d)+1);if(!d||!(g=Lo(g)))return d;var V=Us(d),U=KI(V,Us(g))+1;return Bl(V,0,U).join("")}function Y7(d,g,I){if(d=sn(d),d&&(I||g===n))return d.replace(ho,"");if(!d||!(g=Lo(g)))return d;var V=Us(d),U=GI(V,Us(g));return Bl(V,U).join("")}function Q7(d,g){var I=_,V=L;if(Bn(g)){var U="separator"in g?g.separator:U;I="length"in g?Ot(g.length):I,V="omission"in g?Lo(g.omission):V}d=sn(d);var q=d.length;if(Yc(d)){var ee=Us(d);q=ee.length}if(I>=q)return d;var ie=I-Qc(V);if(ie<1)return V;var ve=ee?Bl(ee,0,ie).join(""):d.slice(0,ie);if(U===n)return ve+V;if(ee&&(ie+=ve.length-ie),jb(U)){if(d.slice(ie).search(U)){var De,Fe=ve;for(U.global||(U=ob(U.source,sn(Ce.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 nt=ve.lastIndexOf(U);nt>-1&&(ve=ve.slice(0,nt))}return ve+V}function X7(d){return d=sn(d),d&&bn.test(d)?d.replace(Qt,kV):d}var Z7=ru(function(d,g,I){return d+(I?" ":"")+g.toUpperCase()}),Wb=FM("toUpperCase");function A_(d,g,I){return d=sn(d),g=I?n:g,g===n?CV(d)?_V(d):fV(d):d.match(g)||[]}var L_=Ft(function(d,g){try{return Do(d,n,g)}catch(I){return Vb(I)?I:new It(I)}}),J7=Xi(function(d,g){return fs(g,function(I){I=bi(I),Yi(d,I,Bb(d[I],d))}),d});function eU(d){var g=d==null?0:d.length,I=yt();return d=g?Rn(d,function(V){if(typeof V[1]!="function")throw new ps(i);return[I(V[0]),V[1]]}):[],Ft(function(V){for(var U=-1;++U<g;){var q=d[U];if(Do(q[0],this,V))return Do(q[1],this,V)}})}function tU(d){return kj(ms(d,p))}function Gb(d){return function(){return d}}function nU(d,g){return d==null||d!==d?g:d}var rU=BM(),oU=BM(!0);function yo(d){return d}function Kb(d){return mM(typeof d=="function"?d:ms(d,p))}function sU(d){return vM(ms(d,p))}function iU(d,g){return yM(d,ms(g,p))}var lU=Ft(function(d,g){return function(I){return Cf(I,d,g)}}),aU=Ft(function(d,g){return function(I){return Cf(d,I,g)}});function qb(d,g,I){var V=br(g),U=Sm(g,V);I==null&&!(Bn(g)&&(U.length||!V.length))&&(I=g,g=d,d=this,U=Sm(g,br(g)));var q=!(Bn(I)&&"chain"in I)||!!I.chain,ee=Ji(d);return fs(U,function(ie){var ve=g[ie];d[ie]=ve,ee&&(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,Ol([this.value()],arguments))})}),d}function cU(){return _r._===this&&(_r._=AV),this}function Yb(){}function uU(d){return d=Ot(d),Ft(function(g){return bM(g,d)})}var dU=kb(Rn),fU=kb(zI),pU=kb(X0);function F_(d){return Ob(d)?Z0(bi(d)):Hj(d)}function hU(d){return function(g){return d==null?n:qa(d,g)}}var mU=VM(),gU=VM(!0);function Qb(){return[]}function Xb(){return!1}function vU(){return{}}function yU(){return""}function bU(){return!0}function wU(d,g){if(d=Ot(d),d<1||d>A)return[];var I=K,V=Br(d,K);g=yt(g),d-=K;for(var U=tb(V,g);++I<d;)g(I);return U}function CU(d){return Mt(d)?Rn(d,bi):Fo(d)?[d]:mo(r_(sn(d)))}function xU(d){var g=++OV;return sn(d)+g}var SU=_m(function(d,g){return d+g},0),PU=Ib("ceil"),EU=_m(function(d,g){return d/g},1),kU=Ib("floor");function IU(d){return d&&d.length?xm(d,yo,fb):n}function MU(d,g){return d&&d.length?xm(d,yt(g,2),fb):n}function _U(d){return HI(d,yo)}function TU(d,g){return HI(d,yt(g,2))}function $U(d){return d&&d.length?xm(d,yo,gb):n}function RU(d,g){return d&&d.length?xm(d,yt(g,2),gb):n}var OU=_m(function(d,g){return d*g},1),DU=Ib("round"),AU=_m(function(d,g){return d-g},0);function LU(d){return d&&d.length?eb(d,yo):0}function FU(d,g){return d&&d.length?eb(d,yt(g,2)):0}return G.after=s8,G.ary=h_,G.assign=G8,G.assignIn=M_,G.assignInWith=jm,G.assignWith=K8,G.at=q8,G.before=m_,G.bind=Bb,G.bindAll=J7,G.bindKey=g_,G.castArray=v8,G.chain=d_,G.chunk=kH,G.compact=IH,G.concat=MH,G.cond=eU,G.conforms=tU,G.constant=Gb,G.countBy=L9,G.create=Y8,G.curry=v_,G.curryRight=y_,G.debounce=b_,G.defaults=Q8,G.defaultsDeep=X8,G.defer=i8,G.delay=l8,G.difference=_H,G.differenceBy=TH,G.differenceWith=$H,G.drop=RH,G.dropRight=OH,G.dropRightWhile=DH,G.dropWhile=AH,G.fill=LH,G.filter=N9,G.flatMap=V9,G.flatMapDeep=j9,G.flatMapDepth=H9,G.flatten=l_,G.flattenDeep=FH,G.flattenDepth=NH,G.flip=a8,G.flow=rU,G.flowRight=oU,G.fromPairs=BH,G.functions=o7,G.functionsIn=s7,G.groupBy=U9,G.initial=VH,G.intersection=jH,G.intersectionBy=HH,G.intersectionWith=UH,G.invert=l7,G.invertBy=a7,G.invokeMap=G9,G.iteratee=Kb,G.keyBy=K9,G.keys=br,G.keysIn=vo,G.map=Lm,G.mapKeys=u7,G.mapValues=d7,G.matches=sU,G.matchesProperty=iU,G.memoize=Nm,G.merge=f7,G.mergeWith=__,G.method=lU,G.methodOf=aU,G.mixin=qb,G.negate=Bm,G.nthArg=uU,G.omit=p7,G.omitBy=h7,G.once=c8,G.orderBy=q9,G.over=dU,G.overArgs=u8,G.overEvery=fU,G.overSome=pU,G.partial=zb,G.partialRight=w_,G.partition=Y9,G.pick=m7,G.pickBy=T_,G.property=F_,G.propertyOf=hU,G.pull=qH,G.pullAll=c_,G.pullAllBy=YH,G.pullAllWith=QH,G.pullAt=XH,G.range=mU,G.rangeRight=gU,G.rearg=d8,G.reject=Z9,G.remove=ZH,G.rest=f8,G.reverse=Fb,G.sampleSize=e8,G.set=v7,G.setWith=y7,G.shuffle=t8,G.slice=JH,G.sortBy=o8,G.sortedUniq=i9,G.sortedUniqBy=l9,G.split=V7,G.spread=p8,G.tail=a9,G.take=c9,G.takeRight=u9,G.takeRightWhile=d9,G.takeWhile=f9,G.tap=I9,G.throttle=h8,G.thru=Am,G.toArray=E_,G.toPairs=$_,G.toPairsIn=R_,G.toPath=CU,G.toPlainObject=I_,G.transform=b7,G.unary=m8,G.union=p9,G.unionBy=h9,G.unionWith=m9,G.uniq=g9,G.uniqBy=v9,G.uniqWith=y9,G.unset=w7,G.unzip=Nb,G.unzipWith=u_,G.update=C7,G.updateWith=x7,G.values=iu,G.valuesIn=S7,G.without=b9,G.words=A_,G.wrap=g8,G.xor=w9,G.xorBy=C9,G.xorWith=x9,G.zip=S9,G.zipObject=P9,G.zipObjectDeep=E9,G.zipWith=k9,G.entries=$_,G.entriesIn=R_,G.extend=M_,G.extendWith=jm,qb(G,G),G.add=SU,G.attempt=L_,G.camelCase=I7,G.capitalize=O_,G.ceil=PU,G.clamp=P7,G.clone=y8,G.cloneDeep=w8,G.cloneDeepWith=C8,G.cloneWith=b8,G.conformsTo=x8,G.deburr=D_,G.defaultTo=nU,G.divide=EU,G.endsWith=M7,G.eq=Gs,G.escape=_7,G.escapeRegExp=T7,G.every=F9,G.find=B9,G.findIndex=s_,G.findKey=Z8,G.findLast=z9,G.findLastIndex=i_,G.findLastKey=J8,G.floor=kU,G.forEach=f_,G.forEachRight=p_,G.forIn=e7,G.forInRight=t7,G.forOwn=n7,G.forOwnRight=r7,G.get=Hb,G.gt=S8,G.gte=P8,G.has=i7,G.hasIn=Ub,G.head=a_,G.identity=yo,G.includes=W9,G.indexOf=zH,G.inRange=E7,G.invoke=c7,G.isArguments=Xa,G.isArray=Mt,G.isArrayBuffer=E8,G.isArrayLike=go,G.isArrayLikeObject=Zn,G.isBoolean=k8,G.isBuffer=zl,G.isDate=I8,G.isElement=M8,G.isEmpty=_8,G.isEqual=T8,G.isEqualWith=$8,G.isError=Vb,G.isFinite=R8,G.isFunction=Ji,G.isInteger=C_,G.isLength=zm,G.isMap=x_,G.isMatch=O8,G.isMatchWith=D8,G.isNaN=A8,G.isNative=L8,G.isNil=N8,G.isNull=F8,G.isNumber=S_,G.isObject=Bn,G.isObjectLike=Un,G.isPlainObject=If,G.isRegExp=jb,G.isSafeInteger=B8,G.isSet=P_,G.isString=Vm,G.isSymbol=Fo,G.isTypedArray=su,G.isUndefined=z8,G.isWeakMap=V8,G.isWeakSet=j8,G.join=WH,G.kebabCase=$7,G.last=vs,G.lastIndexOf=GH,G.lowerCase=R7,G.lowerFirst=O7,G.lt=H8,G.lte=U8,G.max=IU,G.maxBy=MU,G.mean=_U,G.meanBy=TU,G.min=$U,G.minBy=RU,G.stubArray=Qb,G.stubFalse=Xb,G.stubObject=vU,G.stubString=yU,G.stubTrue=bU,G.multiply=OU,G.nth=KH,G.noConflict=cU,G.noop=Yb,G.now=Fm,G.pad=D7,G.padEnd=A7,G.padStart=L7,G.parseInt=F7,G.random=k7,G.reduce=Q9,G.reduceRight=X9,G.repeat=N7,G.replace=B7,G.result=g7,G.round=DU,G.runInContext=ge,G.sample=J9,G.size=n8,G.snakeCase=z7,G.some=r8,G.sortedIndex=e9,G.sortedIndexBy=t9,G.sortedIndexOf=n9,G.sortedLastIndex=r9,G.sortedLastIndexBy=o9,G.sortedLastIndexOf=s9,G.startCase=j7,G.startsWith=H7,G.subtract=AU,G.sum=LU,G.sumBy=FU,G.template=U7,G.times=wU,G.toFinite=el,G.toInteger=Ot,G.toLength=k_,G.toLower=W7,G.toNumber=ys,G.toSafeInteger=W8,G.toString=sn,G.toUpper=G7,G.trim=K7,G.trimEnd=q7,G.trimStart=Y7,G.truncate=Q7,G.unescape=X7,G.uniqueId=xU,G.upperCase=Z7,G.upperFirst=Wb,G.each=f_,G.eachRight=p_,G.first=a_,qb(G,function(){var d={};return vi(G,function(g,I){cn.call(G.prototype,I)||(d[I]=g)}),d}(),{chain:!1}),G.VERSION=r,fs(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){G[d].placeholder=G}),fs(["drop","take"],function(d,g){Ht.prototype[d]=function(I){I=I===n?1:dr(Ot(I),0);var V=this.__filtered__&&!g?new Ht(this):this.clone();return V.__filtered__?V.__takeCount__=Br(I,V.__takeCount__):V.__views__.push({size:Br(I,K),type:d+(V.__dir__<0?"Right":"")}),V},Ht.prototype[d+"Right"]=function(I){return this.reverse()[d](I).reverse()}}),fs(["filter","map","takeWhile"],function(d,g){var I=g+1,V=I==T||I==F;Ht.prototype[d]=function(U){var q=this.clone();return q.__iteratees__.push({iteratee:yt(U,3),type:I}),q.__filtered__=q.__filtered__||V,q}}),fs(["head","last"],function(d,g){var I="take"+(g?"Right":"");Ht.prototype[d]=function(){return this[I](1).value()[0]}}),fs(["initial","tail"],function(d,g){var I="drop"+(g?"":"Right");Ht.prototype[d]=function(){return this.__filtered__?new Ht(this):this[I](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=Ft(function(d,g){return typeof d=="function"?new Ht(this):this.map(function(I){return Cf(I,d,g)})}),Ht.prototype.reject=function(d){return this.filter(Bm(yt(d)))},Ht.prototype.slice=function(d,g){d=Ot(d);var I=this;return I.__filtered__&&(d>0||g<0)?new Ht(I):(d<0?I=I.takeRight(-d):d&&(I=I.drop(d)),g!==n&&(g=Ot(g),I=g<0?I.dropRight(-g):I.take(g-d)),I)},Ht.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},Ht.prototype.toArray=function(){return this.take(K)},vi(Ht.prototype,function(d,g){var I=/^(?:filter|find|map|reject)|While$/.test(g),V=/^(?:head|last)$/.test(g),U=G[V?"take"+(g=="last"?"Right":""):g],q=V||/^find/.test(g);U&&(G.prototype[g]=function(){var ee=this.__wrapped__,ie=V?[1]:arguments,ve=ee instanceof Ht,De=ie[0],Fe=ve||Mt(ee),Be=function(Bt){var Gt=U.apply(G,Ol([Bt],ie));return V&&nt?Gt[0]:Gt};Fe&&I&&typeof De=="function"&&De.length!=1&&(ve=Fe=!1);var nt=this.__chain__,pt=!!this.__actions__.length,Ct=q&&!nt,Dt=ve&&!pt;if(!q&&Fe){ee=Dt?ee:new Ht(this);var xt=d.apply(ee,ie);return xt.__actions__.push({func:Am,args:[Be],thisArg:n}),new hs(xt,nt)}return Ct&&Dt?d.apply(this,ie):(xt=this.thru(Be),Ct?V?xt.value()[0]:xt.value():xt)})}),fs(["pop","push","shift","sort","splice","unshift"],function(d){var g=lm[d],I=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",V=/^(?:pop|shift)$/.test(d);G.prototype[d]=function(){var U=arguments;if(V&&!this.__chain__){var q=this.value();return g.apply(Mt(q)?q:[],U)}return this[I](function(ee){return g.apply(Mt(ee)?ee:[],U)})}}),vi(Ht.prototype,function(d,g){var I=G[g];if(I){var V=I.name+"";cn.call(eu,V)||(eu[V]=[]),eu[V].push({name:g,func:I})}}),eu[Mm(n,w).name]=[{name:"wrapper",func:n}],Ht.prototype.clone=XV,Ht.prototype.reverse=ZV,Ht.prototype.value=JV,G.prototype.at=M9,G.prototype.chain=_9,G.prototype.commit=T9,G.prototype.next=$9,G.prototype.plant=O9,G.prototype.reverse=D9,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=A9,G.prototype.first=G.prototype.head,hf&&(G.prototype[hf]=R9),G},Xc=TV();Ha?((Ha.exports=Xc)._=Xc,K0._=Xc):_r._=Xc}).call(ln)})(Kv,Kv.exports);var $ue=Kv.exports;const Ze=pi($ue),ju="/~/api/",Rue={loginSrp1:90,update:600,get_status:20},EN={};function Oue(e){Object.assign(EN,e)}function ct(e,t,n={}){var a,c,f;Ze.defaults(n,EN);const r=(a=n.modal)==null?void 0:a.call(n,e,t),o=new AbortController;let s="";const i=1e3*((f=(c=Rue[e])!=null?c:n.timeout)!=null?f:10),l=i&&setTimeout(()=>{o.abort(s="timeout"),console.debug("API TIMEOUT",e,t!=null?t:"")},i);return Object.assign(fetch(JN()+ju+e,{method:"POST",headers:{"content-type":"application/json","x-hfs-anti-csrf":"1"},signal:o.signal,body:t&&JSON.stringify(t)}).then(p=>rt(this,null,function*(){var m;r==null||r();let h=yield p.text(),y;try{y=JSON.parse(h)}catch(C){}const v=y!=null?y:h;if(console.debug(p.ok?"API":"API FAILED",e,t!=null?t:"",">>",v),yield(m=n.onResponse)==null?void 0:m.call(n,p,v),!p.ok)throw new kN(p.status,y===void 0?h:`Failed API ${e}: ${p.statusText}`,y);return v}),p=>{var h;throw r==null||r(),(h=p==null?void 0:p.message)!=null&&h.includes("fetch")?(console.error(p.message),Error("Network error")):s||p}).finally(()=>clearTimeout(l)),{abort(){o.abort(s="cancel")}})}class kN extends Error{constructor(t,n,r){super(n,{cause:r}),this.code=t}get data(){return this.cause}}function IN(e,t,n={}){const[r,o]=Co(void 0),[s,i]=Co(void 0),[l,a]=Co(0),c=u.useRef(),f=u.useRef(),p=u.useRef();u.useEffect(()=>{var C,w;(C=c.current)==null||C.abort(),o(void 0),i(void 0);let y=!1,v;const m=zh(0).then(()=>!e||y?void 0:v=ct(e,t,n)).then(b=>y||o(p.current=b),b=>{y||(i(b),o(p.current=void 0))}).finally(()=>c.current=f.current=void 0);c.current=Object.assign(m,{abort(){y=!0,v==null||v.abort()}}),(w=f.current)==null||w.resolve(m)},[e,JSON.stringify(t),l]);const h=u.useCallback(()=>{c.current||(a(y=>y+1),f.current=V2())},[a]);return{data:r,setData:o,error:s,reload:h,loading:c.current||f.current,getData:()=>p.current}}function MN(e,t,n){t=Ze.omitBy(t,Ze.isUndefined),console.debug("API EVENTS",e,t);const r=new EventSource(JN()+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 Due(e,t={}){const[n,r]=Co(void 0),[o,s]=Co(void 0),[i,l]=Co(!1);return u.useEffect(()=>{const a=MN(e,t,(f,p)=>{switch(f){case"error":return s("Connection error"),c();case"closed":return c();case"msg":return(a==null?void 0:a.readyState)===(a==null?void 0:a.CLOSED)?c():r(p)}});return()=>{a.close(),c()};function c(){l(!1)}},[e,JSON.stringify(t)]),{data:n,loading:i,error:o}}globalThis&&globalThis.__awaiter;function R2(e,t){const[n,r]=u.useState(e);return u.useEffect(()=>{const o=setTimeout(()=>r(e),t||500);return()=>{clearTimeout(o)}},[e,t]),n}function _N(e,t,n,r){const o=u.useRef(t);TN(()=>{o.current=t},[t]),u.useEffect(()=>{var s;const i=(s=n==null?void 0:n.current)!==null&&s!==void 0?s:window;if(!(i&&i.addEventListener))return;const l=a=>o.current(a);return i.addEventListener(e,l,r),()=>{i.removeEventListener(e,l,r)}},[e,n,r])}globalThis&&globalThis.__awaiter;function Aue(){const e=u.useRef(!1);return u.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),u.useCallback(()=>e.current,[])}const TN=typeof window!="undefined"?u.useLayoutEffect:u.useEffect;function B1(){const[e,t]=u.useState({width:0,height:0}),n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return _N("resize",n),TN(()=>{n()},[]),e}function Co(e){const t=Aue(),[n,r]=u.useState(e),o=u.useCallback(s=>{t()&&r(s)},[t,r]);return[n,o,t]}function Lue(e){return e.filter(t=>t===0||t&&(!Array.isArray(t)||t.length))}function Fue(e,t){const n=[];for(const r of Lue(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):u.createElement(u.Fragment,{key:n,children:t}))}function $N(){const[e,t]=u.useState(0);return Object.assign(u.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=$N();u.useEffect(()=>{e&&(o.waiter||(o.waiter=new Promise(l=>{setTimeout(()=>rt(this,null,function*(){if(!o.batch.size)return l();const a=[...o.batch.values()];o.batch.clear();const c=yield e(a);a.forEach((f,p)=>{var h;return o.cache.set(f,(h=c[p])!=null?h:null)}),o.waiter=void 0,l()}),n)}))).then(s)},[e]);const i=o&&o.cache.get(t);return o&&i===void 0&&o.batch.add(t),we({data:i},o)}function Nue(n){var r=n,{margin:e}=r,t=At(r,["margin"]);const o=u.useRef(),[s,i]=u.useState(),l=B1();return u.useEffect(()=>{const a=o.current;if(!a)return;const c=a.getBoundingClientRect(),f=document.documentElement,p=window.innerHeight||f.clientHeight;i(p-(c==null?void 0:c.top)-e)},[l]),u.createElement("div",we({ref:o,style:{maxHeight:s,overflow:"auto"}},t))}function Bue({children:e}){return e?u.createElement("div",{className:"ariaOnly"},e):null}const zue=navigator.platform.match("Mac");function z1(e){return(e.ctrlKey||zue&&e.metaKey)&&e.key}const Vue=Symbol(),O2=Symbol(),Wf="a",Qg="w";let jue=(e,t)=>new Proxy(e,t);const jx=Object.getPrototypeOf,Hx=new WeakMap,RN=e=>e&&(Hx.has(e)?Hx.get(e):jx(e)===Object.prototype||jx(e)===Array.prototype),tO=e=>typeof e=="object"&&e!==null,Hue=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(jx(e),t)},ON=e=>e[O2]||e,DN=(e,t,n,r)=>{if(!RN(e))return e;let o=r&&r.get(e);if(!o){const a=ON(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(f=>!f.configurable&&!f.writable))(a)?[a,Hue(a)]:[a],r==null||r.set(e,o)}const[s,i]=o;let l=n&&n.get(s);return l&&l[1].f===!!i||(l=((a,c)=>{const f={f:c};let p=!1;const h=(v,m)=>{if(!p){let C=f[Wf].get(a);if(C||(C={},f[Wf].set(a,C)),v===Qg)C[Qg]=!0;else{let w=C[v];w||(w=new Set,C[v]=w),w.add(m)}}},y={get:(v,m)=>m===O2?a:(h("k",m),DN(Reflect.get(v,m),f[Wf],f.c,f.t)),has:(v,m)=>m===Vue?(p=!0,f[Wf].delete(a),!0):(h("h",m),Reflect.has(v,m)),getOwnPropertyDescriptor:(v,m)=>(h("o",m),Reflect.getOwnPropertyDescriptor(v,m)),ownKeys:v=>(h(Qg),Reflect.ownKeys(v))};return c&&(y.set=y.deleteProperty=()=>!1),[y,f]})(s,!!i),l[1].p=jue(i||s,l[0]),n&&n.set(s,l)),l[1][Wf]=t,l[1].c=n,l[1].t=r,l[1].p},AN=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!tO(e)||!tO(t))return!0;const o=n.get(ON(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),c=Reflect.ownKeys(l);return a.length!==c.length||a.some((f,p)=>f!==c[p])})(e,t),s)return s}else for(const i of o.o||[])if(s=!!Reflect.getOwnPropertyDescriptor(e,i)!=!!Reflect.getOwnPropertyDescriptor(t,i),s)return s;for(const i of o.k||[])if(s=AN(e[i],t[i],n,r),s)return s;return s===null&&(s=!0),s}finally{r&&r.set(e,{n:t,g:s})}},Uue=e=>RN(e)&&e[O2]||null,nO=(e,t=!0)=>{Hx.set(e,t)};const Hw=e=>typeof e=="object"&&e!==null,Jl=new WeakMap,sp=new WeakSet,Wue=(e=Object.is,t=(c,f)=>new Proxy(c,f),n=c=>Hw(c)&&!sp.has(c)&&(Array.isArray(c)||!(Symbol.iterator in c))&&!(c instanceof WeakMap)&&!(c instanceof WeakSet)&&!(c instanceof Error)&&!(c instanceof Number)&&!(c instanceof Date)&&!(c instanceof String)&&!(c instanceof RegExp)&&!(c instanceof ArrayBuffer),r=c=>{switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:throw c}},o=new WeakMap,s=(c,f,p=r)=>{const h=o.get(c);if((h==null?void 0:h[0])===f)return h[1];const y=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return nO(y,!0),o.set(c,[f,y]),Reflect.ownKeys(c).forEach(v=>{if(Object.getOwnPropertyDescriptor(y,v))return;const m=Reflect.get(c,v),{enumerable:C}=Reflect.getOwnPropertyDescriptor(c,v),w={value:m,enumerable:C,configurable:!0};if(sp.has(m))nO(m,!1);else if(m instanceof Promise)delete w.value,w.get=()=>p(m);else if(Jl.has(m)){const[b,x]=Jl.get(m);w.value=s(b,x(),p)}Object.defineProperty(y,v,w)}),Object.preventExtensions(y)},i=new WeakMap,l=[1,1],a=c=>{if(!Hw(c))throw new Error("object required");const f=i.get(c);if(f)return f;let p=l[0];const h=new Set,y=(O,_=++l[0])=>{p!==_&&(p=_,h.forEach(L=>L(O,_)))};let v=l[1];const m=(O=++l[1])=>(v!==O&&!h.size&&(v=O,w.forEach(([_])=>{const L=_[1](O);L>p&&(p=L)})),p),C=O=>(_,L)=>{const B=[..._];B[1]=[O,...B[1]],y(B,L)},w=new Map,b=(O,_)=>{if(h.size){const L=_[3](C(O));w.set(O,[_,L])}else w.set(O,[_])},x=O=>{var _;const L=w.get(O);L&&(w.delete(O),(_=L[1])==null||_.call(L))},P=O=>(h.add(O),h.size===1&&w.forEach(([L,B],z)=>{const T=L[3](C(z));w.set(z,[L,T])}),()=>{h.delete(O),h.size===0&&w.forEach(([L,B],z)=>{B&&(B(),w.set(z,[L]))})}),M=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),k=t(M,{deleteProperty(O,_){const L=Reflect.get(O,_);x(_);const B=Reflect.deleteProperty(O,_);return B&&y(["delete",[_],L]),B},set(O,_,L,B){const z=Reflect.has(O,_),T=Reflect.get(O,_,B);if(z&&(e(T,L)||i.has(L)&&e(T,i.get(L))))return!0;x(_),Hw(L)&&(L=Uue(L)||L);let $=L;if(L instanceof Promise)L.then(F=>{L.status="fulfilled",L.value=F,y(["resolve",[_],F])}).catch(F=>{L.status="rejected",L.reason=F,y(["reject",[_],F])});else{!Jl.has(L)&&n(L)&&($=a(L));const F=!sp.has($)&&Jl.get($);F&&b(_,F)}return Reflect.set(O,_,$,B),y(["set",[_],L,T]),!0}});i.set(c,k);const R=[M,m,s,P];return Jl.set(k,R),Reflect.ownKeys(c).forEach(O=>{const _=Object.getOwnPropertyDescriptor(c,O);"value"in _&&(k[O]=c[O],delete _.value,delete _.writable),Object.defineProperty(M,O,_)}),k})=>[a,Jl,sp,e,t,n,r,o,s,i,l],[Gue]=Wue();function D2(e={}){return Gue(e)}function A2(e,t,n){const r=Jl.get(e);let o;const s=[],i=r[3];let l=!1;const c=i(f=>{if(s.push(f),n){t(s.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,l&&t(s.splice(0))}))});return l=!0,()=>{l=!1,c()}}function rO(e,t){const n=Jl.get(e),[r,o,s]=n;return s(r,o(),t)}function Kue(e){return sp.add(e),e}var LN={exports:{}},FN={};/**
|
|
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 Pd=u;function que(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yue=typeof Object.is=="function"?Object.is:que,Que=Pd.useState,Xue=Pd.useEffect,Zue=Pd.useLayoutEffect,Jue=Pd.useDebugValue;function ede(e,t){var n=t(),r=Que({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return Zue(function(){o.value=n,o.getSnapshot=t,Uw(o)&&s({inst:o})},[e,n,t]),Xue(function(){return Uw(o)&&s({inst:o}),e(function(){Uw(o)&&s({inst:o})})},[e]),Jue(n),n}function Uw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Yue(e,n)}catch(r){return!0}}function tde(e,t){return t()}var nde=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?tde:ede;FN.useSyncExternalStore=Pd.useSyncExternalStore!==void 0?Pd.useSyncExternalStore:nde;LN.exports=FN;var rde=LN.exports;const ode=pi(rde),{use:oO}=Ko,{useSyncExternalStore:sde}=ode;const ide=new WeakMap;function L2(e,t){const n=t==null?void 0:t.sync,r=u.useRef(),o=u.useRef();let s=!0;const i=sde(u.useCallback(c=>{const f=A2(e,c,n);return c(),f},[e,n]),()=>{const c=rO(e,oO);try{if(!s&&r.current&&o.current&&!AN(r.current,c,o.current,new WeakMap))return r.current}catch(f){}return c},()=>rO(e,oO));s=!1;const l=new WeakMap;u.useEffect(()=>{r.current=i,o.current=l});const a=u.useMemo(()=>new WeakMap,[]);return DN(i,l,a,ide)}const Ed=D2([]),Ux={closableProps:{children:"x","aria-label":"Close"},padding:!0},NN=['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(NN),o=r.length;if(!o)return;const[s,i]=e.shiftKey?[o-1,0]:[0,o-1];e.target!==r[i]&&lde(document.activeElement,n)||(r[s].focus(),e.preventDefault())});function lde(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function ade(e){const t=L2(Ed);return u.useEffect(()=>{document.body.style.overflow=t.length?"hidden":""},[t.length]),u.createElement(u.Fragment,{},u.createElement("div",we({"aria-hidden":t.length>0},e)),t.map(n=>u.createElement(cde,we({key:n.$id},n))))}function cde(e){var r;const t=u.useRef();if(u.useEffect(()=>{var o;(o=t.current)==null||o.focus()},[]),e=we(we({},Ux),e),e.Container)return u.createElement(e.Container,e);return u.createElement("div",{ref:t,className:"dialog-backdrop "+(e.className||""),tabIndex:0,onKeyDown:ude,onClick:o=>o.target===o.currentTarget&&ji()},e.noFrame?u.createElement(e.Content||"div"):u.createElement("div",we({role:"dialog","aria-modal":!0,className:"dialog",style:we(we({},n()),(r=e.dialogProps)==null?void 0:r.style),onClick(o){o.stopPropagation()}},e.dialogProps),e.closable||e.closable===void 0&&u.createElement("button",we({className:"dialog-icon dialog-closer",onClick(){ji()}},e.closableProps)),e.icon&&u.createElement("div",{className:"dialog-icon dialog-type"+(typeof e.icon=="string"?" dialog-icon-text":""),"aria-hidden":!0},qv(e.icon)),u.createElement("div",{className:"dialog-title"},qv(e.title)),u.createElement("div",{className:"dialog-content"},u.createElement(e.Content||"div"))));function n(){const{innerWidth:o,innerHeight:s}=window,i=e.position;return i&&we(we({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 qv(e){return Efe(e)||u.isValidElement(e)?e:u.createElement(e)}function ude(e){e.key==="Escape"&&ji()}function po(e){const t=Math.random();return e.$id=t,e=Z1(e,r=>u.isValidElement(r)?Kue(r):r),Ed.push(e),{close:n};function n(r){const o=Ed.findIndex(s=>s.$id===t);if(!(o<0))return BN(o,r)}}function ji(e){let t=Ed.length;for(;t--;){const n=Ed[t];if(!n.reserveClosing)return BN(t,e),n}}function BN(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 vc={},V1={},kd={};const dde={},fde=Object.freeze(Object.defineProperty({__proto__:null,default:dde},Symbol.toStringTag,{value:"Module"})),sO=dA(fde);Object.defineProperty(kd,"__esModule",{value:!0});var iO=kd.crossEnvCrypto=void 0;try{const e=typeof window!="undefined"&&window.crypto||sO.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);iO=kd.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=sO,n=r=>o=>t.createHash(r).update(o).digest().buffer;iO=kd.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(V1,"__esModule",{value:!0});V1.SRPParameters=void 0;const vg=kd;class Id{constructor(t=Id.PrimeGroup[2048],n=Id.H.SHA512){if(this.primeGroup=t,this.H=n,this.NBits=this.primeGroup.N.toString(2).length,!n)throw new Error("Hash function required")}}V1.SRPParameters=Id;Id.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)}};Id.H={SHA1:vg.crossEnvCrypto.hashFunctions.SHA1,SHA256:vg.crossEnvCrypto.hashFunctions.SHA256,SHA384:vg.crossEnvCrypto.hashFunctions.SHA384,SHA512:vg.crossEnvCrypto.hashFunctions.SHA512};var j1={},H1={};(function(e){var t=ln&&ln.__awaiter||function(x,P,M,E){function k(R){return R instanceof M?R:new M(function(O){O(R)})}return new(M||(M=Promise))(function(R,O){function _(z){try{B(E.next(z))}catch(T){O(T)}}function L(z){try{B(E.throw(z))}catch(T){O(T)}}function B(z){z.done?R(z.value):k(z.value).then(_,L)}B((E=E.apply(x,P||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.modPow=e.hashBitCount=e.createVerifierAndSalt=e.createVerifier=e.generateRandomBigInt=e.generateRandomString=e.hashPadded=e.hash=e.padStartArrayBuffer=e.stringToArrayBuffer=e.arrayBufferToBigInt=e.bigIntToArrayBuffer=void 0;const n=kd,r=BigInt(0),o=BigInt(1),s=BigInt(2),i=x=>{const P=x.toString(16),M=new ArrayBuffer(Math.ceil(P.length/2)),E=new Uint8Array(M);let k=0;P.length%2!==0&&(E[0]=parseInt(P[0],16),k=1);for(let R=0;R<M.byteLength;R++)E[R+k]=parseInt(P.slice(2*R+k,2*R+2+k),16);return M};e.bigIntToArrayBuffer=i;const l=x=>{const P=[];return new Uint8Array(x).forEach(M=>{P.push(("0"+M.toString(16)).slice(-2))}),BigInt(`0x${P.join("")}`)};e.arrayBufferToBigInt=l;function a(x){return new TextEncoder().encode(x).buffer}e.stringToArrayBuffer=a;const c=(x,P)=>{const M=new Uint8Array(x);if(M.length<P){const E=new Uint8Array(P);return E.fill(0,0,P-M.length),E.set(M,P-M.length),E}return M};e.padStartArrayBuffer=c;function f(x,...P){const M=P.reduce((k,R)=>k+R.byteLength,0),E=new Uint8Array(M);for(let k=0,R=0;R<P.length;R++)E.set(new Uint8Array(P[R]),k),k+=P[R].byteLength;return x.H(E)}e.hash=f;function p(x,P,...M){const E=M.map(k=>e.padStartArrayBuffer(k,P));return f(x,...E)}e.hashPadded=p;function h(x=10){const P=new Uint8Array(Math.ceil(Math.ceil(x/2)));return n.crossEnvCrypto.randomBytes(P),P.reduce((M,E)=>{const k=E.toString(16).toString();return k.length===1?M+"0"+k:M+k},"").slice(0,x)}e.generateRandomString=h;function y(x=16){return e.arrayBufferToBigInt(b(x))}e.generateRandomBigInt=y;function v(x,P,M,E){return t(this,void 0,void 0,function*(){if(!P||!P.trim())throw new Error("Identity (I) must not be null or empty.");if(!M)throw new Error("Salt (s) must not be null.");if(!E)throw new Error("Password (P) must not be null");const k=yield x.computeX(P,M,E);return x.computeVerifier(k)})}e.createVerifier=v;function m(x,P,M,E){return t(this,void 0,void 0,function*(){const k=yield x.generateRandomSalt(E);return{s:k,v:yield v(x,P,k,M)}})}e.createVerifierAndSalt=m;const C=x=>t(void 0,void 0,void 0,function*(){return(yield f(x,e.bigIntToArrayBuffer(BigInt(1)))).byteLength*8});e.hashBitCount=C;function w(x,P,M){let E=o;for(;P>r;)P%s==o?(E=x*E%M,P-=o):(x=x*x%M,P/=s);return E}e.modPow=w;const b=x=>{const P=new Uint8Array(x);return n.crossEnvCrypto.randomBytes(P),P.buffer}})(H1);var Ul=ln&&ln.__awaiter||function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function l(f){try{c(r.next(f))}catch(p){i(p)}}function a(f){try{c(r.throw(f))}catch(p){i(p)}}function c(f){f.done?s(f.value):o(f.value).then(l,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(j1,"__esModule",{value:!0});j1.SRPRoutines=void 0;const mn=H1;class pde{constructor(t){this.parameters=t}hash(...t){return mn.hash(this.parameters,...t)}hashPadded(...t){const n=Math.trunc((this.parameters.NBits+7)/8);return mn.hashPadded(this.parameters,n,...t)}computeK(){return Ul(this,void 0,void 0,function*(){return mn.arrayBufferToBigInt(yield this.hashPadded(mn.bigIntToArrayBuffer(this.parameters.primeGroup.N),mn.bigIntToArrayBuffer(this.parameters.primeGroup.g)))})}generateRandomSalt(t){return Ul(this,void 0,void 0,function*(){const n=yield mn.hashBitCount(this.parameters),r=t||2*n/8;return mn.generateRandomBigInt(r)})}computeX(t,n,r){return Ul(this,void 0,void 0,function*(){return mn.arrayBufferToBigInt(yield this.hash(mn.bigIntToArrayBuffer(n),yield this.computeIdentityHash(t,r)))})}computeXStep2(t,n){return Ul(this,void 0,void 0,function*(){return mn.arrayBufferToBigInt(yield this.hash(mn.bigIntToArrayBuffer(t),n))})}computeIdentityHash(t,n){return Ul(this,void 0,void 0,function*(){return yield this.hash(mn.stringToArrayBuffer(n))})}computeVerifier(t){return mn.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}generatePrivateValue(){const t=Math.max(256,this.parameters.NBits);let n;do n=mn.generateRandomBigInt(t/8)%this.parameters.primeGroup.N;while(n===BigInt(0));return n}computeClientPublicValue(t){return mn.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}isValidPublicValue(t){return t%this.parameters.primeGroup.N!==BigInt(0)}computeU(t,n){return Ul(this,void 0,void 0,function*(){return mn.arrayBufferToBigInt(yield this.hashPadded(mn.bigIntToArrayBuffer(t),mn.bigIntToArrayBuffer(n)))})}computeClientEvidence(t,n,r,o,s){return Ul(this,void 0,void 0,function*(){return mn.arrayBufferToBigInt(yield this.hash(mn.bigIntToArrayBuffer(r),mn.bigIntToArrayBuffer(o),mn.bigIntToArrayBuffer(s)))})}computeServerEvidence(t,n,r){return Ul(this,void 0,void 0,function*(){return mn.arrayBufferToBigInt(yield this.hash(mn.bigIntToArrayBuffer(t),mn.bigIntToArrayBuffer(n),mn.bigIntToArrayBuffer(r)))})}computeClientSessionKey(t,n,r,o,s){const i=this.parameters.primeGroup.N,l=r*n+o,a=mn.modPow(this.parameters.primeGroup.g,n,i)*t%i;return mn.modPow(s+i-a,l,i)}}j1.SRPRoutines=pde;var Ca={},F2=ln&&ln.__awaiter||function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function l(f){try{c(r.next(f))}catch(p){i(p)}}function a(f){try{c(r.throw(f))}catch(p){i(p)}}function c(f){f.done?s(f.value):o(f.value).then(l,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(Ca,"__esModule",{value:!0});Ca.SRPClientSessionStep2=Ca.SRPClientSessionStep1=Ca.SRPClientSession=void 0;class hde{constructor(t){this.routines=t}step1(t,n){return F2(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 U1(this.routines,t,r)})}}Ca.SRPClientSession=hde;class U1{constructor(t,n,r){this.routines=t,this.I=n,this.IH=r}step2(t,n){return F2(this,void 0,void 0,function*(){if(!t)throw new Error("Salt (s) must not be null");if(!n)throw new Error("Public server value (B) must not be null");const r=yield this.routines.computeXStep2(t,this.IH),o=this.routines.generatePrivateValue(),s=this.routines.computeClientPublicValue(o),i=yield this.routines.computeK(),l=yield this.routines.computeU(s,n),a=this.routines.computeClientSessionKey(i,r,l,o,n),c=yield this.routines.computeClientEvidence(this.I,t,s,n,a);return new W1(this.routines,s,c,a)})}toJSON(){return{I:this.I,IH:Array.from(new Uint8Array(this.IH))}}static fromState(t,n){return new U1(t,n.I,new Uint8Array(n.IH).buffer)}}Ca.SRPClientSessionStep1=U1;class W1{constructor(t,n,r,o){this.routines=t,this.A=n,this.M1=r,this.S=o}step3(t){return F2(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 W1(t,BigInt("0x"+n.A),BigInt("0x"+n.M1),BigInt("0x"+n.S))}}Ca.SRPClientSessionStep2=W1;var Md={},Wx=ln&&ln.__awaiter||function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function l(f){try{c(r.next(f))}catch(p){i(p)}}function a(f){try{c(r.throw(f))}catch(p){i(p)}}function c(f){f.done?s(f.value):o(f.value).then(l,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(Md,"__esModule",{value:!0});Md.SRPServerSessionStep1=Md.SRPServerSession=void 0;const Gx=H1;class mde{constructor(t){this.routines=t}step1(t,n,r){return Wx(this,void 0,void 0,function*(){const o=this.routines.generatePrivateValue(),s=yield this.routines.computeK(),i=gde(this.routines.parameters,s,r,o);return new G1(this.routines,t,n,r,o,i)})}}Md.SRPServerSession=mde;class G1{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 Wx(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 vde(this.routines.parameters.primeGroup.N,this.verifier,n,t,this.b)})}step2(t,n){return Wx(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 G1(t,n.identifier,BigInt("0x"+n.salt),BigInt("0x"+n.verifier),BigInt("0x"+n.b),BigInt("0x"+n.B))}}Md.SRPServerSessionStep1=G1;const gde=(e,t,n,r)=>(Gx.modPow(e.primeGroup.g,r,e.primeGroup.N)+n*t)%e.primeGroup.N,vde=(e,t,n,r,o)=>Gx.modPow(Gx.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=V1;Object.defineProperty(e,"SRPParameters",{enumerable:!0,get:function(){return t.SRPParameters}});var n=j1;Object.defineProperty(e,"SRPRoutines",{enumerable:!0,get:function(){return n.SRPRoutines}});var r=Ca;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=Md;Object.defineProperty(e,"SRPServerSession",{enumerable:!0,get:function(){return o.SRPServerSession}}),Object.defineProperty(e,"SRPServerSessionStep1",{enumerable:!0,get:function(){return o.SRPServerSessionStep1}});var s=H1;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}})})(vc);function yde(e,t,n){return rt(this,null,function*(){const{pubKey:r,salt:o}=yield n("loginSrp1",{username:e});if(!o)throw Error("salt");const s=yield bde(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 bde(e,t,n,r){return rt(this,null,function*(){const o=new vc.SRPRoutines(new vc.SRPParameters);return yield(yield new vc.SRPClientSession(o).step1(e,t)).step2(BigInt(n),BigInt(r))})}var K1={};const xi="\\\\/",lO=`[^${xi}]`,ll="\\.",wde="\\+",Cde="\\?",q1="\\/",xde="(?=.)",zN="[^/]",N2=`(?:${q1}|$)`,VN=`(?:^|${q1})`,B2=`${ll}{1,2}${N2}`,Sde=`(?!${ll})`,Pde=`(?!${VN}${B2})`,Ede=`(?!${ll}{0,1}${N2})`,kde=`(?!${B2})`,Ide=`[^.${q1}]`,Mde=`${zN}*?`,_de="/",jN={DOT_LITERAL:ll,PLUS_LITERAL:wde,QMARK_LITERAL:Cde,SLASH_LITERAL:q1,ONE_CHAR:xde,QMARK:zN,END_ANCHOR:N2,DOTS_SLASH:B2,NO_DOT:Sde,NO_DOTS:Pde,NO_DOT_SLASH:Ede,NO_DOTS_SLASH:kde,QMARK_NO_DOT:Ide,STAR:Mde,START_ANCHOR:VN,SEP:_de},Tde=st(we({},jN),{SLASH_LITERAL:`[${xi}]`,QMARK:lO,STAR:`${lO}*?`,DOTS_SLASH:`${ll}{1,2}(?:[${xi}]|$)`,NO_DOT:`(?!${ll})`,NO_DOTS:`(?!(?:^|[${xi}])${ll}{1,2}(?:[${xi}]|$))`,NO_DOT_SLASH:`(?!${ll}{0,1}(?:[${xi}]|$))`,NO_DOTS_SLASH:`(?!${ll}{1,2}(?:[${xi}]|$))`,QMARK_NO_DOT:`[^.${xi}]`,START_ANCHOR:`(?:^|[${xi}])`,END_ANCHOR:`(?:[${xi}]|$)`,SEP:"\\"}),$de={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 Y1={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:$de,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?Tde:jN}};(function(e){const{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:o}=Y1;e.isObject=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),e.hasRegexChars=s=>r.test(s),e.isRegexChar=s=>s.length===1&&e.hasRegexChars(s),e.escapeRegex=s=>s.replace(o,"\\$1"),e.toPosixSlashes=s=>s.replace(t,"/"),e.removeBackslashes=s=>s.replace(n,i=>i==="\\"?"":i),e.supportsLookbehinds=()=>{if(typeof process!="undefined"){const s=process.version.slice(1).split(".").map(Number);if(s.length===3&&s[0]>=9||s[0]===8&&s[1]>=10)return!0}return!1},e.escapeLast=(s,i,l)=>{const a=s.lastIndexOf(i,l);return a===-1?s:s[a-1]==="\\"?e.escapeLast(s,i,a-1):`${s.slice(0,a)}\\${s.slice(a)}`},e.removePrefix=(s,i={})=>{let l=s;return l.startsWith("./")&&(l=l.slice(2),i.prefix="./"),l},e.wrapOutput=(s,i={},l={})=>{const a=l.contains?"":"^",c=l.contains?"":"$";let f=`${a}(?:${s})${c}`;return i.negated===!0&&(f=`(?:^(?!${f}).*$)`),f},e.basename=(s,{windows:i}={})=>{const l=s.split(i?/[\\/]/:"/"),a=l[l.length-1];return a===""?l[l.length-2]:a}})(K1);const aO=K1,{CHAR_ASTERISK:Ww,CHAR_AT:Rde,CHAR_BACKWARD_SLASH:ip,CHAR_COMMA:Ode,CHAR_DOT:Gw,CHAR_EXCLAMATION_MARK:Kw,CHAR_FORWARD_SLASH:HN,CHAR_LEFT_CURLY_BRACE:qw,CHAR_LEFT_PARENTHESES:Yw,CHAR_LEFT_SQUARE_BRACKET:Dde,CHAR_PLUS:Ade,CHAR_QUESTION_MARK:cO,CHAR_RIGHT_CURLY_BRACE:Lde,CHAR_RIGHT_PARENTHESES:uO,CHAR_RIGHT_SQUARE_BRACKET:Fde}=Y1,dO=e=>e===HN||e===ip,fO=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Nde=(e,t)=>{const n=t||{},r=e.length-1,o=n.parts===!0||n.scanToEnd===!0,s=[],i=[],l=[];let a=e,c=-1,f=0,p=0,h=!1,y=!1,v=!1,m=!1,C=!1,w=!1,b=!1,x=!1,P=!1,M=!1,E=0,k,R,O={value:"",depth:0,isGlob:!1};const _=()=>c>=r,L=()=>a.charCodeAt(c+1),B=()=>(k=R,a.charCodeAt(++c));for(;c<r;){R=B();let j;if(R===ip){b=O.backslashes=!0,R=B(),R===qw&&(w=!0);continue}if(w===!0||R===qw){for(E++;_()!==!0&&(R=B());){if(R===ip){b=O.backslashes=!0,B();continue}if(R===qw){E++;continue}if(w!==!0&&R===Gw&&(R=B())===Gw){if(h=O.isBrace=!0,v=O.isGlob=!0,M=!0,o===!0)continue;break}if(w!==!0&&R===Ode){if(h=O.isBrace=!0,v=O.isGlob=!0,M=!0,o===!0)continue;break}if(R===Lde&&(E--,E===0)){w=!1,h=O.isBrace=!0,M=!0;break}}if(o===!0)continue;break}if(R===HN){if(s.push(c),i.push(O),O={value:"",depth:0,isGlob:!1},M===!0)continue;if(k===Gw&&c===f+1){f+=2;continue}p=c+1;continue}if(n.noext!==!0&&(R===Ade||R===Rde||R===Ww||R===cO||R===Kw)===!0&&L()===Yw){if(v=O.isGlob=!0,m=O.isExtglob=!0,M=!0,R===Kw&&c===f&&(P=!0),o===!0){for(;_()!==!0&&(R=B());){if(R===ip){b=O.backslashes=!0,R=B();continue}if(R===uO){v=O.isGlob=!0,M=!0;break}}continue}break}if(R===Ww){if(k===Ww&&(C=O.isGlobstar=!0),v=O.isGlob=!0,M=!0,o===!0)continue;break}if(R===cO){if(v=O.isGlob=!0,M=!0,o===!0)continue;break}if(R===Dde){for(;_()!==!0&&(j=B());){if(j===ip){b=O.backslashes=!0,B();continue}if(j===Fde){y=O.isBracket=!0,v=O.isGlob=!0,M=!0;break}}if(o===!0)continue;break}if(n.nonegate!==!0&&R===Kw&&c===f){x=O.negated=!0,f++;continue}if(n.noparen!==!0&&R===Yw){if(v=O.isGlob=!0,o===!0){for(;_()!==!0&&(R=B());){if(R===Yw){b=O.backslashes=!0,R=B();continue}if(R===uO){M=!0;break}}continue}break}if(v===!0){if(M=!0,o===!0)continue;break}}n.noext===!0&&(m=!1,v=!1);let z=a,T="",$="";f>0&&(T=a.slice(0,f),a=a.slice(f),p-=f),z&&v===!0&&p>0?(z=a.slice(0,p),$=a.slice(p)):v===!0?(z="",$=a):z=a,z&&z!==""&&z!=="/"&&z!==a&&dO(z.charCodeAt(z.length-1))&&(z=z.slice(0,-1)),n.unescape===!0&&($&&($=aO.removeBackslashes($)),z&&b===!0&&(z=aO.removeBackslashes(z)));const F={prefix:T,input:e,start:f,base:z,glob:$,isBrace:h,isBracket:y,isGlob:v,isExtglob:m,isGlobstar:C,negated:x,negatedExtglob:P};if(n.tokens===!0&&(F.maxDepth=0,dO(R)||i.push(O),F.tokens=i),n.parts===!0||n.tokens===!0){let j;for(let A=0;A<s.length;A++){const N=j?j+1:f,H=s[A],K=e.slice(N,H);n.tokens&&(A===0&&f!==0?(i[A].isPrefix=!0,i[A].value=T):i[A].value=K,fO(i[A]),F.maxDepth+=i[A].depth),(A!==0||K!=="")&&l.push(K),j=H}if(j&&j+1<e.length){const A=e.slice(j+1);l.push(A),n.tokens&&(i[i.length-1].value=A,fO(i[i.length-1]),F.maxDepth+=i[i.length-1].depth)}F.slashes=s,F.parts=l}return F};var Bde=Nde;const Yv=Y1,Ys=K1,{MAX_LENGTH:Qv,POSIX_REGEX_SOURCE:zde,REGEX_NON_SPECIAL_CHARS:Vde,REGEX_SPECIAL_CHARS_BACKREF:jde,REPLACEMENTS:UN}=Yv,Hde=(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=>Ys.escapeRegex(o)).join("..")}return n},mu=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,z2=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=UN[e]||e;const n=we({},t),r=typeof n.maxLength=="number"?Math.min(Qv,n.maxLength):Qv;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=Yv.globChars(n.windows),c=Yv.extglobChars(a),{DOT_LITERAL:f,PLUS_LITERAL:p,SLASH_LITERAL:h,ONE_CHAR:y,DOTS_SLASH:v,NO_DOT:m,NO_DOT_SLASH:C,NO_DOTS_SLASH:w,QMARK:b,QMARK_NO_DOT:x,STAR:P,START_ANCHOR:M}=a,E=Z=>`(${l}(?:(?!${M}${Z.dot?v:f}).)*?)`,k=n.dot?"":m,R=n.dot?b:x;let O=n.bash===!0?E(n):P;n.capture&&(O=`(${O})`),typeof n.noext=="boolean"&&(n.noextglob=n.noext);const _={input:e,index:-1,start:0,dot:n.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};e=Ys.removePrefix(e,_),o=e.length;const L=[],B=[],z=[];let T=s,$;const F=()=>_.index===o-1,j=_.peek=(Z=1)=>e[_.index+Z],A=_.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)},Y=()=>{let Z=1;for(;j()==="!"&&(j(2)!=="("||j(3)==="?");)A(),_.start++,Z++;return Z%2===0?!1:(_.negated=!0,_.start++,!0)},te=Z=>{_[Z]++,z.push(Z)},Q=Z=>{_[Z]--,z.pop()},X=Z=>{if(T.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,-T.output.length),T.type="star",T.value="*",T.output=O,_.output+=T.output)}if(L.length&&Z.type!=="paren"&&(L[L.length-1].inner+=Z.value),(Z.value||Z.output)&&K(Z),T&&T.type==="text"&&Z.type==="text"){T.value+=Z.value,T.output=(T.output||"")+Z.value;return}Z.prev=T,i.push(Z),T=Z},J=(Z,he)=>{const ne=st(we({},c[he]),{conditions:1,inner:""});ne.prev=T,ne.parens=_.parens,ne.output=_.output;const re=(n.capture?"(":"")+ne.open;te("parens"),X({type:Z,value:he,output:_.output?"":y}),X({type:"paren",extglob:!0,value:A(),output:re}),L.push(ne)},se=Z=>{let he=Z.close+(n.capture?")":""),ne;if(Z.type==="negate"){let re=O;if(Z.inner&&Z.inner.length>1&&Z.inner.includes("/")&&(re=E(n)),(re!==O||F()||/^\)+$/.test(N()))&&(he=Z.close=`)$))${re}`),Z.inner.includes("*")&&(ne=N())&&/^\.[^\\/.]+$/.test(ne)){const me=z2(ne,st(we({},t),{fastpaths:!1})).output;he=Z.close=`)${me})${re})`}Z.prev.type==="bos"&&(_.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:$,output:he}),Q("parens")};if(n.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let Z=!1,he=e.replace(jde,(ne,re,me,ce,Se,ke)=>ce==="\\"?(Z=!0,ne):ce==="?"?re?re+ce+(Se?b.repeat(Se.length):""):ke===0?R+(Se?b.repeat(Se.length):""):b.repeat(me.length):ce==="."?f.repeat(me.length):ce==="*"?re?re+ce+(Se?O:""):O: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=Ys.wrapOutput(he,_,t),_)}for(;!F();){if($=A(),$==="\0")continue;if($==="\\"){const ne=j();if(ne==="/"&&n.bash!==!0||ne==="."||ne===";")continue;if(!ne){$+="\\",X({type:"text",value:$});continue}const re=/^\\+/.exec(N());let me=0;if(re&&re[0].length>2&&(me=re[0].length,_.index+=me,me%2!==0&&($+="\\")),n.unescape===!0?$=A():$+=A(),_.brackets===0){X({type:"text",value:$});continue}}if(_.brackets>0&&($!=="]"||T.value==="["||T.value==="[^")){if(n.posix!==!1&&$===":"){const ne=T.value.slice(1);if(ne.includes("[")&&(T.posix=!0,ne.includes(":"))){const re=T.value.lastIndexOf("["),me=T.value.slice(0,re),ce=T.value.slice(re+2),Se=zde[ce];if(Se){T.value=me+Se,_.backtrack=!0,A(),!s.output&&i.indexOf(T)===1&&(s.output=y);continue}}}($==="["&&j()!==":"||$==="-"&&j()==="]")&&($=`\\${$}`),$==="]"&&(T.value==="["||T.value==="[^")&&($=`\\${$}`),n.posix===!0&&$==="!"&&T.value==="["&&($="^"),T.value+=$,K({value:$});continue}if(_.quotes===1&&$!=='"'){$=Ys.escapeRegex($),T.value+=$,K({value:$});continue}if($==='"'){_.quotes=_.quotes===1?0:1,n.keepQuotes===!0&&X({type:"text",value:$});continue}if($==="("){te("parens"),X({type:"paren",value:$});continue}if($===")"){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:$,output:_.parens?")":"\\)"}),Q("parens");continue}if($==="["){if(n.nobracket===!0||!N().includes("]")){if(n.nobracket!==!0&&n.strictBrackets===!0)throw new SyntaxError(mu("closing","]"));$=`\\${$}`}else te("brackets");X({type:"bracket",value:$});continue}if($==="]"){if(n.nobracket===!0||T&&T.type==="bracket"&&T.value.length===1){X({type:"text",value:$,output:`\\${$}`});continue}if(_.brackets===0){if(n.strictBrackets===!0)throw new SyntaxError(mu("opening","["));X({type:"text",value:$,output:`\\${$}`});continue}Q("brackets");const ne=T.value.slice(1);if(T.posix!==!0&&ne[0]==="^"&&!ne.includes("/")&&($=`/${$}`),T.value+=$,K({value:$}),n.literalBrackets===!1||Ys.hasRegexChars(ne))continue;const re=Ys.escapeRegex(T.value);if(_.output=_.output.slice(0,-T.value.length),n.literalBrackets===!0){_.output+=re,T.value=re;continue}T.value=`(${l}${re}|${T.value})`,_.output+=T.value;continue}if($==="{"&&n.nobrace!==!0){te("braces");const ne={type:"brace",value:$,output:"(",outputIndex:_.output.length,tokensIndex:_.tokens.length};B.push(ne),X(ne);continue}if($==="}"){const ne=B[B.length-1];if(n.nobrace===!0||!ne){X({type:"text",value:$,output:$});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=Hde(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="\\{",$=re="\\}",_.output=me;for(const Se of ce)_.output+=Se.output||Se.value}X({type:"brace",value:$,output:re}),Q("braces"),B.pop();continue}if($==="|"){L.length>0&&L[L.length-1].conditions++,X({type:"text",value:$});continue}if($===","){let ne=$;const re=B[B.length-1];re&&z[z.length-1]==="braces"&&(re.comma=!0,ne="|"),X({type:"comma",value:$,output:ne});continue}if($==="/"){if(T.type==="dot"&&_.index===_.start+1){_.start=_.index+1,_.consumed="",_.output="",i.pop(),T=s;continue}X({type:"slash",value:$,output:h});continue}if($==="."){if(_.braces>0&&T.type==="dot"){T.value==="."&&(T.output=f);const ne=B[B.length-1];T.type="dots",T.output+=$,T.value+=$,ne.dots=!0;continue}if(_.braces+_.parens===0&&T.type!=="bos"&&T.type!=="slash"){X({type:"text",value:$,output:f});continue}X({type:"dot",value:$,output:f});continue}if($==="?"){if(!(T&&T.value==="(")&&n.noextglob!==!0&&j()==="("&&j(2)!=="?"){J("qmark",$);continue}if(T&&T.type==="paren"){const re=j();let me=$;if(re==="<"&&!Ys.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(T.value==="("&&!/[!=<:]/.test(re)||re==="<"&&!/<([!=]|\w+>)/.test(N()))&&(me=`\\${$}`),X({type:"text",value:$,output:me});continue}if(n.dot!==!0&&(T.type==="slash"||T.type==="bos")){X({type:"qmark",value:$,output:x});continue}X({type:"qmark",value:$,output:b});continue}if($==="!"){if(n.noextglob!==!0&&j()==="("&&(j(2)!=="?"||!/[!=<:]/.test(j(3)))){J("negate",$);continue}if(n.nonegate!==!0&&_.index===0){Y();continue}}if($==="+"){if(n.noextglob!==!0&&j()==="("&&j(2)!=="?"){J("plus",$);continue}if(T&&T.value==="("||n.regex===!1){X({type:"plus",value:$,output:p});continue}if(T&&(T.type==="bracket"||T.type==="paren"||T.type==="brace")||_.parens>0){X({type:"plus",value:$});continue}X({type:"plus",value:p});continue}if($==="@"){if(n.noextglob!==!0&&j()==="("&&j(2)!=="?"){X({type:"at",extglob:!0,value:$,output:""});continue}X({type:"text",value:$});continue}if($!=="*"){($==="$"||$==="^")&&($=`\\${$}`);const ne=Vde.exec(N());ne&&($+=ne[0],_.index+=ne[0].length),X({type:"text",value:$});continue}if(T&&(T.type==="globstar"||T.star===!0)){T.type="star",T.star=!0,T.value+=$,T.output=O,_.backtrack=!0,_.globstar=!0,H($);continue}let Z=N();if(n.noextglob!==!0&&/^\([^?]/.test(Z)){J("star",$);continue}if(T.type==="star"){if(n.noglobstar===!0){H($);continue}const ne=T.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:$,output:""});continue}const Se=_.braces>0&&(ne.type==="comma"||ne.type==="brace"),ke=L.length&&(ne.type==="pipe"||ne.type==="paren");if(!me&&ne.type!=="paren"&&!Se&&!ke){X({type:"star",value:$,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()){T.type="globstar",T.value+=$,T.output=E(n),_.output=T.output,_.globstar=!0,H($);continue}if(ne.type==="slash"&&ne.prev.type!=="bos"&&!ce&&F()){_.output=_.output.slice(0,-(ne.output+T.output).length),ne.output=`(?:${ne.output}`,T.type="globstar",T.output=E(n)+(n.strictSlashes?")":"|$)"),T.value+=$,_.globstar=!0,_.output+=ne.output+T.output,H($);continue}if(ne.type==="slash"&&ne.prev.type!=="bos"&&Z[0]==="/"){const ae=Z[1]!==void 0?"|$":"";_.output=_.output.slice(0,-(ne.output+T.output).length),ne.output=`(?:${ne.output}`,T.type="globstar",T.output=`${E(n)}${h}|${h}${ae})`,T.value+=$,_.output+=ne.output+T.output,_.globstar=!0,H($+A()),X({type:"slash",value:"/",output:""});continue}if(ne.type==="bos"&&Z[0]==="/"){T.type="globstar",T.value+=$,T.output=`(?:^|${h}|${E(n)}${h})`,_.output=T.output,_.globstar=!0,H($+A()),X({type:"slash",value:"/",output:""});continue}_.output=_.output.slice(0,-T.output.length),T.type="globstar",T.output=E(n),T.value+=$,_.output+=T.output,_.globstar=!0,H($);continue}const he={type:"star",value:$,output:O};if(n.bash===!0){he.output=".*?",(T.type==="bos"||T.type==="slash")&&(he.output=k+he.output),X(he);continue}if(T&&(T.type==="bracket"||T.type==="paren")&&n.regex===!0){he.output=$,X(he);continue}(_.index===_.start||T.type==="slash"||T.type==="dot")&&(T.type==="dot"?(_.output+=C,T.output+=C):n.dot===!0?(_.output+=w,T.output+=w):(_.output+=k,T.output+=k),j()!=="*"&&(_.output+=y,T.output+=y)),X(he)}for(;_.brackets>0;){if(n.strictBrackets===!0)throw new SyntaxError(mu("closing","]"));_.output=Ys.escapeLast(_.output,"["),Q("brackets")}for(;_.parens>0;){if(n.strictBrackets===!0)throw new SyntaxError(mu("closing",")"));_.output=Ys.escapeLast(_.output,"("),Q("parens")}for(;_.braces>0;){if(n.strictBrackets===!0)throw new SyntaxError(mu("closing","}"));_.output=Ys.escapeLast(_.output,"{"),Q("braces")}if(n.strictSlashes!==!0&&(T.type==="star"||T.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${h}?`}),_.backtrack===!0){_.output="";for(const Z of _.tokens)_.output+=Z.output!=null?Z.output:Z.value,Z.suffix&&(_.output+=Z.suffix)}return _};z2.fastpaths=(e,t)=>{const n=we({},t),r=typeof n.maxLength=="number"?Math.min(Qv,n.maxLength):Qv,o=e.length;if(o>r)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${r}`);e=UN[e]||e;const{DOT_LITERAL:s,SLASH_LITERAL:i,ONE_CHAR:l,DOTS_SLASH:a,NO_DOT:c,NO_DOTS:f,NO_DOTS_SLASH:p,STAR:h,START_ANCHOR:y}=Yv.globChars(n.windows),v=n.dot?f:c,m=n.dot?p:c,C=n.capture?"":"?:",w={negated:!1,prefix:""};let b=n.bash===!0?".*?":h;n.capture&&(b=`(${b})`);const x=k=>k.noglobstar===!0?b:`(${C}(?:(?!${y}${k.dot?a:s}).)*?)`,P=k=>{switch(k){case"*":return`${v}${l}${b}`;case".*":return`${s}${l}${b}`;case"*.*":return`${v}${b}${s}${l}${b}`;case"*/*":return`${v}${b}${i}${l}${m}${b}`;case"**":return v+x(n);case"**/*":return`(?:${v}${x(n)}${i})?${m}${l}${b}`;case"**/*.*":return`(?:${v}${x(n)}${i})?${m}${b}${s}${l}${b}`;case"**/.*":return`(?:${v}${x(n)}${i})?${s}${l}${b}`;default:{const R=/^(.*?)\.(\w+)$/.exec(k);if(!R)return;const O=P(R[1]);return O?O+s+R[2]:void 0}}},M=Ys.removePrefix(e,w);let E=P(M);return E&&n.strictSlashes!==!0&&(E+=`${i}?`),E};var Ude=z2;const Wde=Bde,Kx=Ude,WN=K1,Gde=Y1,Kde=e=>e&&typeof e=="object"&&!Array.isArray(e),nr=(e,t,n=!1)=>{if(Array.isArray(e)){const f=e.map(h=>nr(h,t,n));return h=>{for(const y of f){const v=y(h);if(v)return v}return!1}}const r=Kde(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(we({},t),{ignore:null,onMatch:null,onResult:null});a=nr(o.ignore,f,n)}const c=(f,p=!1)=>{const{isMatch:h,match:y,output:v}=nr.test(f,i,t,{glob:e,posix:s}),m={glob:e,state:l,regex:i,posix:s,input:f,output:v,match:y,isMatch:h};return typeof o.onResult=="function"&&o.onResult(m),h===!1?(m.isMatch=!1,p?m:!1):a(f)?(typeof o.onIgnore=="function"&&o.onIgnore(m),m.isMatch=!1,p?m:!1):(typeof o.onMatch=="function"&&o.onMatch(m),p?m:!0)};return n&&(c.state=l),c};nr.test=(e,t,n,{glob:r,posix:o}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};const s=n||{},i=s.format||(o?WN.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(WN.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)):Kx(e,st(we({},t),{fastpaths:!1}));nr.scan=(e,t)=>Wde(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=Kx.fastpaths(e,t)),o.output||(o=Kx(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=Gde;var qde=nr;const Yde=pi(qde),Qde=-1,Xde=" ",Qd=401,Q1=403,Zde=404,Jde=406,efe=409,qx=424,tfe=429,nfe=500,rfe={[Qd]:"Unauthorized",[Q1]:"Forbidden",[Zde]:"Not found",[nfe]:"Server error",[tfe]:"Too many requests"},X1="https://github.com/rejetto/hfs/",ofe=X1+"wiki/",sfe=6e4,ife=60*sfe,lfe=24*ife,afe=10,cfe=["name","extension","size","time"],ufe={auto:"",light:"light",dark:"dark"},Dn=ffe(["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"},dfe=!0,pO=!1,Qw={can_see:"can_read",can_read:dfe,can_list:"can_read",can_upload:pO,can_delete:pO,can_archive:"can_read"};function ffe(e){return Object.fromEntries(e.map(t=>[t,t]))}function pfe(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}const hfe=["","K","M","G","T"];function xl(e,{post:t="B",k:n=1024,digits:r=NaN,sep:o=" "}={}){if(isNaN(Number(e))||e<0)return"";const s=e&&Math.floor(Math.log2(e)/Math.log2(n));return e/=bs(n,s),(s&&!isNaN(r)?e.toFixed(r):Ze.round(e,isNaN(r)?e>=100?0:1:r))+o+(hfe[s]||"")+t}function mfe(e,t={}){return xl(e,we({post:"B/s",k:1e3},t)).replace("K","k")}function ci(e,t,n=""){return t?e+t+n:""}function zh(e,t){return new Promise(n=>setTimeout(n,e,t))}function Z1(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>[n,t(r,n)]))}function gfe(e,t,n=!1){return!n&&!t||t.endsWith(e)?t:t+e}function vfe(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 yfe(e){return!!e}function jc(e){return e.filter(yfe)}function bfe(e,t){return Object.defineProperties(e,qN(t,n=>({enumerable:!1,writable:!0,value:n})))}function wfe(e,t){try{return e()}catch(n){return t==null?void 0:t(n)}}function Sl(e,t){return t(e)}function Cfe(e){return(e*100).toFixed(1)+"%"}function J1(e){return e==null?[]:Array.isArray(e)?e:[e]}function V2(){let e;const t=new Promise((n,r)=>e={resolve:n,reject:r});return Object.assign(t,e)}function GN(e){return e.slice(e.lastIndexOf("/")+1||e.lastIndexOf("\\")+1)}function xfe(e){return e.slice(0,e.lastIndexOf("/",e.length-1))}function Sfe(e,t){try{return e&&JSON.parse(e)}catch(n){return t==null?void 0:t(e)}}function hO(e,t,n){const r=e[t];return e[t]=e[n],e[n]=r,e}function KN(e,t){return Ze.isEqualWith(e,t,(n,r)=>{if(!Ze.isPlainObject(n)||!Ze.isPlainObject(r))return;const o=Object.keys(n),s=Object.keys(r);return o.length===s.length&&o.every((i,l)=>{const a=s[l];return i===a&&KN(n[i],r[a])})})}function qN(e,t,n=!1){if(!e)return{};const r=Object.entries(e).map(([o,s])=>{if(typeof o=="symbol")return;let i=o;const l=typeof n=="number"?n:0;let a=t(s,o,c=>(i=c,!0),l);return(n!==!1||t.length===4)&&Ze.isPlainObject(a)&&(a=qN(a,t,l+1)),i!==void 0&&[i,a]});return Object.fromEntries(jc(r))}function Pfe(e){return Object.keys(e)}function Yx(e){return e?new Date(e).toLocaleString():"-"}function Efe(e){return!e||Object(e)!==e}function kfe(e){return/^([.:\da-f]+)$/i.test(e)}function Ife(e){return e&&/^[a-zA-Z]:$/.test(e)}function Xv(e,t){return e==t||e&&t&&typeof e=="object"&&typeof t=="object"&&Object.entries(e).every(([n,r])=>Xv(r,t[n]))&&Object.entries(t).every(([n,r])=>Object.hasOwn(e,n)||Xv(r,e[n]))}function e0(e,t){var n;return(n=t[e])!=null?n:e}function YN(e){return e==="::1"||e.endsWith("127.0.0.1")}function Mfe(e){return/^(?:|:10\..*|172\.(1[6-9]|2\d|3[01])\..*|192\.168\..*)$/.test(e)}function QN(e){return e.includes(":")?"["+e+"]":e}function _fe(e){return e.replace(/[\u0000-\u002F\u003A-\u0040\u005B-\u0060\u007B-\u00FF]/g,t=>"&#"+("000"+t.charCodeAt(0)).slice(-4)+";")}function Tfe(e,t=!1){return e?Yde(e.replace(/^(!)?/,"$1(")+")",{nocase:!0}):()=>t}function $fe(e,t,n=!1){return Tfe(t,n)(e)}function Rfe(e){var t;return Ze.findKey(Ofe,n=>n.test(e))||((t=/^[^/(]+ ?/.exec(e))==null?void 0:t[0])||e}const Ofe={YaBrowser:/yabrowser/i,AlamoFire:/alamofire/i,Edge:/edge|edga|edgios|edg/i,PhantomJS:/phantomjs/i,Konqueror:/konqueror/i,Amaya:/amaya/i,Epiphany:/epiphany/i,SeaMonkey:/seamonkey/i,Flock:/flock/i,OmniWeb:/omniweb/i,Opera:/opera|OPR\//i,Chromium:/chromium/i,Facebook:/FBA[NV]/,Chrome:/chrome|crios/i,WinJs:/msapphost/i,IE:/msie|trident/i,Firefox:/firefox|fxios/i,Safari:/safari/i,PS5:/playstation 5/i,PS4:/playstation 4/i,PS3:/playstation 3/i,PSP:/playstation portable/i,PS:/playstation/i,Xbox:/xbox/i,UC:/UCBrowser/i};window._=Ze;const Xw=t0();Object.assign(Xw,{getPluginKey:()=>mO("plugin"),getPluginPublic:()=>{var e,t;return(t=(e=mO("src"))==null?void 0:e.match(/^.*\//))==null?void 0:t[0]},getPluginConfig:()=>Xw.plugins[Xw.getPluginKey()]||{}});function mO(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 XN(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 ZN(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 Dfe(){return window.innerWidth<800}function t0(){return window.HFS}function JN(){return t0().prefixUrl||""}function Afe(e){return function t(n){if(!n)return;const{exp:r}=n;if(Object.assign(e,Ze.pick(n,["username","adminUrl","canChangePassword"])),!n.username||!r)return;const o=new Date(r).getTime()-Date.now(),s=Ze.clamp(o-3e4,4e3,6e5);console.debug("session refresh in",Math.round(s/1e3)),setTimeout(()=>ct("refresh_session").then(t),s)}}function Zv(e,t=document){const n=t.querySelector(e);if(n&&n instanceof HTMLElement)return n.focus(),!0}function Lfe(){const e=console.debug;console.debug=(...t)=>window.DEV&&e(...t)}function Ffe(e,t){return rt(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 e5(e){return{github_quota:"Request denied. You may have reached the limit, retry later.",ENOENT:"Not found",ENOTDIR:"Not a folder"}[e]||e}var j2={},Nfe=et;Object.defineProperty(j2,"__esModule",{value:!0});var t5=j2.default=void 0,Bfe=Nfe(tt()),zfe=Je(),Vfe=(0,Bfe.default)((0,zfe.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");t5=j2.default=Vfe;var H2={},jfe=et;Object.defineProperty(H2,"__esModule",{value:!0});var n0=H2.default=void 0,Hfe=jfe(tt()),Ufe=Je(),Wfe=(0,Hfe.default)((0,Ufe.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");n0=H2.default=Wfe;var U2={},Gfe=et;Object.defineProperty(U2,"__esModule",{value:!0});var r0=U2.default=void 0,Kfe=Gfe(tt()),qfe=Je(),Yfe=(0,Kfe.default)((0,qfe.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");r0=U2.default=Yfe;var W2={},Qfe=et;Object.defineProperty(W2,"__esModule",{value:!0});var G2=W2.default=void 0,Xfe=Qfe(tt()),Zfe=Je(),Jfe=(0,Xfe.default)((0,Zfe.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");G2=W2.default=Jfe;var K2={},epe=et;Object.defineProperty(K2,"__esModule",{value:!0});var o0=K2.default=void 0,tpe=epe(tt()),npe=Je(),rpe=(0,tpe.default)((0,npe.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");o0=K2.default=rpe;var q2={},ope=et;Object.defineProperty(q2,"__esModule",{value:!0});var s0=q2.default=void 0,spe=ope(tt()),ipe=Je(),lpe=(0,spe.default)((0,ipe.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");s0=q2.default=lpe;var Y2={},ape=et;Object.defineProperty(Y2,"__esModule",{value:!0});var n5=Y2.default=void 0,cpe=ape(tt()),upe=Je(),dpe=(0,cpe.default)((0,upe.jsx)("path",{d:"M12 8V4l8 8-8 8v-4H4V8z"}),"Forward");n5=Y2.default=dpe;var Q2={},fpe=et;Object.defineProperty(Q2,"__esModule",{value:!0});var Jv=Q2.default=void 0,ppe=fpe(tt()),hpe=Je(),mpe=(0,ppe.default)((0,hpe.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");Jv=Q2.default=mpe;var X2={},gpe=et;Object.defineProperty(X2,"__esModule",{value:!0});var i0=X2.default=void 0,vpe=gpe(tt()),ype=Je(),bpe=(0,vpe.default)((0,ype.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");i0=X2.default=bpe;var Z2={},wpe=et;Object.defineProperty(Z2,"__esModule",{value:!0});var Vh=Z2.default=void 0,Cpe=wpe(tt()),xpe=Je(),Spe=(0,Cpe.default)((0,xpe.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=Z2.default=Spe;function Ppe(e){return Ke("MuiLoadingButton",e)}const Epe=We("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),nl=Epe,kpe=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],Ipe=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,Ppe,r);return S({},r,s)},Mpe=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",_pe=oe(Yn,{shouldForwardProp:e=>Mpe(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})=>S({[`& .${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}})),Tpe=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})=>S({position:"absolute",visibility:"visible",display:"flex"},t.loadingPosition==="start"&&(t.variant==="outlined"||t.variant==="contained")&&{left:t.size==="small"?10:14},t.loadingPosition==="start"&&t.variant==="text"&&{left:6},t.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled},t.loadingPosition==="end"&&(t.variant==="outlined"||t.variant==="contained")&&{right:t.size==="small"?10:14},t.loadingPosition==="end"&&t.variant==="text"&&{right:6},t.loadingPosition==="start"&&t.fullWidth&&{position:"relative",left:-10},t.loadingPosition==="end"&&t.fullWidth&&{position:"relative",right:-10})),$pe=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiLoadingButton"}),{children:o,disabled:s=!1,id:i,loading:l=!1,loadingIndicator:a,loadingPosition:c="center",variant:f="text"}=r,p=le(r,kpe),h=Kt(i),y=a!=null?a:D.jsx(Vi,{"aria-labelledby":h,color:"inherit",size:16}),v=S({},r,{disabled:s,loading:l,loadingIndicator:y,loadingPosition:c,variant:f}),m=Ipe(v),C=l?D.jsx(Tpe,{className:m.loadingIndicator,ownerState:v,children:y}):null;return D.jsxs(_pe,S({disabled:s||l,id:h,ref:n},p,{variant:f,classes:m,ownerState:v,children:[v.loadingPosition==="end"?o:C,v.loadingPosition==="end"?C:o]}))}),r5=$pe;function Wi(h){var y=h,{value:e,onChange:t,min:n,max:r,required:o,setApi:s,typing:i,start:l,end:a,onTyping:c,suggestions:f}=y,p=At(y,["value","onChange","min","max","required","setApi","typing","start","end","onTyping","suggestions"]);const v=e!=null?e:"";s==null||s({getError(){return!e&&o?"required":(e==null?void 0:e.length)<n?"too short":(e==null?void 0:e.length)>r?"too long":!1}});const[m,C]=u.useState(v),w=u.useRef(v);u.useEffect(()=>{C(v),w.current=v},[v]);const b=u.useRef(),x=M=>u.createElement(Ba,we(st(we({fullWidth:!0,InputLabelProps:m||p.placeholder?{shrink:!0}:void 0},p),{sx:p.label?p.sx:Object.assign({"& .MuiInputBase-input":{pt:1.5}},p.sx),value:m,onChange(E){let k=E.target.value;if(c){const R=c(k);if(R===!1)return;k=R}C(k),(i||b.current===void 0)&&P(E,k)},onKeyDown(E){var k;(k=p.onKeyDown)==null||k.call(p,E),(E.key==="Enter"||E.code===void 0)&&P(E)},onFocus(E){b.current=E.target.value},onBlur(E){var k;(k=p.onBlur)==null||k.call(p,E),b.current!==E.target.value&&P(E)},InputProps:we({startAdornment:l&&u.createElement(Cl,{position:"start"},l),endAdornment:a&&u.createElement(Cl,{position:"end"},a)},p.InputProps)}),M));return f?u.createElement(Nh,{freeSolo:!0,options:f,renderInput:x}):x(null);function P(M,E=m){E=E.trim(),E!==w.current&&(w.current=E,t(E,{was:e,event:M,cancel(){C(v)}}))}}var J2={},Rpe=et;Object.defineProperty(J2,"__esModule",{value:!0});var o5=J2.default=void 0,Ope=Rpe(tt()),Dpe=Je(),Ape=(0,Ope.default)((0,Dpe.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");o5=J2.default=Ape;function Kr(e){const l=e,{value:t,onChange:n,setApi:r,options:o,sx:s}=l,i=At(l,["value","onChange","setApi","options","sx"]);return u.createElement(Ba,st(we(we({},s5(e)),i),{onChange(a){try{let c=a.target.value;c=JSON.parse(c),n(c,{was:t,event:a})}catch(c){}}}))}function l0(n){var r=n,{renderOption:e}=r,t=At(r,["renderOption"]);const x=t,{value:o,onChange:s,setApi:i,options:l,sx:a,clearable:c,clearValue:f,placeholder:p,autocompleteProps:h}=x,y=At(x,["value","onChange","setApi","options","sx","clearable","clearValue","placeholder","autocompleteProps"]),P=s5(st(we({clearValue:[]},t),{clearable:!1})),{select:v,InputProps:m}=P,C=At(P,["select","InputProps"]),w=u.useMemo(()=>i5(l),[l]),b=u.useMemo(()=>Array.isArray(o)?o.map(M=>w.find(E=>E.value===M)||{value:M,label:String(M)}):[],[o,w]);return u.createElement(Nh,st(we(we({multiple:!0,options:w,filterSelectedOptions:!0,onChange:(M,E)=>s(E.map(k=>k.value),{was:o,event:M}),isOptionEqualToValue:(M,E)=>M.value===E.value,getOptionLabel:M=>M.label,renderOption:(M,E)=>{var k;return u.createElement("span",M,(k=e==null?void 0:e(E))!=null?k:E.label)}},C),h),{value:b,renderInput:M=>u.createElement(Ba,we(st(we({},y),{placeholder:b.length?void 0:p,SelectProps:{multiple:!0},sx:st(we({},y.sx),{"& div[role=button]":{whiteSpace:"unset"}})}),M)),renderTags:(M,E)=>M.map((k,R)=>{var O;return u.createElement(Fh,we({label:(O=e==null?void 0:e(k))!=null?O:k.label},E({index:R})))}),sx:we({".MuiAutocomplete-tag":{height:24},".MuiAutocomplete-inputRoot":{pt:"21px"},"input[type][type]":{p:"4px"},".MuiChip-deleteIcon[class]":{position:"absolute",right:"-0.6em",opacity:0,color:"text.primary",transition:"all .2s"},".MuiChip-root:hover .MuiChip-deleteIcon":{opacity:1}},a)}))}function s5(e){const{options:t,disabled:n,start:r,end:o,clearable:s,clearValue:i,value:l}=e,a=i5(t),c=JSON.stringify(l),f=a.find(h=>JSON.stringify(h.value)===c),p=s&&(Array.isArray(l)?l.length>0:l);return{select:!0,fullWidth:!0,sx:e.label?e.sx:Object.assign({"& .MuiInputBase-input":{pt:1}},e.sx),value:f?c:"",disabled:!(a!=null&&a.length)||n,InputProps:we({startAdornment:(r||p)&&u.createElement(Cl,{position:"start"},p&&u.createElement(_l,{title:"Clear",children:u.createElement(xr,{onClick(h){e.onChange(i,{was:l,event:h})}},u.createElement(o5))}),r),endAdornment:o&&u.createElement(Cl,{position:"end"},o)},e.InputProps),children:a.map((h,y)=>u.createElement(Pr,{key:y,value:JSON.stringify(h==null?void 0:h.value),children:u.createElement(u.Fragment,{key:y},h==null?void 0:h.label)}))}}function i5(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 Tp(r){var o=r,{value:e,empty:t="-"}=o,n=At(o,["value","empty"]);return!n.toField&&t!==void 0&&e!==0&&!e&&(e=t),u.createElement(Wi,st(we({},n),{value:e,disabled:!0}))}function Vo(c){var f=c,{value:e,onChange:t,setApi:n,required:r,min:o,max:s,step:i,unit:l}=f,a=At(f,["value","onChange","setApi","required","min","max","step","unit"]);return n==null||n({getError(){return e==null?r?"required":!1:e<o?"too low":e>s?"too high":!1}}),u.createElement(Wi,we({type:"number",value:e==null?"":String(e),onChange(p,v){var m=v,{was:h}=m,y=At(m,["was"]);t(p?Number(p):null,st(we({},y),{was:h?Number(h):null}))},inputProps:{min:o,max:s,step:i},InputProps:Ze.merge({sx:{"& input":{appearance:"textfield"}}},l&&{sx:{pr:"6px","& input":{pl:".2em",textAlign:"right"}},endAdornment:u.createElement(Cl,{position:"end",sx:{mt:"1.2em",ml:"5px","& p":{fontSize:"80%"}}},l)})},a))}function An(a){var c=a,{label:e="",value:t,onChange:n,setApi:r,helperText:o,error:s,type:i}=c,l=At(c,["label","value","onChange","setApi","helperText","error","type"]);const f=()=>t!=null?t:!1,[p,h]=u.useState(f);u.useEffect(()=>h(f),[t]);const y=u.createElement(mN,st(we({checked:p},l),{onChange(v){n(v.target.checked,{event:v,was:t})}}));return u.createElement(ze,{ml:1,mt:1,sx:s?{color:"error.main",outlineOffset:6,outline:"1px solid"}:void 0},u.createElement(X4,we({label:e,control:y,labelPlacement:"end"},l.size==="small"&&{sx:{"& .MuiFormControlLabel-label":{fontSize:".9rem"}}})),o&&u.createElement(Kd,{error:s},o))}function Hc(v){var m=v,{fields:e,values:t,set:n,defaults:r,save:o,stickyBar:s,addToBar:i=[],barSx:l,formRef:a,onError:c,saveOnEnter:f,gridProps:p,formProps:h}=m,y=At(m,["fields","values","set","defaults","save","stickyBar","addToBar","barSx","formRef","onError","saveOnEnter","gridProps","formProps"]);const C=u.useRef(!1);u.useEffect(()=>(C.current=!0,()=>{C.current=!1}),[]);const[w,b]=u.useState({}),[x,P]=u.useState({}),M=typeof o=="function"?{onClick:o}:o,[E,k]=u.useState(0),R=u.useRef(!1),O=u.useRef("");u.useEffect(()=>void T(),[E]);const _={},L={};return u.createElement("form",st(we({ref:a&&($=>a.current=$||void 0)},h),{onSubmit($){$.preventDefault()},onKeyDown($){M&&!M.disabled&&($.ctrlKey||$.metaKey)&&$.key==="Enter"&&B()}}),u.createElement(ze,we({display:"flex",flexDirection:"column",gap:3},y),u.createElement(oi,we({container:!0,rowSpacing:3,columnSpacing:1},p),e.map(($,F)=>{if(!$)return null;if(u.isValidElement($))return u.createElement(oi,{key:F,item:!0,xs:12},$);const Q=$,{k:j,fromField:A=Ze.identity,toField:N=Ze.identity,getError:H,error:K}=Q,Y=At(Q,["k","fromField","toField","getError","error"]);let te=w[j]||K||x[j];if(te===!0&&(te="Not valid"),j){const J=$.hasOwnProperty("value")?$.value:t==null?void 0:t[j],se=we(we({},$),Y);Object.assign(Y,{value:N(J),error:!!(te||K)||void 0,setApi(Z){L[j]=Z},onKeyDown(Z){f&&Z.key==="Enter"&&B()},onChange(Z){var he;try{if(Z=A(Z,{originalValue:J}),P(ne=>st(we({},ne),{[j]:!1})),(((he=L[j])==null?void 0:he.isEqual)||Ze.isEqual)(Z,J))return;n(Z,j),z(j)}catch(ne){P(re=>st(we({},re),{[j]:(ne==null?void 0:ne.message)||String(ne)||!0}))}}}),Array.isArray(Y.helperText)&&(Y.helperText=u.createElement(u.Fragment,{},...Y.helperText)),te&&(Y.helperText=Y.helperText?u.createElement(u.Fragment,{},u.createElement("span",{style:{borderBottom:"1px solid"}},te),u.createElement(ze,{color:"text.primary",component:"span",display:"block"},Y.helperText)):te),Y.label===void 0&&(Y.label=l5(j)),Ze.defaults(Y,r==null?void 0:r(se))}{const X=Y,{xs:J=12,sm:se,md:Z,lg:he,xl:ne,comp:re=Wi,before:me,after:ce,fromField:Se,toField:ke}=X,ae=At(X,["xs","sm","md","lg","xl","comp","before","after","fromField","toField"]);Object.assign(ae,{name:j});const Ie=_[j]=(_[j]||0)+1;return u.createElement(oi,{key:j?j+Ie:F,item:!0,xs:J,sm:se,md:Z,lg:he,xl:ne},me,u.isValidElement(re)?re:u.createElement(re,ae),ce)}})),M&&u.createElement(ze,{display:"flex",alignItems:"center",sx:Object.assign({},s&&{width:"fit-content",zIndex:2,backgroundColor:"background.paper",borderRadius:1,position:"sticky",bottom:0,p:1,m:-1,boxShadow:"0px 0px 30px #000"},l)},u.createElement(r5,st(we({variant:"contained",startIcon:u.createElement(Vh),children:"Save",loading:R2(E!==0)},M),{onClick:B})),...i)));function B(){R.current=!0,z()}function z($=""){E===0&&(O.current=$,setTimeout(()=>k(F=>F===0?1:F)))}function T(){return rt(this,null,function*(){var j,A,N;if(E===0)return;if(E===1)return k(2);const $="Please review errors",F={};for(const H of e){if(!H||u.isValidElement(H)||!H.k)continue;const{k:K}=H,Y=t==null?void 0:t[K],te=(yield(A=(j=L[K])==null?void 0:j.getError)==null?void 0:A.call(j,Y,{values:t,fields:e}))||(yield(N=H.getError)==null?void 0:N.call(H,Y,{values:t,fields:e}))||x[K];if(F[K]=te||!1,!R.current&&K===O.current)break;if(!C.current)return}b(F);try{if(!R.current)return;if(Object.values(F).some(Boolean))return yield c==null?void 0:c($);const H=M&&M.onClick;H&&(yield H())}catch(H){yield c==null?void 0:c(H)}finally{R.current=!1,C.current&&k(0)}})}}function l5(e){return Ze.upperFirst(e.indexOf("_")>0?e.replace(/_/g," "):e.replace(/([a-z])([A-Z])/g,(t,n,r)=>n+" "+r.toLowerCase()))}function a5(){return F1("(prefers-color-scheme: dark)")}const Lpe={};function Fpe(){const e=a5()?null:Lpe;return u.useMemo(()=>JP({palette:e||{mode:"dark",text:{primary:"#bbb",secondary:"#777"},primary:{main:"#469",light:"#68c"},secondary:{main:"#969"}},typography:{fontFamily:'Roboto, "Noto sans", "Segoe UI", "San Francisco", "Helvetica Neue", Arial, sans-serif'},components:{MuiLink:{defaultProps:e||{color:"primary.light"}},MuiTextField:{defaultProps:{variant:"filled"},styleOverrides:e||{root:{"& label.Mui-focused":{color:"#ccc"}}}},MuiButton:{defaultProps:{variant:"outlined"},styleOverrides:e||{root({ownerState:t}){return t.color==="primary"&&{color:t.variant==="contained"?"#ddd":"#68c"}}}}}}),[e])}const Npe={"`":"code","*":"i","**":"b"};function er(e,{linkTarget:t="_blank",onText:n=r=>r}={}){return typeof e!="string"&&(e=e[0]),eE(e,/(`|_|\*\*?)(.+?)\1|(\n)|\[(.+?)\]\((.+?)\)|<([^ >/]+)>(.*?)<\/\6>|<([^ >/]+) *\/>/g,r=>r[4]?u.createElement(ts,{href:r[5],target:t},n(r[4])):r[3]?u.createElement("br"):r[1]?u.createElement(Npe[r[1]]||u.Fragment,{},n(r[2])):u.createElement(r[6]||r[8],{},r[7]),n)}function eE(e,t,n,r=o=>o){const o=[];let s=0,i;for(;(i=t.exec(e))&&(o.push(r(e.slice(s,i.index))),o.push(n(i)),s=i.index+i[0].length,!!t.global););return u.createElement(u.Fragment,{},...o,r(e.slice(s,1/0)))}Ux.Container=function(t){const n=u.useRef(),{width:r,height:o}=B1(),s=r>0&&Math.min(r,o)<500;u.useEffect(()=>{const p=setTimeout(()=>{const h=n.current;h&&(h.focus(),!s&&(Zv("[autofocus]")||Zv("input,textarea")))});return()=>clearTimeout(p)},[n.current]);const i=tE();t=we(we({},Ux),t);const f=t.dialogProps||{},{sx:l,root:a}=f,c=At(f,["sx","root"]);return t.noFrame?u.createElement(L1,{open:!0,children:u.createElement(Hh,{},u.createElement(t.Content))}):u.createElement(H4,st(we(we({open:!0,maxWidth:"lg",fullScreen:s},c),a),{className:t.className,onClose:()=>ji()}),t.title&&u.createElement(loe,{sx:we({position:"sticky",top:0,p:1,zIndex:2,boxShadow:"0 0 8px #0004",display:"flex",alignItems:"center",gap:1},i)},t.icon&&qv(t.icon),u.createElement(ze,{flex:1,minWidth:40},qv(t.title)),u.createElement(dn,{icon:o0,title:"Close",onClick:()=>ji()})),u.createElement(U4,{ref:n,sx:we({p:t.padding?1:0,pt:"16px !important",overflow:"initial",display:"flex",flexDirection:"column",justifyContent:"center"},l)},u.createElement(t.Content)))};function tE(){return a5()?{bgcolor:"#2d2d2d"}:{bgcolor:"#ccc",color:"#444"}}const c5={error:s0,warning:i0,info:Jv,success:G2};function Et(e,t){var a;const n=typeof t=="string"?{type:t}:t!=null?t:{};let l=n,{type:r="info"}=l,o=At(l,["type"]);e instanceof Error&&(e=e.message||String(e),r="error");const s=V2(),i=po(st(we({className:"dialog-alert dialog-alert-"+r,icon:(a=n.icon)!=null?a:u.createElement(c5[r],{color:r}),onClose:s.resolve,title:Ze.upperFirst(r)},o),{Content(){return u.createElement(ze,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},u.isValidElement(e)?e:u.createElement(ze,{fontSize:"large",lineHeight:"1.8em"},String(e)),u.createElement(To,{sx:{mt:1},size:"small",onClick:i.close},"Close"))}}));return Object.assign(s,i)}function pr(e,s={}){var i=s,{href:t,confirmText:n="Go",dontText:r="Don't"}=i,o=At(i,["href","confirmText","dontText"]);const l=V2(),a=po(st(we({className:"dialog-confirm",onClose:l.resolve},o),{Content:c}));return Object.assign(l,a);function c(){return u.createElement(u.Fragment,{},u.createElement(ze,{mb:2},typeof e=="string"?er(e):e),u.createElement(qr,{},u.createElement("a",{href:t,onClick:()=>ji(!0)},u.createElement(Yn,{variant:"contained"},n)),u.createElement(Yn,{onClick:()=>ji(!1)},r)))}}function uh(r){return rt(this,null,function*(){var o=r,{form:e,values:t}=o,n=At(o,["form","values"]);return new Promise(i=>po(st(we({className:"dialog-confirm",onClose:i},n),{Content:s})));function s(){const[i,l]=u.useState(t||{}),p=typeof e=="function"?e(i):e,{onChange:a,before:c}=p,f=At(p,["onChange","before"]);return u.createElement(u.Fragment,{},c,u.createElement(Hc,st(we({},f),{values:i,set(h,y){l(v=>{const m=st(we({},v),{[y]:h});return a==null||a(m,{setValues:l}),m})},save:st(we({},f.save),{onClick(){ji(i)}})})))}})}function jh(a){return rt(this,arguments,function*(e,i={}){var l=i,{value:t,field:n,save:r,addToBar:o=[]}=l,s=At(l,["value","field","save","addToBar"]);return uh(st(we({},s),{values:{text:t},form:we({fields:[st(we({k:"text",label:null,autoFocus:!0},n),{before:u.createElement(ze,{mb:2},e)})],save:we({children:"Continue",startIcon:u.createElement(n5)},r),saveOnEnter:!0,barSx:{gap:2},addToBar:[u.createElement(Yn,{onClick:ji},"Cancel"),...o]},s.form)})).then(c=>c==null?void 0:c.text)})}function u5(){return po({Content:()=>u.createElement(Vi,{size:"20vw"}),noFrame:!0,closable:!1}).close}function rr(e,t="info",n){const o=po(st(we({},n),{Content:i,dialogProps:{fullScreen:!1,PaperProps:{sx:{transition:"opacity 3000ms ease-in"},ref(l){l&&(l.style.opacity="0")}}}})),{close:s}=o;return setTimeout(s,3e3),o;function i(){return u.createElement(ze,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},u.isValidElement(t)?t:u.createElement(c5[t],{color:t}),u.isValidElement(e)?e:u.createElement("div",{},String(e)))}}const d5=`🇦🇨|AC|Ascension Island
|
|
328
|
-
🇦🇩|AD|Andorra
|
|
329
|
-
🇦🇪|AE|United Arab Emirates
|
|
330
|
-
🇦🇫|AF|Afghanistan
|
|
331
|
-
🇦🇬|AG|Antigua & Barbuda
|
|
332
|
-
🇦🇮|AI|Anguilla
|
|
333
|
-
🇦🇱|AL|Albania
|
|
334
|
-
🇦🇲|AM|Armenia
|
|
335
|
-
🇦🇴|AO|Angola
|
|
336
|
-
🇦🇶|AQ|Antarctica
|
|
337
|
-
🇦🇷|AR|Argentina
|
|
338
|
-
🇦🇸|AS|American Samoa
|
|
339
|
-
🇦🇹|AT|Austria
|
|
340
|
-
🇦🇺|AU|Australia
|
|
341
|
-
🇦🇼|AW|Aruba
|
|
342
|
-
🇦🇽|AX|Åland Islands
|
|
343
|
-
🇦🇿|AZ|Azerbaijan
|
|
344
|
-
🇧🇦|BA|Bosnia & Herzegovina
|
|
345
|
-
🇧🇧|BB|Barbados
|
|
346
|
-
🇧🇩|BD|Bangladesh
|
|
347
|
-
🇧🇪|BE|Belgium
|
|
348
|
-
🇧🇫|BF|Burkina Faso
|
|
349
|
-
🇧🇬|BG|Bulgaria
|
|
350
|
-
🇧🇭|BH|Bahrain
|
|
351
|
-
🇧🇮|BI|Burundi
|
|
352
|
-
🇧🇯|BJ|Benin
|
|
353
|
-
🇧🇱|BL|St. Barthélemy
|
|
354
|
-
🇧🇲|BM|Bermuda
|
|
355
|
-
🇧🇳|BN|Brunei
|
|
356
|
-
🇧🇴|BO|Bolivia
|
|
357
|
-
🇧🇶|BQ|Caribbean Netherlands
|
|
358
|
-
🇧🇷|BR|Brazil
|
|
359
|
-
🇧🇸|BS|Bahamas
|
|
360
|
-
🇧🇹|BT|Bhutan
|
|
361
|
-
🇧🇻|BV|Bouvet Island
|
|
362
|
-
🇧🇼|BW|Botswana
|
|
363
|
-
🇧🇾|BY|Belarus
|
|
364
|
-
🇧🇿|BZ|Belize
|
|
365
|
-
🇨🇦|CA|Canada
|
|
366
|
-
🇨🇨|CC|Cocos (Keeling) Islands
|
|
367
|
-
🇨🇩|CD|Congo - Kinshasa
|
|
368
|
-
🇨🇫|CF|Central African Republic
|
|
369
|
-
🇨🇬|CG|Congo - Brazzaville
|
|
370
|
-
🇨🇭|CH|Switzerland
|
|
371
|
-
🇨🇮|CI|Côte d'Ivoire
|
|
372
|
-
🇨🇰|CK|Cook Islands
|
|
373
|
-
🇨🇱|CL|Chile
|
|
374
|
-
🇨🇲|CM|Cameroon
|
|
375
|
-
🇨🇳|CN|China
|
|
376
|
-
🇨🇴|CO|Colombia
|
|
377
|
-
🇨🇵|CP|Clipperton Island
|
|
378
|
-
🇨🇷|CR|Costa Rica
|
|
379
|
-
🇨🇺|CU|Cuba
|
|
380
|
-
🇨🇻|CV|Cape Verde
|
|
381
|
-
🇨🇼|CW|Curaçao
|
|
382
|
-
🇨🇽|CX|Christmas Island
|
|
383
|
-
🇨🇾|CY|Cyprus
|
|
384
|
-
🇨🇿|CZ|Czechia
|
|
385
|
-
🇩🇪|DE|Germany
|
|
386
|
-
🇩🇬|DG|Diego Garcia
|
|
387
|
-
🇩🇯|DJ|Djibouti
|
|
388
|
-
🇩🇰|DK|Denmark
|
|
389
|
-
🇩🇲|DM|Dominica
|
|
390
|
-
🇩🇴|DO|Dominican Republic
|
|
391
|
-
🇩🇿|DZ|Algeria
|
|
392
|
-
🇪🇦|EA|Ceuta & Melilla
|
|
393
|
-
🇪🇨|EC|Ecuador
|
|
394
|
-
🇪🇪|EE|Estonia
|
|
395
|
-
🇪🇬|EG|Egypt
|
|
396
|
-
🇪🇭|EH|Western Sahara
|
|
397
|
-
🇪🇷|ER|Eritrea
|
|
398
|
-
🇪🇸|ES|Spain
|
|
399
|
-
🇪🇹|ET|Ethiopia
|
|
400
|
-
🇫🇮|FI|Finland
|
|
401
|
-
🇫🇯|FJ|Fiji
|
|
402
|
-
🇫🇰|FK|Falkland Islands
|
|
403
|
-
🇫🇲|FM|Micronesia
|
|
404
|
-
🇫🇴|FO|Faroe Islands
|
|
405
|
-
🇫🇷|FR|France
|
|
406
|
-
🇬🇦|GA|Gabon
|
|
407
|
-
🇬🇧|GB|United Kingdom
|
|
408
|
-
🇬🇩|GD|Grenada
|
|
409
|
-
🇬🇪|GE|Georgia
|
|
410
|
-
🇬🇫|GF|French Guiana
|
|
411
|
-
🇬🇬|GG|Guernsey
|
|
412
|
-
🇬🇭|GH|Ghana
|
|
413
|
-
🇬🇮|GI|Gibraltar
|
|
414
|
-
🇬🇱|GL|Greenland
|
|
415
|
-
🇬🇲|GM|Gambia
|
|
416
|
-
🇬🇳|GN|Guinea
|
|
417
|
-
🇬🇵|GP|Guadeloupe
|
|
418
|
-
🇬🇶|GQ|Equatorial Guinea
|
|
419
|
-
🇬🇷|GR|Greece
|
|
420
|
-
🇬🇸|GS|South Georgia & South Sandwich Islands
|
|
421
|
-
🇬🇹|GT|Guatemala
|
|
422
|
-
🇬🇺|GU|Guam
|
|
423
|
-
🇬🇼|GW|Guinea-Bissau
|
|
424
|
-
🇬🇾|GY|Guyana
|
|
425
|
-
🇭🇰|HK|Hong Kong SAR China
|
|
426
|
-
🇭🇲|HM|Heard & McDonald Islands
|
|
427
|
-
🇭🇳|HN|Honduras
|
|
428
|
-
🇭🇷|HR|Croatia
|
|
429
|
-
🇭🇹|HT|Haiti
|
|
430
|
-
🇭🇺|HU|Hungary
|
|
431
|
-
🇮🇨|IC|Canary Islands
|
|
432
|
-
🇮🇩|ID|Indonesia
|
|
433
|
-
🇮🇪|IE|Ireland
|
|
434
|
-
🇮🇱|IL|Israel
|
|
435
|
-
🇮🇲|IM|Isle of Man
|
|
436
|
-
🇮🇳|IN|India
|
|
437
|
-
🇮🇴|IO|British Indian Ocean Territory
|
|
438
|
-
🇮🇶|IQ|Iraq
|
|
439
|
-
🇮🇷|IR|Iran
|
|
440
|
-
🇮🇸|IS|Iceland
|
|
441
|
-
🇮🇹|IT|Italy
|
|
442
|
-
🇯🇪|JE|Jersey
|
|
443
|
-
🇯🇲|JM|Jamaica
|
|
444
|
-
🇯🇴|JO|Jordan
|
|
445
|
-
🇯🇵|JP|Japan
|
|
446
|
-
🇰🇪|KE|Kenya
|
|
447
|
-
🇰🇬|KG|Kyrgyzstan
|
|
448
|
-
🇰🇭|KH|Cambodia
|
|
449
|
-
🇰🇮|KI|Kiribati
|
|
450
|
-
🇰🇲|KM|Comoros
|
|
451
|
-
🇰🇳|KN|St. Kitts & Nevis
|
|
452
|
-
🇰🇵|KP|North Korea
|
|
453
|
-
🇰🇷|KR|South Korea
|
|
454
|
-
🇰🇼|KW|Kuwait
|
|
455
|
-
🇰🇾|KY|Cayman Islands
|
|
456
|
-
🇰🇿|KZ|Kazakhstan
|
|
457
|
-
🇱🇦|LA|Laos
|
|
458
|
-
🇱🇧|LB|Lebanon
|
|
459
|
-
🇱🇨|LC|St. Lucia
|
|
460
|
-
🇱🇮|LI|Liechtenstein
|
|
461
|
-
🇱🇰|LK|Sri Lanka
|
|
462
|
-
🇱🇷|LR|Liberia
|
|
463
|
-
🇱🇸|LS|Lesotho
|
|
464
|
-
🇱🇹|LT|Lithuania
|
|
465
|
-
🇱🇺|LU|Luxembourg
|
|
466
|
-
🇱🇻|LV|Latvia
|
|
467
|
-
🇱🇾|LY|Libya
|
|
468
|
-
🇲🇦|MA|Morocco
|
|
469
|
-
🇲🇨|MC|Monaco
|
|
470
|
-
🇲🇩|MD|Moldova
|
|
471
|
-
🇲🇪|ME|Montenegro
|
|
472
|
-
🇲🇫|MF|St. Martin
|
|
473
|
-
🇲🇬|MG|Madagascar
|
|
474
|
-
🇲🇭|MH|Marshall Islands
|
|
475
|
-
🇲🇰|MK|North Macedonia
|
|
476
|
-
🇲🇱|ML|Mali
|
|
477
|
-
🇲🇲|MM|Myanmar (Burma)
|
|
478
|
-
🇲🇳|MN|Mongolia
|
|
479
|
-
🇲🇴|MO|Macao SAR China
|
|
480
|
-
🇲🇵|MP|Northern Mariana Islands
|
|
481
|
-
🇲🇶|MQ|Martinique
|
|
482
|
-
🇲🇷|MR|Mauritania
|
|
483
|
-
🇲🇸|MS|Montserrat
|
|
484
|
-
🇲🇹|MT|Malta
|
|
485
|
-
🇲🇺|MU|Mauritius
|
|
486
|
-
🇲🇻|MV|Maldives
|
|
487
|
-
🇲🇼|MW|Malawi
|
|
488
|
-
🇲🇽|MX|Mexico
|
|
489
|
-
🇲🇾|MY|Malaysia
|
|
490
|
-
🇲🇿|MZ|Mozambique
|
|
491
|
-
🇳🇦|NA|Namibia
|
|
492
|
-
🇳🇨|NC|New Caledonia
|
|
493
|
-
🇳🇪|NE|Niger
|
|
494
|
-
🇳🇫|NF|Norfolk Island
|
|
495
|
-
🇳🇬|NG|Nigeria
|
|
496
|
-
🇳🇮|NI|Nicaragua
|
|
497
|
-
🇳🇱|NL|Netherlands
|
|
498
|
-
🇳🇴|NO|Norway
|
|
499
|
-
🇳🇵|NP|Nepal
|
|
500
|
-
🇳🇷|NR|Nauru
|
|
501
|
-
🇳🇺|NU|Niue
|
|
502
|
-
🇳🇿|NZ|New Zealand
|
|
503
|
-
🇴🇲|OM|Oman
|
|
504
|
-
🇵🇦|PA|Panama
|
|
505
|
-
🇵🇪|PE|Peru
|
|
506
|
-
🇵🇫|PF|French Polynesia
|
|
507
|
-
🇵🇬|PG|Papua New Guinea
|
|
508
|
-
🇵🇭|PH|Philippines
|
|
509
|
-
🇵🇰|PK|Pakistan
|
|
510
|
-
🇵🇱|PL|Poland
|
|
511
|
-
🇵🇲|PM|St. Pierre & Miquelon
|
|
512
|
-
🇵🇳|PN|Pitcairn Islands
|
|
513
|
-
🇵🇷|PR|Puerto Rico
|
|
514
|
-
🇵🇸|PS|Palestinian Territories
|
|
515
|
-
🇵🇹|PT|Portugal
|
|
516
|
-
🇵🇼|PW|Palau
|
|
517
|
-
🇵🇾|PY|Paraguay
|
|
518
|
-
🇶🇦|QA|Qatar
|
|
519
|
-
🇷🇪|RE|Réunion
|
|
520
|
-
🇷🇴|RO|Romania
|
|
521
|
-
🇷🇸|RS|Serbia
|
|
522
|
-
🇷🇺|RU|Russia
|
|
523
|
-
🇷🇼|RW|Rwanda
|
|
524
|
-
🇸🇦|SA|Saudi Arabia
|
|
525
|
-
🇸🇧|SB|Solomon Islands
|
|
526
|
-
🇸🇨|SC|Seychelles
|
|
527
|
-
🇸🇩|SD|Sudan
|
|
528
|
-
🇸🇪|SE|Sweden
|
|
529
|
-
🇸🇬|SG|Singapore
|
|
530
|
-
🇸🇭|SH|St. Helena
|
|
531
|
-
🇸🇮|SI|Slovenia
|
|
532
|
-
🇸🇯|SJ|Svalbard & Jan Mayen
|
|
533
|
-
🇸🇰|SK|Slovakia
|
|
534
|
-
🇸🇱|SL|Sierra Leone
|
|
535
|
-
🇸🇲|SM|San Marino
|
|
536
|
-
🇸🇳|SN|Senegal
|
|
537
|
-
🇸🇴|SO|Somalia
|
|
538
|
-
🇸🇷|SR|Suriname
|
|
539
|
-
🇸🇸|SS|South Sudan
|
|
540
|
-
🇸🇹|ST|São Tomé & Príncipe
|
|
541
|
-
🇸🇻|SV|El Salvador
|
|
542
|
-
🇸🇽|SX|Sint Maarten
|
|
543
|
-
🇸🇾|SY|Syria
|
|
544
|
-
🇸🇿|SZ|Eswatini
|
|
545
|
-
🇹🇦|TA|Tristan da Cunha
|
|
546
|
-
🇹🇨|TC|Turks & Caicos Islands
|
|
547
|
-
🇹🇩|TD|Chad
|
|
548
|
-
🇹🇫|TF|French Southern Territories
|
|
549
|
-
🇹🇬|TG|Togo
|
|
550
|
-
🇹🇭|TH|Thailand
|
|
551
|
-
🇹🇯|TJ|Tajikistan
|
|
552
|
-
🇹🇰|TK|Tokelau
|
|
553
|
-
🇹🇱|TL|Timor-Leste
|
|
554
|
-
🇹🇲|TM|Turkmenistan
|
|
555
|
-
🇹🇳|TN|Tunisia
|
|
556
|
-
🇹🇴|TO|Tonga
|
|
557
|
-
🇹🇷|TR|Türkiye
|
|
558
|
-
🇹🇹|TT|Trinidad & Tobago
|
|
559
|
-
🇹🇻|TV|Tuvalu
|
|
560
|
-
🇹🇼|TW|Taiwan
|
|
561
|
-
🇹🇿|TZ|Tanzania
|
|
562
|
-
🇺🇦|UA|Ukraine
|
|
563
|
-
🇺🇬|UG|Uganda
|
|
564
|
-
🇺🇲|UM|U.S. Outlying Islands
|
|
565
|
-
🇺🇳|UN|United Nations
|
|
566
|
-
🇺🇸|US|United States
|
|
567
|
-
🇺🇾|UY|Uruguay
|
|
568
|
-
🇺🇿|UZ|Uzbekistan
|
|
569
|
-
🇻🇦|VA|Vatican City
|
|
570
|
-
🇻🇨|VC|St. Vincent & Grenadines
|
|
571
|
-
🇻🇪|VE|Venezuela
|
|
572
|
-
🇻🇬|VG|British Virgin Islands
|
|
573
|
-
🇻🇮|VI|U.S. Virgin Islands
|
|
574
|
-
🇻🇳|VN|Vietnam
|
|
575
|
-
🇻🇺|VU|Vanuatu
|
|
576
|
-
🇼🇫|WF|Wallis & Futuna
|
|
577
|
-
🇼🇸|WS|Samoa
|
|
578
|
-
🇽🇰|XK|Kosovo
|
|
579
|
-
🇾🇪|YE|Yemen
|
|
580
|
-
🇾🇹|YT|Mayotte
|
|
581
|
-
🇿🇦|ZA|South Africa
|
|
582
|
-
🇿🇲|ZM|Zambia
|
|
583
|
-
🇿🇼|ZW|Zimbabwe`.split(`
|
|
584
|
-
`).map(e=>{const[t,n,r]=e.split("|");return{flag:t,code:n,name:r}}),Bpe="AD,AE,AF,AG,AI,AL,AM,AO,AQ,AR,AS,AT,AU,AW,AX,AZ,BA,BB,BD,BE,BF,BG,BH,BI,BJ,BL,BM,BN,BO,BQ,BR,BS,BT,BV,BW,BY,BZ,CA,CD,CF,CG,CH,CI,CK,CL,CM,CN,CO,CR,CU,CV,CW,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,EG,ER,ES,ET,FI,FJ,FK,FM,FO,FR,GA,GB,GD,GE,GF,GG,GH,GI,GL,GM,GN,GP,GQ,GR,GT,GU,GW,GY,HK,HN,HR,HT,HU,ID,IE,IL,IM,IN,IO,IQ,IR,IS,IT,JE,JM,JO,JP,KE,KG,KH,KI,KM,KN,KP,KR,KW,KY,KZ,LA,LB,LC,LI,LK,LR,LS,LT,LU,LV,LY,MA,MC,MD,ME,MF,MG,MH,MK,ML,MM,MN,MO,MP,MQ,MR,MS,MT,MU,MV,MW,MX,MY,MZ,NA,NC,NE,NF,NG,NI,NL,NO,NP,NR,NU,NZ,OM,PA,PE,PF,PG,PH,PK,PL,PM,PR,PS,PT,PW,PY,QA,RE,RO,RS,RU,RW,SA,SB,SC,SD,SE,SG,SI,SK,SL,SM,SN,SO,SR,SS,ST,SV,SX,SY,SZ,TC,TD,TG,TH,TJ,TK,TL,TM,TN,TO,TR,TT,TV,TW,TZ,UA,"+"UG,UM,US,UY,UZ,VA,VC,VE,VG,VI,VN,VU,WF,WS,YE,YT,ZA,ZM,ZW".split(",");function f5(){return u.createElement(Vi)}function Xo(e){return F1(t=>t.breakpoints.up(e),{noSsr:!0})}function p5({icon:e,progress:t,offset:n,addTitle:r,sx:o}){return u.createElement(u.Fragment,{},u.createElement(e,{sx:{position:"absolute",ml:"4px"}}),u.createElement(Vi,{value:t*100||0,variant:"determinate",size:32,sx:{position:"absolute"}}),u.createElement(_l,{title:u.createElement(u.Fragment,{},Ze.isNumber(t)?Cfe(t):"Size unknown",r&&u.createElement("div",{},r)),children:u.createElement(Vi,{color:"success",value:(n||1e-7)*100,variant:"determinate",size:32,sx:we({display:"flex"},o)})}))}function qr(s){var i=s,{vert:e=!1,center:t=!1,children:n=null,props:r={}}=i,o=At(i,["vert","center","children","props"]);return u.createElement(ze,we({sx:we(we({display:"flex",gap:".8em",flexDirection:e?"column":void 0,alignItems:e?void 0:"center"},t&&{justifyContent:"center"}),o)},r),n)}function xa(e,t){return Array.isArray(t)&&(t=ch(t)),u.createElement(ts,{href:ofe+e,target:"help"},t)}function a0(e,t){return u.createElement(dn,we({icon:r0,title:"Reload",onClick:e},t))}function Xd(e){return e?{outline:"2px solid"}:void 0}const dn=u.forwardRef((h,p)=>{var y=h,{title:e,icon:t,onClick:n,disabled:r,progress:o,link:s,tooltipProps:i,confirm:l,doneMessage:a,sx:c}=y,f=At(y,["title","icon","onClick","disabled","progress","link","tooltipProps","confirm","doneMessage","sx"]);const[v,m]=Co(!1);typeof r=="string"&&(e=r),s&&(n=()=>window.open(s)),r=!!(v||o||r);let C=u.createElement(xr,st(we({ref:p,disabled:r},f),{sx:we({height:"fit-content"},c),onClick(...b){return rt(this,null,function*(){if(l&&!(yield pr(l)))return;const x=n==null?void 0:n.apply(this,b);x&&x instanceof Promise&&(m(!0),x.then(P=>P!==!1&&h5(a),Et).finally(()=>m(!1)))})}}),(o||v)&&o!==!1&&u.createElement(Vi,st(we({},typeof o=="number"?{value:o*100,variant:"determinate"}:null),{style:{position:"absolute",top:"10%",left:"10%",width:"80%",height:"80%"}})),u.createElement(t));return r&&(C=u.createElement("span",{role:"button","aria-label":e+", disabled"},C)),e&&(C=u.createElement(_l,st(we({title:e},i),{children:C}))),C});function To(h){var y=h,{icon:e,title:t,onClick:n,disabled:r,progress:o,link:s,tooltipProps:i,confirm:l,doneMessage:a,labelFrom:c,children:f}=y,p=At(y,["icon","title","onClick","disabled","progress","link","tooltipProps","confirm","doneMessage","labelFrom","children"]);const[v,m]=Co(!1);typeof r=="string"&&(t=r,r=!0),s&&(n=()=>window.open(s));const C=Xo(c||"xs");let w=u.createElement(r5,st(we({variant:"contained",startIcon:e&&u.createElement(e),loading:!!(v||o),loadingPosition:e&&"start",loadingIndicator:typeof o!="number"?void 0:u.createElement(Vi,{size:"1rem",value:o*100,variant:"determinate"}),disabled:r},p),{children:C&&f,sx:we(we({},p.sx),!C&&{minWidth:"auto",px:2,py:"7px","& span":{mx:0}}),onClick(...x){return rt(this,null,function*(){if(l&&!(yield pr(l===!0?"Are you sure?":l)))return;const P=n==null?void 0:n.apply(this,x);P&&P instanceof Promise&&(m(!0),P.then(M=>M!==!1&&h5(a),Et).finally(()=>m(!1)))})}}));return r&&(w=u.createElement("span",{role:"button","aria-label":t+", disabled"},w)),t&&(w=u.createElement(_l,st(we({title:t},i),{children:w}))),w}function h5(e){e&&rr(e===!0?"Operation completed":e,"success")}function Wr(e,t,n){return u.createElement(_l,{title:t,children:u.createElement(e,{sx:n})})}function c0(e){return u.createElement(ts,we({component:DP},e))}const Hh=u.forwardRef((e,t)=>u.createElement(ze,we({ref:t,display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"},e)));function al(t){var e=At(t,[]);return u.createElement(ts,st(we({},e),{sx:we({cursor:"pointer"},e.sx)}))}function m5(){const[e,t]=g5(n=>({title:"Pause",icon:n?t5:n0,sx:{rotate:n?"180deg":"0deg"}}),!0);return{pause:!e,pauseButton:t}}function g5(e,t=!1){const[n,r]=u.useState(t),o=u.useCallback(()=>r(l=>!l),[]),s=e(n),i=u.createElement(dn,st(we({size:"small",color:n?"primary":"default","aria-pressed":n},s),{sx:we({transition:"all .5s"},s.sx),onClick:o}));return[n,i]}function ey({code:e,ip:t,def:n,long:r,short:o}){const s=t&&!YN(t)&&!Mfe(t),{data:i}=Yg(e===void 0&&s&&zpe,t,{delay:100});e||(e=i||"");const l=e&&Ze.find(d5,{code:e});return l?u.createElement(_l,{title:r?void 0:l.name,children:u.createElement("span",{},u.createElement("img",{className:"flag icon-w-text",src:`flags/${e.toLowerCase()}.png`,alt:l.name}),r?l.name+ci(" (",o&&e,")"):e)}):u.createElement(u.Fragment,{},n)}function zpe(e){return rt(this,null,function*(){return(yield ct("ip_country",{ips:e})).codes})}function v5(e,t,n,r){let o=e[t];return A2(e,()=>{const s=e[t];Object.is(o,s)||n(o=s)},r)}const y5="admin_state",rn=D2(Object.assign({title:"",config:{},selectedFiles:[],movingFile:"",vfs:void 0,loginRequired:!1,username:"",monitorOnlyFiles:!0,onlinePluginsColumns:{version:!1,pushed_at:!1,license:!1}},JSON.parse(localStorage[y5]||null))),b5=["onlinePluginsColumns","monitorOnlyFiles"],Vpe=Ze.debounce(()=>localStorage[y5]=JSON.stringify(Ze.pick(rn,b5)),500,{maxWait:1e3});for(const e of b5)v5(rn,e,Vpe);function js(){return L2(rn)}function ri(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 _d(e){return!!e&&!!e[ns]}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)===Ype}(e)||Array.isArray(e)||!!e[SO]||!!(!((t=e.constructor)===null||t===void 0)&&t[SO])||nE(e)||rE(e))}function dh(e,t,n){n===void 0&&(n=!1),Zd(e)===0?(n?Object.keys:aE)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function Zd(e){var t=e[ns];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:nE(e)?2:rE(e)?3:0}function Qx(e,t){return Zd(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function jpe(e,t){return Zd(e)===2?e.get(t):e[t]}function w5(e,t,n){var r=Zd(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Hpe(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function nE(e){return Kpe&&e instanceof Map}function rE(e){return qpe&&e instanceof Set}function sc(e){return e.o||e.t}function oE(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Qpe(e);delete t[ns];for(var n=aE(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 sE(e,t){return t===void 0&&(t=!1),iE(e)||_d(e)||!Dc(e)||(Zd(e)>1&&(e.set=e.add=e.clear=e.delete=Upe),Object.freeze(e),t&&dh(e,function(n,r){return sE(r,!0)},!0)),e}function Upe(){ri(2)}function iE(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ai(e){var t=Xpe[e];return t||ri(18,e),t}function gO(){return fh}function Zw(e,t){t&&(Ai("Patches"),e.u=[],e.s=[],e.v=t)}function ty(e){Xx(e),e.p.forEach(Wpe),e.p=null}function Xx(e){e===fh&&(fh=e.l)}function vO(e){return fh={p:[],l:fh,h:e,m:!0,_:0}}function Wpe(e){var t=e[ns];t.i===0||t.i===1?t.j():t.g=!0}function Jw(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||Ai("ES5").S(t,e,r),r?(n[ns].P&&(ty(t),ri(4)),Dc(e)&&(e=ny(t,e),t.l||ry(t,e)),t.u&&Ai("Patches").M(n[ns].t,e,t.u,t.s)):e=ny(t,n,[]),ty(t),t.u&&t.v(t.u,t.s),e!==C5?e:void 0}function ny(e,t,n){if(iE(t))return t;var r=t[ns];if(!r)return dh(t,function(l,a){return yO(e,r,t,l,a,n)},!0),t;if(r.A!==e)return t;if(!r.P)return ry(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=oE(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 yO(e,r,o,l,a,n,i)}),ry(e,o,!1),n&&e.u&&Ai("Patches").N(r,n,e.u,e.s)}return r.o}function yO(e,t,n,r,o,s,i){if(_d(o)){var l=ny(e,o,s&&t&&t.i!==3&&!Qx(t.R,r)?s.concat(r):void 0);if(w5(n,r,l),!_d(l))return;e.m=!1}else i&&n.add(o);if(Dc(o)&&!iE(o)){if(!e.h.D&&e._<1)return;ny(e,o),t&&t.A.l||ry(e,o)}}function ry(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&sE(t,n)}function eC(e,t){var n=e[ns];return(n?sc(n):e)[t]}function bO(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 Zx(e){e.P||(e.P=!0,e.l&&Zx(e.l))}function tC(e){e.o||(e.o=oE(e.t))}function Jx(e,t,n){var r=nE(t)?Ai("MapSet").F(t,n):rE(t)?Ai("MapSet").T(t,n):e.O?function(o,s){var i=Array.isArray(o),l={i:i?1:0,A:s?s.A:gO(),P:!1,I:!1,R:{},l:s,t:o,k:null,o:null,j:null,C:!1},a=l,c=eS;i&&(a=[l],c=lp);var f=Proxy.revocable(a,c),p=f.revoke,h=f.proxy;return l.k=h,l.j=p,h}(t,n):Ai("ES5").J(t,n);return(n?n.A:gO()).p.push(r),r}function Gpe(e){return _d(e)||ri(22,e),function t(n){if(!Dc(n))return n;var r,o=n[ns],s=Zd(n);if(o){if(!o.P&&(o.i<4||!Ai("ES5").K(o)))return o.t;o.I=!0,r=wO(n,s),o.I=!1}else r=wO(n,s);return dh(r,function(i,l){o&&jpe(o.t,i)===l||w5(r,i,t(l))}),s===3?new Set(r):r}(e)}function wO(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return oE(e)}var CO,fh,lE=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",Kpe=typeof Map!="undefined",qpe=typeof Set!="undefined",xO=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",C5=lE?Symbol.for("immer-nothing"):((CO={})["immer-nothing"]=!0,CO),SO=lE?Symbol.for("immer-draftable"):"__$immer_draftable",ns=lE?Symbol.for("immer-state"):"__$immer_state",Ype=""+Object.prototype.constructor,aE=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Qpe=Object.getOwnPropertyDescriptors||function(e){var t={};return aE(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Xpe={},eS={get:function(e,t){if(t===ns)return e;var n=sc(e);if(!Qx(n,t))return function(o,s,i){var l,a=bO(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===eC(e.t,t)?(tC(e),e.o[t]=Jx(e.A.h,r,e)):r},has:function(e,t){return t in sc(e)},ownKeys:function(e){return Reflect.ownKeys(sc(e))},set:function(e,t,n){var r=bO(sc(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=eC(sc(e),t),s=o==null?void 0:o[ns];if(s&&s.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(Hpe(n,o)&&(n!==void 0||Qx(e.t,t)))return!0;tC(e),Zx(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 eC(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,tC(e),Zx(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=sc(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){ri(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ri(12)}},lp={};dh(eS,function(e,t){lp[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),lp.deleteProperty=function(e,t){return lp.set.call(this,e,t,void 0)},lp.set=function(e,t,n){return eS.set.call(this,e[0],t,n,e[0])};var Zpe=function(){function e(n){var r=this;this.O=xO,this.D=!0,this.produce=function(o,s,i){if(typeof o=="function"&&typeof s!="function"){var l=s;s=o;var a=r;return function(m){var C=this;m===void 0&&(m=l);for(var w=arguments.length,b=Array(w>1?w-1:0),x=1;x<w;x++)b[x-1]=arguments[x];return a.produce(m,function(P){var M;return(M=s).call.apply(M,[C,P].concat(b))})}}var c;if(typeof s!="function"&&ri(6),i!==void 0&&typeof i!="function"&&ri(7),Dc(o)){var f=vO(r),p=Jx(r,o,void 0),h=!0;try{c=s(p),h=!1}finally{h?ty(f):Xx(f)}return typeof Promise!="undefined"&&c instanceof Promise?c.then(function(m){return Zw(f,i),Jw(m,f)},function(m){throw ty(f),m}):(Zw(f,i),Jw(c,f))}if(!o||typeof o!="object"){if((c=s(o))===void 0&&(c=o),c===C5&&(c=void 0),r.D&&sE(c,!0),i){var y=[],v=[];Ai("Patches").M(o,c,y,v),i(y,v)}return c}ri(21,o)},this.produceWithPatches=function(o,s){if(typeof o=="function")return function(c){for(var f=arguments.length,p=Array(f>1?f-1:0),h=1;h<f;h++)p[h-1]=arguments[h];return r.produceWithPatches(c,function(y){return o.apply(void 0,[y].concat(p))})};var i,l,a=r.produce(o,s,function(c,f){i=c,l=f});return typeof Promise!="undefined"&&a instanceof Promise?a.then(function(c){return[c,i,l]}):[a,i,l]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Dc(n)||ri(8),_d(n)&&(n=Gpe(n));var r=vO(this),o=Jx(this,n,void 0);return o[ns].C=!0,Xx(r),o},t.finishDraft=function(n,r){var o=n&&n[ns],s=o.A;return Zw(s,r),Jw(void 0,s)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!xO&&ri(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=Ai("Patches").$;return _d(n)?i(n,r):this.produce(n,function(l){return i(l,r)})},e}(),rs=new Zpe,Jpe=rs.produce;rs.produceWithPatches.bind(rs);rs.setAutoFreeze.bind(rs);rs.setUseProxies.bind(rs);rs.applyPatches.bind(rs);rs.createDraft.bind(rs);rs.finishDraft.bind(rs);const ehe=Jpe;Oue({onResponse(e,t){return rt(this,null,function*(){if(e.status===Qd)throw rn.loginRequired=(t==null?void 0:t.possible)!==!1||Q1,new kN(e.status,"Unauthorized")})}});const the={timeout:"Operation timeout"};function Qn(...e){const t=IN(...e);return st(we({},t),{element:u.useMemo(()=>e[0]?t.error?u.createElement(Er,{severity:"error"},e0(String(t.error),the),u.createElement(dn,{icon:r0,onClick:t.reload,sx:{m:"-10px 0 -8px 16px"}})):t.loading||t.data===void 0?f5():null:null,Object.values(t))})}function Pl(e,t={},{map:n,invert:r,pause:o}={}){const[s,i]=Co([]),[l,a]=Co(void 0),[c,f]=Co(void 0),[p,h]=Co(!0),[y,v]=Co(!1),[m,C]=Co(!0),[w,b]=u.useState(0),x=u.useRef(0),[P,M]=u.useState();return u.useEffect(()=>M(o?s:void 0),[o]),u.useEffect(()=>{if(!e)return;const O=[],_=Ze.debounce(()=>{const z=O.splice(0,1/0);z.length&&(r&&z.reverse(),i(T=>r?[...z,...T]:[...T,...z]))},1e3,{maxWait:1e3});f(void 0),v(!0),h(!0),C(!0),i([]);const L=MN(e,t,(z,T)=>{switch(z){case"connected":return h(!1),setTimeout(()=>_.flush());case"error":return f("Connection error"),setTimeout(E,1e3),B();case"closed":return B();case"msg":const $=[],F=[];J1(T).forEach(j=>{var H,K,Y;if(!Array.isArray(j))return console.debug("illegal list packet",j);console.debug("LIST",...j);const[A,N]=j;if(A===gu.ready){_.flush(),C(!1);return}if(A===gu.error){N===Qd?rn.loginRequired=((H=j[2])==null?void 0:H.possible)!==!1||Q1:f(e5(N));return}if(A===gu.props)return a(N);if(A===gu.add){const te=(K=n==null?void 0:n(N))!=null?K:N;(Y=te.id)!=null||(te.id=x.current=Math.max(x.current,Date.now())+.001),O.push(te),_();return}if(A===gu.remove){const te=Ze.matches(N);Ze.isEmpty(Ze.remove(O,te))&&$.push(te);return}if(A===gu.update){const te=j[2],Q=Ze.find(O,N);if(Q)return Object.assign(Q,te);F.push([N,te]);return}console.debug("unknown list api",A)}),i(j=>{let A=j,N;if($.length&&(N=j.filter(H=>!$.some(K=>K(H))),N.length<j.length&&(A=N)),F.length)for(const[H,K]of F){const Y=Ze.findIndex(A,H);Y<0||(A===j&&(A=N!=null?N:j.slice()),A[Y]=we(we({},A[Y]),K))}return A}),(L==null?void 0:L.readyState)===(L==null?void 0:L.CLOSED)&&B()}});return()=>L.close();function B(){C(!1),v(!1),_.flush()}},[w,e,JSON.stringify(t)]),{list:P!=null?P:s,props:l,loading:y,error:c,initializing:m,connecting:p,setList:i,updateList:k,updateEntry:R,reload:E};function E(){b(O=>O+1)}function k(O){i(ehe(s,O))}function R(O,_){k(L=>{const B=Ze.find(L,O);B&&Object.assign(B,_)})}}var cE={},nhe=et;Object.defineProperty(cE,"__esModule",{value:!0});var x5=cE.default=void 0,rhe=nhe(tt()),ohe=Je(),she=(0,rhe.default)((0,ohe.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");x5=cE.default=she;var uE={},ihe=et;Object.defineProperty(uE,"__esModule",{value:!0});var u0=uE.default=void 0,lhe=ihe(tt()),ahe=Je(),che=(0,lhe.default)((0,ahe.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");u0=uE.default=che;var dE={},uhe=et;Object.defineProperty(dE,"__esModule",{value:!0});var S5=dE.default=void 0,dhe=uhe(tt()),fhe=Je(),phe=(0,dhe.default)((0,fhe.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");S5=dE.default=phe;var fE={},hhe=et;Object.defineProperty(fE,"__esModule",{value:!0});var P5=fE.default=void 0,mhe=hhe(tt()),ghe=Je(),vhe=(0,mhe.default)((0,ghe.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");P5=fE.default=vhe;var pE={},yhe=et;Object.defineProperty(pE,"__esModule",{value:!0});var Uh=pE.default=void 0,bhe=yhe(tt()),whe=Je(),Che=(0,bhe.default)((0,whe.jsx)("path",{d:"M5 20h14v-2H5v2zm0-10h4v6h6v-6h4l-7-7-7 7z"}),"Upload");Uh=pE.default=Che;var hE={},xhe=et;Object.defineProperty(hE,"__esModule",{value:!0});var mE=hE.default=void 0,She=xhe(tt()),Phe=Je(),Ehe=(0,She.default)((0,Phe.jsx)("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"}),"Download");mE=hE.default=Ehe;const E5=u.createContext(void 0);function Vt(){const e=u.useContext(E5);if(e===void 0)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
|
|
585
|
-
`));return e}const khe=()=>u.useRef({}),k5=u.createContext(void 0),ut=()=>{const e=u.useContext(k5);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},I5=u.createContext(void 0);function za(){const e=u.useContext(I5);if(e===void 0)throw new Error(["MUI: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
|
|
586
|
-
`));return e}const PO={};function gE(e,t){const n=u.useRef(PO);return n.current===PO&&(n.current=e(t)),n}const Ihe=[];function M5(e){u.useEffect(e,Ihe)}const Gi=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
|
|
587
|
-
`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},Mhe=Object.is;function _5(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,!Mhe(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 _he(e){return e.acceptsApiRef}function EO(e,t){return _he(t)?t(e):t(e.current.state)}const The=Object.is,vE=_5,$he=()=>({state:null,equals:null,selector:null}),ot=(e,t,n=The)=>{const r=gE($he),o=r.current.selector!==null,[s,i]=u.useState(o?null:EO(e,t));return r.current.state=s,r.current.equals=n,r.current.selector=t,M5(()=>e.current.store.subscribe(()=>{const l=EO(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 oy="NOT_FOUND";function Rhe(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:oy},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Ohe(e,t){var n=[];function r(l){var a=n.findIndex(function(f){return t(l,f.key)});if(a>-1){var c=n[a];return a>0&&(n.splice(a,1),n.unshift(c)),c.value}return oy}function o(l,a){r(l)===oy&&(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 Dhe=function(t,n){return t===n};function Ahe(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 d0(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?Dhe:r,s=n.maxSize,i=s===void 0?1:s,l=n.resultEqualityCheck,a=Ahe(o),c=i===1?Rhe(a):Ohe(i,a);function f(){var p=c.get(arguments);if(p===oy){if(p=e.apply(null,arguments),l){var h=c.getEntries(),y=h.find(function(v){return l(v.value,p)});y&&(p=y.value)}c.put(arguments,p)}return p}return f.clearCache=function(){return c.clear()},f}function Lhe(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 Fhe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var i=arguments.length,l=new Array(i),a=0;a<i;a++)l[a]=arguments[a];var c=0,f,p={memoizeOptions:void 0},h=l.pop();if(typeof h=="object"&&(p=h,h=l.pop()),typeof h!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof h+"]");var y=p,v=y.memoizeOptions,m=v===void 0?n:v,C=Array.isArray(m)?m:[m],w=Lhe(l),b=e.apply(void 0,[function(){return c++,h.apply(null,arguments)}].concat(C)),x=e(function(){for(var M=[],E=w.length,k=0;k<E;k++)M.push(w[k].apply(null,arguments));return f=b.apply(null,M),f});return Object.assign(x,{resultFunc:h,memoizedResultFunc:b,dependencies:w,lastResult:function(){return f},recomputations:function(){return c},resetRecomputations:function(){return c=0}}),x};return o}var Nhe=Fhe(d0);const Bhe={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,c)=>{const f=Iu(a),p=c!=null?c:f?a.current.instanceId:Mu,h=f?a.current.state:a,y=e(h,p),v=t(h,p),m=n(h,p),C=r(h,p),w=o(h,p);return s(y,v,m,C,w)};else if(e&&t&&n&&r&&o)l=(a,c)=>{const f=Iu(a),p=c!=null?c:f?a.current.instanceId:Mu,h=f?a.current.state:a,y=e(h,p),v=t(h,p),m=n(h,p),C=r(h,p);return o(y,v,m,C)};else if(e&&t&&n&&r)l=(a,c)=>{const f=Iu(a),p=c!=null?c:f?a.current.instanceId:Mu,h=f?a.current.state:a,y=e(h,p),v=t(h,p),m=n(h,p);return r(y,v,m)};else if(e&&t&&n)l=(a,c)=>{const f=Iu(a),p=c!=null?c:f?a.current.instanceId:Mu,h=f?a.current.state:a,y=e(h,p),v=t(h,p);return n(y,v)};else if(e&&t)l=(a,c)=>{const f=Iu(a),p=c!=null?c:f?a.current.instanceId:Mu,h=f?a.current.state:a,y=e(h,p);return t(y)};else throw new Error("Missing arguments");return l.acceptsApiRef=!0,l},_n=(...e)=>{const t=(...n)=>{var r,o;const[s,i]=n,l=Iu(s),a=l?s.current.instanceId:i!=null?i:Mu,c=l?s.current.state:s,{cache:f}=Bhe;if(f.get(a)&&(r=f.get(a))!=null&&r.get(e)){var p;return(p=f.get(a))==null?void 0:p.get(e)(c,a)}const h=Nhe(...e);return f.get(a)||f.set(a,new Map),(o=f.get(a))==null||o.set(e,h),h(c,a)};return t.acceptsApiRef=!0,t},yc=e=>e.columns,ml=_t(yc,e=>e.orderedFields),Jd=_t(yc,e=>e.lookup),Li=_n(ml,Jd,(e,t)=>e.map(n=>t[n])),si=_t(yc,e=>e.columnVisibilityModel),Ar=_n(Li,si,(e,t)=>e.filter(n=>t[n.field]!==!1)),f0=_n(Ar,e=>e.map(t=>t.field)),Td=_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}),yE=_t(Ar,Td,(e,t)=>{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),T5=_n(Li,e=>e.filter(t=>t.filterable)),zhe=_n(Li,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),p0=e=>e.columnGrouping,Vhe=_n(p0,e=>{var t;return(t=e==null?void 0:e.unwrappedGroupingModel)!=null?t:{}}),$5=_n(p0,e=>{var t;return(t=e==null?void 0:e.lookup)!=null?t:{}}),jhe=_n(p0,e=>{var t;return(t=e==null?void 0:e.headerStructure)!=null?t:[]}),Wh=_t(p0,e=>{var t;return(t=e==null?void 0:e.maxDepth)!=null?t:0}),hi=e=>e.rows,h0=_t(hi,e=>e.totalRowCount),Hhe=_t(hi,e=>e.loading),Uhe=_t(hi,e=>e.totalTopLevelRowCount),ca=_t(hi,e=>e.dataRowIdToModelLookup),sy=_t(hi,e=>e.dataRowIdToIdLookup),ti=_t(hi,e=>e.tree),Whe=_t(hi,e=>e.groupingName),kO=_t(hi,e=>e.treeDepths),m0=_n(hi,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(hi,e=>e.dataRowIds),Ghe=_t(hi,e=>e==null?void 0:e.additionalRowGroups),ef=_n(Ghe,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:{}}})}}),Khe=_t(ef,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)}),R5=()=>{var e;const t=za(),n=ut(),r=ot(t,Ar),o=ot(t,h0),s=ot(t,Wh),i=ot(t,Khe);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}},qhe=e=>{const{classes:t}=e;return Te({root:["main"]},jt,t)},Yhe=Ir("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"})),Qhe=u.forwardRef((e,t)=>{var n;const r=ut(),o=qhe(r),s=(n=r.experimentalFeatures)!=null&&n.ariaV7?R5:null,i=typeof s=="function"?s():null;return D.jsx(Yhe,S({ref:t,className:o.root,ownerState:r},i,{children:e.children}))}),O5=e=>e.sorting,bE=_t(O5,e=>e.sortedRows),wE=_n(bE,ca,(e,t)=>e.map(n=>{var r;return{id:n,model:(r=t[n])!=null?r:{}}})),xs=_t(O5,e=>e.sortModel),Xhe=_n(xs,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),CE=e=>e.filter,Or=_t(CE,e=>e.filterModel);_t(Or,e=>e.quickFilterValues);const Zhe=e=>e.visibleRowsLookup,D5=_t(CE,e=>e.filteredRowsLookup);_t(CE,e=>e.filteredDescendantCountLookup);const Va=_n(Zhe,wE,(e,t)=>t.filter(n=>e[n.id]!==!1)),$p=_n(Va,e=>e.map(t=>t.id)),Jhe=_n(D5,wE,(e,t)=>t.filter(n=>e[n.id]!==!1)),eme=_n(Jhe,e=>e.map(t=>t.id)),A5=_n(Va,ti,m0,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),L5=_t(Va,e=>e.length),g0=_t(A5,e=>e.length),tme=_n(Or,Jd,(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})}),nme=_n(tme,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),v0=e=>e.focus,jo=_t(v0,e=>e.cell),rme=_t(v0,e=>e.columnHeader);_t(v0,e=>e.columnHeaderFilter);const iy=_t(v0,e=>e.columnGroupHeader),y0=e=>e.tabIndex,ly=_t(y0,e=>e.cell),F5=_t(y0,e=>e.columnHeader);_t(y0,e=>e.columnHeaderFilter);const ome=_t(y0,e=>e.columnGroupHeader),xE=e=>e.density,sme=_t(xE,e=>e.value),tf=_t(xE,e=>e.factor),tS=e=>e.columnMenu;function ime(e){const{VirtualScrollerComponent:t,ColumnHeadersProps:n,children:r}=e,o=za(),s=ut(),i=u.useRef(null),l=ot(o,Ar),a=ot(o,nme),c=ot(o,Xhe),f=ot(o,Td),p=ot(o,F5),h=ot(o,ly),y=ot(o,ome),v=ot(o,rme),m=ot(o,iy),C=ot(o,tf),w=ot(o,Wh),b=ot(o,tS),x=ot(o,si),P=ot(o,jhe),M=!(y===null&&p===null&&h===null);Nt(()=>{o.current.computeSizeAndPublishResizeEvent();const _=i.current;if(typeof ResizeObserver=="undefined")return()=>{};let L;const B=new ResizeObserver(()=>{L=requestAnimationFrame(()=>{o.current.computeSizeAndPublishResizeEvent()})});return _&&B.observe(_),()=>{L&&window.cancelAnimationFrame(L),_&&B.unobserve(_)}},[o]);const E=u.useRef(null),k=u.useRef(null),R=u.useRef(null);o.current.register("private",{columnHeadersContainerElementRef:k,columnHeadersElementRef:E,virtualScrollerRef:R,mainElementRef:i});const O=!!o.current.getRootDimensions();return D.jsxs(Qhe,{ref:i,children:[D.jsx(s.slots.columnHeaders,S({ref:k,innerRef:E,visibleColumns:l,filterColumnLookup:a,sortColumnLookup:c,columnPositions:f,columnHeaderTabIndexState:p,columnGroupHeaderTabIndexState:y,columnHeaderFocus:v,columnGroupHeaderFocus:m,densityFactor:C,headerGroupingMaxDepth:w,columnMenuState:b,columnVisibility:x,columnGroupsHeaderStructure:P,hasOtherElementInTabSequence:M},n)),O&&D.jsx(t,{ref:R}),r]})}function lme(){var e;const t=ut();return t.hideFooter?null:D.jsx(t.slots.footer,S({},(e=t.slotProps)==null?void 0:e.footer))}const ao="auto-generated-group-node-root",od=Symbol("mui.id_autogenerated"),ame=()=>({type:"group",id:ao,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function cme(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(`
|
|
588
|
-
`))}const ay=(e,t,n)=>{const r=t?t(e):e.id;return cme(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],c=ay(a,t);s[c]=a,i[c]=c,o.rows.push(c)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToIdLookup:i,dataRowIdToModelLookup:s}},N5=({tree:e,rowCountProp:t=0})=>{const n=e[ao];return Math.max(t,n.children.length+(n.footerId==null?0:1))},B5=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o})=>{const s=e.current.caches.rows,{tree:i,treeDepths:l,dataRowIds:a,groupingName:c}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:s.updates,dataRowIdToIdLookup:s.dataRowIdToIdLookup,dataRowIdToModelLookup:s.dataRowIdToModelLookup}),f=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:i,treeDepths:l,dataRowIdToIdLookup:s.dataRowIdToIdLookup,dataRowIds:a,dataRowIdToModelLookup:s.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},S({},f,{totalRowCount:Math.max(t,f.dataRowIds.length),totalTopLevelRowCount:N5({tree:f.tree,rowCountProp:t}),groupingName:c,loading:n})},ph=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,SE=(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(...SE(e,i,n))}return!n&&r.footerId!=null&&o.push(r.footerId),o},ume=({previousCache:e,getRowId:t,updates:n})=>{var r,o,s;if(e.updates.type==="full")throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const i=new Map;n.forEach(h=>{const y=ay(h,t,"A row was provided without id when calling updateRows():");i.has(y)?i.set(y,S({},i.get(y),h)):i.set(y,h)});const l={type:"partial",actions:{insert:[...(r=e.updates.actions.insert)!=null?r:[]],modify:[...(o=e.updates.actions.modify)!=null?o:[]],remove:[...(s=e.updates.actions.remove)!=null?s:[]]},idToActionLookup:S({},e.updates.idToActionLookup)},a=S({},e.dataRowIdToModelLookup),c=S({},e.dataRowIdToIdLookup),f={insert:{},modify:{},remove:{}};i.forEach((h,y)=>{const v=l.idToActionLookup[y];if(h._action==="delete"){if(v==="remove"||!a[y])return;v!=null&&(f[v][y]=!0),l.actions.remove.push(y),delete a[y],delete c[y];return}const m=a[y];if(m){v==="remove"?(f.remove[y]=!0,l.actions.modify.push(y)):v==null&&l.actions.modify.push(y),a[y]=S({},m,h);return}v==="remove"?(f.remove[y]=!0,l.actions.insert.push(y)):v==null&&l.actions.insert.push(y),a[y]=h,c[y]=y});const p=Object.keys(f);for(let h=0;h<p.length;h+=1){const y=p[h],v=f[y];Object.keys(v).length>0&&(l.actions[y]=l.actions[y].filter(m=>!v[m]))}return{dataRowIdToModelLookup:a,dataRowIdToIdLookup:c,updates:l,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function z5(e){var t,n;const r=ef(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 V5(e,t){const n=tf(e);return`var(--DataGrid-overlayHeight, ${2*Math.floor(t*n)}px)`}const dme=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})),fme=Ir("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),pme=e=>{const{classes:t}=e;return Te({root:["overlayWrapper"],inner:["overlayWrapperInner"]},jt,t)};function hme(e){var t,n;const r=Vt(),o=ut(),[s,i]=u.useState(()=>{var f,p;return(f=(p=r.current.getRootDimensions())==null?void 0:p.viewportInnerSize)!=null?f:null}),l=u.useCallback(()=>{var f,p;i((f=(p=r.current.getRootDimensions())==null?void 0:p.viewportInnerSize)!=null?f:null)},[r]);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=V5(r,o.rowHeight));const c=pme(S({},e,{classes:o.classes}));return s?D.jsx(dme,{className:xe(c.root),overlayType:e.overlayType,children:D.jsx(fme,S({className:xe(c.inner),style:{height:a,width:(n=s==null?void 0:s.width)!=null?n:0}},e))}):null}function mme(){const e=Vt(),t=ut(),n=ot(e,h0),r=ot(e,L5),o=ot(e,Hhe),s=!o&&n===0,i=!o&&n>0&&r===0;let l=null,a="";if(s){var c;l=D.jsx(t.slots.noRowsOverlay,S({},(c=t.slotProps)==null?void 0:c.noRowsOverlay)),a="noRowsOverlay"}if(i){var f;l=D.jsx(t.slots.noResultsOverlay,S({},(f=t.slotProps)==null?void 0:f.noResultsOverlay)),a="noResultsOverlay"}if(o){var p;l=D.jsx(t.slots.loadingOverlay,S({},(p=t.slotProps)==null?void 0:p.loadingOverlay)),a="loadingOverlay"}return l===null?null:D.jsx(hme,{overlayType:a,children:l})}function b0(e){return u.memo(e,_5)}let nC;function gme(){return nC===void 0&&document.createElement("div").focus({get preventScroll(){return nC=!0,!1}}),nC}var Hi=function(e){return e.Cell="cell",e.Row="row",e}(Hi||{}),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||{}),Kl=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(Kl||{}),Zs=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Zs||{}),ql=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(ql||{}),rl=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(rl||{});function j5(e){return e.field!==void 0}function vme(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function yme(e,t){return e.closest(`.${t}`)}function PE(e){return e.replace(/["\\]/g,"\\$&")}function bme(e,t){return e.querySelector(`[role="columnheader"][data-field="${PE(t)}"]`)}function H5(e){return`.${ue.row}[data-id="${PE(String(e))}"]`}function wme(e,t){return e.querySelector(H5(t))}function Cme(e,{id:t,field:n}){const r=H5(t),o=`.${ue.cell}[data-field="${PE(n)}"]`,s=`${r} ${o}`;return e.querySelector(s)}function Lt(e,t,n){const r=u.useRef(!0);u.useEffect(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}class Hu extends Error{}function xme(e,t){const{getRowId:n}=t,r=u.useCallback(v=>({field:v,colDef:e.current.getColumn(v)}),[e]),o=u.useCallback(v=>{const m=e.current.getRow(v);if(!m)throw new Hu(`No row with id #${v} found`);return{id:v,columns:e.current.getAllColumns(),row:m}},[e]),s=u.useCallback((v,m)=>{const C=e.current.getRow(v),w=e.current.getRowNode(v);if(!C||!w)throw new Hu(`No row with id #${v} found`);const b=jo(e),x=ly(e);return{id:v,field:m,row:C,rowNode:w,value:C[m],colDef:e.current.getColumn(m),cellMode:e.current.getCellMode(v,m),api:e.current,hasFocus:b!==null&&b.field===m&&b.id===v,tabIndex:x&&x.field===m&&x.id===v?0:-1}},[e]),i=u.useCallback((v,m)=>{const C=e.current.getColumn(m),w=e.current.getCellValue(v,m),b=e.current.getRow(v),x=e.current.getRowNode(v);if(!b||!x)throw new Hu(`No row with id #${v} found`);const P=jo(e),M=ly(e),E={id:v,field:m,row:b,rowNode:x,colDef:C,cellMode:e.current.getCellMode(v,m),hasFocus:P!==null&&P.field===m&&P.id===v,tabIndex:M&&M.field===m&&M.id===v?0:-1,value:w,formattedValue:w,isEditable:!1};return C&&C.valueFormatter&&(E.formattedValue=C.valueFormatter({id:v,field:E.field,value:E.value,api:e.current})),E.isEditable=C&&e.current.isCellEditable(E),E},[e]),l=u.useCallback((v,m)=>{const C=e.current.getColumn(m);if(!C||!C.valueGetter){const w=e.current.getRow(v);if(!w)throw new Hu(`No row with id #${v} found`);return w[m]}return C.valueGetter(s(v,m))},[e,s]),a=u.useCallback((v,m)=>{var C;const w=od in v?v[od]:(C=n==null?void 0:n(v))!=null?C:v.id,b=m.field;return!m||!m.valueGetter?v[b]:m.valueGetter(s(w,b))},[s,n]),c=u.useCallback((v,m)=>{var C;const w=a(v,m);if(!m||!m.valueFormatter)return w;const b=(C=n?n(v):v.id)!=null?C:v[od],x=m.field;return m.valueFormatter({id:b,field:x,value:w,api:e.current})},[e,n,a]),f=u.useCallback(v=>e.current.rootElementRef.current?bme(e.current.rootElementRef.current,v):null,[e]),p=u.useCallback(v=>e.current.rootElementRef.current?wme(e.current.rootElementRef.current,v):null,[e]),h=u.useCallback((v,m)=>e.current.rootElementRef.current?Cme(e.current.rootElementRef.current,{id:v,field:m}):null,[e]);Lt(e,{getCellValue:l,getCellParams:i,getCellElement:h,getRowValue:a,getRowFormattedValue:c,getRowParams:o,getRowElement:p,getColumnHeaderParams:r,getColumnHeaderElement:f},"public")}const Sme=["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"],Eme=["changeReason","unstable_updateValueOnRender"],cy={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:{}},kme=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)},Ime=u.forwardRef((e,t)=>{const{column:n,rowId:r,editCellState:o}=e,s=Vt(),i=ut(),l=n.field,a=ot(s,()=>{try{const O=s.current.getCellParams(r,l);return O.api=s.current,O}catch(R){if(R instanceof Hu)return cy;throw R}},vE),c=ot(s,()=>s.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:l}));if(a===cy)return null;const{cellMode:f,hasFocus:p,isEditable:h,value:y,formattedValue:v}=a,m=n.type==="actions",C=(f==="view"||!h)&&!m?a.tabIndex:-1,{classes:w,getCellClassName:b}=i,x=s.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:l});n.cellClassName&&x.push(typeof n.cellClassName=="function"?n.cellClassName(a):n.cellClassName),b&&x.push(b(a));let P;if(o==null&&n.renderCell&&(P=n.renderCell(a),x.push(ue["cell--withRenderer"]),x.push(w==null?void 0:w["cell--withRenderer"])),o!=null&&n.renderEditCell){const R=s.current.getRowWithUpdatedValues(r,n.field),O=le(o,Sme),_=S({},a,{row:R},O);P=n.renderEditCell(_),x.push(ue["cell--editing"]),x.push(w==null?void 0:w["cell--editing"])}const{slots:M}=i,E=M.cell,k=S({},e,{ref:t,field:l,formattedValue:v,hasFocus:p,isEditable:h,isSelected:c,value:y,cellMode:f,children:P,tabIndex:C,className:xe(x)});return u.createElement(E,k)}),Mme=b0(Ime),_me=u.forwardRef((e,t)=>{var n,r,o,s;const{column:i,rowId:l,editCellState:a,align:c,colIndex:f,height:p,width:h,className:y,showRightBorder:v,colSpan:m,disableDragEvents:C,isNotVisible:w,onClick:b,onDoubleClick:x,onMouseDown:P,onMouseUp:M,onMouseOver:E,onKeyDown:k,onKeyUp:R,onDragEnter:O,onDragOver:_}=e,L=le(e,Pme),B=Vt(),z=ut(),T=i.field,$=ot(B,()=>{try{const be=B.current.getCellParams(l,T);return be.api=B.current,be}catch(de){if(de instanceof Hu)return cy;throw de}},vE),F=ot(B,()=>B.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:l,field:T})),{cellMode:j,hasFocus:A,isEditable:N,value:H,formattedValue:K}=$,Y=i.type==="actions"&&((n=(r=i).getActions)==null?void 0:n.call(r,B.current.getRowParams(l)).some(de=>!de.props.disabled)),te=(j==="view"||!N)&&!Y?$.tabIndex:-1,{classes:Q,getCellClassName:X}=z,J=B.current.unstable_applyPipeProcessors("cellClassName",[],{id:l,field:T});i.cellClassName&&J.push(typeof i.cellClassName=="function"?i.cellClassName($):i.cellClassName),X&&J.push(X($));const se=K==null?H:K,Z=u.useRef(null),he=kt(t,Z),ne=u.useRef(null),re=(o=z.unstable_cellSelection)!=null?o:!1,me={align:c,showRightBorder:v,isEditable:N,classes:z.classes,isSelected:F,isSelectionMode:re},ce=kme(me),Se=u.useCallback(de=>be=>{const _e=B.current.getCellParams(l,T||"");B.current.publishEvent(de,_e,be),M&&M(be)},[B,T,M,l]),ke=u.useCallback(de=>be=>{const _e=B.current.getCellParams(l,T||"");B.current.publishEvent(de,_e,be),P&&P(be)},[B,T,P,l]),ae=u.useCallback((de,be)=>_e=>{if(!B.current.getRow(l))return;const Ne=B.current.getCellParams(l,T||"");B.current.publishEvent(de,Ne,_e),be&&be(_e)},[B,T,l]),Ie=u.useMemo(()=>w?{padding:0,opacity:0,width:0,border:0}:{minWidth:h,maxWidth:h,minHeight:p,maxHeight:p==="auto"?"none":p},[h,p,w]);if(u.useEffect(()=>{if(!A||j===un.Edit)return;const de=pn(B.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(gme())_e.focus({preventScroll:!0});else{const Ne=B.current.getScrollPosition();_e.focus(),B.current.scroll(Ne)}}},[A,j,B]),$===cy)return null;let ye=L.onFocus,Me;if(a==null&&i.renderCell&&(Me=i.renderCell($),J.push(ue["cell--withRenderer"]),J.push(Q==null?void 0:Q["cell--withRenderer"])),a!=null&&i.renderEditCell){const de=B.current.getRowWithUpdatedValues(l,i.field),be=le(a,Eme),_e=S({},$,{row:de},be);Me=i.renderEditCell(_e),J.push(ue["cell--editing"]),J.push(Q==null?void 0:Q["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})}u.isValidElement(Me)&&Y&&(Me=u.cloneElement(Me,{focusElementRef:ne}));const pe=C?null:{onDragEnter:ae("cellDragEnter",O),onDragOver:ae("cellDragOver",_)},fe=(s=z.experimentalFeatures)==null?void 0:s.ariaV7;return D.jsx("div",S({ref:he,className:xe(y,J,ce.root),role:fe?"gridcell":"cell","data-field":T,"data-colindex":f,"aria-colindex":f+1,"aria-colspan":m,style:Ie,tabIndex:te,onClick:ae("cellClick",b),onDoubleClick:ae("cellDoubleClick",x),onMouseOver:ae("cellMouseOver",E),onMouseDown:ke("cellMouseDown"),onMouseUp:Se("cellMouseUp"),onKeyDown:ae("cellKeyDown",k),onKeyUp:ae("cellKeyUp",R)},pe,L,{onFocus:ye,children:Me}))}),nS=b0(_me),Tme=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex"],$me=e=>{const{classes:t}=e;return Te({root:["booleanCell"]},jt,t)};function Rme(e){const{value:t}=e,n=le(e,Tme),r=Vt(),o=ut(),s={classes:o.classes},i=$me(s),l=u.useMemo(()=>t?o.slots.booleanCellTrueIcon:o.slots.booleanCellFalseIcon,[o.slots.booleanCellFalseIcon,o.slots.booleanCellTrueIcon,t]);return D.jsx(l,S({fontSize:"small",className:i.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},n))}const Ome=u.memo(Rme),Dme=e=>ph(e.rowNode)?"":D.jsx(Ome,S({},e)),Ame=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],Lme=e=>{const{classes:t}=e;return Te({root:["editBooleanCell"]},jt,t)};function Fme(e){var t;const{id:n,value:r,field:o,className:s,hasFocus:i,onValueChange:l}=e,a=le(e,Ame),c=Vt(),f=u.useRef(null),p=Kt(),[h,y]=u.useState(r),v=ut(),m={classes:v.classes},C=Lme(m),w=u.useCallback(b=>rt(this,null,function*(){const x=b.target.checked;l&&(yield l(b,x)),y(x),yield c.current.setEditCellValue({id:n,field:o,value:x},b)}),[c,o,n,l]);return u.useEffect(()=>{y(r)},[r]),Nt(()=>{i&&f.current.focus()},[i]),D.jsx("label",S({htmlFor:p,className:xe(C.root,s)},a,{children:D.jsx(v.slots.baseCheckbox,S({id:p,inputRef:f,checked:!!h,onChange:w,size:"small"},(t=v.slotProps)==null?void 0:t.baseCheckbox))}))}const Nme=e=>D.jsx(Fme,S({},e)),Bme=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],zme=oe(Wd)({fontSize:"inherit"}),Vme=e=>{const{classes:t}=e;return Te({root:["editInputCell"]},jt,t)};function jme(e){const{id:t,value:n,field:r,colDef:o,hasFocus:s,inputProps:i,onValueChange:l}=e,a=le(e,Bme),c=o.type==="dateTime",f=Vt(),p=u.useRef(),h=u.useMemo(()=>{let k;n==null?k=null:n instanceof Date?k=n:k=new Date((n!=null?n:"").toString());let R;return k==null||Number.isNaN(k.getTime())?R="":R=new Date(k.getTime()-k.getTimezoneOffset()*60*1e3).toISOString().substr(0,c?16:10),{parsed:k,formatted:R}},[n,c]),[y,v]=u.useState(h),C={classes:ut().classes},w=Vme(C),b=u.useRef(!1),x=u.useCallback(k=>{if(k==="")return null;const[R,O]=k.split("T"),[_,L,B]=R.split("-"),z=new Date;if(z.setFullYear(Number(_),Number(L)-1,Number(B)),z.setHours(0,0,0,0),O){const[T,$]=O.split(":");z.setHours(Number(T),Number($),0,0)}return z},[]),P=u.useCallback(k=>rt(this,null,function*(){const R=k.target.value,O=x(R);l&&(yield l(k,O)),v({parsed:O,formatted:R}),f.current.setEditCellValue({id:t,field:r,value:O},k)}),[f,r,t,l,x]);u.useEffect(()=>{v(k=>{var R,O;return h.parsed!==k.parsed&&((R=h.parsed)==null?void 0:R.getTime())!==((O=k.parsed)==null?void 0:O.getTime())?h:k})},[h]),Nt(()=>{s&&p.current.focus()},[s]);const M=f.current.unstable_getEditCellMeta(t,r),E=k=>{if(p.current=k,M!=null&&M.unstable_updateValueOnRender&&!b.current){const R=p.current.value,O=x(R);v({parsed:O,formatted:R}),f.current.setEditCellValue({id:t,field:r,value:O}),b.current=!0}};return D.jsx(zme,S({inputRef:E,fullWidth:!0,className:w.root,type:c?"datetime-local":"date",inputProps:S({max:c?"9999-12-31T23:59":"9999-12-31"},i),value:y.formatted,onChange:P},a))}const U5=e=>D.jsx(jme,S({},e)),Hme=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],Ume=e=>{const{classes:t}=e;return Te({root:["editInputCell"]},jt,t)},Wme=oe(Wd,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>S({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),Gme=u.forwardRef((e,t)=>{const n=ut(),{id:r,value:o,field:s,colDef:i,hasFocus:l,debounceMs:a=200,isProcessingProps:c,onValueChange:f}=e,p=le(e,Hme),h=Vt(),y=u.useRef(),[v,m]=u.useState(o),C=Ume(n),w=u.useCallback(x=>rt(void 0,null,function*(){const P=x.target.value;f&&(yield f(x,P));const M=h.current.getColumn(s);let E=P;M.valueParser&&(E=M.valueParser(P,h.current.getCellParams(r,s))),m(E),h.current.setEditCellValue({id:r,field:s,value:E,debounceMs:a,unstable_skipValueParser:!0},x)}),[h,a,s,r,f]),b=h.current.unstable_getEditCellMeta(r,s);return u.useEffect(()=>{(b==null?void 0:b.changeReason)!=="debouncedSetEditCellValue"&&m(o)},[b,o]),Nt(()=>{l&&y.current.focus()},[l]),D.jsx(Wme,S({ref:t,inputRef:y,className:C.root,ownerState:n,fullWidth:!0,type:i.type==="number"?i.type:"text",value:v!=null?v:"",onChange:w,endAdornment:c?D.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},p))}),Kme=e=>D.jsx(Gme,S({},e)),uy=e=>e==="Escape",qme=e=>e==="Enter",W5=e=>e==="Tab",G5=e=>e===" ",Yme=e=>e.indexOf("Arrow")===0,Qme=e=>e==="Home"||e==="End",Xme=e=>e.indexOf("Page")===0;function K5(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const dy=e=>Qme(e)||Yme(e)||Xme(e)||G5(e),Zme=e=>!!e.key,Jme=e=>W5(e)||uy(e);function bc(e){return(e==null?void 0:e.type)==="singleSelect"}function rS(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 ege=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","getOptionLabel","getOptionValue"],tge=["MenuProps"];function nge(e){return!!e.key}function rge(e){var t,n,r;const o=ut(),{id:s,value:i,field:l,row:a,colDef:c,hasFocus:f,error:p,onValueChange:h,initialOpen:y=o.editMode===Hi.Cell,getOptionLabel:v,getOptionValue:m}=e,C=le(e,ege),w=Vt(),b=u.useRef(),x=u.useRef(),[P,M]=u.useState(y),k=(n=(((t=o.slotProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1,R=((r=o.slotProps)==null?void 0:r.baseSelect)||{},{MenuProps:O}=R,_=le(R,tge);if(Nt(()=>{if(f){var j;(j=x.current)==null||j.focus()}},[f]),!bc(c))return null;let L;if(typeof(c==null?void 0:c.valueOptions)=="function"?L=c==null?void 0:c.valueOptions({id:s,row:a,field:l}):L=c==null?void 0:c.valueOptions,!L)return null;const B=m||c.getOptionValue,z=v||c.getOptionLabel,T=j=>rt(this,null,function*(){if(!bc(c)||!L)return;M(!1);const A=j.target,N=rS(A.value,L,B);h&&(yield h(j,N)),yield w.current.setEditCellValue({id:s,field:l,value:N},j)}),$=(j,A)=>{if(o.editMode===Hi.Row){M(!1);return}if(A==="backdropClick"||uy(j.key)){const N=w.current.getCellParams(s,l);w.current.publishEvent("cellEditStop",S({},N,{reason:uy(j.key)?Zs.escapeKeyDown:Zs.cellFocusOut}))}},F=j=>{nge(j)&&j.key==="Enter"||M(!0)};return!L||!c?null:D.jsx(o.slots.baseSelect,S({ref:b,inputRef:x,value:i,onChange:T,open:P,onOpen:F,MenuProps:S({onClose:$},O),error:p,native:k,fullWidth:!0},C,_,{children:L.map(j=>{var A;const N=B(j);return u.createElement(o.slots.baseSelectOption,S({},((A=o.slotProps)==null?void 0:A.baseSelectOption)||{},{native:k,key:N,value:N}),z(j))})}))}const oge=e=>D.jsx(rge,S({},e)),sge=["open","target","onClose","children","position","className","onExited"],ige=e=>{const{classes:t}=e;return Te({root:["menu"]},jt,t)},lge=oe(Na,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${ue.menuList}`]:{outline:0}})),age={"bottom-start":"top left","bottom-end":"top right"};function q5(e){var t;const{open:n,target:r,onClose:o,children:s,position:i,className:l,onExited:a}=e,c=le(e,sge),f=Vt(),p=ut(),h=ige(p),y=u.useRef(null);Nt(()=>{if(n)y.current=document.activeElement instanceof HTMLElement?document.activeElement:null;else{var C,w;(C=y.current)==null||(w=C.focus)==null||w.call(C),y.current=null}},[n]),u.useEffect(()=>{const C=n?"menuOpen":"menuClose";f.current.publishEvent(C,{target:r})},[f,n,r]);const v=C=>w=>{C&&C(),a&&a(w)},m=C=>{C.target&&(r===C.target||r!=null&&r.contains(C.target))||o(C)};return D.jsx(lge,S({as:p.slots.basePopper,className:xe(l,h.root),ownerState:p,open:n,anchorEl:r,transition:!0,placement:i},c,(t=p.slotProps)==null?void 0:t.basePopper,{children:({TransitionProps:C,placement:w})=>D.jsx(S4,{onClickAway:m,mouseEvent:"onMouseDown",children:D.jsx(ah,S({},C,{style:{transformOrigin:age[w]},onExited:v(C==null?void 0:C.onExited),children:D.jsx(Vs,{children:s})}))})}))}const cge=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],uge=e=>typeof e.getActions=="function";function dge(e){var t;const{colDef:n,id:r,hasFocus:o,tabIndex:s,position:i="bottom-end",focusElementRef:l}=e,a=le(e,cge),[c,f]=u.useState(-1),[p,h]=u.useState(!1),y=Vt(),v=u.useRef(null),m=u.useRef(null),C=u.useRef(!1),w=u.useRef({}),b=vn(),x=Kt(),P=Kt(),M=ut();if(!uge(n))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const E=n.getActions(y.current.getRowParams(r)),k=E.filter(F=>!F.props.showInMenu),R=E.filter(F=>F.props.showInMenu),O=k.length+(R.length?1:0);u.useLayoutEffect(()=>{o||Object.entries(w.current).forEach(([F,j])=>{j==null||j.stop({},()=>{delete w.current[F]})})},[o]),u.useEffect(()=>{if(c<0||!v.current||c>=v.current.children.length)return;v.current.children[c].focus({preventScroll:!0})},[c]),u.useEffect(()=>{o||(f(-1),C.current=!1)},[o]),u.useImperativeHandle(l,()=>({focus(){if(!C.current){const F=E.findIndex(j=>!j.props.disabled);f(F)}}}),[E]),u.useEffect(()=>{c>=O&&f(O-1)},[c,O]);const _=()=>{h(!0),f(O-1),C.current=!0},L=()=>{h(!1)},B=F=>j=>{w.current[F]=j},z=(F,j)=>A=>{f(F),C.current=!0,j&&j(A)},T=F=>{if(O<=1)return;const j=(N,H)=>{var K;if(N<0||N>E.length)return N;const Y=b.direction==="rtl"?-1:1,te=(H==="left"?-1:1)*Y;return(K=E[N+te])!=null&&K.props.disabled?j(N+te,H):N+te};let A=c;F.key==="ArrowRight"?A=j(c,"right"):F.key==="ArrowLeft"&&(A=j(c,"left")),!(A<0||A>=O)&&A!==c&&(F.preventDefault(),F.stopPropagation(),f(A))},$=F=>{F.key==="Tab"&&F.preventDefault(),["Tab","Enter","Escape"].includes(F.key)&&L()};return D.jsxs("div",S({role:"menu",ref:v,tabIndex:-1,className:ue.actionsCell,onKeyDown:T},a,{children:[k.map((F,j)=>u.cloneElement(F,{key:j,touchRippleRef:B(j),onClick:z(j,F.props.onClick),tabIndex:c===j?s:-1})),R.length>0&&P&&D.jsx(M.slots.baseIconButton,S({ref:m,id:P,"aria-label":y.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?x:void 0,role:"menuitem",size:"small",onClick:_,touchRippleRef:B(P),tabIndex:c===k.length?s:-1},(t=M.slotProps)==null?void 0:t.baseIconButton,{children:D.jsx(M.slots.moreActionsIcon,{fontSize:"small"})})),R.length>0&&D.jsx(q5,{open:p,target:m.current,position:i,onClose:L,onClick:L,children:D.jsx(Yd,{id:x,className:ue.menuList,onKeyDown:$,"aria-labelledby":P,variant:"menu",autoFocusItem:!0,children:R.map((F,j)=>u.cloneElement(F,{key:j}))})})]}))}const fge=e=>D.jsx(dge,S({},e)),pge=["label","icon","showInMenu","onClick"],bg=u.forwardRef((e,t)=>{const{label:n,icon:r,showInMenu:o,onClick:s}=e,i=le(e,pge),l=ut(),a=f=>{s&&s(f)};if(!o){var c;return D.jsx(l.slots.baseIconButton,S({ref:t,size:"small",role:"menuitem","aria-label":n},i,{onClick:a},(c=l.slotProps)==null?void 0:c.baseIconButton,{children:u.cloneElement(r,{fontSize:"small"})}))}return D.jsxs(Pr,S({ref:t},i,{onClick:s,children:[r&&D.jsx(hl,{children:r}),n]}))}),hge=["field","align","width","contentWidth"],mge=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${Pe(t)}`,"withBorderColor"]};return Te(r,jt,n)};function gge(e){const{align:t,width:n,contentWidth:r}=e,o=le(e,hge),i={classes:ut().classes,align:t},l=mge(i);return D.jsx("div",S({className:l.root,style:{width:n}},o,{children:D.jsx(lae,{width:`${r}%`})}))}function vge(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?$c(lt(e.palette.divider,1),.88):Tc(lt(e.palette.divider,1),.68)}const IO={[`.${ue.columnSeparator}, .${ue["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},MO={[`& .${ue.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ue.menuIcon}`]:{width:"auto",visibility:"visible"}},yge=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=vge(e),n=e.shape.borderRadius;return S({"--unstable_DataGrid-radius":typeof n=="number"?`${n}px`:n,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`: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`]:IO,[`& .${ue.columnHeader}:hover`]:MO,[`& .${ue.columnHeader}:not(.${ue["columnHeader--sorted"]}):hover .${ue.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${ue.columnHeaders}`]:IO,[`& .${ue.columnHeader}`]:MO},[`& .${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(
|
|
589
|
-
${e.vars.palette.action.selectedOpacity} +
|
|
590
|
-
${e.vars.palette.action.hoverOpacity}
|
|
591
|
-
))`: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)}})}),bge=["children","className"],wge=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${Pe(n)}`,"withBorderColor"]};return Te(o,jt,r)},Cge=u.forwardRef(function(t,n){var r;const o=ut(),{children:s,className:i}=t,l=le(t,bge),a=za(),c=ot(a,sme),f=u.useRef(null),p=kt(f,n),h=(r=o.experimentalFeatures)!=null&&r.ariaV7?null:R5,y=typeof h=="function"?h():null,v=S({},o,{density:c}),m=wge(v);a.current.register("public",{rootElementRef:f});const[C,w]=u.useState(!1);return Nt(()=>{w(!0)},[]),C?D.jsx(yge,S({ref:p,className:xe(i,m.root),ownerState:v},y,l,{children:s})):null}),xge=["className"],Sge=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"}),Ege=u.forwardRef(function(t,n){const{className:r}=t,o=le(t,xge),s=ut(),i=Sge(s);return D.jsx(Pge,S({ref:n,className:xe(i.root,r),ownerState:s},o))}),kge=["className"],Ige=e=>{const{classes:t}=e;return Te({root:["overlay"]},jt,t)},Mge=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)"}),EE=u.forwardRef(function(t,n){const{className:r}=t,o=le(t,kge),s=ut(),i=Ige(s);return D.jsx(Mge,S({ref:n,className:xe(i.root,r),ownerState:s},o))}),_ge=["className"],Tge=e=>{const{classes:t}=e;return Te({root:["iconButtonContainer"]},jt,t)},$ge=Ir("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),Y5=u.forwardRef(function(t,n){const{className:r}=t,o=le(t,_ge),s=ut(),i=Tge(s);return D.jsx($ge,S({ref:n,className:xe(i.root,r),ownerState:s},o))}),Rge=e=>{const{classes:t}=e;return Te({icon:["sortIcon"]},jt,t)};function Oge(e,t,n,r){let o;const s={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,s.sortingOrder=r),o?D.jsx(o,S({fontSize:"small",className:n},s)):null}function Dge(e){var t;const{direction:n,index:r,sortingOrder:o}=e,s=Vt(),i=ut(),l=S({},e,{classes:i.classes}),a=Rge(l),c=Oge(i.slots,n,a.icon,o);if(!c)return null;const f=D.jsx(i.slots.baseIconButton,S({tabIndex:-1,"aria-label":s.current.getLocaleText("columnHeaderSortIconLabel"),title:s.current.getLocaleText("columnHeaderSortIconLabel"),size:"small"},(t=i.slotProps)==null?void 0:t.baseIconButton,{children:c}));return D.jsxs(Y5,{children:[r!=null&&D.jsx(N4,{badgeContent:r,color:"default",children:f}),r==null&&f]})}const Age=u.memo(Dge),Lge=e=>{const{classes:t,open:n}=e;return Te({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},jt,t)},Fge=u.memo(e=>{var t,n;const{colDef:r,open:o,columnMenuId:s,columnMenuButtonId:i,iconButtonRef:l}=e,a=Vt(),c=ut(),f=S({},e,{classes:c.classes}),p=Lge(f),h=u.useCallback(y=>{y.preventDefault(),y.stopPropagation(),a.current.toggleColumnMenu(r.field)},[a,r.field]);return D.jsx("div",{className:p.root,children:D.jsx(c.slots.baseTooltip,S({title:a.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(t=c.slotProps)==null?void 0:t.baseTooltip,{children:D.jsx(c.slots.baseIconButton,S({ref:l,tabIndex:-1,className:p.button,"aria-label":a.current.getLocaleText("columnMenuLabel"),size:"small",onClick:h,"aria-haspopup":"menu","aria-expanded":o,"aria-controls":o?s:void 0,id:i},(n=c.slotProps)==null?void 0:n.baseIconButton,{children:D.jsx(c.slots.columnMenuIcon,{fontSize:"small"})}))}))})});function Nge({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:s,target:i,onExited:l}){const a=Vt(),c=a.current.getColumn(o),f=Ye(p=>{p&&(p.stopPropagation(),i!=null&&i.contains(p.target))||a.current.hideColumnMenu()});return!i||!c?null:D.jsx(q5,{placement:`bottom-${c.align==="right"?"start":"end"}`,open:s,target:i,onClose:f,onExited:l,children:D.jsx(n,S({colDef:c,hideMenu:f,open:s,id:e,labelledby:t},r))})}const Bge=["className"],zge=e=>{const{classes:t}=e;return Te({root:["columnHeaderTitle"]},jt,t)},Vge=Ir("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),jge=u.forwardRef(function(t,n){const{className:r}=t,o=le(t,Bge),s=ut(),i=zge(s);return D.jsx(Vge,S({ref:n,className:xe(i.root,r),ownerState:s},o))});function Hge(e){var t;const{label:n,description:r}=e,o=ut(),s=u.useRef(null),[i,l]=u.useState(""),a=u.useCallback(()=>{if(!r&&s!=null&&s.current){const c=vme(s.current);l(c?n:"")}},[r,n]);return D.jsx(o.slots.baseTooltip,S({title:r||i},(t=o.slotProps)==null?void 0:t.baseTooltip,{children:D.jsx(jge,{onMouseOver:a,ref:s,children:n})}))}const Uge=["resizable","resizing","height","side"];var Q5=function(e){return e.Left="left",e.Right="right",e}(Q5||{});const Wge=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 Gge(e){const{height:t,side:n=Q5.Right}=e,r=le(e,Uge),o=ut(),s=S({},e,{side:n,classes:o.classes}),i=Wge(s),l=u.useCallback(a=>{a.preventDefault(),a.stopPropagation()},[]);return D.jsx("div",S({className:i.root,style:{minHeight:t,opacity:o.showColumnVerticalBorder?0:1}},r,{onClick:l,children:D.jsx(o.slots.columnResizeIcon,{className:i.icon})}))}const Kge=u.memo(Gge),qge=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps"],X5=u.forwardRef(function(t,n){const{classes:r,columnMenuOpen:o,colIndex:s,height:i,isResizing:l,sortDirection:a,hasFocus:c,tabIndex:f,separatorSide:p,isDraggable:h,headerComponent:y,description:v,width:m,columnMenuIconButton:C=null,columnMenu:w=null,columnTitleIconButtons:b=null,headerClassName:x,label:P,resizable:M,draggableContainerProps:E,columnHeaderSeparatorProps:k}=t,R=le(t,qge),O=za(),_=ut(),L=u.useRef(null),[B,z]=u.useState(o),T=kt(L,n);let $="none";return a!=null&&($=a==="asc"?"ascending":"descending"),u.useEffect(()=>{B||z(o)},[B,o]),u.useLayoutEffect(()=>{const F=O.current.state.columnMenu;if(c&&!F.open){const A=L.current.querySelector('[tabindex="0"]')||L.current;A==null||A.focus(),O.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[O,c]),D.jsxs("div",S({ref:T,className:xe(r.root,x),style:{height:i,width:m,minWidth:m,maxWidth:m},role:"columnheader",tabIndex:f,"aria-colindex":s+1,"aria-sort":$,"aria-label":y==null?P:void 0},R,{children:[D.jsxs("div",S({className:r.draggableContainer,draggable:h,role:"presentation"},E,{children:[D.jsxs("div",{className:r.titleContainer,role:"presentation",children:[D.jsx("div",{className:r.titleContainerContent,children:y!==void 0?y:D.jsx(Hge,{label:P,description:v,columnWidth:m})}),b]}),C]})),D.jsx(Kge,S({resizable:!_.disableColumnResize&&!!M,resizing:l,height:i,side:p},k)),w]}))}),Yge=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:s,filterItemsCounter:i}=e,l=o!=null,a=i!=null&&i>0,c=t.type==="number",f={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",l&&"columnHeader--sorted",a&&"columnHeader--filtered",c&&"columnHeader--numeric","withBorderColor",s&&"columnHeader--withRightBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return Te(f,jt,n)};function Qge(e){var t,n,r,o;const{colDef:s,columnMenuOpen:i,colIndex:l,headerHeight:a,isResizing:c,sortDirection:f,sortIndex:p,filterItemsCounter:h,hasFocus:y,tabIndex:v,disableReorder:m,separatorSide:C}=e,w=za(),b=ut(),x=u.useRef(null),P=Kt(),M=Kt(),E=u.useRef(null),[k,R]=u.useState(i),O=u.useMemo(()=>!b.disableColumnReorder&&!m&&!s.disableReorder,[b.disableColumnReorder,m,s.disableReorder]);let _;s.renderHeader&&(_=s.renderHeader(w.current.getColumnHeaderParams(s.field)));const L=S({},e,{classes:b.classes,showRightBorder:b.showColumnVerticalBorder}),B=Yge(L),z=u.useCallback(Q=>X=>{X.currentTarget.contains(X.target)&&w.current.publishEvent(Q,w.current.getColumnHeaderParams(s.field),X)},[w,s.field]),T=u.useMemo(()=>({onClick:z("columnHeaderClick"),onDoubleClick:z("columnHeaderDoubleClick"),onMouseOver:z("columnHeaderOver"),onMouseOut:z("columnHeaderOut"),onMouseEnter:z("columnHeaderEnter"),onMouseLeave:z("columnHeaderLeave"),onKeyDown:z("columnHeaderKeyDown"),onFocus:z("columnHeaderFocus"),onBlur:z("columnHeaderBlur")}),[z]),$=u.useMemo(()=>O?{onDragStart:z("columnHeaderDragStart"),onDragEnter:z("columnHeaderDragEnter"),onDragOver:z("columnHeaderDragOver"),onDragEnd:z("columnHeaderDragEnd")}:{},[O,z]),F=u.useMemo(()=>({onMouseDown:z("columnSeparatorMouseDown"),onDoubleClick:z("columnSeparatorDoubleClick")}),[z]);u.useEffect(()=>{k||R(i)},[k,i]);const j=u.useCallback(()=>{R(!1)},[]),A=!b.disableColumnMenu&&!s.disableColumnMenu&&D.jsx(Fge,{colDef:s,columnMenuId:P,columnMenuButtonId:M,open:k,iconButtonRef:E}),N=D.jsx(Nge,{columnMenuId:P,columnMenuButtonId:M,field:s.field,open:i,target:E.current,ContentComponent:b.slots.columnMenu,contentComponentProps:(t=b.slotProps)==null?void 0:t.columnMenu,onExited:j}),H=(n=s.sortingOrder)!=null?n:b.sortingOrder,K=D.jsxs(u.Fragment,{children:[!b.disableColumnFilter&&D.jsx(b.slots.columnHeaderFilterIconButton,S({field:s.field,counter:h},(r=b.slotProps)==null?void 0:r.columnHeaderFilterIconButton)),s.sortable&&!s.hideSortIcons&&D.jsx(Age,{direction:f,index:p,sortingOrder:H})]});u.useLayoutEffect(()=>{const Q=w.current.state.columnMenu;if(y&&!Q.open){const J=x.current.querySelector('[tabindex="0"]')||x.current;J==null||J.focus(),w.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[w,y]);const Y=typeof s.headerClassName=="function"?s.headerClassName({field:s.field,colDef:s}):s.headerClassName,te=(o=s.headerName)!=null?o:s.field;return D.jsx(X5,S({ref:x,classes:B,columnMenuOpen:i,colIndex:l,height:a,isResizing:c,sortDirection:f,hasFocus:y,tabIndex:v,separatorSide:C,isDraggable:O,headerComponent:_,description:s.description,elementId:s.field,width:s.computedWidth,columnMenuIconButton:A,columnTitleIconButtons:K,headerClassName:Y,label:te,resizable:!b.disableColumnResize&&!!s.resizable,"data-field":s.field,columnMenu:N,draggableContainerProps:$,columnHeaderSeparatorProps:F},T))}const hh=()=>({items:[],logicOperator:So.And,quickFilterValues:[],quickFilterLogicOperator:So.And}),_O=1e3;let Xge=class{constructor(t=_O){this.timeouts=new Map,this.cleanupTimeout=_O,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)}},Zge=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 Fi=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e}(Fi||{});let Jge=class{};function eve(e){let t=0;return function(r,o,s,i){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new Zge:new Xge);const[l]=u.useState(new Jge),a=u.useRef(null),c=u.useRef();c.current=s;const f=u.useRef(null);if(!a.current&&c.current){const p=(h,y,v)=>{if(!y.defaultMuiPrevented){var m;(m=c.current)==null||m.call(c,h,y,v)}};a.current=r.current.subscribeEvent(o,p,i),t+=1,f.current={cleanupToken:t},e.registry.register(l,()=>{var h;(h=a.current)==null||h.call(a),a.current=null,f.current=null},f.current)}else!c.current&&a.current&&(a.current(),a.current=null,f.current&&(e.registry.unregister(f.current),f.current=null));u.useEffect(()=>{if(!a.current&&c.current){const p=(h,y,v)=>{if(!y.defaultMuiPrevented){var m;(m=c.current)==null||m.call(c,h,y,v)}};a.current=r.current.subscribeEvent(o,p,i)}return f.current&&e.registry&&(e.registry.unregister(f.current),f.current=null),()=>{var p;(p=a.current)==null||p.call(a),a.current=null}},[r,o,i])}}const tve={registry:null},dt=eve(tve),nve={isFirst:!0};function In(e,t,n){dt(e,t,n,nve)}function eo(e,t){const n=u.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}function rve(e){return typeof e=="number"&&!Number.isNaN(e)}function Z5(e){return typeof e=="function"}function kE(e){return typeof e=="object"&&e!==null}function ove(){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 $d=(e,t,n)=>Math.max(t,Math.min(n,e));function wc(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(!wc(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(!wc(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(!wc(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function sve(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 ive(e,t,n){const r=sve(e);return()=>t+(n-t)*r()}function J5(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const lve=(e,t,n,r,o)=>{const s=eo(e,"useNativeEventListener"),[i,l]=u.useState(!1),a=u.useRef(r),c=u.useCallback(f=>a.current&&a.current(f),[]);u.useEffect(()=>{a.current=r},[r]),u.useEffect(()=>{let f;if(Z5(t)?f=t():f=t&&t.current?t.current:null,f&&n&&!i){s.debug(`Binding native ${n} event`),f.addEventListener(n,c,o);const p=f;l(!0);const h=()=>{s.debug(`Clearing native ${n} event`),p.removeEventListener(n,c,o)};e.current.subscribeEvent("unmount",h)}},[t,c,n,i,s,o,e])},Gh=e=>{const t=u.useRef(!0);t.current&&(t.current=!1,e())},ave=100,cve=e=>e?0:100,e3=(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 t3=e=>({page:0,pageSize:e?0:100}),uve=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),n3=(e,t)=>{if(t===Fi.DataGrid&&e>ave)throw new Error(["MUI: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
|
|
592
|
-
`))},r3=e=>e.pagination,Es=_t(r3,e=>e.paginationModel),dve=_t(Es,e=>e.page),fve=_t(Es,e=>e.pageSize);_t(Es,g0,(e,t)=>e3(t,e.pageSize));const IE=_n(Es,ti,m0,Va,A5,(e,t,n,r,o)=>{const s=o.length,i=Math.min(e.pageSize*e.page,s-1),l=Math.min(i+e.pageSize-1,s-1);if(i===-1||l===-1)return null;if(n<2)return{firstRowIndex:i,lastRowIndex:l};const a=o[i],c=l-i+1,f=r.findIndex(v=>v.id===a.id);let p=f,h=0;for(;p<r.length&&h<=c;){var y;const v=r[p],m=(y=t[v.id])==null?void 0:y.depth;m===void 0?p+=1:((h<c||m>0)&&(p+=1),m===0&&(h+=1))}return{firstRowIndex:f,lastRowIndex:p-1}}),pve=_n(Va,IE,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),o3=_n($p,IE,(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,Ss=e=>e.rowSelection,hve=_t(Ss,e=>e.length),mve=_n(Ss,ca,(e,t)=>new Map(e.map(n=>[n,t[n]]))),fy=_n(Ss,e=>e.reduce((t,n)=>(t[n]=n,t),{})),gve=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"),s3=(e,t)=>t&&e.length>1?(gve(),[e[0]]):e,TO=(e,t)=>n=>S({},n,{sorting:S({},n.sorting,{sortModel:s3(e,t)})}),vve=e=>e==="desc",yve=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=vve(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}},bve=(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),wve=(e,t)=>{const n=e.map(r=>yve(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)=>bve(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]},ME=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,Cve=new Intl.Collator,xve=(e,t)=>{const n=ME(e,t);return n!==null?n:typeof e=="string"?Cve.compare(e.toString(),t.toString()):e-t},i3=(e,t)=>{const n=ME(e,t);return n!==null?n:Number(e)-Number(t)},l3=(e,t)=>{const n=ME(e,t);return n!==null?n:e>t?1:e<t?-1:0},a3=e=>e.headerFiltering,Sve=_t(a3,e=>e.editing),Pve=_t(a3,e=>e.menuOpen),Eve=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0};return S({},e,{virtualization:n})};function kve(e,t){const n=s=>{e.current.setState(i=>S({},i,{virtualization:S({},i.virtualization,{enabled:s})}))};Lt(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:s=>{e.current.setState(i=>S({},i,{virtualization:S({},i.virtualization,{enabledForColumns:s})}))}},"public"),u.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization])}const c3=e=>e.virtualization,Ive=_t(c3,e=>e.enabled),u3=_t(c3,e=>e.enabledForColumns),Mve=e=>{const{classes:t}=e;return Te({icon:["filterIcon"]},jt,t)};function _ve(e){var t,n;const{counter:r,field:o,onClick:s}=e,i=Vt(),l=ut(),a=S({},e,{classes:l.classes}),c=Mve(a),f=ot(i,mh),p=Kt(),h=Kt(),y=u.useCallback(C=>{C.preventDefault(),C.stopPropagation();const{open:w,openedPanelValue:b}=mh(i.current.state);w&&b===Ac.filters?i.current.hideFilterPanel():i.current.showFilterPanel(void 0,h,p),s&&s(i.current.getColumnHeaderParams(o),C)},[i,o,s,h,p]);if(!r)return null;const v=f.open&&f.labelId===p,m=D.jsx(l.slots.baseIconButton,S({id:p,onClick:y,color:"default","aria-label":i.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":v,"aria-controls":v?h:void 0},(t=l.slotProps)==null?void 0:t.baseIconButton,{children:D.jsx(l.slots.columnFilteredIcon,{className:c.icon,fontSize:"small"})}));return D.jsx(l.slots.baseTooltip,S({title:i.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(n=l.slotProps)==null?void 0:n.baseTooltip,{children:D.jsxs(Y5,{children:[r>1&&D.jsx(N4,{badgeContent:r,color:"default",children:m}),r===1&&m]})}))}const Tve=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],$ve=e=>{const{classes:t}=e;return Te({root:["checkboxInput"]},jt,t)},Rve=u.forwardRef(function(t,n){var r;const{field:o,id:s,value:i,rowNode:l,hasFocus:a,tabIndex:c}=t,f=le(t,Tve),p=Vt(),h=ut(),y={classes:h.classes},v=$ve(y),m=u.useRef(null),C=u.useRef(null),w=kt(m,n),b=p.current.getCellElement(s,o),x=k=>{const R={value:k.target.checked,id:s};p.current.publishEvent("rowSelectionCheckboxChange",R,k)};u.useLayoutEffect(()=>{c===0&&b&&(b.tabIndex=-1)},[b,c]),u.useEffect(()=>{if(a){var k;const R=(k=m.current)==null?void 0:k.querySelector("input");R==null||R.focus({preventScroll:!0})}else C.current&&C.current.stop({})},[a]);const P=u.useCallback(k=>{G5(k.key)&&k.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(h.slots.baseCheckbox,S({ref:w,tabIndex:c,checked:i,onChange:x,className:v.root,inputProps:{"aria-label":E},onKeyDown:P,disabled:!M,touchRippleRef:C},(r=h.slotProps)==null?void 0:r.baseCheckbox,f))}),Ove=Rve,Dve=["field","colDef"],Ave=e=>{const{classes:t}=e;return Te({root:["checkboxInput"]},jt,t)},Lve=u.forwardRef(function(t,n){var r;const o=le(t,Dve),[,s]=u.useState(!1),i=Vt(),l=ut(),a={classes:l.classes},c=Ave(a),f=ot(i,F5),p=ot(i,Ss),h=ot(i,$p),y=ot(i,o3),v=u.useMemo(()=>typeof l.isRowSelectable!="function"?p:p.filter(R=>i.current.getRow(R)?l.isRowSelectable(i.current.getRowParams(R)):!1),[i,l.isRowSelectable,p]),m=u.useMemo(()=>(!l.pagination||!l.checkboxSelectionVisibleOnly?h:y).reduce((O,_)=>(O[_]=!0,O),{}),[l.pagination,l.checkboxSelectionVisibleOnly,y,h]),C=u.useMemo(()=>v.filter(R=>m[R]).length,[v,m]),w=C>0&&C<Object.keys(m).length,b=C>0,x=R=>{const O={value:R.target.checked};i.current.publishEvent("headerSelectionCheckboxChange",O)},P=f!==null&&f.field===t.field?0:-1;u.useLayoutEffect(()=>{const R=i.current.getColumnHeaderElement(t.field);P===0&&R&&(R.tabIndex=-1)},[P,i,t.field]);const M=u.useCallback(R=>{R.key===" "&&i.current.publishEvent("headerSelectionCheckboxChange",{value:!b})},[i,b]),E=u.useCallback(()=>{s(R=>!R)},[]);u.useEffect(()=>i.current.subscribeEvent("rowSelectionChange",E),[i,E]);const k=i.current.getLocaleText(b?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return D.jsx(l.slots.baseCheckbox,S({ref:n,indeterminate:w,checked:b,onChange:x,className:c.root,inputProps:{"aria-label":k},tabIndex:P,onKeyDown:M},(r=l.slotProps)==null?void 0:r.baseCheckbox,o))}),RO=bt(D.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),OO=bt(D.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),DO=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"),AO=bt(D.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Fve=bt(D.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),LO=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"),Nve=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 Bve=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"),zve=bt(D.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),Vve=bt(D.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),jve=bt(D.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),Hve=bt(D.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),Uve=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"),rC=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"),FO=bt(D.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),Wve=bt(D.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),Gve=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"),NO=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"),Kve=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"),qve=bt(D.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Yve=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"),Qve=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"),Xve=bt(D.jsx("g",{children:D.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),Zve=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"),eye=["hideMenu","colDef","id","labelledby","className","children","open"],tye=oe(Yd)(()=>({minWidth:248})),nye=u.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:s,className:i,children:l,open:a}=t,c=le(t,eye),f=u.useCallback(p=>{W5(p.key)&&p.preventDefault(),Jme(p.key)&&r(p)},[r]);return D.jsx(tye,S({id:o,ref:n,className:xe(ue.menuList,i),"aria-labelledby":s,onKeyDown:f,autoFocus:a},c,{children:l}))}),rye=["displayOrder"],oye=e=>{const t=za(),{defaultSlots:n,defaultSlotProps:r,slots:o={},slotProps:s={},hideMenu:i,colDef:l,addDividers:a=!0}=e,c=u.useMemo(()=>S({},n,o),[n,o]),f=u.useMemo(()=>{if(!s||Object.keys(s).length===0)return r;const y=S({},s);return Object.entries(r).forEach(([v,m])=>{y[v]=S({},m,s[v]||{})}),y},[r,s]),p=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),h=u.useMemo(()=>{const y=Object.keys(n);return Object.keys(o).filter(v=>!y.includes(v))},[o,n]);return u.useMemo(()=>{const m=Array.from(new Set([...p,...h])).filter(C=>c[C]!=null).sort((C,w)=>{const b=f[C],x=f[w],P=Number.isFinite(b==null?void 0:b.displayOrder)?b.displayOrder:100,M=Number.isFinite(x==null?void 0:x.displayOrder)?x.displayOrder:100;return P-M});return m.reduce((C,w,b)=>{let x={colDef:l,onClick:i};const P=f[w];if(P){const M=le(P,rye);x=S({},x,M)}return a&&b!==m.length-1?[...C,[c[w],x],[ih,{}]]:[...C,[c[w],x]]},[])},[a,l,p,i,c,f,h])};function sye(e){const{colDef:t,onClick:n}=e,r=Vt(),o=ut(),l=Ar(r).filter(c=>c.disableColumnMenu!==!0).length===1,a=u.useCallback(c=>{l||(r.current.setColumnVisibility(t.field,!1),n(c))},[r,t.field,n,l]);return o.disableColumnSelector||t.hideable===!1?null:D.jsxs(Pr,{onClick:a,disabled:l,children:[D.jsx(hl,{children:D.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),D.jsx(Di,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function iye(e){const{onClick:t}=e,n=Vt(),r=ut(),o=u.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(Di,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function lye(e){return D.jsxs(u.Fragment,{children:[D.jsx(sye,S({},e)),D.jsx(iye,S({},e))]})}function aye(e){const{colDef:t,onClick:n}=e,r=Vt(),o=ut(),s=u.useCallback(i=>{n(i),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:D.jsxs(Pr,{onClick:s,children:[D.jsx(hl,{children:D.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),D.jsx(Di,{children:r.current.getLocaleText("columnMenuFilter")})]})}function cye(e){var t;const{colDef:n,onClick:r}=e,o=Vt(),s=ot(o,xs),i=ut(),l=u.useMemo(()=>{if(!n)return null;const p=s.find(h=>h.field===n.field);return p==null?void 0:p.sort},[n,s]),a=(t=n.sortingOrder)!=null?t:i.sortingOrder,c=u.useCallback(p=>{r(p);const h=p.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,h===l?null:h)},[o,n,r,l]);if(!n||!n.sortable||!a.some(p=>!!p))return null;const f=p=>{const h=o.current.getLocaleText(p);return typeof h=="function"?h(n):h};return D.jsxs(u.Fragment,{children:[a.includes("asc")&&l!=="asc"?D.jsxs(Pr,{onClick:c,"data-value":"asc",children:[D.jsx(hl,{children:D.jsx(i.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),D.jsx(Di,{children:f("columnMenuSortAsc")})]}):null,a.includes("desc")&&l!=="desc"?D.jsxs(Pr,{onClick:c,"data-value":"desc",children:[D.jsx(hl,{children:D.jsx(i.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),D.jsx(Di,{children:f("columnMenuSortDesc")})]}):null,a.includes(null)&&l!=null?D.jsxs(Pr,{onClick:c,children:[D.jsx(hl,{}),D.jsx(Di,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})}const uye=["defaultSlots","defaultSlotProps","slots","slotProps"],dye={columnMenuSortItem:cye,columnMenuFilterItem:aye,columnMenuColumnsItem:lye},fye={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},pye=u.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:s,slotProps:i}=t,l=le(t,uye),a=oye(S({},l,{defaultSlots:r,defaultSlotProps:o,slots:s,slotProps:i}));return D.jsx(nye,S({ref:n},l,{children:a.map(([c,f],p)=>D.jsx(c,S({},f),p))}))}),hye=u.forwardRef(function(t,n){return D.jsx(pye,S({},t,{ref:n,defaultSlots:dye,defaultSlotProps:fye}))}),mye=["className"],gye=e=>{const{classes:t}=e;return Te({root:["panelContent"]},jt,t)},vye=Ir("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function d3(e){const{className:t}=e,n=le(e,mye),r=ut(),o=gye(r);return D.jsx(vye,S({className:xe(t,o.root),ownerState:r},n))}const yye=["className"],bye=e=>{const{classes:t}=e;return Te({root:["panelFooter"]},jt,t)},wye=Ir("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function f3(e){const{className:t}=e,n=le(e,yye),r=ut(),o=bye(r);return D.jsx(wye,S({className:xe(t,o.root),ownerState:r},n))}const Cye=["className"],xye=e=>{const{classes:t}=e;return Te({root:["panelHeader"]},jt,t)},Sye=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,Cye),r=ut(),o=xye(r);return D.jsx(Sye,S({className:xe(t,o.root),ownerState:r},n))}const Eye=["className","slotProps"],kye=e=>{const{classes:t}=e;return Te({root:["panelWrapper"]},jt,t)},Iye=oe("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),Mye=()=>!0,p3=u.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,s=le(t,Eye),i=ut(),l=kye(i);return D.jsx(s2,S({open:!0,disableEnforceFocus:!0,isEnabled:Mye},o.TrapFocus,{children:D.jsx(Iye,S({ref:n,tabIndex:-1,className:xe(r,l.root),ownerState:i},s))}))}),_ye=!1,Tye=["sort","searchPredicate","autoFocusSearchField","disableHideAllButton","disableShowAllButton","getTogglableColumns"],$ye=e=>{const{classes:t}=e;return Te({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},jt,t)},Rye=oe("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),Oye=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)}})),Dye=oe(xr)({justifyContent:"flex-end"}),BO=new Intl.Collator,Aye=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function Lye(e){var t,n,r;const o=Vt(),s=u.useRef(null),i=ot(o,Li),l=ot(o,si),a=ut(),[c,f]=u.useState(""),p=$ye(a),{sort:h,searchPredicate:y=Aye,autoFocusSearchField:v=!0,disableHideAllButton:m=!1,disableShowAllButton:C=!1,getTogglableColumns:w}=e,b=le(e,Tye),x=u.useMemo(()=>{switch(h){case"asc":return[...i].sort((L,B)=>BO.compare(L.headerName||L.field,B.headerName||B.field));case"desc":return[...i].sort((L,B)=>-BO.compare(L.headerName||L.field,B.headerName||B.field));default:return i}},[i,h]),P=L=>{const{name:B}=L.target;o.current.setColumnVisibility(B,l[B]===!1)},M=u.useCallback(L=>{const B=si(o),z=S({},B),T=w?w(i):null;return i.forEach($=>{$.hideable&&(T==null||T.includes($.field))&&(L?delete z[$.field]:z[$.field]=!1)}),o.current.setColumnVisibilityModel(z)},[o,i,w]),E=u.useCallback(L=>{f(L.target.value)},[]),k=u.useMemo(()=>{const L=w?w(x):null,B=L?x.filter(({field:z})=>L.includes(z)):x;return c?B.filter(z=>y(z,c.toLowerCase())):B},[x,c,y,w]),R=u.useRef(null);u.useEffect(()=>{v?s.current.focus():R.current&&typeof R.current.focus=="function"&&R.current.focus()},[v]);let O=!1;const _=L=>O===!1&&L.hideable!==!1?(O=!0,!0):!1;return D.jsxs(p3,S({},b,{children:[D.jsx(Pye,{children:D.jsx(a.slots.baseTextField,S({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:s,value:c,onChange:E,variant:"standard",fullWidth:!0},(t=a.slotProps)==null?void 0:t.baseTextField))}),D.jsx(d3,{children:D.jsx(Rye,{className:p.root,ownerState:a,children:k.map(L=>{var B;return D.jsxs(Oye,{className:p.columnsPanelRow,ownerState:a,children:[D.jsx(X4,{control:D.jsx(a.slots.baseSwitch,S({disabled:L.hideable===!1,checked:l[L.field]!==!1,onClick:P,name:L.field,size:"small",inputRef:_(L)?R:void 0},(B=a.slotProps)==null?void 0:B.baseSwitch)),label:L.headerName||L.field}),!a.disableColumnReorder&&_ye&&D.jsx(Dye,{draggable:!0,"aria-label":o.current.getLocaleText("columnsPanelDragIconLabel"),title:o.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:D.jsx(a.slots.columnReorderIcon,{})})]},L.field)})})}),C&&m?null:D.jsxs(f3,{children:[m?D.jsx("span",{}):D.jsx(a.slots.baseButton,S({onClick:()=>M(!1)},(n=a.slotProps)==null?void 0:n.baseButton,{disabled:m,children:o.current.getLocaleText("columnsPanelHideAllButton")})),C?null:D.jsx(a.slots.baseButton,S({onClick:()=>M(!0)},(r=a.slotProps)==null?void 0:r.baseButton,{disabled:C,children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const Fye=["children","className","classes"],Nye=We("MuiDataGrid",["panel","paper"]),Bye=oe(Na,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),zye=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"})),Vye=u.forwardRef((e,t)=>{const{children:n,className:r}=e,o=le(e,Fye),s=Vt(),i=ut(),l=Nye,[a,c]=u.useState(!1),f=u.useCallback(()=>{s.current.hidePreferences()},[s]),p=u.useCallback(m=>{uy(m.key)&&s.current.hidePreferences()},[s]),h=u.useMemo(()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{c(!0)},effect:()=>()=>{c(!1)}}],[]),[y,v]=u.useState(null);return u.useEffect(()=>{var m;const C=(m=s.current.rootElementRef)==null||(m=m.current)==null?void 0:m.querySelector(`.${ue.columnHeaders}`);C&&v(C)},[s]),y?D.jsx(Bye,S({ref:t,placement:"bottom-start",className:xe(r,l.panel),ownerState:i,anchorEl:y,modifiers:h},o,{children:D.jsx(S4,{mouseEvent:"onMouseUp",onClickAway:f,children:D.jsx(zye,{className:l.paper,ownerState:i,elevation:8,onKeyDown:p,children:a&&n})})})):null}),jye=u.forwardRef(function(t,n){var r,o,s;const i=Vt(),l=ot(i,Li),a=ut(),c=ot(i,mh),f=i.current.unstable_applyPipeProcessors("preferencePanel",null,(r=c.openedPanelValue)!=null?r:Ac.filters);return D.jsx(a.slots.panel,S({ref:n,as:a.slots.basePopper,open:l.length>0&&c.open,id:c.panelId,"aria-labelledby":c.labelId},(o=a.slotProps)==null?void 0:o.panel,t,(s=a.slotProps)==null?void 0:s.basePopper,{children:f}))}),Hye=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],Uye=["InputComponentProps"],Wye=e=>{const{classes:t}=e;return Te({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},jt,t)},Gye=oe("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),Kye=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)})),qye=oe("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),Yye=oe("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),Qye=oe("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),Xye=oe("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),Zye=e=>{switch(e){case So.And:return"filterPanelOperatorAnd";case So.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `logicOperator` property in the `GridFilterPanel`.")}},Gf=e=>e.headerName||e.field,zO=new Intl.Collator,Jye=u.forwardRef(function(t,n){var r,o,s,i,l,a,c,f,p,h;const{item:y,hasMultipleFilters:v,deleteFilter:m,applyFilterChanges:C,multiFilterOperator:w,showMultiFilterOperators:b,disableMultiFilterOperator:x,applyMultiFilterOperatorChanges:P,focusElementRef:M,logicOperators:E=[So.And,So.Or],columnsSort:k,filterColumns:R,deleteIconProps:O={},logicOperatorInputProps:_={},operatorInputProps:L={},columnInputProps:B={},valueInputProps:z={}}=t,T=le(t,Hye),$=Vt(),F=ot($,T5),j=ot($,Or),A=Kt(),N=Kt(),H=Kt(),K=Kt(),Y=ut(),te=Wye(Y),Q=u.useRef(null),X=u.useRef(null),J=v&&E.length>0,se=((r=Y.slotProps)==null?void 0:r.baseFormControl)||{},he=(s=(((o=Y.slotProps)==null?void 0:o.baseSelect)||{}).native)!=null?s:!0,ne=((i=Y.slotProps)==null?void 0:i.baseInputLabel)||{},re=((l=Y.slotProps)==null?void 0:l.baseSelectOption)||{},{InputComponentProps:me}=z,ce=le(z,Uye),Se=u.useMemo(()=>{if(R===void 0||typeof R!="function")return F;const de=R({field:y.field,columns:F,currentFilters:(j==null?void 0:j.items)||[]});return F.filter(be=>de.includes(be.field))},[R,j==null?void 0:j.items,F,y.field]),ke=u.useMemo(()=>{switch(k){case"asc":return Se.sort((de,be)=>zO.compare(Gf(de),Gf(be)));case"desc":return Se.sort((de,be)=>-zO.compare(Gf(de),Gf(be)));default:return Se}},[Se,k]),ae=y.field?$.current.getColumn(y.field):null,Ie=u.useMemo(()=>{var de;return!y.operator||!ae?null:(de=ae.filterOperators)==null?void 0:de.find(be=>be.value===y.operator)},[y,ae]),ye=u.useCallback(de=>{const be=de.target.value,_e=$.current.getColumn(be);if(_e.field===ae.field)return;const Ne=_e.filterOperators.find(Ve=>Ve.value===y.operator)||_e.filterOperators[0],Ge=!Ne.InputComponent||Ne.InputComponent!==(Ie==null?void 0:Ie.InputComponent);C(S({},y,{field:be,operator:Ne.value,value:Ge?void 0:y.value}))},[$,C,y,ae,Ie]),Me=u.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(S({},y,{operator:be,value:Ne?void 0:y.value}))},[C,y,ae,Ie]),pe=u.useCallback(de=>{const be=de.target.value===So.And.toString()?So.And:So.Or;P(be)},[P]),fe=()=>{Y.disableMultipleColumnsFiltering?y.value===void 0?m(y):C(S({},y,{value:void 0})):m(y)};return u.useImperativeHandle(M,()=>({focus:()=>{if(Ie!=null&&Ie.InputComponent){var de;Q==null||(de=Q.current)==null||de.focus()}else X.current.focus()}}),[Ie]),D.jsxs(Gye,S({ref:n,className:te.root,"data-id":y.id,ownerState:Y},T,{children:[D.jsx(Kye,S({variant:"standard",as:Y.slots.baseFormControl},se,O,{className:xe(te.deleteIcon,se.className,O.className),ownerState:Y,children:D.jsx(Y.slots.baseIconButton,S({"aria-label":$.current.getLocaleText("filterPanelDeleteIconLabel"),title:$.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:fe,size:"small"},(a=Y.slotProps)==null?void 0:a.baseIconButton,{children:D.jsx(Y.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),D.jsx(qye,S({variant:"standard",as:Y.slots.baseFormControl},se,_,{sx:S({display:J?"flex":"none",visibility:b?"visible":"hidden"},se.sx||{},_.sx||{}),className:xe(te.logicOperatorInput,se.className,_.className),ownerState:Y,children:D.jsx(Y.slots.baseSelect,S({inputProps:{"aria-label":$.current.getLocaleText("filterPanelLogicOperator")},value:w,onChange:pe,disabled:!!x||E.length===1,native:he},(c=Y.slotProps)==null?void 0:c.baseSelect,{children:E.map(de=>u.createElement(Y.slots.baseSelectOption,S({},re,{native:he,key:de.toString(),value:de.toString()}),$.current.getLocaleText(Zye(de))))}))})),D.jsxs(Yye,S({variant:"standard",as:Y.slots.baseFormControl},se,B,{className:xe(te.columnInput,se.className,B.className),ownerState:Y,children:[D.jsx(Y.slots.baseInputLabel,S({},ne,{htmlFor:A,id:N,children:$.current.getLocaleText("filterPanelColumns")})),D.jsx(Y.slots.baseSelect,S({labelId:N,id:A,label:$.current.getLocaleText("filterPanelColumns"),value:y.field||"",onChange:ye,native:he},(f=Y.slotProps)==null?void 0:f.baseSelect,{children:ke.map(de=>u.createElement(Y.slots.baseSelectOption,S({},re,{native:he,key:de.field,value:de.field}),Gf(de)))}))]})),D.jsxs(Qye,S({variant:"standard",as:Y.slots.baseFormControl},se,L,{className:xe(te.operatorInput,se.className,L.className),ownerState:Y,children:[D.jsx(Y.slots.baseInputLabel,S({},ne,{htmlFor:H,id:K,children:$.current.getLocaleText("filterPanelOperator")})),D.jsx(Y.slots.baseSelect,S({labelId:K,label:$.current.getLocaleText("filterPanelOperator"),id:H,value:y.operator,onChange:Me,native:he,inputRef:X},(p=Y.slotProps)==null?void 0:p.baseSelect,{children:ae==null||(h=ae.filterOperators)==null?void 0:h.map(de=>u.createElement(Y.slots.baseSelectOption,S({},re,{native:he,key:de.value,value:de.value}),de.label||$.current.getLocaleText(`filterOperator${Pe(de.value)}`)))}))]})),D.jsx(Xye,S({variant:"standard",as:Y.slots.baseFormControl},se,ce,{className:xe(te.valueInput,se.className,ce.className),ownerState:Y,children:Ie!=null&&Ie.InputComponent?D.jsx(Ie.InputComponent,S({apiRef:$,item:y,applyValue:C,focusElementRef:Q},Ie.InputComponentProps,me)):null}))]}))});class _E{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new _E}start(t,n){this.clear(),this.currentId=setTimeout(n,t)}}function TE(){const e=gE(_E.create).current;return M5(e.disposeEffect),e}const e1e=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps"];function Ii(e){var t,n;const{item:r,applyValue:o,type:s,apiRef:i,focusElementRef:l,tabIndex:a,disabled:c,clearButton:f,InputProps:p}=e,h=le(e,e1e),y=TE(),[v,m]=u.useState((t=r.value)!=null?t:""),[C,w]=u.useState(!1),b=Kt(),x=ut(),P=u.useCallback(M=>{const{value:E}=M.target;m(String(E)),w(!0),y.start(x.filterDebounceMs,()=>{const k=S({},r,{value:E,fromInput:b});o(k),w(!1)})},[b,o,r,x.filterDebounceMs,y]);return u.useEffect(()=>{if(r.fromInput!==b){var E;m(String((E=r.value)!=null?E:""))}},[b,r]),D.jsx(x.slots.baseTextField,S({id:b,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),value:v,onChange:P,variant:"standard",type:s||"text",InputProps:S({},C||f?{endAdornment:C?D.jsx(x.slots.loadIcon,{fontSize:"small",color:"action"}):f}:{},{disabled:c},p,{inputProps:S({tabIndex:a},p==null?void 0:p.inputProps)}),InputLabelProps:{shrink:!0},inputRef:l},h,(n=x.slotProps)==null?void 0:n.baseTextField))}const t1e=["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:c,tabIndex:f,disabled:p}=e,h=le(e,t1e),y=TE(),[v,m]=u.useState((t=r.value)!=null?t:""),[C,w]=u.useState(!1),b=Kt(),x=ut(),P=u.useCallback(M=>{const E=M.target.value;m(String(E)),w(!0),y.start(x.filterDebounceMs,()=>{o(S({},r,{value:E})),w(!1)})},[o,r,x.filterDebounceMs,y]);return u.useEffect(()=>{var M;const E=(M=r.value)!=null?M:"";m(String(E))},[r.value]),D.jsx(x.slots.baseTextField,S({fullWidth:!0,id:b,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),value:v,onChange:P,variant:"standard",type:s||"text",InputLabelProps:{shrink:!0},inputRef:l,InputProps:S({},C||c?{endAdornment:C?D.jsx(x.slots.loadIcon,{fontSize:"small",color:"action"}):c}:{},{disabled:p},a,{inputProps:S({max:s==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:f},a==null?void 0:a.inputProps)})},h,(n=x.slotProps)==null?void 0:n.baseTextField))}const n1e=["item","applyValue","type","apiRef","focusElementRef","getOptionLabel","getOptionValue","placeholder","tabIndex","label","isFilterActive","clearButton","InputLabelProps"],r1e=({column:{valueOptions:e,field:t},OptionComponent:n,getOptionLabel:r,getOptionValue:o,isSelectNative:s,baseSelectOptionProps:i})=>(typeof e=="function"?["",...e({field:t})]:["",...e||[]]).map(a=>{const c=o(a),f=r(a);return u.createElement(n,S({},i,{native:s,key:c,value:c}),f)}),o1e=oe("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function VO(e){var t,n,r,o,s,i,l,a;const{item:c,applyValue:f,type:p,apiRef:h,focusElementRef:y,getOptionLabel:v,getOptionValue:m,placeholder:C,tabIndex:w,label:b,clearButton:x}=e,P=le(e,n1e),[M,E]=u.useState((t=c.value)!=null?t:""),k=Kt(),R=Kt(),O=ut(),_=(n=(r=O.slotProps)==null||(r=r.baseSelect)==null?void 0:r.native)!=null?n:!0;let L=null;if(c.field){const j=h.current.getColumn(c.field);bc(j)&&(L=j)}const B=m||((o=L)==null?void 0:o.getOptionValue),z=v||((s=L)==null?void 0:s.getOptionLabel),T=u.useMemo(()=>{if(L)return typeof L.valueOptions=="function"?L.valueOptions({field:L.field}):L.valueOptions},[L]),$=u.useCallback(j=>{let A=j.target.value;A=rS(A,T,B),E(String(A)),f(S({},c,{value:A}))},[T,B,f,c]);if(u.useEffect(()=>{var j;let A;if(T!==void 0){if(A=rS(c.value,T,B),A!==c.value){f(S({},c,{value:A}));return}}else A=c.value;A=(j=A)!=null?j:"",E(String(A))},[c,T,f,B]),!bc(L)||!bc(L))return null;const F=b!=null?b:h.current.getLocaleText("filterPanelInputLabel");return D.jsxs(o1e,{children:[D.jsxs(O.slots.baseFormControl,{children:[D.jsx(O.slots.baseInputLabel,S({},(i=O.slotProps)==null?void 0:i.baseInputLabel,{id:R,htmlFor:k,shrink:!0,variant:"standard",children:F})),D.jsx(O.slots.baseSelect,S({id:k,label:F,labelId:R,value:M,onChange:$,variant:"standard",type:p||"text",inputProps:{tabIndex:w,ref:y,placeholder:C!=null?C:h.current.getLocaleText("filterPanelInputPlaceholder")},native:_},P,(l=O.slotProps)==null?void 0:l.baseSelect,{children:r1e({column:L,OptionComponent:O.slots.baseSelectOption,getOptionLabel:z,getOptionValue:B,isSelectNative:_,baseSelectOptionProps:(a=O.slotProps)==null?void 0:a.baseSelectOption})}))]}),x]})}const s1e=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","InputLabelProps"],i1e=oe("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function l1e(e){var t,n,r,o;const{item:s,applyValue:i,apiRef:l,focusElementRef:a,clearButton:c,tabIndex:f,label:p}=e,h=le(e,s1e),[y,v]=u.useState(s.value||""),m=ut(),C=Kt(),w=Kt(),b=((t=m.slotProps)==null?void 0:t.baseSelect)||{},x=(n=b.native)!=null?n:!0,P=((r=m.slotProps)==null?void 0:r.baseSelectOption)||{},M=u.useCallback(k=>{const R=k.target.value;v(R),i(S({},s,{value:R}))},[i,s]);u.useEffect(()=>{v(s.value||"")},[s.value]);const E=p!=null?p:l.current.getLocaleText("filterPanelInputLabel");return D.jsxs(i1e,{children:[D.jsxs(m.slots.baseFormControl,{fullWidth:!0,children:[D.jsx(m.slots.baseInputLabel,S({},(o=m.slotProps)==null?void 0:o.baseInputLabel,{id:C,shrink:!0,variant:"standard",children:E})),D.jsxs(m.slots.baseSelect,S({labelId:C,id:w,label:E,value:y,onChange:M,variant:"standard",native:x,displayEmpty:!0,inputProps:{ref:a,tabIndex:f}},h,b,{children:[D.jsx(m.slots.baseSelectOption,S({},P,{native:x,value:"",children:l.current.getLocaleText("filterValueAny")})),D.jsx(m.slots.baseSelectOption,S({},P,{native:x,value:"true",children:l.current.getLocaleText("filterValueTrue")})),D.jsx(m.slots.baseSelectOption,S({},P,{native:x,value:"false",children:l.current.getLocaleText("filterValueFalse")}))]}))]}),c]})}const a1e=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],jO=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),c1e=u.forwardRef(function(t,n){var r,o;const s=Vt(),i=ut(),l=ot(s,Or),a=ot(s,T5),c=u.useRef(null),f=u.useRef(null),{logicOperators:p=[So.And,So.Or],columnsSort:h,filterFormProps:y,getColumnForNewFilter:v,disableAddFilterButton:m=!1,disableRemoveAllButton:C=!1}=t,w=le(t,a1e),b=s.current.upsertFilterItem,x=u.useCallback(L=>{s.current.setFilterLogicOperator(L)},[s]),P=u.useCallback(()=>{let L;if(v&&typeof v=="function"){const B=v({currentFilters:(l==null?void 0:l.items)||[],columns:a});if(B===null)return null;L=a.find(({field:z})=>z===B)}else L=a.find(B=>{var z;return(z=B.filterOperators)==null?void 0:z.length});return L?jO(L):null},[l==null?void 0:l.items,a,v]),M=u.useCallback(()=>{if(v===void 0||typeof v!="function")return P();const L=l.items.length?l.items:[P()].filter(Boolean),B=v({currentFilters:L,columns:a});if(B===null)return null;const z=a.find(({field:T})=>T===B);return z?jO(z):null},[l.items,a,v,P]),E=u.useMemo(()=>l.items.length?l.items:(f.current||(f.current=P()),f.current?[f.current]:[]),[l.items,P]),k=E.length>1,R=()=>{const L=M();L&&s.current.upsertFilterItems([...E,L])},O=u.useCallback(L=>{const B=E.length===1;s.current.deleteFilterItem(L),B&&s.current.hideFilterPanel()},[s,E.length]),_=()=>{E.length===1&&E[0].value===void 0&&(s.current.deleteFilterItem(E[0]),s.current.hideFilterPanel()),s.current.setFilterModel(S({},l,{items:[]}))};return u.useEffect(()=>{p.length>0&&l.logicOperator&&!p.includes(l.logicOperator)&&x(p[0])},[p,x,l.logicOperator]),u.useEffect(()=>{E.length>0&&c.current.focus()},[E.length]),D.jsxs(p3,S({ref:n},w,{children:[D.jsx(d3,{children:E.map((L,B)=>D.jsx(Jye,S({item:L,applyFilterChanges:b,deleteFilter:O,hasMultipleFilters:k,showMultiFilterOperators:B>0,multiFilterOperator:l.logicOperator,disableMultiFilterOperator:B!==1,applyMultiFilterOperatorChanges:x,focusElementRef:B===E.length-1?c:null,logicOperators:p,columnsSort:h},y),L.id==null?B:L.id))}),!i.disableMultipleColumnsFiltering&&!(m&&C)?D.jsxs(f3,{children:[m?D.jsx("span",{}):D.jsx(i.slots.baseButton,S({onClick:R,startIcon:D.jsx(i.slots.filterPanelAddIcon,{})},(r=i.slotProps)==null?void 0:r.baseButton,{children:s.current.getLocaleText("filterPanelAddFilter")})),C?null:D.jsx(i.slots.baseButton,S({onClick:_,startIcon:D.jsx(i.slots.filterPanelRemoveAllIcon,{})},(o=i.slotProps)==null?void 0:o.baseButton,{children:s.current.getLocaleText("filterPanelRemoveAll")}))]}):null]}))}),u1e=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function h3(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:s,color:i,error:l,helperText:a,size:c,variant:f}=e,p=le(e,u1e),h={color:i,error:l,helperText:a,size:c,variant:f},[y,v]=u.useState(t.value||[]),m=Kt(),C=ut();u.useEffect(()=>{var b;const x=(b=t.value)!=null?b:[];v(x.map(String))},[t.value]);const w=u.useCallback((b,x)=>{v(x.map(String)),n(S({},t,{value:[...x]}))},[n,t]);return D.jsx(Nh,S({multiple:!0,freeSolo:!0,options:[],filterOptions:(b,x)=>{const{inputValue:P}=x;return P==null||P===""?[]:[P]},id:m,value:y,onChange:w,renderTags:(b,x)=>b.map((P,M)=>D.jsx(C.slots.baseChip,S({variant:"outlined",size:"small",label:P},x({index:M})))),renderInput:b=>{var x;return D.jsx(C.slots.baseTextField,S({},b,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:S({},b.InputLabelProps,{shrink:!0}),inputRef:s,type:r||"text"},h,(x=C.slotProps)==null?void 0:x.baseTextField))}},p))}const d1e=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant","getOptionLabel","getOptionValue"],f1e=D4();function p1e(e){var t,n;const{item:r,applyValue:o,apiRef:s,focusElementRef:i,color:l,error:a,helperText:c,size:f,variant:p="standard",getOptionLabel:h,getOptionValue:y}=e,v=le(e,d1e),m={color:l,error:a,helperText:c,size:f,variant:p},C=Kt(),w=ut();let b=null;if(r.field){const _=s.current.getColumn(r.field);bc(_)&&(b=_)}const x=y||((t=b)==null?void 0:t.getOptionValue),P=h||((n=b)==null?void 0:n.getOptionLabel),M=u.useCallback((_,L)=>x(_)===x(L),[x]),E=u.useMemo(()=>{var _;return(_=b)!=null&&_.valueOptions?typeof b.valueOptions=="function"?b.valueOptions({field:b.field}):b.valueOptions:[]},[b]),k=u.useMemo(()=>E==null?void 0:E.map(x),[E,x]),R=u.useMemo(()=>Array.isArray(r.value)?E!==void 0?r.value.map(L=>k==null?void 0:k.findIndex(B=>B===L)).filter(L=>L>=0).map(L=>E[L]):r.value:[],[r.value,E,k]);u.useEffect(()=>{(!Array.isArray(r.value)||R.length!==r.value.length)&&o(S({},r,{value:R.map(x)}))},[r,R,o,x]);const O=u.useCallback((_,L)=>{o(S({},r,{value:L.map(x)}))},[o,r,x]);return D.jsx(Nh,S({multiple:!0,options:E,isOptionEqualToValue:M,filterOptions:f1e,id:C,value:R,onChange:O,getOptionLabel:P,renderTags:(_,L)=>_.map((B,z)=>D.jsx(w.slots.baseChip,S({variant:"outlined",size:"small",label:P(B)},L({index:z})))),renderInput:_=>{var L;return D.jsx(w.slots.baseTextField,S({},_,{label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:S({},_.InputLabelProps,{shrink:!0}),inputRef:i,type:"singleSelect"},m,(L=w.slotProps)==null?void 0:L.baseTextField))}},v))}const h1e=["hideMenu","options"],m1e=["hideMenu","options"];function g1e(e){const t=Vt(),{hideMenu:n,options:r}=e,o=le(e,h1e);return D.jsx(Pr,S({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function v1e(e){const t=Vt(),{hideMenu:n,options:r}=e,o=le(e,m1e);return D.jsx(Pr,S({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const y1e=["className","selectedRowCount"],b1e=e=>{const{classes:t}=e;return Te({root:["selectedRowCount"]},jt,t)},w1e=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"}})),C1e=u.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,s=le(t,y1e),i=Vt(),l=ut(),a=b1e(l),c=i.current.getLocaleText("footerRowSelected")(o);return D.jsx(w1e,S({ref:n,className:xe(a.root,r),ownerState:l},s,{children:c}))}),x1e=u.forwardRef(function(t,n){var r,o;const s=Vt(),i=ut(),l=ot(s,Uhe),a=ot(s,hve),c=ot(s,g0),f=!i.hideFooterSelectedRowCount&&a>0?D.jsx(C1e,{selectedRowCount:a}):D.jsx("div",{}),p=!i.hideFooterRowCount&&!i.pagination?D.jsx(i.slots.footerRowCount,S({},(r=i.slotProps)==null?void 0:r.footerRowCount,{rowCount:l,visibleRowCount:c})):null,h=i.pagination&&!i.hideFooterPagination&&i.slots.pagination&&D.jsx(i.slots.pagination,S({},(o=i.slotProps)==null?void 0:o.pagination));return D.jsxs(Ege,S({ref:n},t,{children:[f,p,h]}))});function S1e(){var e,t;const n=ut();return D.jsxs(u.Fragment,{children:[D.jsx(n.slots.preferencesPanel,S({},(e=n.slotProps)==null?void 0:e.preferencesPanel)),n.slots.toolbar&&D.jsx(n.slots.toolbar,S({},(t=n.slotProps)==null?void 0:t.toolbar))]})}const P1e=u.forwardRef(function(t,n){return D.jsx(EE,S({ref:n},t,{children:D.jsx(Vi,{})}))}),E1e=u.forwardRef(function(t,n){const o=Vt().current.getLocaleText("noRowsLabel");return D.jsx(EE,S({ref:n},t,{children:o}))}),k1e=oe(dce)(({theme:e})=>({[`& .${gc.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${gc.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),I1e=u.forwardRef(function(t,n){const r=Vt(),o=ut(),s=ot(r,Es),i=ot(r,g0),l=u.useMemo(()=>{var y,v;return(y=(v=o.rowCount)!=null?v:i)!=null?y:0},[o.rowCount,i]),a=u.useMemo(()=>Math.floor(l/(s.pageSize||1)),[l,s.pageSize]),c=u.useCallback(y=>{const v=Number(y.target.value);r.current.setPageSize(v)},[r]),f=u.useCallback((y,v)=>{r.current.setPage(v)},[r]),h=(y=>{for(let v=0;v<o.pageSizeOptions.length;v+=1){const m=o.pageSizeOptions[v];if(typeof m=="number"){if(m===y)return!0}else if(m.value===y)return!0}return!1})(s.pageSize)?o.pageSizeOptions:[];return D.jsx(k1e,S({ref:n,component:"div",count:l,page:s.page<=a?s.page:a,rowsPerPageOptions:h,rowsPerPage:s.pageSize,onPageChange:f,onRowsPerPageChange:c},r.current.getLocaleText("MuiTablePagination"),t))}),M1e=["className","rowCount","visibleRowCount"],_1e=e=>{const{classes:t}=e;return Te({root:["rowCount"]},jt,t)},T1e=Ir("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),$1e=u.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:s}=t,i=le(t,M1e),l=Vt(),a=ut(),c=_1e(a);if(o===0)return null;const f=s<o?l.current.getLocaleText("footerTotalVisibleRows")(s,o):o.toLocaleString();return D.jsxs(T1e,S({ref:n,className:xe(c.root,r),ownerState:a},i,{children:[l.current.getLocaleText("footerTotalRows")," ",f]}))}),py=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=IE(e),n=pve(e)):(n=Va(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},Uc=(e,t)=>{const n=py(e,t);return u.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},oS={current:null};function Kh(e){return e.isInternal=!0,e}function hy(e){return e!==void 0&&e.isInternal===!0}function R1e(e){return Kh((t,n)=>{const r=e(t,n);return r&&(o=>r(o.value,o.row,n,oS.current))})}function qh(e){return e.map(t=>S({},t,{getApplyFilterFn:R1e(t.getApplyFilterFnV7),getApplyFilterFnV7:Kh(t.getApplyFilterFnV7)}))}function m3(e){return Kh((t,n,r)=>{const o=e(t,n,r);return o&&(s=>o(s.value,s.row,n,r))})}function g3(e){return{current:e.current.getPublicApi()}}const O1e=typeof window=="undefined"?globalThis:window,v3=O1e[atob("ZXZhbA==")];let sS;try{sS=v3("true")}catch(e){sS=!1}const iS=(e,t)=>{const n=S({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=Jd(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},D1e=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"),A1e=Gi("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),L1e=Gi("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),y3=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(D1e(),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&&A1e(),i&&L1e(),i||s?S({},e,{items:o.map(l=>iS(l,n))}):e.items!==o?S({},e,{items:o}):e},HO=(e,t,n)=>r=>S({},r,{filterModel:y3(e,t,n)}),ua=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,b3=(e,t)=>{if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){var o;const y=n.valueParser;r=Array.isArray(e.value)?(o=e.value)==null?void 0:o.map(v=>y(v)):y(e.value)}else r=e.value;const{ignoreDiacritics:s}=t.current.rootProps;s&&(r=ua(r));const i=S({},e,{value:r}),l=n.filterOperators;if(!(l!=null&&l.length))throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const a=l.find(y=>y.value===i.operator);if(!a)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${i.operator}'.`);const c=!hy(a.getApplyFilterFn),f=!hy(a.getApplyFilterFnV7),p=g3(t);if(a.getApplyFilterFnV7&&!(c&&!f)){const y=a.getApplyFilterFnV7(i,n);return typeof y!="function"?null:{v7:!0,item:i,fn:v=>{let m=t.current.getRowValue(v,n);return s&&(m=ua(m)),y(m,v,n,p)}}}const h=a.getApplyFilterFn(i,n);return typeof h!="function"?null:{v7:!1,item:i,fn:y=>{const v=t.current.getCellParams(y,i.field);oS.current=p,s&&(v.value=ua(v.value));const m=h(v);return oS.current=null,m}}};let UO=1;const F1e=(e,t,n)=>{const{items:r}=e,o=r.map(a=>b3(a,t)).filter(a=>!!a);if(o.length===0)return null;if(!sS||n)return(a,c)=>{const f={};for(let p=0;p<o.length;p+=1){const h=o[p];(!c||c(h.item.field))&&(f[h.item.id]=h.v7?h.fn(a):h.fn(t.current.getRowId(a)))}return f};const s=`(function filterItem$$(getRowId, appliers, row, shouldApplyFilter) {
|
|
593
|
-
${o.map((a,c)=>`const shouldApply${c} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(a.item.field)});`).join(`
|
|
594
|
-
`)}
|
|
595
|
-
|
|
596
|
-
const result$$ = {
|
|
597
|
-
${o.map((a,c)=>`${JSON.stringify(String(a.item.id))}:
|
|
598
|
-
!shouldApply${c} ?
|
|
599
|
-
false :
|
|
600
|
-
${a.v7?`appliers[${c}].fn(row)`:`appliers[${c}].fn(getRowId(row))`},
|
|
601
|
-
`).join(`
|
|
602
|
-
`)}};
|
|
603
|
-
|
|
604
|
-
return result$$;
|
|
605
|
-
})`,i=v3(s.replaceAll("$$",String(UO))),l=(a,c)=>i(t.current.getRowId,o,a,c);return UO+=1,l},N1e=(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)?f0(t):ml(t),a=[],{ignoreDiacritics:c}=t.current.rootProps,f=g3(t);return l.forEach(p=>{const h=t.current.getColumn(p),y=h==null?void 0:h.getApplyQuickFilterFn,v=h==null?void 0:h.getApplyQuickFilterFnV7,m=!hy(y),C=!hy(v);v&&!(m&&!C)?a.push({column:h,appliers:s.map(w=>{const b=c?ua(w):w;return{v7:!0,fn:v(b,h,f)}})}):y&&a.push({column:h,appliers:s.map(w=>{const b=c?ua(w):w;return{v7:!1,fn:y(b,h,f)}})})}),function(h,y){const v={},m={};e:for(let w=0;w<s.length;w+=1){const b=s[w];for(let x=0;x<a.length;x+=1){const{column:P,appliers:M}=a[x],{field:E}=P;if(y&&!y(E))continue;const k=M[w];let R=t.current.getRowValue(h,P);if(k.fn!==null)if(k.v7){if(c&&(R=ua(R)),k.fn(R,h,P,f)){v[b]=!0;continue e}}else{var C;const O=(C=m[E])!=null?C:t.current.getCellParams(t.current.getRowId(h),E);if(c&&(O.value=ua(O.value)),m[E]=O,k.fn(O)){v[b]=!0;continue e}}}v[b]=!1}return v}},B1e=(e,t,n)=>{const r=F1e(e,t,n),o=N1e(e,t);return function(i,l,a){var c,f;a.passingFilterItems=(c=r==null?void 0:r(i,l))!=null?c:null,a.passingQuickFilterValues=(f=o==null?void 0:o(i,l))!=null?f:null}},WO=e=>e!=null,z1e=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>b3(r,t)!==null)),e.cleanedFilterItems),V1e=(e,t,n,r,o)=>{const s=z1e(o,r,n.items),i=e.filter(WO),l=t.filter(WO);if(i.length>0){var a;const f=h=>i.some(y=>y[h.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 c;const f=h=>l.some(y=>y[h]);if(((c=n.quickFilterLogicOperator)!=null?c:hh().quickFilterLogicOperator)===So.And){if(!n.quickFilterValues.every(f))return!1}else if(!n.quickFilterValues.some(f))return!1}return!0},GO=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=ua(i)),i!=null?t.test(i.toString()):!1}}),w3=(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:Ii},{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:Ii},{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:Ii},{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:Ii},{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:h3}]),ui={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:xve,type:"string",align:"left",filterOperators:w3(),renderEditCell:Kme,getApplyQuickFilterFn:m3(GO),getApplyQuickFilterFnV7:GO},j1e=()=>qh([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t=e.value==="true";return n=>!!n===t},InputComponent:l1e}]);function H1e({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const U1e=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}},C3=S({},ui,{type:"boolean",align:"center",headerAlign:"center",renderCell:Dme,renderEditCell:Nme,sortComparator:i3,valueFormatter:H1e,filterOperators:j1e(),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>U1e(e)}),Yl="__check__",nf=S({},C3,{field:Yl,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,valueGetter:e=>fy(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>D.jsx(Lve,S({},e)),renderCell:e=>D.jsx(Ove,S({},e))}),w0="actions",W1e=S({},ui,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:fge,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0}),$E="__detail_panel_toggle__",lo=e=>e.editRows,G1e=["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"],K1e=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 q1e({width:e}){if(!e)return null;const t={width:e};return D.jsx("div",{className:`${ue.cell} ${ue.withBorderColor}`,style:t})}const Y1e=u.forwardRef(function(t,n){const{selected:r,hovered:o,rowId:s,row:i,index:l,style:a,position:c,rowHeight:f,className:p,visibleColumns:h,renderedColumns:y,containerWidth:v,firstColumnToRender:m,isLastVisible:C=!1,focusedCellColumnIndexNotInRange:w,isNotVisible:b,focusedCell:x,onClick:P,onDoubleClick:M,onMouseEnter:E,onMouseLeave:k,onMouseOut:R,onMouseOver:O}=t,_=le(t,G1e),L=Vt(),B=u.useRef(null),z=ut(),T=Uc(L,z),$=ot(L,yE),F=ot(L,xs),j=ot(L,m0),A=ot(L,Wh),N=ot(L,lo),H=kt(B,n),K=l+A+2,Y={selected:r,hovered:o,isLastVisible:C,classes:z.classes,editing:L.current.getRowMode(s)===Cn.Edit,editable:z.editMode===Hi.Row,rowHeight:f},te=K1e(Y);u.useLayoutEffect(()=>{f==="auto"&&B.current&&typeof ResizeObserver=="undefined"&&L.current.unstable_storeRowHeightMeasurement(s,B.current.clientHeight,c)},[L,f,s,c]),u.useLayoutEffect(()=>{if(T.range){const Ge=L.current.getRowIndexRelativeToVisibleRows(s);Ge!=null&&L.current.unstable_setLastMeasuredRowIndex(Ge)}const be=B.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,c)});return Ne.observe(be),()=>Ne.disconnect()},[L,T.range,l,f,s,c]);const Q=u.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=u.useCallback(be=>{const _e=yme(be.target,ue.cell),Ne=_e==null?void 0:_e.getAttribute("data-field");if(Ne){if(Ne===nf.field||Ne===$E||Ne==="__reorder__"||L.current.getCellMode(s,Ne)===un.Edit)return;const Ge=L.current.getColumn(Ne);if((Ge==null?void 0:Ge.type)===w0)return}Q("rowClick",P)(be)},[L,P,Q,s]),{slots:J,slotProps:se,disableColumnReorder:Z}=z,he=J.cell===nS?nS:Mme,ne=z.rowReordering,re=(be,_e)=>{var Ne,Ge;const Ve=Z&&be.disableReorder||!ne&&!!F.length&&j>1&&Object.keys(N).length>0,Ue=(Ne=(Ge=N[s])==null?void 0:Ge[be.field])!=null?Ne:null;let Le=!1;return w!==void 0&&h[w].field===be.field&&(Le=!0),D.jsx(he,S({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=ot(L,()=>S({},L.current.unstable_getRowInternalSizes(s)),vE);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=u.useMemo(()=>{if(b)return{opacity:0,width:0,height:0};const be=S({},a,{maxHeight:f==="auto"?"none":f,minHeight:ce});if(me!=null&&me.spacingTop){const _e=z.rowSpacingType==="border"?"borderTopWidth":"marginTop";be[_e]=me.spacingTop}if(me!=null&&me.spacingBottom){const _e=z.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let Ne=be[_e];typeof Ne!="number"&&(Ne=parseInt(Ne||"0",10)),Ne+=me.spacingBottom,be[_e]=Ne}return be},[b,f,a,ce,me,z.rowSpacingType]),ke=L.current.unstable_applyPipeProcessors("rowClassName",[],s);if(typeof z.getRowClassName=="function"){var ae;const be=l-(((ae=T.range)==null?void 0:ae.firstRowIndex)||0),_e=S({},L.current.getRowParams(s),{isFirstVisible:be===0,isLastVisible:be===T.rows.length-1,indexRelativeToCurrentPage:be});ke.push(z.getRowClassName(_e))}const Ie=ive(1e4,20,80),ye=L.current.getRowNode(s);if(!ye)return null;const Me=ye.type,pe=[];for(let be=0;be<y.length;be+=1){const _e=y[be];let Ne=m+be;w!==void 0&&x&&(h[w].field===_e.field?Ne=w: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:z.showCellVerticalBorder,indexRelativeToAllColumns:Ne};pe.push(re(_e,Le))}else{const{width:Ve}=Ge.cellProps,Ue=Math.round(Ie());pe.push(D.jsx(J.skeletonCell,{width:Ve,contentWidth:Ue,field:_e.field,align:_e.align},_e.field))}}const fe=v-$,de=i?{onClick:X,onDoubleClick:Q("rowDoubleClick",M),onMouseEnter:Q("rowMouseEnter",E),onMouseLeave:Q("rowMouseLeave",k),onMouseOut:Q("rowMouseOut",R),onMouseOver:Q("rowMouseOver",O)}:null;return D.jsxs("div",S({ref:H,"data-id":s,"data-rowindex":l,role:"row",className:xe(...ke,te.root,p,o&&"Mui-hovered"),"aria-rowindex":K,"aria-selected":r,style:Se},de,_,{children:[pe,fe>0&&D.jsx(q1e,{width:fe})]}))}),Q1e=b0(Y1e);function X1e({privateApiRef:e,props:t,children:n}){const r=u.useRef(e.current.getPublicApi());return D.jsx(k5.Provider,{value:t,children:D.jsx(I5.Provider,{value:e,children:D.jsx(E5.Provider,{value:r,children:n})})})}const Z1e=ove()&&window.localStorage.getItem("DEBUG")!=null,ap=()=>{},J1e={debug:ap,info:ap,warn:ap,error:ap},KO=["debug","info","warn","error"];function qO(e,t,n=console){const r=KO.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return KO.reduce((s,i,l)=>(l>=r?s[i]=(...a)=>{const[c,...f]=a;n[i](`MUI: ${e} - ${c}`,...f)}:s[i]=ap,s),{})}const e0e=(e,t)=>{const n=u.useCallback(r=>Z1e?qO(r,"debug",t.logger):t.logLevel?qO(r,t.logLevel.toString(),t.logger):J1e,[t.logLevel,t.logger]);Lt(e,{getLogger:n},"private")};class RE{static create(t){return new RE(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 t0e=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 x3=Symbol("mui.api_private"),n0e=e=>e.isPropagationStopped!==void 0;let YO=0;function r0e(e){var t;const n=(t=e.current)==null?void 0:t[x3];if(n)return n;const r={},o={state:r,store:RE.create(r),instanceId:{id:YO}};return YO+=1,o.getPublicApi=()=>e.current,o.register=(s,i)=>{Object.keys(i).forEach(l=>{const a=i[l],c=o[l];if((c==null?void 0:c.spying)===!0?c.target=a:o[l]=a,s==="public"){const f=e.current,p=f[l];(p==null?void 0:p.spying)===!0?p.target=a:f[l]=a}})},o.register("private",{caches:{},eventManager:new t0e}),o}function o0e(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[x3]:e.current}}function s0e(e,t){const n=u.useRef(),r=u.useRef();r.current||(r.current=r0e(n)),n.current||(n.current=o0e(r));const o=u.useCallback((...i)=>{const[l,a,c={}]=i;if(c.defaultMuiPrevented=!1,n0e(c)&&c.isPropagationStopped())return;const f=t.signature===Fi.DataGridPro?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(l,a,c,f)},[r,t.signature]),s=u.useCallback((i,l,a)=>{r.current.eventManager.on(i,l,a);const c=r.current;return()=>{c.eventManager.removeListener(i,l)}},[r]);return Lt(r,{subscribeEvent:s,publishEvent:o},"public"),u.useImperativeHandle(e,()=>n.current,[n]),u.useEffect(()=>{const i=r.current;return()=>{i.publishEvent("unmount")}},[r]),r}const i0e=(e,t)=>{const n=u.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})};function 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 l0e(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=l0e(e,"string");return vh(t)==="symbol"?t:String(t)}const a0e=e=>{const t=u.useRef({}),n=u.useRef(!1),r=u.useCallback(f=>{n.current||!f||(n.current=!0,Object.values(f.appliers).forEach(p=>{p()}),n.current=!1)},[]),o=u.useCallback((f,p,h)=>{t.current[f]||(t.current[f]={processors:new Map,appliers:{}});const y=t.current[f];return y.processors.get(p)!==h&&(y.processors.set(p,h),r(y)),()=>{t.current[f].processors.set(p,null)}},[r]),s=u.useCallback((f,p,h)=>(t.current[f]||(t.current[f]={processors:new Map,appliers:{}}),t.current[f].appliers[p]=h,()=>{const y=t.current[f].appliers,v=le(y,[p].map(yh));t.current[f].appliers=v}),[]),i=u.useCallback(f=>{const p=t.current[f];r(p)},[r]),l=u.useCallback((...f)=>{const[p,h,y]=f;return t.current[p]?Array.from(t.current[p].processors.values()).reduce((m,C)=>C?C(m,y):m,h):h},[]),a={registerPipeProcessor:o,registerPipeApplier:s,requestPipeProcessorsApplication:i},c={unstable_applyPipeProcessors:l};Lt(e,a,"private"),Lt(e,c,"public")},mr=(e,t,n)=>{const r=u.useRef(),o=u.useRef(`mui-${Math.round(Math.random()*1e9)}`),s=u.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);Gh(()=>{s()});const i=u.useRef(!0);u.useEffect(()=>(i.current?i.current=!1:s(),()=>{r.current&&(r.current(),r.current=null)}),[s])},OE=(e,t,n)=>{const r=u.useRef(),o=u.useRef(`mui-${Math.round(Math.random()*1e9)}`),s=u.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);Gh(()=>{s()});const i=u.useRef(!0);u.useEffect(()=>(i.current?i.current=!1:s(),()=>{r.current&&(r.current(),r.current=null)}),[s])},my=(e,t,n,r)=>{const o=u.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);Gh(()=>{o()});const s=u.useRef(!0);u.useEffect(()=>{s.current?s.current=!1:o()},[o])},Lc="none",QO={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},c0e=e=>{const t=u.useRef(new Map),n=u.useRef({}),r=u.useCallback((a,c,f)=>{const p=()=>{const v=n.current[c],m=le(v,[a].map(yh));n.current[c]=m};n.current[c]||(n.current[c]={});const h=n.current[c],y=h[a];return h[a]=f,!y||y===f||a===e.current.getActiveStrategy(QO[c])&&e.current.publishEvent("activeStrategyProcessorChange",c),p},[e]),o=u.useCallback((a,c)=>{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 h=p[f];return h(c)},[e]),s=u.useCallback(a=>{var c;const p=Array.from(t.current.entries()).find(([,h])=>h.group!==a?!1:h.isAvailable());return(c=p==null?void 0:p[0])!=null?c:Lc},[]),i=u.useCallback((a,c,f)=>{t.current.set(c,{group:a,isAvailable:f}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Lt(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:s,setStrategyAvailability:i},"private")},u0e=(e,t)=>{const n=u.useRef({}),[,r]=u.useState(),o=u.useCallback(f=>{n.current[f.stateId]=f},[]),s=u.useCallback((f,p)=>{let h;if(Z5(f)?h=f(e.current.state):h=f,e.current.state===h)return!1;let y=!1;const v=[];if(Object.keys(n.current).forEach(m=>{const C=n.current[m],w=C.stateSelector(e.current.state,e.current.instanceId),b=C.stateSelector(h,e.current.instanceId);b!==w&&(v.push({stateId:C.stateId,hasPropChanged:b!==C.propModel}),C.propModel!==void 0&&b!==C.propModel&&(y=!0))}),v.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${v[0].stateId}, therefore, you're not allowed to update ${v.map(m=>m.stateId).join(", ")} in the same transaction.`);if(y||(e.current.state=h,e.current.publishEvent&&e.current.publishEvent("stateChange",h),e.current.store.update(h)),v.length===1){const{stateId:m,hasPropChanged:C}=v[0],w=n.current[m],b=w.stateSelector(h,e.current.instanceId);if(w.propOnChange&&C){const x=t.signature===Fi.DataGridPro?{api:e.current,reason:p}:{reason:p};w.propOnChange(b,x)}y||e.current.publishEvent(w.changeEvent,b,{reason:p})}return!y},[e,t.signature]),i=u.useCallback((f,p,h)=>e.current.setState(y=>S({},y,{[f]:p(y[f])}),h),[e]),l=u.useCallback(()=>r(()=>e.current.state),[e]),a={setState:s,forceUpdate:l},c={updateControlState:i,registerControlState:o};Lt(e,a,"public"),Lt(e,c,"private")},d0e=(e,t)=>{const n=s0e(e,t);return e0e(n,t),u0e(n,t),a0e(n),c0e(n),i0e(n,t),n.current.register("private",{rootProps:t}),n},bo=(e,t,n)=>{const r=u.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)},f0e=/(\d+)-(\d+)-(\d+)/,p0e=/(\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?p0e:f0e).slice(1).map(Number),c=new Date(o,s-1,i,l||0,a||0).getTime();return f=>{if(!f)return!1;if(r)return t(f.getTime(),c);const h=new Date(f).setHours(n?f.getHours():0,n?f.getMinutes():0,0,0);return t(h,c)}}const S3=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 P3({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(`
|
|
606
|
-
`))}function h0e({value:e,field:t,id:n}){return e?(P3({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""}function m0e({value:e,field:t,id:n}){return e?(P3({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""}const g0e=S({},ui,{type:"date",sortComparator:l3,valueFormatter:h0e,filterOperators:S3(),renderEditCell:U5,pastedValueParser:e=>new Date(e)}),v0e=S({},ui,{type:"dateTime",sortComparator:l3,valueFormatter:m0e,filterOperators:S3(!0),renderEditCell:U5,pastedValueParser:e=>new Date(e)}),ea=e=>e==null?null:Number(e),XO=Kh(e=>e==null||Number.isNaN(e)||e===""?null:t=>ea(t)===ea(e)),y0e=()=>qh([{value:"=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>ea(t)===e.value,InputComponent:Ii,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>ea(t)!==e.value,InputComponent:Ii,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:ea(t)>e.value,InputComponent:Ii,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:ea(t)>=e.value,InputComponent:Ii,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:ea(t)<e.value,InputComponent:Ii,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:ea(t)<=e.value,InputComponent:Ii,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:h3,InputComponentProps:{type:"number"}}]),b0e=S({},ui,{type:"number",align:"right",headerAlign:"right",sortComparator:i3,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>rve(e)?e.toLocaleString():e||"",filterOperators:y0e(),getApplyQuickFilterFn:m3(XO),getApplyQuickFilterFnV7:XO}),bu=e=>e==null||!kE(e)?e:e.value,w0e=()=>qh([{value:"is",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>bu(t)===bu(e.value),InputComponent:VO},{value:"not",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>bu(t)!==bu(e.value),InputComponent:VO},{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:p1e}]),C0e=e=>typeof e[0]=="object",x0e=e=>kE(e)?e.value:e,S0e=e=>kE(e)?e.label:String(e),P0e=S({},ui,{type:"singleSelect",getOptionLabel:S0e,getOptionValue:x0e,valueFormatter(e){const{id:t,field:n,value:r,api:o}=e,s=e.api.getColumn(n);if(!bc(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(!C0e(i))return s.getOptionLabel(r);const l=i.find(a=>s.getOptionValue(a)===r);return l?s.getOptionLabel(l):""},renderEditCell:oge,filterOperators:w0e(),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}}),E3="__default__",E0e=()=>({string:ui,number:b0e,date:g0e,dateTime:v0e,boolean:C3,singleSelect:P0e,[w0]:W1e,[E3]:ui});function lS(e,t){return typeof e=="string"&&[t,`
|
|
607
|
-
`,"\r",'"'].some(n=>e.includes(n))?`"${e.replace(/"/g,'""')}"`:e}const k3=(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 lS(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 aS{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 k0e=({id:e,columns:t,getCellParams:n,delimiterCharacter:r,ignoreValueFormatter:o})=>{const s=new aS({delimiterCharacter:r});return t.forEach(i=>{const l=n(e,i.field);s.addValue(k3(l,{delimiterCharacter:r,ignoreValueFormatter:o}))}),s.getRowString()};function I0e(e){const{columns:t,rowIds:n,delimiterCharacter:r,includeHeaders:o,includeColumnGroupsHeaders:s,ignoreValueFormatter:i,apiRef:l}=e,a=n.reduce((y,v)=>`${y}${k0e({id:v,columns:t,getCellParams:l.current.getCellParams,delimiterCharacter:r,ignoreValueFormatter:i})}\r
|
|
608
|
-
`,"").trim();if(!o)return a;const c=t.filter(y=>y.field!==nf.field),f=[];if(s){const y=l.current.unstable_getAllGroupDetails();let v=0;const m=c.reduce((C,w)=>{const b=l.current.unstable_getColumnGroupPath(w.field);return C[w.field]=b,v=Math.max(v,b.length),C},{});for(let C=0;C<v;C+=1){const w=new aS({delimiterCharacter:r,sanitizeCellValue:lS});f.push(w),c.forEach(b=>{const x=(m[b.field]||[])[C],P=y[x];w.addValue(P?P.headerName||P.groupId:"")})}}const p=new aS({delimiterCharacter:r,sanitizeCellValue:lS});return c.forEach(y=>{p.addValue(y.headerName||y.field)}),f.push(p),`${`${f.map(y=>y.getRowString()).join(`\r
|
|
609
|
-
`)}\r
|
|
610
|
-
`}${a}`.trim()}function ZO(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 M0e(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{ZO(e)}):ZO(e)}function _0e(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const T0e=(e,t)=>{const n=t.unstable_ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,s=u.useCallback(i=>{if(!((i.ctrlKey||i.metaKey)&&i.key==="c")||_0e(i.target))return;let l="";if(e.current.getSelectedRows().size>0)l=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o});else{const c=jo(e);if(c){const f=e.current.getCellParams(c.id,c.field);l=k3(f,{delimiterCharacter:o,ignoreValueFormatter:r})}}l=e.current.unstable_applyPipeProcessors("clipboardCopy",l),l&&(M0e(l),e.current.publishEvent("clipboardCopy",l))},[e,r,o]);lve(e,e.current.rootElementRef,"keydown",s),In(e,"clipboardCopy",t.onClipboardCopy)},$0e=e=>S({},e,{columnMenu:{open:!1}}),R0e=e=>{const t=eo(e,"useGridColumnMenu"),n=u.useCallback(i=>{e.current.setState(a=>a.columnMenu.open&&a.columnMenu.field===i?a:(t.debug("Opening Column Menu"),S({},a,{columnMenu:{open:!0,field:i}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=u.useCallback(()=>{const i=tS(e.current.state);if(i.field){const a=Jd(e),c=si(e),f=ml(e);let p=i.field;if(a[p]||(p=f[0]),c[p]===!1){const h=f.filter(v=>v===p?!0:c[v]!==!1),y=h.indexOf(p);p=h[y+1]||h[y-1]}e.current.setColumnHeaderFocus(p)}e.current.setState(a=>!a.columnMenu.open&&a.columnMenu.field===void 0?a:(t.debug("Hiding Column Menu"),S({},a,{columnMenu:S({},a.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=u.useCallback(i=>{t.debug("Toggle Column Menu");const l=tS(e.current.state);!l.open||l.field!==i?n(i):r()},[e,t,n,r]);Lt(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),dt(e,"columnResizeStart",r),dt(e,"virtualScrollerWheel",e.current.hideColumnMenu),dt(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},I3=["maxWidth","minWidth","width","flex"];function O0e({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(i=>i.field)),o={all:{},frozenFields:[],freeze:i=>{const l=o.all[i];l&&l.frozen!==!0&&(o.all[i].frozen=!0,o.frozenFields.push(i))}};function s(){if(o.frozenFields.length===r.size)return;const i={min:{},max:{}};let l=e,a=t,c=0;o.frozenFields.forEach(f=>{l-=o.all[f].computedWidth,a-=o.all[f].flex});for(let f=0;f<n.length;f+=1){const p=n[f];if(o.all[p.field]&&o.all[p.field].frozen===!0)continue;let y=l/a*p.flex;y<p.minWidth?(c+=p.minWidth-y,y=p.minWidth,i.min[p.field]=!0):y>p.maxWidth&&(c+=p.maxWidth-y,y=p.maxWidth,i.max[p.field]=!0),o.all[p.field]={frozen:!1,computedWidth:y,flex:p.flex}}c<0?Object.keys(i.max).forEach(f=>{o.freeze(f)}):c>0?Object.keys(i.min).forEach(f=>{o.freeze(f)}):n.forEach(({field:f})=>{o.freeze(f)}),s()}return s(),o.all}const cS=(e,t)=>{const n={};let r=0,o=0;const s=[];e.orderedFields.forEach(l=>{const a=S({},e.lookup[l]);if(e.columnVisibilityModel[l]===!1)a.computedWidth=0;else{let c;a.flex&&a.flex>0?(r+=a.flex,c=0,s.push(a)):c=$d(a.width||ui.width,a.minWidth||ui.minWidth,a.maxWidth||ui.maxWidth),o+=c,a.computedWidth=c}n[l]=a});const i=Math.max(t-o,0);if(r>0&&t>0){const l=O0e({initialFreeSpace:i,totalFlexUnits:r,flexColumns:s});Object.keys(l).forEach(a=>{n[a].computedWidth=l[a].computedWidth})}return S({},e,{lookup:n})},D0e=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const s={},i=[];for(let f=0;f<n.length;f+=1){const p=n[f];e.lookup[p]&&(s[p]=!0,i.push(p))}const l=i.length===0?e.orderedFields:[...i,...e.orderedFields.filter(f=>!s[f])],a=S({},e.lookup);for(let f=0;f<o.length;f+=1){const p=o[f],h=S({},a[p],{hasBeenResized:!0});Object.entries(r[p]).forEach(([y,v])=>{h[y]=v===-1?1/0:v}),a[p]=h}return S({},e,{orderedFields:l,lookup:a})};function JO(e,t){let n=e[E3];return t&&e[t]&&(n=e[t]),n}const _u=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,columnVisibilityModel:o=si(e),keepOnlyColumnsToUpsert:s=!1})=>{var i,l,a;const c=!e.current.state.columns;let f;if(c)f={orderedFields:[],lookup:{},columnVisibilityModel:o};else{const v=yc(e.current.state);f={orderedFields:s?[]:[...v.orderedFields],lookup:S({},v.lookup),columnVisibilityModel:o}}let p={};s&&!c&&(p=Object.keys(f.lookup).reduce((v,m)=>S({},v,{[m]:!1}),{})),t.forEach(v=>{const{field:m}=v;p[m]=!0;let C=f.lookup[m];C==null?(C=S({},JO(r,v.type),{field:m,hasBeenResized:!1}),f.orderedFields.push(m)):s&&f.orderedFields.push(m),C&&C.type!==v.type&&(C=S({},JO(r,v.type),{field:m}));let w=C.hasBeenResized;I3.forEach(b=>{v[b]!==void 0&&(w=!0,v[b]===-1&&(v[b]=1/0))}),f.lookup[m]=S({},C,v,{hasBeenResized:w})}),s&&!c&&Object.keys(f.lookup).forEach(v=>{p[v]||delete f.lookup[v]});const h=e.current.unstable_applyPipeProcessors("hydrateColumns",f),y=D0e(h,n);return cS(y,(i=(l=(a=e.current).getRootDimensions)==null||(l=l.call(a))==null?void 0:l.viewportInnerSize.width)!=null?i:0)},eD=e=>t=>S({},t,{columns:e});function uS({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let s=e;for(let i=n;i<r;i+=1)if(o[i]){const a=o[i].id,c=t.current.unstable_getCellColSpanInfo(a,e);c&&c.spannedByColSpan&&(s=c.leftVisibleCellIndex)}return s}function A0e({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:r,lastRowToRender:o,apiRef:s,visibleRows:i}){const l=Math.max(e-n,t);return uS({firstColumnToRender:l,apiRef:s,firstRowToRender:r,lastRowToRender:o,visibleRows:i})}function DE(e,t){const n=tf(e),r=Wh(e);return Math.floor(t*n)*((r!=null?r:0)+1)}const M3=E0e(),L0e=(e,t,n)=>{var r,o,s,i;const l=_u({apiRef:n,columnTypes:M3,columnsToUpsert:t.columns,initialState:(r=t.initialState)==null?void 0:r.columns,columnVisibilityModel:(o=(s=t.columnVisibilityModel)!=null?s:(i=t.initialState)==null||(i=i.columns)==null?void 0:i.columnVisibilityModel)!=null?o:{},keepOnlyColumnsToUpsert:!0});return S({},e,{columns:l})};function F0e(e,t){var n,r;const o=eo(e,"useGridColumns"),s=M3,i=u.useRef(t.columns),l=u.useRef(s);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:si,changeEvent:"columnVisibilityModelChange"});const a=u.useCallback(T=>{o.debug("Updating columns state."),e.current.setState(eD(T)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",T.orderedFields)},[o,e]),c=u.useCallback(T=>Jd(e)[T],[e]),f=u.useCallback(()=>Li(e),[e]),p=u.useCallback(()=>Ar(e),[e]),h=u.useCallback((T,$=!0)=>($?Ar(e):Li(e)).findIndex(j=>j.field===T),[e]),y=u.useCallback(T=>{const $=h(T);return Td(e)[$]},[e,h]),v=u.useCallback(T=>{si(e)!==T&&(e.current.setState(F=>S({},F,{columns:_u({apiRef:e,columnTypes:s,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:T,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,s]),m=u.useCallback(T=>{const $=_u({apiRef:e,columnTypes:s,columnsToUpsert:T,initialState:void 0,keepOnlyColumnsToUpsert:!1});a($)},[e,a,s]),C=u.useCallback((T,$)=>{var F;const j=si(e),A=(F=j[T])!=null?F:!0;if($!==A){const N=S({},j,{[T]:$});e.current.setColumnVisibilityModel(N)}},[e]),w=u.useCallback(T=>ml(e).findIndex(F=>F===T),[e]),b=u.useCallback((T,$)=>{const F=ml(e),j=w(T);if(j===$)return;o.debug(`Moving column ${T} to index ${$}`);const A=[...F],N=A.splice(j,1)[0];A.splice($,0,N),a(S({},yc(e.current.state),{orderedFields:A}));const H={column:e.current.getColumn(T),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(T),oldIndex:j};e.current.publishEvent("columnIndexChange",H)},[e,o,a,w]),x=u.useCallback((T,$)=>{var F,j;o.debug(`Updating column ${T} width to ${$}`);const A=yc(e.current.state),N=A.lookup[T],H=S({},N,{width:$,hasBeenResized:!0});a(cS(S({},A,{lookup:S({},A.lookup,{[T]:H})}),(F=(j=e.current.getRootDimensions())==null?void 0:j.viewportInnerSize.width)!=null?F:0)),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(T),colDef:H,width:$})},[e,o,a]),P={getColumn:c,getAllColumns:f,getColumnIndex:h,getColumnPosition:y,getVisibleColumns:p,getColumnIndexRelativeToVisibleColumns:w,updateColumns:m,setColumnVisibilityModel:v,setColumnVisibility:C,setColumnWidth:x},M={setColumnIndex:b};Lt(e,P,"public"),Lt(e,M,t.signature===Fi.DataGrid?"private":"public");const E=u.useCallback((T,$)=>{var F,j;const A={},N=si(e);(!$.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((F=(j=t.initialState)==null||(j=j.columns)==null?void 0:j.columnVisibilityModel)!=null?F:{}).length>0||Object.keys(N).length>0)&&(A.columnVisibilityModel=N),A.orderedFields=ml(e);const K=Li(e),Y={};return K.forEach(te=>{if(te.hasBeenResized){const Q={};I3.forEach(X=>{let J=te[X];J===1/0&&(J=-1),Q[X]=J}),Y[te.field]=Q}}),Object.keys(Y).length>0&&(A.dimensions=Y),S({},T,{columns:A})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),k=u.useCallback((T,$)=>{var F;const j=(F=$.stateToRestore.columns)==null?void 0:F.columnVisibilityModel,A=$.stateToRestore.columns;if(j==null&&A==null)return T;const N=_u({apiRef:e,columnTypes:s,columnsToUpsert:[],initialState:A,columnVisibilityModel:j,keepOnlyColumnsToUpsert:!1});return e.current.setState(eD(N)),A!=null&&e.current.publishEvent("columnsChange",N.orderedFields),T},[e,s]),R=u.useCallback((T,$)=>{if($===Ac.columns){var F;const j=t.slots.columnsPanel;return D.jsx(j,S({},(F=t.slotProps)==null?void 0:F.columnsPanel))}return T},[t.slots.columnsPanel,(r=t.slotProps)==null?void 0:r.columnsPanel]),O=u.useCallback(T=>t.disableColumnSelector?T:[...T,"columnMenuColumnsItem"],[t.disableColumnSelector]);mr(e,"columnMenu",O),mr(e,"exportState",E),mr(e,"restoreState",k),mr(e,"preferencePanel",R);const _=u.useRef(null);dt(e,"viewportInnerSizeChange",T=>{_.current!==T.width&&(_.current=T.width,a(cS(yc(e.current.state),T.width)))});const B=u.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const T=_u({apiRef:e,columnTypes:s,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});a(T)},[e,o,a,s]);OE(e,"hydrateColumns",B);const z=u.useRef(!0);u.useEffect(()=>{if(z.current){z.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),i.current===t.columns&&l.current===s)return;const T=_u({apiRef:e,columnTypes:s,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});i.current=t.columns,l.current=s,a(T)},[o,e,a,t.columns,s]),u.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const N0e=.7,B0e=1.3,_3={compact:N0e,comfortable:B0e,standard:1},z0e=(e,t)=>S({},e,{density:{value:t.density,factor:_3[t.density]}}),V0e=(e,t)=>{const n=eo(e,"useDensity"),r=u.useCallback(s=>{n.debug(`Set grid density to ${s}`),e.current.setState(i=>{const l=xE(i),a={value:s,factor:_3[s]};return wc(l,a)?i:S({},i,{density:a})}),e.current.forceUpdate()},[n,e]);u.useEffect(()=>{e.current.setDensity(t.density)},[e,t.density]),Lt(e,{setDensity:r},"public")};function j0e(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 T3=({apiRef:e,options:t})=>{const n=Li(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)},H0e=({apiRef:e})=>{var t,n;const r=eme(e),o=ti(e),s=e.current.getSelectedRows(),i=r.filter(f=>o[f].type!=="footer"),l=ef(e),a=(l==null||(t=l.top)==null?void 0:t.map(f=>f.id))||[],c=(l==null||(n=l.bottom)==null?void 0:n.map(f=>f.id))||[];return i.unshift(...a),i.push(...c),s.size>0?i.filter(f=>s.has(f)):i},U0e=(e,t)=>{const n=eo(e,"useGridCsvExport"),r=t.unstable_ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,s=u.useCallback((c={})=>{var f,p,h;n.debug("Get data as CSV");const y=T3({apiRef:e,options:c}),m=((f=c.getRowsToExport)!=null?f:H0e)({apiRef:e});return I0e({columns:y,rowIds:m,delimiterCharacter:c.delimiter||",",includeHeaders:(p=c.includeHeaders)!=null?p:!0,includeColumnGroupsHeaders:(h=c.includeColumnGroupsHeaders)!=null?h:!0,ignoreValueFormatter:o,apiRef:e})},[n,e,o]),i=u.useCallback(c=>{n.debug("Export data as CSV");const f=s(c),p=new Blob([c!=null&&c.utf8WithBom?new Uint8Array([239,187,191]):"",f],{type:"text/csv"});j0e(p,"csv",c==null?void 0:c.fileName)},[n,s]);Lt(e,{getDataAsCsv:s,exportDataAsCsv:i},"public");const a=u.useCallback((c,f)=>{var p;return(p=f.csvOptions)!=null&&p.disableToolbarButton?c:[...c,{component:D.jsx(g1e,{options:f.csvOptions}),componentName:"csvExport"}]},[]);mr(e,"exportMenu",a)},W0e=(e,t)=>{var n,r;const o=S({},t3(t.autoPageSize),(n=t.paginationModel)!=null?n:(r=t.initialState)==null||(r=r.pagination)==null?void 0:r.paginationModel);return n3(o.pageSize,t.signature),S({},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=e3(e,i);n&&((n==null?void 0:n.page)!==s.page||(n==null?void 0:n.pageSize)!==s.pageSize)&&(s=n);const a=uve(s.page,l);return a!==s.page&&(s=S({},s,{page:a})),n3(s.pageSize,t),{paginationModel:s}},G0e=(e,t)=>{var n;const r=eo(e,"useGridPagination"),o=ot(e,g0),s=ot(e,tf),i=Math.floor(t.rowHeight*s);e.current.registerControlState({stateId:"pagination",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:Es,changeEvent:"paginationModelChange"});const l=u.useCallback(m=>{const C=Es(e);m!==C.page&&(r.debug(`Setting page to ${m}`),e.current.setPaginationModel({page:m,pageSize:C.pageSize}))},[e,r]),a=u.useCallback(m=>{const C=Es(e);m!==C.pageSize&&(r.debug(`Setting page size to ${m}`),e.current.setPaginationModel({pageSize:m,page:C.page}))},[e,r]),c=u.useCallback(m=>{var C;const w=Es(e);m!==w&&(r.debug("Setting 'paginationModel' to",m),e.current.updateControlState("pagination",Jg((C=t.rowCount)!=null?C:o,t.signature,m),"setPaginationModel"),e.current.forceUpdate())},[e,r,t.rowCount,t.signature,o]);Lt(e,{setPage:l,setPageSize:a,setPaginationModel:c},"public");const p=u.useCallback((m,C)=>{var w;const b=Es(e);return!C.exportOnlyDirtyModels||t.paginationModel!=null||((w=t.initialState)==null||(w=w.pagination)==null?void 0:w.paginationModel)!=null||b.page!==0&&b.pageSize!==cve(t.autoPageSize)?S({},m,{pagination:S({},m.pagination,{paginationModel:b})}):m},[e,t.paginationModel,(n=t.initialState)==null||(n=n.pagination)==null?void 0:n.paginationModel,t.autoPageSize]),h=u.useCallback((m,C)=>{var w,b,x;const P=(w=C.stateToRestore.pagination)!=null&&w.paginationModel?S({},t3(t.autoPageSize),(b=C.stateToRestore.pagination)==null?void 0:b.paginationModel):Es(e);return e.current.updateControlState("pagination",Jg((x=t.rowCount)!=null?x:o,t.signature,P),"stateRestorePreProcessing"),m},[e,t.autoPageSize,t.rowCount,t.signature,o]);mr(e,"exportState",p),mr(e,"restoreState",h);const y=()=>{var m;const C=Es(e);(m=e.current.virtualScrollerRef)!=null&&m.current&&e.current.scrollToIndexes({rowIndex:C.page*C.pageSize}),e.current.forceUpdate()},v=u.useCallback(()=>{const m=e.current.getRootDimensions();if(!t.autoPageSize||!m)return;const C=z5(e),w=Math.floor((m.viewportInnerSize.height-C.top-C.bottom)/i);e.current.setPageSize(w)},[e,t.autoPageSize,i]);dt(e,"viewportInnerSizeChange",v),dt(e,"paginationModelChange",y),u.useEffect(()=>{},[t.rowCount,t.paginationMode]),u.useEffect(()=>{var m;e.current.updateControlState("pagination",Jg((m=t.rowCount)!=null?m:o,t.signature,t.paginationModel))},[e,t.paginationModel,t.rowCount,t.paginationMode,o,t.signature]),u.useEffect(()=>{v()},[v])};function K0e(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function q0e(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 Y0e=(e,t)=>{const n=eo(e,"useGridPrintExport"),r=u.useRef(null),o=u.useRef(null),s=u.useRef({}),i=u.useRef([]);u.useEffect(()=>{r.current=pn(e.current.rootElementRef.current)},[e]);const l=u.useCallback((v,m,C)=>new Promise(w=>{const b=T3({apiRef:e,options:{fields:v,allColumns:m}}).map(M=>M.field),x=Li(e),P={};x.forEach(M=>{P[M.field]=b.includes(M.field)}),C&&(P[nf.field]=!0),e.current.setColumnVisibilityModel(P),w()}),[e]),a=u.useCallback(v=>{const C=v({apiRef:e}).map(w=>e.current.getRow(w));e.current.setRows(C)},[e]),c=u.useCallback((v,m)=>{var C,w;const b=S({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},m),x=v.contentDocument;if(!x)return;const P=gh(e.current.state),M=e.current.rootElementRef.current,E=M.cloneNode(!0),k=E.querySelector(`.${ue.main}`);k.style.overflow="visible",E.style.contain="size";const O=E.querySelector(`.${ue.columnHeaders}`).querySelector(`.${ue.columnHeadersInner}`);O.style.width="100%";let _=((C=M.querySelector(`.${ue.toolbarContainer}`))==null?void 0:C.offsetHeight)||0,L=((w=M.querySelector(`.${ue.footerContainer}`))==null?void 0:w.offsetHeight)||0;if(b.hideToolbar){var B;(B=E.querySelector(`.${ue.toolbarContainer}`))==null||B.remove(),_=0}if(b.hideFooter){var z;(z=E.querySelector(`.${ue.footerContainer}`))==null||z.remove(),L=0}const T=P.currentPageTotalHeight+DE(e,t.columnHeaderHeight)+_+L;if(E.style.height=`${T}px`,E.style.boxSizing="content-box",m!=null&&m.getRowsToExport){const A=E.querySelector(`.${ue.footerContainer}`);A.style.position="absolute",A.style.width="100%",A.style.top=`${T-L}px`}const $=document.createElement("div");$.appendChild(E),x.body.innerHTML=$.innerHTML;const F=typeof b.pageStyle=="function"?b.pageStyle():b.pageStyle;if(typeof F=="string"){const A=x.createElement("style");A.appendChild(x.createTextNode(F)),x.head.appendChild(A)}b.bodyClassName&&x.body.classList.add(...b.bodyClassName.split(" "));const j=[];if(b.copyStyles){const A=M.getRootNode(),H=(A.constructor.name==="ShadowRoot"?A:r.current).querySelectorAll("style, link[rel='stylesheet']");for(let K=0;K<H.length;K+=1){const Y=H[K];if(Y.tagName==="STYLE"){const te=x.createElement(Y.tagName),Q=Y.sheet;if(Q){let X="";for(let J=0;J<Q.cssRules.length;J+=1)typeof Q.cssRules[J].cssText=="string"&&(X+=`${Q.cssRules[J].cssText}\r
|
|
611
|
-
`);te.appendChild(x.createTextNode(X)),x.head.appendChild(te)}}else if(Y.getAttribute("href")){const te=x.createElement(Y.tagName);for(let Q=0;Q<Y.attributes.length;Q+=1){const X=Y.attributes[Q];X&&te.setAttribute(X.nodeName,X.nodeValue||"")}j.push(new Promise(Q=>{te.addEventListener("load",()=>Q())})),x.head.appendChild(te)}}}Promise.all(j).then(()=>{v.contentWindow.print()})},[e,r,t.columnHeaderHeight]),f=u.useCallback(v=>{var m;r.current.body.removeChild(v),e.current.restoreState(o.current||{}),(m=o.current)!=null&&(m=m.columns)!=null&&m.columnVisibilityModel||e.current.setColumnVisibilityModel(s.current),e.current.unstable_setVirtualization(!0),e.current.setRows(i.current),o.current=null,s.current={},i.current=[]},[e]),h={exportDataAsPrint:u.useCallback(v=>rt(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=si(e),i.current=e.current.getSortedRows(),t.pagination){const C=L5(e),w={page:0,pageSize:C};e.current.updateControlState("pagination",Jg(C,"DataGridPro",w)),e.current.forceUpdate()}yield l(v==null?void 0:v.fields,v==null?void 0:v.allColumns,v==null?void 0:v.includeCheckboxes),v!=null&&v.getRowsToExport&&a(v.getRowsToExport),e.current.unstable_setVirtualization(!1),yield K0e();const m=q0e(v==null?void 0:v.fileName);m.onload=()=>{c(m,v),m.contentWindow.matchMedia("print").addEventListener("change",w=>{w.matches===!1&&f(m)})},r.current.body.appendChild(m)}),[t,n,e,c,f,l,a])};Lt(e,h,"public");const y=u.useCallback((v,m)=>{var C;return(C=m.printOptions)!=null&&C.disableToolbarButton?v:[...v,{component:D.jsx(v1e,{options:m.printOptions}),componentName:"printExport"}]},[]);mr(e,"exportMenu",y)},Q0e=(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 S({},e,{filter:{filterModel:y3(i,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},X0e=e=>e.filteredRowsLookup;function tD(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function Z0e(){return d0(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=u.useCallback(()=>{e.current.setState(_=>{const L=Or(_,e.current.instanceId),B=t.filterMode==="client"?B1e(L,e,t.disableEval):null,z=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:B,filterModel:L!=null?L:hh()}),T=S({},_,{filter:S({},_.filter,z)}),$=tD(e,T);return S({},T,{visibleRowsLookup:$})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.disableEval]),i=u.useCallback((_,L)=>L==null||L.filterable===!1||t.disableColumnFilter?_:[..._,"columnMenuFilterItem"],[t.disableColumnFilter]),l=u.useCallback(()=>{s(),e.current.forceUpdate()},[e,s]),a=u.useCallback(_=>{const L=Or(e),B=[...L.items],z=B.findIndex(T=>T.id===_.id);z===-1?B.push(_):B[z]=_,e.current.setFilterModel(S({},L,{items:B}),"upsertFilterItem")},[e]),c=u.useCallback(_=>{const L=Or(e),B=[...L.items];_.forEach(z=>{const T=_.findIndex($=>$.id===z.id);T===-1?B.push(z):B[T]=z}),e.current.setFilterModel(S({},L,{items:_}),"upsertFilterItems")},[e]),f=u.useCallback(_=>{const L=Or(e),B=L.items.filter(z=>z.id!==_.id);B.length!==L.items.length&&e.current.setFilterModel(S({},L,{items:B}),"deleteFilterItem")},[e]),p=u.useCallback((_,L,B)=>{if(o.debug("Displaying filter panel"),_){const z=Or(e),T=z.items.filter(A=>{var N;if(A.value!==void 0)return!(Array.isArray(A.value)&&A.value.length===0);const K=(N=e.current.getColumn(A.field).filterOperators)==null?void 0:N.find(te=>te.value===A.operator);return!(typeof(K==null?void 0:K.requiresFilterValue)=="undefined"?!0:K==null?void 0:K.requiresFilterValue)});let $;const F=T.find(A=>A.field===_),j=e.current.getColumn(_);F?$=T:t.disableMultipleColumnsFiltering?$=[iS({field:_,operator:j.filterOperators[0].value},e)]:$=[...T,iS({field:_,operator:j.filterOperators[0].value},e)],e.current.setFilterModel(S({},z,{items:$}))}e.current.showPreferences(Ac.filters,L,B)},[e,o,t.disableMultipleColumnsFiltering]),h=u.useCallback(()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()},[e,o]),y=u.useCallback(_=>{const L=Or(e);L.logicOperator!==_&&e.current.setFilterModel(S({},L,{logicOperator:_}),"changeLogicOperator")},[e]),v=u.useCallback(_=>{const L=Or(e);wc(L.quickFilterValues,_)||e.current.setFilterModel(S({},L,{quickFilterValues:[..._]}))},[e]),m=u.useCallback((_,L)=>{Or(e)!==_&&(o.debug("Setting filter model"),e.current.updateControlState("filter",HO(_,t.disableMultipleColumnsFiltering,e),L),e.current.unstable_applyFilters())},[e,o,t.disableMultipleColumnsFiltering]),C={setFilterLogicOperator:y,unstable_applyFilters:l,deleteFilterItem:f,upsertFilterItem:a,upsertFilterItems:c,setFilterModel:m,showFilterPanel:p,hideFilterPanel:h,setQuickFilterValues:v,ignoreDiacritics:t.ignoreDiacritics};Lt(e,C,"public");const w=u.useCallback((_,L)=>{var B;const z=Or(e);return!L.exportOnlyDirtyModels||t.filterModel!=null||((B=t.initialState)==null||(B=B.filter)==null?void 0:B.filterModel)!=null||!wc(z,hh())?S({},_,{filter:{filterModel:z}}):_},[e,t.filterModel,(n=t.initialState)==null||(n=n.filter)==null?void 0:n.filterModel]),b=u.useCallback((_,L)=>{var B;const z=(B=L.stateToRestore.filter)==null?void 0:B.filterModel;return z==null?_:(e.current.updateControlState("filter",HO(z,t.disableMultipleColumnsFiltering,e),"restoreState"),S({},_,{callbacks:[..._.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),x=u.useCallback((_,L)=>{if(L===Ac.filters){var B;const z=t.slots.filterPanel;return D.jsx(z,S({},(B=t.slotProps)==null?void 0:B.filterPanel))}return _},[t.slots.filterPanel,(r=t.slotProps)==null?void 0:r.filterPanel]),{getRowId:P}=t,M=gE(Z0e),E=u.useCallback(_=>{if(t.filterMode!=="client"||!_.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const L=ca(e),B={},{isRowMatchingFilters:z}=_,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=P?P(H):H.id;z(H,void 0,$);const Y=V1e([$.passingFilterItems],[$.passingQuickFilterValues],_.filterModel,e,T);B[K]=Y}const j="auto-generated-group-footer-root";return L[j]&&(B[j]=!0),{filteredRowsLookup:B,filteredDescendantCountLookup:{}}},[e,t.filterMode,P,M]);mr(e,"columnMenu",i),mr(e,"exportState",w),mr(e,"restoreState",b),mr(e,"preferencePanel",x),my(e,Lc,"filtering",E),my(e,Lc,"visibleRowsLookupCreation",X0e);const k=u.useCallback(()=>{o.debug("onColUpdated - GridColumns changed, applying filters");const _=Or(e),L=zhe(e),B=_.items.filter(z=>z.field&&L[z.field]);B.length<_.items.length&&e.current.setFilterModel(S({},_,{items:B}))},[e,o]),R=u.useCallback(_=>{_==="filtering"&&e.current.unstable_applyFilters()},[e]),O=u.useCallback(()=>{e.current.setState(_=>S({},_,{visibleRowsLookup:tD(e,_)})),e.current.forceUpdate()},[e]);dt(e,"rowsSet",s),dt(e,"columnsChange",k),dt(e,"activeStrategyProcessorChange",R),dt(e,"rowExpansionChange",O),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])},ebe=e=>S({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),tbe=(e,t)=>{const n=eo(e,"useGridFocus"),r=u.useRef(null),o=u.useCallback((k,R)=>{k&&e.current.getRow(k.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(k.id,k.field),R)},[e]),s=u.useCallback((k,R)=>{const O=jo(e);(O==null?void 0:O.id)===k&&(O==null?void 0:O.field)===R||(e.current.setState(_=>(n.debug(`Focusing on cell with id=${k} and field=${R}`),S({},_,{tabIndex:{cell:{id:k,field:R},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:k,field:R},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(k)&&(O&&o(O,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(k,R))))},[e,n,o]),i=u.useCallback((k,R={})=>{const O=jo(e);o(O,R),e.current.setState(_=>(n.debug(`Focusing on column header with colIndex=${k}`),S({},_,{tabIndex:{columnHeader:{field:k},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:k},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),l=u.useCallback((k,R={})=>{const O=jo(e);o(O,R),e.current.setState(_=>(n.debug(`Focusing on column header filter with colIndex=${k}`),S({},_,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:k},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:k},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),a=u.useCallback((k,R,O={})=>{const _=jo(e);_&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(_.id,_.field),O),e.current.setState(L=>S({},L,{tabIndex:{columnGroupHeader:{field:k,depth:R},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:k,depth:R},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),c=u.useCallback(()=>iy(e),[e]),f=u.useCallback((k,R,O)=>{let _=e.current.getColumnIndex(R);const L=Ar(e),B=py(e,{pagination:t.pagination,paginationMode:t.paginationMode}),z=ef(e),T=[].concat(z.top||[],B.rows,z.bottom||[]);let $=T.findIndex(N=>N.id===k);O==="right"?_+=1:O==="left"?_-=1:$+=1,_>=L.length?($+=1,$<T.length&&(_=0)):_<0&&($-=1,$>=0&&(_=L.length-1)),$=$d($,0,T.length-1);const F=T[$];if(!F)return;const j=e.current.unstable_getCellColSpanInfo(F.id,_);j&&j.spannedByColSpan&&(O==="left"||O==="below"?_=j.leftVisibleCellIndex:O==="right"&&(_=j.rightVisibleCellIndex)),_=$d(_,0,L.length-1);const A=L[_];e.current.setCellFocus(F.id,A.field)},[e,t.pagination,t.paginationMode]),p=u.useCallback(({id:k,field:R})=>{e.current.setCellFocus(k,R)},[e]),h=u.useCallback((k,R)=>{R.key==="Enter"||R.key==="Tab"||R.key==="Shift"||dy(R.key)||e.current.setCellFocus(k.id,k.field)},[e]),y=u.useCallback(({field:k},R)=>{R.target===R.currentTarget&&e.current.setColumnHeaderFocus(k,R)},[e]),v=u.useCallback(({fields:k,depth:R},O)=>{if(O.target!==O.currentTarget)return;const _=iy(e);_!==null&&_.depth===R&&k.includes(_.field)||e.current.setColumnGroupHeaderFocus(k[0],R,O)},[e]),m=u.useCallback((k,R)=>{var O;(O=R.relatedTarget)!=null&&O.className.includes(ue.columnHeader)||(n.debug("Clearing focus"),e.current.setState(_=>S({},_,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),C=u.useCallback(k=>{r.current=k},[]),w=u.useCallback(k=>{const R=r.current;r.current=null;const O=jo(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:k,cell:R}))return;if(!O){R&&e.current.setCellFocus(R.id,R.field);return}if((R==null?void 0:R.id)===O.id&&(R==null?void 0:R.field)===O.field)return;const L=e.current.getCellElement(O.id,O.field);L!=null&&L.contains(k.target)||(R?e.current.setCellFocus(R.id,R.field):(e.current.setState(B=>S({},B,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),o(O,k)))},[e,o]),b=u.useCallback(k=>{if(k.cellMode==="view")return;const R=jo(e);((R==null?void 0:R.id)!==k.id||(R==null?void 0:R.field)!==k.field)&&e.current.setCellFocus(k.id,k.field)},[e]),x=u.useCallback(()=>{const k=jo(e);k&&!e.current.getRow(k.id)&&e.current.setState(R=>S({},R,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[e]),P=Ye(()=>{const k=jo(e);if(!k)return;const R=py(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(R.rows.find(L=>L.id===k.id))return;const _=Ar(e);e.current.setState(L=>S({},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:c};Lt(e,M,"public"),Lt(e,E,"private"),u.useEffect(()=>{const k=pn(e.current.rootElementRef.current);return k.addEventListener("mouseup",w),()=>{k.removeEventListener("mouseup",w)}},[e,w]),dt(e,"columnHeaderBlur",m),dt(e,"cellDoubleClick",p),dt(e,"cellMouseDown",C),dt(e,"cellKeyDown",h),dt(e,"cellModeChange",b),dt(e,"columnHeaderFocus",y),dt(e,"columnGroupHeaderFocus",v),dt(e,"rowsSet",x),dt(e,"paginationModelChange",P)};function nbe(e,t){const n=ef(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const oC=({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},sC=({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},rbe=(e,t)=>{const n=eo(e,"useGridKeyboardNavigation"),r=Uc(e,t).rows,o=vn(),s=u.useMemo(()=>nbe(e,r),[e,r]),i=t.signature!=="DataGrid"&&t.unstable_headerFilters,l=u.useCallback((w,b,x="left")=>{const P=Va(e),M=e.current.unstable_getCellColSpanInfo(b,w);M&&M.spannedByColSpan&&(x==="left"?w=M.leftVisibleCellIndex:x==="right"&&(w=M.rightVisibleCellIndex));const E=P.findIndex(R=>R.id===b);n.debug(`Navigating to cell row ${E}, col ${w}`),e.current.scrollToIndexes({colIndex:w,rowIndex:E});const k=e.current.getVisibleColumns()[w].field;e.current.setCellFocus(b,k)},[e,n]),a=u.useCallback((w,b)=>{n.debug(`Navigating to header col ${w}`),e.current.scrollToIndexes({colIndex:w});const x=e.current.getVisibleColumns()[w].field;e.current.setColumnHeaderFocus(x,b)},[e,n]),c=u.useCallback((w,b)=>{n.debug(`Navigating to header filter col ${w}`),e.current.scrollToIndexes({colIndex:w});const x=e.current.getVisibleColumns()[w].field;e.current.setColumnHeaderFilterFocus(x,b)},[e,n]),f=u.useCallback((w,b,x)=>{n.debug(`Navigating to header col ${w}`),e.current.scrollToIndexes({colIndex:w});const{field:P}=e.current.getVisibleColumns()[w];e.current.setColumnGroupHeaderFocus(P,b,x)},[e,n]),p=u.useCallback(w=>{var b;return(b=s[w])==null?void 0:b.id},[s]),h=u.useCallback((w,b)=>{const x=b.currentTarget.querySelector(`.${ue.columnHeaderTitleContainerContent}`);if(!!x&&x.contains(b.target)&&w.field!==nf.field||!e.current.getRootDimensions())return;const E=e.current.getViewportPageSize(),k=w.field?e.current.getColumnIndex(w.field):0,R=s.length>0?0:null,O=s.length-1,_=0,L=Ar(e).length-1,B=Wh(e);let z=!0;switch(b.key){case"ArrowDown":{R!==null&&(i?c(k,b):l(k,p(R)));break}case"ArrowRight":{const T=sC({currentColIndex:k,firstColIndex:_,lastColIndex:L,direction:o.direction});T!==null&&a(T,b);break}case"ArrowLeft":{const T=oC({currentColIndex:k,firstColIndex:_,lastColIndex:L,direction:o.direction});T!==null&&a(T,b);break}case"ArrowUp":{B>0&&f(k,B-1,b);break}case"PageDown":{R!==null&&O!==null&&l(k,p(Math.min(R+E,O)));break}case"Home":{a(_,b);break}case"End":{a(L,b);break}case"Enter":{(b.ctrlKey||b.metaKey)&&e.current.toggleColumnMenu(w.field);break}case" ":break;default:z=!1}z&&b.preventDefault()},[e,s.length,i,c,l,p,o.direction,a,f]),y=u.useCallback((w,b)=>{if(!e.current.getRootDimensions())return;const P=Sve(e)===w.field,M=Pve(e)===w.field;if(P||M||!dy(b.key))return;const E=e.current.getViewportPageSize(),k=w.field?e.current.getColumnIndex(w.field):0,R=0,O=s.length-1,_=0,L=Ar(e).length-1;let B=!0;switch(b.key){case"ArrowDown":{const z=p(R);z!=null&&l(k,z);break}case"ArrowRight":{const z=sC({currentColIndex:k,firstColIndex:_,lastColIndex:L,direction:o.direction});z!==null&&c(z,b);break}case"ArrowLeft":{const z=oC({currentColIndex:k,firstColIndex:_,lastColIndex:L,direction:o.direction});z!==null?c(z,b):e.current.setColumnHeaderFilterFocus(w.field,b);break}case"ArrowUp":{a(k,b);break}case"PageDown":{O!==null&&l(k,p(Math.min(R+E,O)));break}case"Home":{c(_,b);break}case"End":{c(L,b);break}case" ":break;default:B=!1}B&&b.preventDefault()},[e,s.length,c,o.direction,a,l,p]),v=u.useCallback((w,b)=>{if(!e.current.getRootDimensions())return;const P=iy(e);if(P===null)return;const{field:M,depth:E}=P,{fields:k,depth:R,maxDepth:O}=w,_=e.current.getViewportPageSize(),L=e.current.getColumnIndex(M),B=M?e.current.getColumnIndex(M):0,z=0,T=s.length-1,$=0,F=Ar(e).length-1;let j=!0;switch(b.key){case"ArrowDown":{R===O-1?a(L,b):f(L,E+1,b);break}case"ArrowUp":{R>0&&f(L,E-1,b);break}case"ArrowRight":{const A=k.length-k.indexOf(M)-1;L+A+1<=F&&f(L+A+1,E,b);break}case"ArrowLeft":{const A=k.indexOf(M);L-A-1>=$&&f(L-A-1,E,b);break}case"PageDown":{T!==null&&l(B,p(Math.min(z+_,T)));break}case"Home":{f($,E,b);break}case"End":{f(F,E,b);break}case" ":break;default:j=!1}j&&b.preventDefault()},[e,s.length,a,f,l,p]),m=u.useCallback((w,b)=>{if(!b.currentTarget.contains(b.target))return;const x=e.current.getCellParams(w.id,w.field);if(x.cellMode===un.Edit||!dy(b.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:b,cell:x}))return;const M=e.current.getRootDimensions();if(s.length===0||!M)return;const E=o.direction,k=e.current.getViewportPageSize(),R=w.field?e.current.getColumnIndex(w.field):0,O=s.findIndex($=>$.id===w.id),_=0,L=s.length-1,B=0,z=Ar(e).length-1;let T=!0;switch(b.key){case"ArrowDown":{O<L&&l(R,p(O+1));break}case"ArrowUp":{O>_?l(R,p(O-1)):i?c(R,b):a(R,b);break}case"ArrowRight":{const $=sC({currentColIndex:R,firstColIndex:B,lastColIndex:z,direction:E});$!==null&&l($,p(O),E==="rtl"?"left":"right");break}case"ArrowLeft":{const $=oC({currentColIndex:R,firstColIndex:B,lastColIndex:z,direction:E});$!==null&&l($,p(O),E==="rtl"?"right":"left");break}case"Tab":{b.shiftKey&&R>B?l(R-1,p(O),"left"):!b.shiftKey&&R<z&&l(R+1,p(O),"right");break}case" ":{if(w.field===$E)break;const F=w.colDef;if(F&&F.type==="treeDataGroup")break;!b.shiftKey&&O<L&&l(R,p(Math.min(O+k,L)));break}case"PageDown":{O<L&&l(R,p(Math.min(O+k,L)));break}case"PageUp":{const $=Math.max(O-k,_);$!==O&&$>=_?l(R,p($)):a(R,b);break}case"Home":{b.ctrlKey||b.metaKey||b.shiftKey?l(B,p(_)):l(B,p(O));break}case"End":{b.ctrlKey||b.metaKey||b.shiftKey?l(z,p(L)):l(z,p(O));break}default:T=!1}T&&b.preventDefault()},[e,s,o.direction,l,p,i,c,a]),C=u.useCallback((w,{event:b})=>b.key===" "?!1:w,[]);mr(e,"canStartEditing",C),dt(e,"columnHeaderKeyDown",h),dt(e,"headerFilterKeyDown",y),dt(e,"columnGroupHeaderKeyDown",v),dt(e,"cellKeyDown",m)},obe=(e,t)=>{var n,r;return S({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},sbe=(e,t)=>{var n;const r=eo(e,"useGridPreferencesPanel"),o=u.useRef(),s=u.useRef(),i=u.useCallback(()=>{r.debug("Hiding Preferences Panel");const h=mh(e.current.state);h.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:h.openedPanelValue}),e.current.setState(y=>S({},y,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,r]),l=u.useCallback(()=>{s.current=setTimeout(()=>clearTimeout(o.current),0)},[]),a=u.useCallback(()=>{o.current=setTimeout(i,100)},[i]),c=u.useCallback((h,y,v)=>{r.debug("Opening Preferences Panel"),l(),e.current.setState(m=>S({},m,{preferencePanel:S({},m.preferencePanel,{open:!0,openedPanelValue:h,panelId:y,labelId:v})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:h}),e.current.forceUpdate()},[r,l,e]);Lt(e,{showPreferences:c,hidePreferences:a},"public");const f=u.useCallback((h,y)=>{var v;const m=mh(e.current.state);return!y.exportOnlyDirtyModels||((v=t.initialState)==null?void 0:v.preferencePanel)!=null||m.open?S({},h,{preferencePanel:m}):h},[e,(n=t.initialState)==null?void 0:n.preferencePanel]),p=u.useCallback((h,y)=>{const v=y.stateToRestore.preferencePanel;return v!=null&&e.current.setState(m=>S({},m,{preferencePanel:v})),h},[e]);mr(e,"exportState",f),mr(e,"restoreState",p),u.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(s.current)},[])},ibe=["id","field"],lbe=["id","field"],abe=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"),cbe=(e,t)=>{const[n,r]=u.useState({}),o=u.useRef(n),s=u.useRef({}),{processRowUpdate:i,onProcessRowUpdateError:l,cellModesModel:a,onCellModesModelChange:c}=t,f=T=>(...$)=>{t.editMode===Hi.Cell&&T(...$)},p=u.useCallback((T,$)=>{const F=e.current.getCellParams(T,$);if(!e.current.isCellEditable(F))throw new Error(`MUI: The cell with id=${T} and field=${$} is not editable.`)},[e]),h=u.useCallback((T,$,F)=>{if(e.current.getCellMode(T,$)!==F)throw new Error(`MUI: The cell with id=${T} and field=${$} is not in ${F} mode.`)},[e]),y=u.useCallback((T,$)=>{if(!T.isEditable||T.cellMode===un.Edit)return;const F=S({},T,{reason:Kl.cellDoubleClick});e.current.publishEvent("cellEditStart",F,$)},[e]),v=u.useCallback((T,$)=>{if(T.cellMode===un.View||e.current.getCellMode(T.id,T.field)===un.View)return;const F=S({},T,{reason:Zs.cellFocusOut});e.current.publishEvent("cellEditStop",F,$)},[e]),m=u.useCallback((T,$)=>{if(T.cellMode===un.Edit){if($.which===229)return;let F;if($.key==="Escape"?F=Zs.escapeKeyDown:$.key==="Enter"?F=Zs.enterKeyDown:$.key==="Tab"&&(F=$.shiftKey?Zs.shiftTabKeyDown:Zs.tabKeyDown,$.preventDefault()),F){const j=S({},T,{reason:F});e.current.publishEvent("cellEditStop",j,$)}}else if(T.isEditable){let F;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:$,cellParams:T,editMode:"cell"}))return;if(K5($)||($.ctrlKey||$.metaKey)&&$.key==="v"?F=Kl.printableKeyDown:$.key==="Enter"?F=Kl.enterKeyDown:($.key==="Delete"||$.key==="Backspace")&&(F=Kl.deleteKeyDown),F){const A=S({},T,{reason:F,key:$.key});e.current.publishEvent("cellEditStart",A,$)}}},[e]),C=u.useCallback(T=>{const{id:$,field:F,reason:j,key:A,colDef:N}=T,H={id:$,field:F};if(j===Kl.printableKeyDown)if(u.version.startsWith("17"))H.deleteValue=!0;else{const K=N.valueParser?N.valueParser(A):A;H.initialValue=K}else j===Kl.deleteKeyDown&&(H.deleteValue=!0);e.current.startCellEditMode(H)},[e]),w=u.useCallback(T=>{const{id:$,field:F,reason:j}=T;e.current.runPendingEditCellValueMutation($,F);let A;j===Zs.enterKeyDown?A="below":j===Zs.tabKeyDown?A="right":j===Zs.shiftTabKeyDown&&(A="left");const N=j==="escapeKeyDown";e.current.stopCellEditMode({id:$,field:F,ignoreModifications:N,cellToFocusAfter:A})},[e]);dt(e,"cellDoubleClick",f(y)),dt(e,"cellFocusOut",f(v)),dt(e,"cellKeyDown",f(m)),dt(e,"cellEditStart",f(C)),dt(e,"cellEditStop",f(w)),In(e,"cellEditStart",t.onCellEditStart),In(e,"cellEditStop",t.onCellEditStop);const b=u.useCallback((T,$)=>{const F=lo(e.current.state);return F[T]&&F[T][$]?un.Edit:un.View},[e]),x=Ye(T=>{const $=T!==t.cellModesModel;c&&$&&c(T,{}),!(t.cellModesModel&&$)&&(r(T),o.current=T,e.current.publishEvent("cellModesModelChange",T))}),P=u.useCallback((T,$,F)=>{const j=S({},o.current);if(F!==null)j[T]=S({},j[T],{[$]:S({},F)});else{const A=j[T],N=le(A,[$].map(yh));j[T]=N,Object.keys(j[T]).length===0&&delete j[T]}x(j)},[x]),M=u.useCallback((T,$,F)=>{e.current.setState(j=>{const A=S({},j.editRows);return F!==null?A[T]=S({},A[T],{[$]:S({},F)}):(delete A[T][$],Object.keys(A[T]).length===0&&delete A[T]),S({},j,{editRows:A})}),e.current.forceUpdate()},[e]),E=u.useCallback(T=>{const{id:$,field:F}=T,j=le(T,ibe);p($,F),h($,F,un.View),P($,F,S({mode:un.Edit},j))},[p,h,P]),k=Ye(T=>{const{id:$,field:F,deleteValue:j,initialValue:A}=T;let N=e.current.getCellValue($,F),H=!1;(j||A)&&(N=j?"":A,H=!0),M($,F,{value:N,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:H}),e.current.setCellFocus($,F)}),R=u.useCallback(T=>{const{id:$,field:F}=T,j=le(T,lbe);h($,F,un.Edit),P($,F,S({mode:un.View},j))},[h,P]),O=Ye(T=>rt(void 0,null,function*(){const{id:$,field:F,ignoreModifications:j,cellToFocusAfter:A="none"}=T;h($,F,un.Edit),e.current.runPendingEditCellValueMutation($,F);const N=()=>{M($,F,null),P($,F,null),A!=="none"&&e.current.moveFocusToRelativeCell($,F,A)};if(j){N();return}const H=lo(e.current.state),{error:K,isProcessingProps:Y}=H[$][F];if(K||Y){s.current[$][F].mode=un.Edit,P($,F,{mode:un.Edit});return}const te=e.current.getRowWithUpdatedValuesFromCellEditing($,F);if(i){const Q=X=>{s.current[$][F].mode=un.Edit,P($,F,{mode:un.Edit}),l?l(X):abe()};try{const X=e.current.getRow($);Promise.resolve(i(te,X)).then(J=>{e.current.updateRows([J]),N()}).catch(Q)}catch(X){Q(X)}}else e.current.updateRows([te]),N()})),_=u.useCallback(T=>rt(void 0,null,function*(){var $;const{id:F,field:j,value:A,debounceMs:N,unstable_skipValueParser:H}=T;p(F,j),h(F,j,un.Edit);const K=e.current.getColumn(j),Y=e.current.getRow(F);let te=A;K.valueParser&&!H&&(te=K.valueParser(A,e.current.getCellParams(F,j)));let Q=lo(e.current.state),X=S({},Q[F][j],{value:te,changeReason:N?"debouncedSetEditCellValue":"setEditCellValue"});if(K.preProcessEditCellProps){const J=A!==Q[F][j].value;X=S({},X,{isProcessingProps:!0}),M(F,j,X),X=yield Promise.resolve(K.preProcessEditCellProps({id:F,row:Y,props:X,hasChanged:J}))}return e.current.getCellMode(F,j)===un.View?!1:(Q=lo(e.current.state),X=S({},X,{isProcessingProps:!1}),X.value=K.preProcessEditCellProps?Q[F][j].value:te,M(F,j,X),Q=lo(e.current.state),!(($=Q[F])!=null&&($=$[j])!=null&&$.error))}),[e,p,h,M]),L=u.useCallback((T,$)=>{const F=e.current.getColumn($),j=lo(e.current.state),A=e.current.getRow(T);if(!j[T]||!j[T][$])return e.current.getRow(T);const{value:N}=j[T][$];return F.valueSetter?F.valueSetter({value:N,row:A}):S({},A,{[$]:N})},[e]),B={getCellMode:b,startCellEditMode:E,stopCellEditMode:R},z={setCellEditingEditCellValue:_,getRowWithUpdatedValuesFromCellEditing:L};Lt(e,B,"public"),Lt(e,z,"private"),u.useEffect(()=>{a&&x(a)},[a,x]),u.useEffect(()=>{const T=sy(e),$=s.current;s.current=J5(n),Object.entries(n).forEach(([F,j])=>{Object.entries(j).forEach(([A,N])=>{var H,K;const Y=((H=$[F])==null||(H=H[A])==null?void 0:H.mode)||un.View,te=(K=T[F])!=null?K:F;N.mode===un.Edit&&Y===un.View?k(S({id:te,field:A},N)):N.mode===un.View&&Y===un.Edit&&O(S({id:te,field:A},N))})})},[e,n,k,O])},ube=["id"],dbe=["id"],fbe=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"),pbe=(e,t)=>{const[n,r]=u.useState({}),o=u.useRef(n),s=u.useRef({}),i=u.useRef(null),l=u.useRef(null),{processRowUpdate:a,onProcessRowUpdateError:c,rowModesModel:f,onRowModesModelChange:p}=t,h=A=>(...N)=>{t.editMode===Hi.Row&&A(...N)},y=u.useCallback((A,N)=>{const H=e.current.getCellParams(A,N);if(!e.current.isCellEditable(H))throw new Error(`MUI: The cell with id=${A} and field=${N} is not editable.`)},[e]),v=u.useCallback((A,N)=>{if(e.current.getRowMode(A)!==N)throw new Error(`MUI: The row with id=${A} is not in ${N} mode.`)},[e]),m=u.useCallback((A,N)=>{if(!A.isEditable||e.current.getRowMode(A.id)===Cn.Edit)return;const H=e.current.getRowParams(A.id),K=S({},H,{field:A.field,reason:ql.cellDoubleClick});e.current.publishEvent("rowEditStart",K,N)},[e]),C=u.useCallback(A=>{l.current=A},[]),w=u.useCallback((A,N)=>{A.isEditable&&e.current.getRowMode(A.id)!==Cn.View&&(l.current=null,i.current=setTimeout(()=>{var H;if(i.current=null,((H=l.current)==null?void 0:H.id)!==A.id){if(!e.current.getRow(A.id)||e.current.getRowMode(A.id)===Cn.View)return;const K=e.current.getRowParams(A.id),Y=S({},K,{field:A.field,reason:rl.rowFocusOut});e.current.publishEvent("rowEditStop",Y,N)}}))},[e]);u.useEffect(()=>()=>{clearTimeout(i.current)},[]);const b=u.useCallback((A,N)=>{if(A.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=f0(e).filter(Y=>e.current.getColumn(Y).type===w0?!0:e.current.isCellEditable(e.current.getCellParams(A.id,Y)));if(N.shiftKey?A.field===K[0]&&(H=rl.shiftTabKeyDown):A.field===K[K.length-1]&&(H=rl.tabKeyDown),N.preventDefault(),!H){const Y=K.findIndex(Q=>Q===A.field),te=K[N.shiftKey?Y-1:Y+1];e.current.setCellFocus(A.id,te)}}if(H){const K=S({},e.current.getRowParams(A.id),{reason:H,field:A.field});e.current.publishEvent("rowEditStop",K,N)}}else if(A.isEditable){let H;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:N,cellParams:A,editMode:"row"}))return;if(K5(N)||(N.ctrlKey||N.metaKey)&&N.key==="v"?H=ql.printableKeyDown:N.key==="Enter"?H=ql.enterKeyDown:(N.key==="Delete"||N.key==="Backspace")&&(H=ql.deleteKeyDown),H){const Y=e.current.getRowParams(A.id),te=S({},Y,{field:A.field,key:N.key,reason:H});e.current.publishEvent("rowEditStart",te,N)}}},[e]),x=u.useCallback(A=>{const{id:N,field:H,reason:K,key:Y,columns:te}=A,Q={id:N,fieldToFocus:H};if(K===ql.printableKeyDown)if(u.version.startsWith("17"))Q.deleteValue=!!H;else{const X=te.find(J=>J.field===H);Q.initialValue=X.valueParser?X.valueParser(Y):Y}else K===ql.deleteKeyDown&&(Q.deleteValue=!!H);e.current.startRowEditMode(Q)},[e]),P=u.useCallback(A=>{const{id:N,reason:H,field:K}=A;e.current.runPendingEditCellValueMutation(N);let Y;H===rl.enterKeyDown?Y="below":H===rl.tabKeyDown?Y="right":H===rl.shiftTabKeyDown&&(Y="left");const te=H==="escapeKeyDown";e.current.stopRowEditMode({id:N,ignoreModifications:te,field:K,cellToFocusAfter:Y})},[e]);dt(e,"cellDoubleClick",h(m)),dt(e,"cellFocusIn",h(C)),dt(e,"cellFocusOut",h(w)),dt(e,"cellKeyDown",h(b)),dt(e,"rowEditStart",h(x)),dt(e,"rowEditStop",h(P)),In(e,"rowEditStart",t.onRowEditStart),In(e,"rowEditStop",t.onRowEditStop);const M=u.useCallback(A=>{if(t.editMode===Hi.Cell)return Cn.View;const N=lo(e.current.state);return N[A]&&Object.keys(N[A]).length>0?Cn.Edit:Cn.View},[e,t.editMode]),E=Ye(A=>{const N=A!==t.rowModesModel;p&&N&&p(A,{}),!(t.rowModesModel&&N)&&(r(A),o.current=A,e.current.publishEvent("rowModesModelChange",A))}),k=u.useCallback((A,N)=>{const H=S({},o.current);N!==null?H[A]=S({},N):delete H[A],E(H)},[E]),R=u.useCallback((A,N)=>{e.current.setState(H=>{const K=S({},H.editRows);return N!==null?K[A]=N:delete K[A],S({},H,{editRows:K})}),e.current.forceUpdate()},[e]),O=u.useCallback((A,N,H)=>{e.current.setState(K=>{const Y=S({},K.editRows);return H!==null?Y[A]=S({},Y[A],{[N]:S({},H)}):(delete Y[A][N],Object.keys(Y[A]).length===0&&delete Y[A]),S({},K,{editRows:Y})}),e.current.forceUpdate()},[e]),_=u.useCallback(A=>{const{id:N}=A,H=le(A,ube);v(N,Cn.View),k(N,S({mode:Cn.Edit},H))},[v,k]),L=Ye(A=>{const{id:N,fieldToFocus:H,deleteValue:K,initialValue:Y}=A,Q=ml(e).reduce((X,J)=>{if(!e.current.getCellParams(N,J).isEditable)return X;let Z=e.current.getCellValue(N,J),he=!1;return H===J&&(K||Y)&&(Z=K?"":Y,he=!0),X[J]={value:Z,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:he},X},{});R(N,Q),H&&e.current.setCellFocus(N,H)}),B=u.useCallback(A=>{const{id:N}=A,H=le(A,dbe);v(N,Cn.Edit),k(N,S({mode:Cn.View},H))},[v,k]),z=Ye(A=>{const{id:N,ignoreModifications:H,field:K,cellToFocusAfter:Y="none"}=A;e.current.runPendingEditCellValueMutation(N);const te=()=>{Y!=="none"&&K&&e.current.moveFocusToRelativeCell(N,K,Y),R(N,null),k(N,null)};if(H){te();return}const Q=lo(e.current.state),X=e.current.getRow(N);if(Object.values(Q[N]).some(he=>he.isProcessingProps)){s.current[N].mode=Cn.Edit;return}if(Object.values(Q[N]).some(he=>he.error)){s.current[N].mode=Cn.Edit,k(N,{mode:Cn.Edit});return}const Z=e.current.getRowWithUpdatedValuesFromRowEditing(N);if(a){const he=ne=>{s.current[N].mode=Cn.Edit,k(N,{mode:Cn.Edit}),c?c(ne):fbe()};try{Promise.resolve(a(Z,X)).then(ne=>{e.current.updateRows([ne]),te()}).catch(he)}catch(ne){he(ne)}}else e.current.updateRows([Z]),te()}),T=u.useCallback(A=>{const{id:N,field:H,value:K,debounceMs:Y,unstable_skipValueParser:te}=A;y(N,H);const Q=e.current.getColumn(H),X=e.current.getRow(N);let J=K;Q.valueParser&&!te&&(J=Q.valueParser(K,e.current.getCellParams(N,H)));let se=lo(e.current.state),Z=S({},se[N][H],{value:J,changeReason:Y?"debouncedSetEditCellValue":"setEditCellValue"});return Q.preProcessEditCellProps||O(N,H,Z),new Promise(he=>{const ne=[];if(Q.preProcessEditCellProps){const re=Z.value!==se[N][H].value;Z=S({},Z,{isProcessingProps:!0}),O(N,H,Z);const me=se[N],ce=le(me,[H].map(yh)),Se=Promise.resolve(Q.preProcessEditCellProps({id:N,row:X,props:Z,hasChanged:re,otherFieldsProps:ce})).then(ke=>{if(e.current.getRowMode(N)===Cn.View){he(!1);return}se=lo(e.current.state),ke=S({},ke,{isProcessingProps:!1}),ke.value=Q.preProcessEditCellProps?se[N][H].value:J,O(N,H,ke)});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=S({},me,{isProcessingProps:!0}),O(N,re,me),se=lo(e.current.state);const Se=se[N],ke=le(Se,[re].map(yh)),ae=Promise.resolve(ce.preProcessEditCellProps({id:N,row:X,props:me,hasChanged:!1,otherFieldsProps:ke})).then(Ie=>{if(e.current.getRowMode(N)===Cn.View){he(!1);return}Ie=S({},Ie,{isProcessingProps:!1}),O(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,y,O]),$=u.useCallback(A=>{const N=lo(e.current.state),H=e.current.getRow(A);if(!N[A])return e.current.getRow(A);let K=S({},H);return Object.entries(N[A]).forEach(([Y,te])=>{const Q=e.current.getColumn(Y);Q.valueSetter?K=Q.valueSetter({value:te.value,row:K}):K[Y]=te.value}),K},[e]),F={getRowMode:M,startRowEditMode:_,stopRowEditMode:B},j={setRowEditingEditCellValue:T,getRowWithUpdatedValuesFromRowEditing:$};Lt(e,F,"public"),Lt(e,j,"private"),u.useEffect(()=>{f&&E(f)},[f,E]),u.useEffect(()=>{const A=sy(e),N=s.current;s.current=J5(n),Object.entries(n).forEach(([H,K])=>{var Y,te;const Q=((Y=N[H])==null?void 0:Y.mode)||Cn.View,X=(te=A[H])!=null?te:H;K.mode===Cn.Edit&&Q===Cn.View?L(S({id:X},K)):K.mode===Cn.View&&Q===Cn.Edit&&z(S({id:X},K))})},[e,n,L,z])},hbe=e=>S({},e,{editRows:{}}),mbe=(e,t)=>{cbe(e,t),pbe(e,t);const n=u.useRef({}),{isCellEditable:r}=t,o=u.useCallback(h=>ph(h.rowNode)||!h.colDef.editable||!h.colDef.renderEditCell?!1:r?r(h):!0,[r]),s=(h,y,v,m)=>{if(!v){m();return}if(n.current[h]||(n.current[h]={}),n.current[h][y]){const[b]=n.current[h][y];clearTimeout(b)}const C=()=>{const[b]=n.current[h][y];clearTimeout(b),m(),delete n.current[h][y]},w=setTimeout(()=>{m(),delete n.current[h][y]},v);n.current[h][y]=[w,C]};u.useEffect(()=>{const h=n.current;return()=>{Object.entries(h).forEach(([y,v])=>{Object.keys(v).forEach(m=>{const[C]=h[y][m];clearTimeout(C),delete h[y][m]})})}},[]);const i=u.useCallback((h,y)=>{if(n.current[h]){if(!y)Object.keys(n.current[h]).forEach(v=>{const[,m]=n.current[h][v];m()});else if(n.current[h][y]){const[,v]=n.current[h][y];v()}}},[]),l=u.useCallback(h=>{const{id:y,field:v,debounceMs:m}=h;return new Promise(C=>{s(y,v,m,()=>rt(void 0,null,function*(){const w=t.editMode===Hi.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(y,v)===un.Edit){const b=yield w(h);C(b)}}))})},[e,t.editMode]),a=u.useCallback((h,y)=>t.editMode===Hi.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(h,y):e.current.getRowWithUpdatedValuesFromRowEditing(h),[e,t.editMode]),c=u.useCallback((h,y)=>{var v,m;return(v=(m=lo(e.current.state)[h])==null?void 0:m[y])!=null?v:null},[e]),f={isCellEditable:o,setEditCellValue:l,getRowWithUpdatedValues:a,unstable_getEditCellMeta:c},p={runPendingEditCellValueMutation:i};Lt(e,f,"public"),Lt(e,p,"private")},gbe=(e,t,n)=>(n.current.caches.rows=Xg({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),S({},e,{rows:B5({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),vbe=(e,t)=>{const n=eo(e,"useGridRows"),r=Uc(e,t),o=u.useRef(Date.now()),s=TE(),i=u.useCallback(z=>{const T=ca(e)[z];if(T)return T;const $=e.current.getRowNode(z);return $&&ph($)?{[od]:z}:null},[e]),l=t.getRowId,a=u.useCallback(z=>od in z?z[od]:l?l(z):z.id,[l]),c=u.useMemo(()=>r.rows.reduce((z,{id:T},$)=>(z[T]=$,z),{}),[r.rows]),f=u.useCallback(({cache:z,throttle:T})=>{const $=()=>{o.current=Date.now(),e.current.setState(j=>S({},j,{rows:B5({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:ti(e),previousTreeDepths:kO(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(s.clear(),e.current.caches.rows=z,!T){$();return}const F=t.throttleRowsMs-(Date.now()-o.current);if(F>0){s.start(F,$);return}$()},[t.throttleRowsMs,t.rowCount,t.loading,e,s]),p=u.useCallback(z=>{n.debug(`Updating all rows, new length ${z.length}`);const T=Xg({rows:z,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),$=e.current.caches.rows;T.rowsBeforePartialUpdates=$.rowsBeforePartialUpdates,f({cache:T,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,f,e]),h=u.useCallback(z=>{if(t.signature===Fi.DataGrid&&z.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(`
|
|
612
|
-
`));const T=[];z.forEach(F=>{const j=ay(F,t.getRowId,"A row was provided without id when calling updateRows():"),A=e.current.getRowNode(j);if((A==null?void 0:A.type)==="pinnedRow"){const N=e.current.caches.pinnedRows,H=N.idLookup[j];H&&(N.idLookup[j]=S({},H,F))}else T.push(F)});const $=ume({updates:T,getRowId:t.getRowId,previousCache:e.current.caches.rows});f({cache:$,throttle:!0})},[t.signature,t.getRowId,f,e]),y=u.useCallback(()=>{const z=yg(e),T=ca(e);return new Map(z.map($=>{var F;return[$,(F=T[$])!=null?F:{}]}))},[e]),v=u.useCallback(()=>h0(e),[e]),m=u.useCallback(()=>yg(e),[e]),C=u.useCallback(z=>c[z],[c]),w=u.useCallback((z,T)=>{const $=e.current.getRowNode(z);if(!$)throw new Error(`MUI: No row with id #${z} found`);if($.type!=="group")throw new Error("MUI: Only group nodes can be expanded or collapsed");const F=S({},$,{childrenExpanded:T});e.current.setState(j=>S({},j,{rows:S({},j.rows,{tree:S({},j.rows.tree,{[z]:F})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",F)},[e]),b=u.useCallback(z=>{var T;return(T=ti(e)[z])!=null?T:null},[e]),x=u.useCallback(({skipAutoGeneratedRows:z=!0,groupId:T,applySorting:$,applyFiltering:F})=>{const j=ti(e);let A;if($){const N=j[T];if(!N)return[];const H=bE(e);A=[];const K=H.findIndex(Y=>Y===T)+1;for(let Y=K;Y<H.length&&j[H[Y]].depth>N.depth;Y+=1){const te=H[Y];(!z||!ph(j[te]))&&A.push(te)}}else A=SE(j,T,z);if(F){const N=D5(e);A=A.filter(H=>N[H]!==!1)}return A},[e]),P=u.useCallback((z,T)=>{const $=e.current.getRowNode(z);if(!$)throw new Error(`MUI: No row with id #${z} found`);if($.parent!==ao)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if($.type!=="leaf")throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState(F=>{const j=ti(F,e.current.instanceId)[ao],A=j.children,N=A.findIndex(K=>K===z);if(N===-1||N===T)return F;n.debug(`Moving row ${z} to index ${T}`);const H=[...A];return H.splice(T,0,H.splice(N,1)[0]),S({},F,{rows:S({},F.rows,{tree:S({},F.rows.tree,{[ao]:S({},j,{children:H})})})})}),e.current.publishEvent("rowsSet")},[e,n]),M=u.useCallback((z,T)=>{if(t.signature===Fi.DataGrid&&T.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(`
|
|
613
|
-
`));if(T.length===0)return;if(m0(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const F=S({},ti(e)),j=S({},ca(e)),A=S({},sy(e)),N=F[ao],H=[...N.children];for(let Y=0;Y<T.length;Y+=1){const te=T[Y],Q=ay(te,t.getRowId,"A row was provided without id when calling replaceRows()."),[X]=H.splice(z+Y,1,Q);delete j[X],delete A[X],delete F[X];const J={id:Q,depth:0,parent:ao,type:"leaf",groupingKey:null};j[Q]=te,A[Q]=Q,F[Q]=J}F[ao]=S({},N,{children:H});const K=H.filter(Y=>F[Y].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=j,e.current.caches.rows.dataRowIdToIdLookup=A,e.current.setState(Y=>S({},Y,{rows:S({},Y.rows,{dataRowIdToModelLookup:j,dataRowIdToIdLookup:A,dataRowIds:K,tree:F})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),E={getRow:i,getRowId:a,getRowModels:y,getRowsCount:v,getAllRowIds:m,setRows:p,updateRows:h,getRowNode:b,getRowIndexRelativeToVisibleRows:C,unstable_replaceRows:M},k={setRowIndex:P,setRowChildrenExpansion:w,getRowGroupChildren:x},R=u.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let z;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?z=S({},e.current.caches.rows,{updates:{type:"full",rows:yg(e)}}):z=Xg({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),f({cache:z,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,f]),O=u.useCallback(z=>{z==="rowTreeCreation"&&R()},[R]),_=u.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==Whe(e)&&R()},[e,R]);dt(e,"activeStrategyProcessorChange",O),dt(e,"strategyAvailabilityChange",_);const L=u.useCallback(()=>{e.current.setState(z=>{const T=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:ti(z,e.current.instanceId),treeDepths:kO(z,e.current.instanceId),dataRowIds:yg(z,e.current.instanceId),dataRowIdToModelLookup:ca(z,e.current.instanceId),dataRowIdToIdLookup:sy(z,e.current.instanceId)});return S({},z,{rows:S({},z.rows,T,{totalTopLevelRowCount:N5({tree:T.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);OE(e,"hydrateRows",L),Lt(e,E,"public"),Lt(e,k,t.signature===Fi.DataGrid?"private":"public");const B=u.useRef(!0);u.useEffect(()=>{if(B.current){B.current=!1;return}const z=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,T=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,$=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(z){T||(e.current.setState(F=>S({},F,{rows:S({},F.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),$||(e.current.setState(F=>S({},F,{rows:S({},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])},ybe=e=>{const t={[ao]:S({},ame(),{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}},bbe=({previousTree:e,actions:t})=>{const n=S({},e),r={};for(let i=0;i<t.remove.length;i+=1){const l=t.remove[i];r[l]=!0,delete n[l]}for(let i=0;i<t.insert.length;i+=1){const l=t.insert[i];n[l]={id:l,depth:0,parent: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]=S({},o,{children:s}),{groupingName:Lc,tree:n,treeDepths:{0:s.length},dataRowIds:s}},wbe=e=>e.updates.type==="full"?ybe(e.updates.rows):bbe({previousTree:e.previousTree,actions:e.updates.actions}),Cbe=e=>{my(e,Lc,"rowTreeCreation",wbe)},$3=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],xbe=(e,t)=>{var n;return S({},e,{rowSelection:t.rowSelection?(n=$3(t.rowSelectionModel))!=null?n:[]:[]})},Sbe=(e,t)=>{const n=eo(e,"useGridSelection"),r=T=>(...$)=>{t.rowSelection&&T(...$)},o=u.useMemo(()=>$3(t.rowSelectionModel,Ss(e.current.state)),[e,t.rowSelectionModel]),s=u.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:Ss,changeEvent:"rowSelectionChange"});const{checkboxSelection:i,disableMultipleRowSelection:l,disableRowSelectionOnClick:a,isRowSelectable:c}=t,f=!l||i,p=Uc(e,t),h=u.useCallback(T=>{var $;let F=T;const j=($=s.current)!=null?$:T,A=e.current.isRowSelected(T);if(A){const N=$p(e),H=N.findIndex(Y=>Y===j),K=N.findIndex(Y=>Y===F);if(H===K)return;H>K?F=N[K+1]:F=N[K-1]}s.current=T,e.current.selectRowRange({startId:j,endId:F},!A)},[e]),y=u.useCallback(T=>{if(t.signature===Fi.DataGrid&&!t.checkboxSelection&&Array.isArray(T)&&T.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(`
|
|
614
|
-
`));Ss(e.current.state)!==T&&(n.debug("Setting selection model"),e.current.setState(F=>S({},F,{rowSelection:t.rowSelection?T:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),v=u.useCallback(T=>Ss(e.current.state).includes(T),[e]),m=u.useCallback(T=>{if(c&&!c(e.current.getRowParams(T)))return!1;const $=e.current.getRowNode(T);return!(($==null?void 0:$.type)==="footer"||($==null?void 0:$.type)==="pinnedRow")},[e,c]),C=u.useCallback(()=>mve(e),[e]),w=u.useCallback((T,$=!0,F=!1)=>{if(e.current.isRowSelectable(T))if(s.current=T,F)n.debug(`Setting selection for row ${T}`),e.current.setRowSelectionModel($?[T]:[]);else{n.debug(`Toggling selection for row ${T}`);const A=Ss(e.current.state).filter(H=>H!==T);$&&A.push(T),(A.length<2||f)&&e.current.setRowSelectionModel(A)}},[e,n,f]),b=u.useCallback((T,$=!0,F=!1)=>{n.debug("Setting selection for several rows");const j=T.filter(H=>e.current.isRowSelectable(H));let A;if(F)A=$?j:[];else{const H=S({},fy(e));j.forEach(K=>{$?H[K]=K:delete H[K]}),A=Object.values(H)}(A.length<2||f)&&e.current.setRowSelectionModel(A)},[e,n,f]),x=u.useCallback(({startId:T,endId:$},F=!0,j=!1)=>{if(!e.current.getRow(T)||!e.current.getRow($))return;n.debug(`Expanding selection from row ${T} to row ${$}`);const A=$p(e),N=A.indexOf(T),H=A.indexOf($),[K,Y]=N>H?[H,N]:[N,H],te=A.slice(K,Y+1);e.current.selectRows(te,F,j)},[e,n]),P={selectRow:w,setRowSelectionModel:y,getSelectedRows:C,isRowSelected:v,isRowSelectable:m},M={selectRows:b,selectRowRange:x};Lt(e,P,"public"),Lt(e,M,t.signature===Fi.DataGrid?"private":"public");const E=u.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const T=Ss(e.current.state),$=ca(e),F=S({},fy(e));let j=!1;T.forEach(A=>{$[A]||(delete F[A],j=!0)}),j&&e.current.setRowSelectionModel(Object.values(F))},[e,t.keepNonExistentRowsSelected]),k=u.useCallback((T,$)=>{const F=$.metaKey||$.ctrlKey,j=!i&&!F&&!Zme($),A=!f||j,N=e.current.isRowSelected(T);A?e.current.selectRow(T,j?!0:!N,!0):e.current.selectRow(T,!N,!1)},[e,f,i]),R=u.useCallback((T,$)=>{var F;if(a)return;const j=(F=$.target.closest(`.${ue.cell}`))==null?void 0:F.getAttribute("data-field");if(j===nf.field||j===$E)return;if(j){const N=e.current.getColumn(j);if((N==null?void 0:N.type)===w0)return}e.current.getRowNode(T.id).type!=="pinnedRow"&&($.shiftKey&&(f||i)?h(T.id):k(T.id,$))},[a,f,i,e,h,k]),O=u.useCallback((T,$)=>{if(f&&$.shiftKey){var F;(F=window.getSelection())==null||F.removeAllRanges()}},[f]),_=u.useCallback((T,$)=>{$.nativeEvent.shiftKey?h(T.id):e.current.selectRow(T.id,T.value)},[e,h]),L=u.useCallback(T=>{const F=t.checkboxSelectionVisibleOnly&&t.pagination?o3(e):$p(e);e.current.selectRows(F,T.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),B=u.useCallback((T,$)=>{if(e.current.getCellMode(T.id,T.field)!==un.Edit&&$.currentTarget.contains($.target)){if(dy($.key)&&$.shiftKey){const F=jo(e);if(F&&F.id!==T.id){$.preventDefault();const j=e.current.isRowSelected(F.id);if(!f){e.current.selectRow(F.id,!j,!0);return}const A=e.current.getRowIndexRelativeToVisibleRows(F.id),N=e.current.getRowIndexRelativeToVisibleRows(T.id);let H,K;A>N?j?(H=N,K=A-1):(H=N,K=A):j?(H=A+1,K=N):(H=A,K=N);const Y=p.rows.slice(H,K+1).map(te=>te.id);e.current.selectRows(Y,!j);return}}if($.key===" "&&$.shiftKey){$.preventDefault(),k(T.id,$);return}$.key==="a"&&($.ctrlKey||$.metaKey)&&($.preventDefault(),b(e.current.getAllRowIds(),!0))}},[e,k,b,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(O)),dt(e,"cellKeyDown",r(B)),u.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),u.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const z=o!=null;u.useEffect(()=>{if(z||!t.rowSelection)return;const T=Ss(e.current.state);if(m){const $=T.filter(F=>m(F));$.length<T.length&&e.current.setRowSelectionModel($)}},[e,m,z,t.rowSelection]),u.useEffect(()=>{if(!t.rowSelection||z)return;const T=Ss(e.current.state);!f&&T.length>1&&e.current.setRowSelectionModel([])},[e,f,i,z,t.rowSelection])},R3={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"},Pbe=e=>{const{classes:t}=e;return u.useMemo(()=>Te({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},jt,t),[t])},Ebe=(e,t)=>{const n={classes:t.classes},r=Pbe(n),o=u.useCallback(s=>{const i=S({},nf,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),l=t.checkboxSelection,a=s.lookup[Yl]!=null;return l&&!a?(s.lookup[Yl]=i,s.orderedFields=[Yl,...s.orderedFields]):!l&&a?(delete s.lookup[Yl],s.orderedFields=s.orderedFields.filter(c=>c!==Yl)):l&&a&&(s.lookup[Yl]=S({},i,s.lookup[Yl])),s},[e,r,t.checkboxSelection]);mr(e,"hydrateColumns",o)},kbe=(e,t)=>{var n,r,o;const s=(n=(r=t.sortModel)!=null?r:(o=t.initialState)==null||(o=o.sorting)==null?void 0:o.sortModel)!=null?n:[];return S({},e,{sorting:{sortModel:s3(s,t.disableMultipleColumnsSorting),sortedRows:[]}})},Ibe=(e,t)=>{var n;const r=eo(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:xs,changeEvent:"sortModelChange"});const o=u.useCallback((E,k)=>{const R=xs(e),O=R.findIndex(L=>L.field===E);let _=[...R];return O>-1?k?_.splice(O,1,k):_.splice(O,1):_=[...R,k],_},[e]),s=u.useCallback((E,k)=>{var R;const _=xs(e).find(B=>B.field===E.field);if(_){var L;const B=k===void 0?$O((L=E.sortingOrder)!=null?L:t.sortingOrder,_.sort):k;return B==null?void 0:S({},_,{sort:B})}return{field:E.field,sort:k===void 0?$O((R=E.sortingOrder)!=null?R:t.sortingOrder):k}},[e,t.sortingOrder]),i=u.useCallback((E,k)=>k==null||k.sortable===!1?E:(k.sortingOrder||t.sortingOrder).some(O=>!!O)?[...E,"columnMenuSortItem"]:E,[t.sortingOrder]),l=u.useCallback(()=>{e.current.setState(E=>{if(t.sortingMode==="server")return r.debug("Skipping sorting rows as sortingMode = server"),S({},E,{sorting:S({},E.sorting,{sortedRows:SE(ti(e),ao,!1)})});const k=xs(E,e.current.instanceId),R=wve(k,e),O=e.current.applyStrategyProcessor("sorting",{sortRowList:R});return S({},E,{sorting:S({},E.sorting,{sortedRows:O})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,r,t.sortingMode]),a=u.useCallback(E=>{xs(e)!==E&&(r.debug("Setting sort model"),e.current.setState(TO(E,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,r,t.disableMultipleColumnsSorting]),c=u.useCallback((E,k,R)=>{if(!E.sortable)return;const O=s(E,k);let _;!R||t.disableMultipleColumnsSorting?_=O?[O]:[]:_=o(E.field,O),e.current.setSortModel(_)},[e,o,s,t.disableMultipleColumnsSorting]),f=u.useCallback(()=>xs(e),[e]),p=u.useCallback(()=>wE(e).map(k=>k.model),[e]),h=u.useCallback(()=>bE(e),[e]),y=u.useCallback(E=>e.current.getSortedRowIds()[E],[e]);Lt(e,{getSortModel:f,getSortedRows:p,getSortedRowIds:h,getRowIdFromRowIndex:y,setSortModel:a,sortColumn:c,applySorting:l},"public");const m=u.useCallback((E,k)=>{var R;const O=xs(e);return!k.exportOnlyDirtyModels||t.sortModel!=null||((R=t.initialState)==null||(R=R.sorting)==null?void 0:R.sortModel)!=null||O.length>0?S({},E,{sorting:{sortModel:O}}):E},[e,t.sortModel,(n=t.initialState)==null||(n=n.sorting)==null?void 0:n.sortModel]),C=u.useCallback((E,k)=>{var R;const O=(R=k.stateToRestore.sorting)==null?void 0:R.sortModel;return O==null?E:(e.current.setState(TO(O,t.disableMultipleColumnsSorting)),S({},E,{callbacks:[...E.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),w=u.useCallback(E=>{const k=ti(e),R=k[ao],O=E.sortRowList?E.sortRowList(R.children.map(_=>k[_])):[...R.children];return R.footerId!=null&&O.push(R.footerId),O},[e]);mr(e,"exportState",m),mr(e,"restoreState",C),my(e,Lc,"sorting",w);const b=u.useCallback(({colDef:E},k)=>{const R=k.shiftKey||k.metaKey||k.ctrlKey;c(E,void 0,R)},[c]),x=u.useCallback(({colDef:E},k)=>{qme(k.key)&&!k.ctrlKey&&!k.metaKey&&c(E,void 0,k.shiftKey)},[c]),P=u.useCallback(()=>{const E=xs(e),k=Jd(e);if(E.length>0){const R=E.filter(O=>k[O.field]);R.length<E.length&&e.current.setSortModel(R)}},[e]),M=u.useCallback(E=>{E==="sorting"&&e.current.applySorting()},[e]);mr(e,"columnMenu",i),dt(e,"columnHeaderClick",b),dt(e,"columnHeaderKeyDown",x),dt(e,"rowsSet",e.current.applySorting),dt(e,"columnsChange",P),dt(e,"activeStrategyProcessorChange",M),Gh(()=>{e.current.applySorting()}),Nt(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function nD(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 Mbe=(e,t)=>{const n=vn(),r=eo(e,"useGridScroll"),o=e.current.columnHeadersElementRef,s=e.current.virtualScrollerRef,i=ot(e,Va),l=u.useCallback(p=>{const h=h0(e),y=Ar(e);if(!(p.rowIndex==null)&&h===0||y.length===0)return!1;r.debug(`Scrolling to cell at row ${p.rowIndex}, col: ${p.colIndex} `);let m={};if(p.colIndex!=null){const x=Td(e);let P;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&&(P=E.cellProps.width)}typeof P=="undefined"&&(P=y[p.colIndex].computedWidth),m.left=nD({clientHeight:s.current.clientWidth,scrollTop:Math.abs(s.current.scrollLeft),offsetHeight:P,offsetTop:x[p.colIndex]})}if(p.rowIndex!=null){var w,b;const x=gh(e.current.state),P=dve(e),M=fve(e),E=t.pagination?p.rowIndex-P*M:p.rowIndex,k=x.positions[E+1]?x.positions[E+1]-x.positions[E]:x.currentPageTotalHeight-x.positions[E],R=((w=s.current.querySelector(`.${ue["pinnedRows--top"]}`))==null?void 0:w.clientHeight)||0,O=((b=s.current.querySelector(`.${ue["pinnedRows--bottom"]}`))==null?void 0:b.clientHeight)||0;m.top=nD({clientHeight:s.current.clientHeight-R-O,scrollTop:s.current.scrollTop,offsetHeight:k,offsetTop:x.positions[E]})}return m=e.current.unstable_applyPipeProcessors("scrollToIndexes",m,p),typeof m.left!==void 0||typeof m.top!==void 0?(e.current.scroll(m),!0):!1},[r,e,s,t.pagination,i]),a=u.useCallback(p=>{if(s.current&&p.left!=null&&o.current){const h=n.direction==="rtl"?-1:1;o.current.scrollLeft=p.left,s.current.scrollLeft=h*p.left,r.debug(`Scrolling left: ${p.left}`)}s.current&&p.top!=null&&(s.current.scrollTop=p.top,r.debug(`Scrolling top: ${p.top}`)),r.debug("Scrolling, updating container, and viewport")},[s,n.direction,o,r]),c=u.useCallback(()=>s!=null&&s.current?{top:s.current.scrollTop,left:s.current.scrollLeft}:{top:0,left:0},[s]);Lt(e,{scroll:a,scrollToIndexes:l,getScrollPosition:c},"public")};function _be(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 Tbe=({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 $be(e,t){const n=eo(e,"useResizeContainer"),r=u.useRef(!1),o=u.useRef(null),s=u.useRef(null),i=ot(e,gh),l=ot(e,tf),a=Math.floor(t.rowHeight*l),c=DE(e,t.columnHeaderHeight),f=u.useCallback(()=>{var k;const R=(k=e.current.rootElementRef)==null?void 0:k.current,O=yE(e),_=z5(e);if(!o.current)return;let L;if(t.scrollbarSize!=null)L=t.scrollbarSize;else if(!O||!R)L=0;else{const N=pn(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 B,z,T;if(t.autoHeight)T=!1,z=Math.round(O)>Math.round(o.current.width),B={width:o.current.width,height:i.currentPageTotalHeight+(z?L:0)};else{B={width:o.current.width,height:Math.max(o.current.height-c,0)};const A=Tbe({content:{width:Math.round(O),height:i.currentPageTotalHeight},container:{width:Math.round(B.width),height:B.height-_.top-_.bottom},scrollBarSize:L});T=A.hasScrollY,z=A.hasScrollX}const $={width:B.width-(T?L:0),height:B.height-(z?L:0)},F={viewportOuterSize:B,viewportInnerSize:$,hasScrollX:z,hasScrollY:T,scrollBarSize:L},j=s.current;s.current=F,(F.viewportInnerSize.width!==(j==null?void 0:j.viewportInnerSize.width)||F.viewportInnerSize.height!==(j==null?void 0:j.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",F.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,i.currentPageTotalHeight,c]),[p,h]=u.useState(),y=u.useMemo(()=>La(h,60),[]),v=u.useRef();Nt(()=>{p&&(f(),e.current.publishEvent("debouncedResize",o.current))},[e,p,f]);const m=u.useCallback(()=>{e.current.computeSizeAndPublishResizeEvent()},[e]),C=u.useCallback(()=>s.current,[]),w=u.useCallback(()=>{const k=e.current.getRootDimensions();if(!k)return 0;const R=py(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const _=e.current.getRenderContext(),L=_.lastRowIndex-_.firstRowIndex;return Math.min(L-1,R.rows.length)}const O=Math.floor(k.viewportInnerSize.height/a);return Math.min(O,R.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,a]),b=u.useCallback(()=>{var k,R,O;const _=(k=e.current.mainElementRef)==null?void 0:k.current;if(!_)return;const B=Jo(_).getComputedStyle(_),z=parseFloat(B.height)||0,T=parseFloat(B.width)||0,$=z!==((R=v.current)==null?void 0:R.height),F=T!==((O=v.current)==null?void 0:O.width);if(!v.current||$||F){const j={width:T,height:z};e.current.publishEvent("resize",j),v.current=j}},[e]),x={resize:m,getRootDimensions:C},P={getViewportPageSize:w,updateGridDimensionsRef:f,computeSizeAndPublishResizeEvent:b};Lt(e,x,"public"),Lt(e,P,"private");const M=u.useRef(!0),E=u.useCallback(k=>{o.current=k;const R=/jsdom/.test(window.navigator.userAgent);if(k.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(`
|
|
615
|
-
`)),r.current=!0),k.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(`
|
|
616
|
-
`)),r.current=!0),M.current){h(k),M.current=!1;return}y(k)},[t.autoHeight,y,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 Rbe=["style"],Obe=["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 Dbe(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 ta=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[$d(e-n,r,o),$d(t+n,r,o)],O3=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,Abe={maxSize:3},Lbe=e=>{var t,n;const r=za(),o=ut(),s=ot(r,Ar),i=ot(r,Ive),l=ot(r,u3),{ref:a,onRenderZonePositioning:c,renderZoneMinColumnIndex:f=0,renderZoneMaxColumnIndex:p=s.length,getRowProps:h}=e,y=vn(),v=ot(r,Td),m=ot(r,yE),C=ot(r,jo),w=ot(r,ly),b=ot(r,gh),x=ot(r,fy),P=Uc(r,o),M=u.useRef(null),E=u.useRef(null),k=kt(a,E),[R,O]=u.useState(null),_=u.useRef(R),L=u.useRef({top:0,left:0}),[B,z]=u.useState({width:null,height:null}),T=u.useRef(m),[$,F]=u.useState(null),j=u.useRef(Object.create(null)),A=u.useRef(),N=u.useRef(),H=u.useRef(d0((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}},Abe)),K=u.useMemo(()=>C!==null?s.findIndex(ae=>ae.field===C.field):-1,[C,s]),Y=u.useCallback(ae=>{var Ie,ye;const Me=r.current.getLastMeasuredRowIndex();let pe=Me===1/0;(Ie=P.range)!=null&&Ie.lastRowIndex&&!pe&&(pe=Me>=P.range.lastRowIndex);const fe=$d(Me-(((ye=P.range)==null?void 0:ye.firstRowIndex)||0),0,b.positions.length);return pe||b.positions[fe]>=ae?sd(ae,b.positions):Dbe(ae,b.positions,fe)},[r,(t=P.range)==null?void 0:t.firstRowIndex,(n=P.range)==null?void 0:n.lastRowIndex,b.positions]),te=u.useCallback(()=>{if(!i)return{firstRowIndex:0,lastRowIndex:P.rows.length,firstColumnIndex:0,lastColumnIndex:s.length};const{top:ae,left:Ie}=L.current,ye=Math.min(Y(ae),b.positions.length-1),Me=o.autoHeight?ye+P.rows.length:Y(ae+B.height);let pe=0,fe=v.length;if(l){let de=!1;const[be,_e]=ta({firstIndex:ye,lastIndex:Me,minFirstIndex:0,maxLastIndex:P.rows.length,buffer:o.rowBuffer});for(let Ne=be;Ne<_e&&!de;Ne+=1){const Ge=P.rows[Ne];de=r.current.rowHasAutoHeight(Ge.id)}de||(pe=sd(Math.abs(Ie),v),fe=sd(Math.abs(Ie)+B.width,v))}return{firstRowIndex:ye,lastRowIndex:Me,firstColumnIndex:pe,lastColumnIndex:fe}},[i,l,Y,b.positions.length,o.autoHeight,o.rowBuffer,P.rows,v,s.length,r,B]);Nt(()=>{i?(E.current.scrollLeft=0,E.current.scrollTop=0):M.current.style.transform="translate3d(0px, 0px, 0px)"},[i]),Nt(()=>{z({width:E.current.clientWidth,height:E.current.clientHeight})},[b.currentPageTotalHeight]);const Q=u.useCallback(()=>{E.current&&z({width:E.current.clientWidth,height:E.current.clientHeight})},[]);dt(r,"debouncedResize",Q);const X=u.useCallback(ae=>{const[Ie,ye]=ta({firstIndex:ae.firstRowIndex,lastIndex:ae.lastRowIndex,minFirstIndex:0,maxLastIndex:P.rows.length,buffer:o.rowBuffer}),[Me]=ta({firstIndex:ae.firstColumnIndex,lastIndex:ae.lastColumnIndex,minFirstIndex:f,maxLastIndex:p,buffer:o.columnBuffer}),pe=uS({firstColumnToRender:Me,apiRef:r,firstRowToRender:Ie,lastRowToRender:ye,visibleRows:P.rows}),fe=y.direction==="ltr"?1:-1,de=gh(r.current.state).positions[Ie],be=fe*Td(r)[pe];M.current.style.transform=`translate3d(${be}px, ${de}px, 0px)`,typeof c=="function"&&c({top:de,left:be})},[r,P.rows,c,f,p,o.columnBuffer,o.rowBuffer,y.direction]),J=u.useCallback(()=>_.current,[]),se=u.useCallback(ae=>{if(_.current&&O3(ae,_.current)){X(ae);return}O(ae),X(ae);const[Ie,ye]=ta({firstIndex:ae.firstRowIndex,lastIndex:ae.lastRowIndex,minFirstIndex:0,maxLastIndex:P.rows.length,buffer:o.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:Ie,lastRowToRender:ye}),_.current=ae},[r,O,_,P.rows.length,o.rowBuffer,X]);Nt(()=>{if(B.width==null)return;const ae=te();se(ae);const{top:Ie,left:ye}=L.current,Me={top:Ie,left:ye,renderContext:ae};r.current.publishEvent("scrollPositionChange",Me)},[r,te,B.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||y.direction==="ltr"&&ye<0||y.direction==="rtl"&&ye>0)return;const Me=i?te():_.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||T.current!==m;r.current.publishEvent("scrollPositionChange",{top:Ie,left:ye,renderContext:_e?Me:_.current},ae),_e&&(Bd.flushSync(()=>{se(Me)}),T.current=m)}),he=Ye(ae=>{r.current.publishEvent("virtualScrollerWheel",{},ae)}),ne=Ye(ae=>{r.current.publishEvent("virtualScrollerTouchMove",{},ae)}),re=u.useMemo(()=>C!==null?P.rows.findIndex(ae=>ae.id===C.id):-1,[C,P.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=B.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]=ta({firstIndex:Me.firstRowIndex,lastIndex:Me.lastRowIndex,minFirstIndex:0,maxLastIndex:P.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(!P.range)return null;for(let gt=Ve;gt<Ue;gt+=1){const Rt=P.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=P.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]=ta({firstIndex:Me.firstColumnIndex,lastIndex:Me.lastColumnIndex,minFirstIndex:pe,maxLastIndex:fe,buffer:Ge}),wt=uS({firstColumnToRender:Zt,apiRef:r,firstRowToRender:Ve,lastRowToRender:Ue,visibleRows:P.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,Rbe);(A.current!==h||N.current!==vt)&&(j.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,$l=ht?Ve+gt===P.rows.length:Ve+gt===P.rows.length-1,cs=r.current.rowHasAutoHeight(Rt)?"auto":r.current.unstable_getRowHeight(Rt);let Tn;x[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 us=null;w!==null&&w.id===Rt&&(us=r.current.getCellParams(Rt,w.field).cellMode==="view"?w.field:null);const lr=typeof h=="function"&&h(Rt,vr)||{},{style:Oo}=lr,gi=le(lr,Obe);if(!j.current[Rt]){const Nr=S({},Oo,vt);j.current[Rt]=Nr}let Mr=be+((P==null||(bn=P.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,S({row:vr,rowId:Rt,focusedCellColumnIndexNotInRange:Oe,isNotVisible:ir,rowHeight:cs,focusedCell:an,tabbableCell:us,renderedColumns:ho,visibleColumns:s,firstColumnToRender:wt,lastColumnToRender:Pt,selected:Tn,index:Mr,containerWidth:de,isLastVisible:$l,position:_e},gi,Tt,{hovered:$===Rt,style:j.current[Rt]}),Rt))}return A.current=h,N.current=vt,Qt},ce=B.width&&m>=B.width,Se=u.useMemo(()=>{const ae=Math.max(b.currentPageTotalHeight,1);let Ie=!1;E!=null&&E.current&&ae<=(E==null?void 0:E.current.clientHeight)&&(Ie=!0);const ye={width:ce?m:"auto",height:ae,minHeight:Ie?"100%":"auto"};return o.autoHeight&&P.rows.length===0&&(ye.height=V5(r,o.rowHeight)),ye},[r,E,m,b.currentPageTotalHeight,ce,o.autoHeight,o.rowHeight,P.rows.length]);u.useEffect(()=>{r.current.publishEvent("virtualScrollerContentSizeChange")},[r,Se]);const ke=u.useMemo(()=>{const ae={};return ce||(ae.overflowX="hidden"),o.autoHeight&&(ae.overflowY="hidden"),ae},[ce,o.autoHeight]);return r.current.register("private",{getRenderContext:J}),{renderContext:R,updateRenderZonePosition:X,getRows:me,getRootProps:(ae={})=>S({ref:k,onScroll:Z,onWheel:he,onTouchMove:ne},ae,{style:ae.style?S({},ae.style,ke):ke,role:"presentation"}),getContentProps:({style:ae}={})=>({style:ae?S({},ae,Se):Se,role:"presentation"}),getRenderZoneProps:()=>({ref:M,role:"rowgroup"})}},Fbe=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 Nbe(e){var t;const{groupId:n,width:r,depth:o,maxDepth:s,fields:i,height:l,colIndex:a,hasFocus:c,tabIndex:f,isLastColumn:p}=e,h=ut(),y=u.useRef(null),v=Vt(),m=ot(v,$5),C=n?m[n]:{},{headerName:w=n!=null?n:"",description:b="",headerAlign:x=void 0}=C;let P;const M=n&&((t=m[n])==null?void 0:t.renderHeaderGroup),E=u.useMemo(()=>({groupId:n,headerName:w,description:b,depth:o,maxDepth:s,fields:i,colIndex:a,isLastColumn:p}),[n,w,b,o,s,i,a,p]);n&&M&&(P=M(E));const k=h.showColumnVerticalBorder,R=S({},e,{classes:h.classes,showColumnBorder:k,headerAlign:x,depth:o,isDragging:!1}),O=w!=null?w:n,_=Kt(),L=n===null?`empty-group-cell-${_}`:n,B=Fbe(R);u.useLayoutEffect(()=>{if(c){const j=y.current.querySelector('[tabindex="0"]')||y.current;j==null||j.focus()}},[v,c]);const z=u.useCallback(F=>j=>{j.currentTarget.contains(j.target)&&v.current.publishEvent(F,E,j)},[v,E]),T=u.useMemo(()=>({onKeyDown:z("columnGroupHeaderKeyDown"),onFocus:z("columnGroupHeaderFocus"),onBlur:z("columnGroupHeaderBlur")}),[z]),$=typeof C.headerClassName=="function"?C.headerClassName(E):C.headerClassName;return D.jsx(X5,S({ref:y,classes:B,columnMenuOpen:!1,colIndex:a,height:l,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:f,isDraggable:!1,headerComponent:P,headerClassName:$,description:b,elementId:L,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:O,"aria-colspan":i.length,"data-fields":`|-${i.join("-|-")}-|`},T))}const rD=oe("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function Bbe(e){return!!e.target}const zbe=e=>{const{innerRef:t,minColumnIndex:n=0,visibleColumns:r,sortColumnLookup:o,filterColumnLookup:s,columnPositions:i,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:f,densityFactor:p,headerGroupingMaxDepth:h,columnMenuState:y,columnVisibility:v,columnGroupsHeaderStructure:m,hasOtherElementInTabSequence:C}=e,w=vn(),[b,x]=u.useState(""),[P,M]=u.useState(""),E=za(),k=ot(E,u3),R=ut(),O=u.useRef(null),_=kt(t,O),[L,B]=u.useState(null),z=u.useRef(L),T=u.useRef(0),$=Uc(E,R),F=DE(E,R.columnHeaderHeight),j=Math.floor(R.columnHeaderHeight*p),A=u.useCallback(ne=>{L&&ne&&O3(L,ne)||B(ne)},[L]);u.useEffect(()=>{E.current.columnHeadersContainerElementRef.current.scrollLeft=0},[E]);const N=u.useRef(d0(A0e,{equalityCheck:(ne,re)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(me=>ne[me]===re[me])})),H=u.useCallback(ne=>{const[re,me]=ta({firstIndex:ne.firstRowIndex,lastIndex:ne.lastRowIndex,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:R.rowBuffer}),ce=N.current({firstColumnIndex:ne.firstColumnIndex,minColumnIndex:n,columnBuffer:R.columnBuffer,firstRowToRender:re,lastRowToRender:me,apiRef:E,visibleRows:$.rows}),Se=w.direction==="ltr"?1:-1,ke=ce>0?T.current-Se*i[ce]:T.current;O.current.style.transform=`translate3d(${-ke}px, 0px, 0px)`},[i,n,R.columnBuffer,E,$.rows,R.rowBuffer,w.direction]);u.useLayoutEffect(()=>{L&&H(L)},[L,H]);const K=u.useCallback(({left:ne,renderContext:re=null},me)=>{var ce,Se;if(!O.current||T.current===ne&&((ce=z.current)==null?void 0:ce.firstColumnIndex)===(re==null?void 0:re.firstColumnIndex)&&((Se=z.current)==null?void 0:Se.lastColumnIndex)===(re==null?void 0:re.lastColumnIndex))return;T.current=ne;let ke=!1;re!==z.current||!z.current?(Bbe(me)?(Bd.flushSync(()=>{A(re)}),ke=!0):A(re),z.current=re):ke=!0,re&&ke&&H(re)},[H,A]),Y=u.useCallback(ne=>M(ne.field),[]),te=u.useCallback(()=>M(""),[]),Q=u.useCallback(ne=>x(ne.field),[]),X=u.useCallback(()=>x(""),[]);dt(E,"columnResizeStart",Y),dt(E,"columnResizeStop",te),dt(E,"columnHeaderDragStart",Q),dt(E,"columnHeaderDragEnd",X),dt(E,"scrollPositionChange",K);const J=ne=>{const{renderContext:re=L,minFirstColumn:me=n,maxLastColumn:ce=r.length}=ne||{};if(!re)return null;const[Se,ke]=ta({firstIndex:re.firstRowIndex,lastIndex:re.lastRowIndex,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:R.rowBuffer}),ae=k?N.current({firstColumnIndex:re.firstColumnIndex,minColumnIndex:me,columnBuffer:R.columnBuffer,apiRef:E,firstRowToRender:Se,lastRowToRender:ke,visibleRows:$.rows}):0,Ie=k?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=J(ne);if(me==null)return null;const{renderedColumns:ce,firstColumnToRender:Se}=me,ke=[];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=c!==null&&c.field===Ie.field,de=y.open&&y.field===Ie.field;ke.push(D.jsx(Qge,S({},o[Ie.field],{columnMenuOpen:de,filterItemsCounter:s[Ie.field]&&s[Ie.field].length,headerHeight:j,isDragging:Ie.field===b,colDef:Ie,colIndex:ye,isResizing:P===Ie.field,hasFocus:fe,tabIndex:pe},re),Ie.field))}return D.jsx(rD,{role:"row","aria-rowindex":h+1,ownerState:R,children:ke})},Z=ne=>{if(h===0)return null;const re=J(ne);if(re==null||re.renderedColumns.length===0)return null;const{firstColumnToRender:me,lastColumnToRender:ce}=re,Se=[],ke=[];for(let ye=0;ye<h;ye+=1){var ae,Ie;const Me=m[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=>S({},Pt,{columnFields:Pt.columnFields.filter(wt=>v[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});ke.push({leftOverflow:Le,elements:Zt})}return ke.forEach((ye,Me)=>{Se.push(D.jsx(rD,{style:{height:`${j}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(Nbe,{groupId:pe,width:fe,fields:de,colIndex:be,depth:Me,isLastColumn:be===r.length-de.length,maxDepth:ke.length,height:j,hasFocus:_e,tabIndex:Ne},Ge))},Me))}),Se},he={minHeight:F,maxHeight:F,lineHeight:`${j}px`};return{renderContext:L,getColumnHeaders:se,getColumnsToRender:J,getColumnGroupHeaders:Z,isDragging:!!b,getRootProps:(ne={})=>S({style:he},ne),getInnerProps:()=>({ref:_,role:"rowgroup"}),headerHeight:j}},Vbe=["className"],jbe=e=>{const{classes:t}=e;return Te({root:["columnHeaders","withBorderColor"]},jt,t)},Hbe=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)"}),Ube=u.forwardRef(function(t,n){const{className:r}=t,o=le(t,Vbe),s=ut(),i=jbe(s);return D.jsx(Hbe,S({ref:n,className:xe(r,i.root),ownerState:s},o,{role:"presentation"}))}),Wbe=["isDragging","className"],Gbe=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return Te({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},jt,r)},Kbe=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"}})),qbe=u.forwardRef(function(t,n){var r,o;const{isDragging:s,className:i}=t,l=le(t,Wbe),a=Vt(),c=ut(),f=S({},c,{isDragging:s,hasScrollX:(r=(o=a.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1}),p=Gbe(f);return D.jsx(Kbe,S({ref:n,className:xe(i,p.root),ownerState:f},l))}),Ybe=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],Qbe=u.forwardRef(function(t,n){const{innerRef:r,visibleColumns:o,sortColumnLookup:s,filterColumnLookup:i,columnPositions:l,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:c,columnHeaderFocus:f,columnGroupHeaderFocus:p,densityFactor:h,headerGroupingMaxDepth:y,columnMenuState:v,columnVisibility:m,columnGroupsHeaderStructure:C,hasOtherElementInTabSequence:w}=t,b=le(t,Ybe),{isDragging:x,getRootProps:P,getInnerProps:M,getColumnHeaders:E,getColumnGroupHeaders:k}=zbe({innerRef:r,visibleColumns:o,sortColumnLookup:s,filterColumnLookup:i,columnPositions:l,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:c,columnHeaderFocus:f,columnGroupHeaderFocus:p,densityFactor:h,headerGroupingMaxDepth:y,columnMenuState:v,columnVisibility:m,columnGroupsHeaderStructure:C,hasOtherElementInTabSequence:w});return D.jsx(Ube,S({ref:n},P(b),{children:D.jsxs(qbe,S({isDragging:x},M(),{children:[k(),E()]}))}))}),Xbe=b0(Qbe),Zbe=u.forwardRef(function(t,n){const o=Vt().current.getLocaleText("noResultsOverlayLabel");return D.jsx(EE,S({ref:n},t,{children:o}))}),Jbe=["sortingOrder"],ewe=u.memo(function(t){const{sortingOrder:n}=t,r=le(t,Jbe),o=ut(),[s]=n,i=s==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return i?D.jsx(i,S({},r)):null}),twe=["native"];function nwe(e){let{native:t}=e,n=le(e,twe);return t?D.jsx("option",S({},n)):D.jsx(Pr,S({},n))}const rwe={BooleanCellTrueIcon:qve,BooleanCellFalseIcon:rC,ColumnMenuIcon:Uve,OpenFilterButtonIcon:Fve,FilterPanelDeleteIcon:rC,ColumnFilteredIcon:LO,ColumnSelectorIcon:Bve,ColumnUnsortedIcon:ewe,ColumnSortedAscendingIcon:RO,ColumnSortedDescendingIcon:OO,ColumnResizeIcon:zve,DensityCompactIcon:Vve,DensityStandardIcon:jve,DensityComfortableIcon:Hve,ExportIcon:Kve,MoreActionsIcon:Yve,TreeDataCollapseIcon:AO,TreeDataExpandIcon:DO,GroupingCriteriaCollapseIcon:AO,GroupingCriteriaExpandIcon:DO,DetailPanelExpandIcon:FO,DetailPanelCollapseIcon:Wve,RowReorderIcon:NO,QuickFilterIcon:Nve,QuickFilterClearIcon:rC,ColumnMenuHideIcon:Qve,ColumnMenuSortAscendingIcon:RO,ColumnMenuSortDescendingIcon:OO,ColumnMenuFilterIcon:LO,ColumnMenuManageColumnsIcon:Xve,ColumnMenuClearIcon:Zve,LoadIcon:Gve,FilterPanelAddIcon:FO,FilterPanelRemoveAllIcon:Jve,ColumnReorderIcon:NO},owe=S({},rwe,{BaseCheckbox:V4,BaseTextField:Ba,BaseFormControl:Q4,BaseSelect:v2,BaseSwitch:mN,BaseButton:Yn,BaseIconButton:xr,BaseInputAdornment:Cl,BaseTooltip:_l,BasePopper:Na,BaseInputLabel:oN,BaseSelectOption:nwe,BaseChip:Fh}),swe=owe,iwe=S({},swe,{Cell:nS,SkeletonCell:gge,ColumnHeaderFilterIconButton:_ve,ColumnMenu:hye,ColumnHeaders:Xbe,Footer:x1e,FooterRowCount:$1e,Toolbar:null,PreferencesPanel:jye,LoadingOverlay:P1e,NoResultsOverlay:Zbe,NoRowsOverlay:E1e,Pagination:I1e,FilterPanel:c1e,ColumnsPanel:Lye,Panel:Vye,Row:Q1e}),D3=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>S({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function lwe({defaultSlots:e,slots:t,components:n}){const r=t!=null?t:n?D3(n):null;if(!r||Object.keys(r).length===0)return e;const o=S({},e);return Object.keys(r).forEach(s=>{const i=s;r[i]!==void 0&&(o[i]=r[i])}),o}const awe=["components","componentsProps"];function cwe(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 uwe(e){return u.useMemo(()=>{const{components:t,componentsProps:n}=e,r=le(e,awe);return[t,n,cwe(r)]},[e])}const dwe={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},C0={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:Hi.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},fwe=D3(iwe),pwe=e=>{const[t,n,r]=uwe(je({props:e,name:"MuiDataGrid"})),o=u.useMemo(()=>S({},R3,r.localeText),[r.localeText]),s=u.useMemo(()=>lwe({defaultSlots:fwe,slots:r.slots,components:t}),[t,r.slots]);return u.useMemo(()=>{var i;return S({},C0,r,{localeText:o,slots:s,slotProps:(i=r.slotProps)!=null?i:n},dwe)},[r,o,s,n])},hwe=e=>S({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),oD=(e,t,n)=>typeof e=="number"&&e>0?e:t,mwe=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,s=u.useRef(Object.create(null)),i=u.useRef(-1),l=u.useRef(!1),a=ot(e,tf),c=ot(e,Or),f=ot(e,r3),p=ot(e,xs),h=Uc(e,t),y=ot(e,ef),v=oD(t.rowHeight,C0.rowHeight),m=Math.floor(v*a),C=u.useCallback(()=>{var B,z;l.current=!1;const T=j=>{s.current[j.id]||(s.current[j.id]={sizes:{baseCenter:m},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:A,needsFirstMeasurement:N,sizes:H}=s.current[j.id];let K=typeof m=="number"&&m>0?m:52;const Y=H.baseCenter;if(A)K=Y;else if(n){const se=n(S({},j,{densityFactor:a}));if(se==="auto"){if(N){const Z=o?o(S({},j,{densityFactor:a})):m;K=Z!=null?Z:m}else K=Y;l.current=!0,s.current[j.id].autoHeight=!0}else K=oD(se,m),s.current[j.id].needsFirstMeasurement=!1,s.current[j.id].autoHeight=!1}else s.current[j.id].needsFirstMeasurement=!1;const te={};for(const se in H)/^base[A-Z]/.test(se)&&(te[se]=H[se]);if(te.baseCenter=K,r){var Q,X;const se=e.current.getRowIndexRelativeToVisibleRows(j.id),Z=r(S({},j,{isFirstVisible:se===0,isLastVisible:se===h.rows.length-1,indexRelativeToCurrentPage:se}));te.spacingTop=(Q=Z.top)!=null?Q:0,te.spacingBottom=(X=Z.bottom)!=null?X:0}const J=e.current.unstable_applyPipeProcessors("rowHeight",te,j);return s.current[j.id].sizes=J,J},$=[],F=h.rows.reduce((j,A)=>{$.push(j);let N=0,H=0;const K=T(A);for(const Y in K){const te=K[Y];/^base[A-Z]/.test(Y)?N=te>N?te:N:H+=te}return j+N+H},0);y==null||(B=y.top)==null||B.forEach(j=>{T(j)}),y==null||(z=y.bottom)==null||z.forEach(j=>{T(j)}),e.current.setState(j=>S({},j,{rowsMeta:{currentPageTotalHeight:F,positions:$}})),l.current||(i.current=1/0),e.current.forceUpdate()},[e,h.rows,m,n,r,o,y,a]),w=u.useCallback(B=>{const z=s.current[B];return z?z.sizes.baseCenter:m},[m]),b=B=>{var z;return(z=s.current[B])==null?void 0:z.sizes},x=u.useCallback((B,z)=>{s.current[B].sizes.baseCenter=z,s.current[B].isResized=!0,s.current[B].needsFirstMeasurement=!1,C()},[C]),P=u.useMemo(()=>La(C,t.rowPositionsDebounceMs),[C,t.rowPositionsDebounceMs]),M=u.useCallback((B,z,T)=>{if(!s.current[B]||!s.current[B].autoHeight)return;const $=s.current[B].sizes[`base${Pe(T)}`]!==z;s.current[B].needsFirstMeasurement=!1,s.current[B].sizes[`base${Pe(T)}`]=z,$&&P()},[P]),E=u.useCallback(B=>{var z;return((z=s.current[B])==null?void 0:z.autoHeight)||!1},[]),k=u.useCallback(()=>i.current,[]),R=u.useCallback(B=>{l.current&&B>i.current&&(i.current=B)},[]),O=u.useCallback(()=>{s.current={},C()},[C]);u.useEffect(()=>{C()},[m,c,f,p,C]),OE(e,"rowHeight",C);const _={unstable_setLastMeasuredRowIndex:R,unstable_getRowHeight:w,unstable_getRowInternalSizes:b,unstable_setRowHeight:x,unstable_storeRowHeightMeasurement:M,resetRowHeights:O},L={getLastMeasuredRowIndex:k,rowHasAutoHeight:E};Lt(e,_,"public"),Lt(e,L,"private")},gwe=e=>{const t=u.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=u.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(i=>{i()}),e.current.forceUpdate()},[e]);Lt(e,{exportState:t,restoreState:n},"public")},vwe=e=>{const t=u.useRef({}),n=u.useCallback((c,f,p)=>{const h=t.current;h[c]||(h[c]={}),h[c][f]=p},[]),r=u.useCallback((c,f)=>{var p;return(p=t.current[c])==null?void 0:p[f]},[]),o=u.useCallback(c=>{const{columnIndex:f,rowId:p,minFirstColumnIndex:h,maxLastColumnIndex:y,columns:v}=c,m=v.length,C=v[f],w=typeof C.colSpan=="function"?C.colSpan(e.current.getCellParams(p,C.field)):C.colSpan;if(!w||w===1)return n(p,f,{spannedByColSpan:!1,cellProps:{colSpan:1,width:C.computedWidth}}),{colSpan:1};let b=C.computedWidth;for(let x=1;x<w;x+=1){const P=f+x;if(P>=h&&P<y){const M=v[P];b+=M.computedWidth,n(p,f+x,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(f+w,m-1),leftVisibleCellIndex:f})}n(p,f,{spannedByColSpan:!1,cellProps:{colSpan:w,width:b}})}return{colSpan:w}},[e,n]),s=u.useCallback(({rowId:c,minFirstColumn:f,maxLastColumn:p,columns:h})=>{for(let y=f;y<p;y+=1){const v=o({columnIndex:y,rowId:c,minFirstColumnIndex:f,maxLastColumnIndex:p,columns:h});v.colSpan>1&&(y+=v.colSpan-1)}},[o]),i={unstable_getCellColSpanInfo:r},l={calculateColSpan:s};Lt(e,i,"public"),Lt(e,l,"private");const a=u.useCallback(()=>{t.current={}},[]);dt(e,"columnOrderChange",a)},A3=(e,t,n)=>{if(j5(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(`
|
|
617
|
-
`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(s=>{A3(s,[...t,r],n)})},dS=e=>{if(!e)return{};const t={};return e.forEach(n=>{A3(n,[],t)}),t},fS=(e,t,n)=>{const r=a=>{var c;return(c=t[a])!=null?c:[]},o=[],s=Math.max(...e.map(a=>r(a).length)),i=(a,c,f)=>wc(r(a).slice(0,f+1),r(c).slice(0,f+1)),l=(a,c)=>!!(n!=null&&n.left&&n.left.includes(a)&&!n.left.includes(c)||n!=null&&n.right&&!n.right.includes(a)&&n.right.includes(c));for(let a=0;a<s;a+=1){const c=e.reduce((f,p)=>{var h;const y=(h=r(p)[a])!=null?h:null;if(f.length===0)return[{columnFields:[p],groupId:y}];const v=f[f.length-1],m=v.columnFields[v.columnFields.length-1];return v.groupId!==y||!i(m,p,a)||l(m,p)?[...f,{columnFields:[p],groupId:y}]:[...f.slice(0,f.length-1),{columnFields:[...v.columnFields,p],groupId:y}]},[]);o.push(c)}return o},ywe=["groupId","children"],AE=e=>{let t={};return e.forEach(n=>{if(j5(n))return;const{groupId:r,children:o}=n,s=le(n,ywe);if(!r)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");o||console.warn(`MUI: group groupId=${r} has no children.`);const i=S({},s,{groupId:r}),l=AE(o);if(l[r]!==void 0||t[r]!==void 0)throw new Error(`MUI: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=S({},t,l,{[r]:i})}),S({},t)},bwe=(e,t,n)=>{var r,o,s,i;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const l=ml(n),a=f0(n),c=AE((o=t.columnGroupingModel)!=null?o:[]),f=dS((s=t.columnGroupingModel)!=null?s:[]),p=fS(l,f,(i=n.current.state.pinnedColumns)!=null?i:{}),h=a.length===0?0:Math.max(...a.map(y=>{var v,m;return(v=(m=f[y])==null?void 0:m.length)!=null?v:0}));return S({},e,{columnGrouping:{lookup:c,unwrappedGroupingModel:f,headerStructure:p,maxDepth:h}})},wwe=(e,t)=>{var n;const r=u.useCallback(a=>{var c;return(c=Vhe(e)[a])!=null?c:[]},[e]),o=u.useCallback(()=>$5(e),[e]);Lt(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const i=u.useCallback(()=>{var a;const c=dS((a=t.columnGroupingModel)!=null?a:[]);e.current.setState(f=>{var p,h,y;const v=(p=(h=f.columns)==null?void 0:h.orderedFields)!=null?p:[],m=(y=f.pinnedColumns)!=null?y:{},C=fS(v,c,m);return S({},f,{columnGrouping:S({},f.columnGrouping,{headerStructure:C})})})},[e,t.columnGroupingModel]),l=u.useCallback(a=>{var c,f,p,h;if(!((c=t.experimentalFeatures)!=null&&c.columnGrouping))return;const y=(f=(p=(h=e.current).getPinnedColumns)==null?void 0:p.call(h))!=null?f:{},v=ml(e),m=f0(e),C=AE(a!=null?a:[]),w=dS(a!=null?a:[]),b=fS(v,w,y),x=m.length===0?0:Math.max(...m.map(P=>{var M,E;return(M=(E=w[P])==null?void 0:E.length)!=null?M:0}));e.current.setState(P=>S({},P,{columnGrouping:{lookup:C,unwrappedGroupingModel:w,headerStructure:b,maxDepth:x}}))},[e,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);dt(e,"columnIndexChange",i),dt(e,"columnsChange",()=>{l(t.columnGroupingModel)}),dt(e,"columnVisibilityModelChange",()=>{l(t.columnGroupingModel)}),u.useEffect(()=>{l(t.columnGroupingModel)},[l,t.columnGroupingModel])},Cwe=(e,t)=>{const n=d0e(e,t);return Ebe(n,t),Cbe(n),bo(xbe,n,t),bo(L0e,n,t),bo(gbe,n,t),bo(hbe,n,t),bo(ebe,n,t),bo(kbe,n,t),bo(obe,n,t),bo(Q0e,n,t),bo(z0e,n,t),bo(W0e,n,t),bo(hwe,n,t),bo($0e,n,t),bo(bwe,n,t),bo(Eve,n,t),rbe(n,t),Sbe(n,t),F0e(n,t),vbe(n,t),xme(n,t),vwe(n),wwe(n,t),mbe(n,t),tbe(n,t),sbe(n,t),J0e(n,t),Ibe(n,t),V0e(n,t),G0e(n,t),mwe(n,t),Mbe(n,t),R0e(n),U0e(n,t),Y0e(n,t),T0e(n,t),$be(n,t),_be(n,t),gwe(n),kve(n,t),n},xwe=e=>{const{classes:t}=e;return Te({root:["virtualScroller"]},jt,t)},Swe=Ir("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"},zIndex:0}),Pwe=u.forwardRef(function(t,n){const r=ut(),o=xwe(r);return D.jsx(Swe,S({ref:n},t,{className:xe(o.root,t.className),ownerState:r}))}),Ewe=(e,t)=>{const{classes:n}=e;return Te({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},jt,n)},kwe=Ir("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),Iwe=u.forwardRef(function(t,n){var r;const o=ut(),s=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",i=Ewe(o,s);return D.jsx(kwe,S({ref:n},t,{ownerState:o,className:xe(i.root,t.className)}))}),Mwe=["className"],_we=e=>{const{classes:t}=e;return Te({root:["virtualScrollerRenderZone"]},jt,t)},Twe=Ir("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),$we=u.forwardRef(function(t,n){const{className:r}=t,o=le(t,Mwe),s=ut(),i=_we(s);return D.jsx(Twe,S({ref:n,className:xe(i.root,r),ownerState:s},o))}),Rwe=["className"],Owe=u.forwardRef(function(t,n){const{className:r}=t,o=le(t,Rwe),{getRootProps:s,getContentProps:i,getRenderZoneProps:l,getRows:a}=Lbe({ref:n});return D.jsxs(Pwe,S({className:r},s(o),{children:[D.jsx(mme,{}),D.jsx(Iwe,S({},i(),{children:D.jsx($we,S({},l(),{children:a()}))}))]}))}),L3=u.forwardRef(function(t,n){const r=pwe(t),o=Cwe(r.apiRef,r);return D.jsx(X1e,{privateApiRef:o,props:r,children:D.jsxs(Cge,S({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[D.jsx(S1e,{}),D.jsx(ime,{VirtualScrollerComponent:Owe}),D.jsx(lme,{})]}))})}),F3=u.memo(L3);C0.filterDebounceMs;C0.filterDebounceMs;L3.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:xq(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(`
|
|
618
|
-
`)):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 Dwe={},Awe=(e,t)=>{var n;return{components:{MuiDataGrid:{defaultProps:{localeText:S({},e,{MuiTablePagination:(t==null||(n=t.components)==null||(n=n.MuiTablePagination)==null?void 0:n.defaultProps)||{}})}}}}},Lwe=Awe(R3,Dwe),iC="Actions";function Yh(c){var f=c,{columns:e,initialState:t={},actions:n,actionsProps:r,initializing:o,noRows:s,error:i,compact:l}=f,a=At(f,["columns","initialState","actions","actionsProps","initializing","noRows","error","compact"]);const{width:p}=B1(),h=vn(),y=khe(),[v,m]=u.useState(0),C=u.useMemo(()=>{const{localeText:E}=Lwe.components.MuiDataGrid.defaultProps,k=e.map(R=>{var T;const{type:O}=R;(!O||O==="string")&&((T=R.filterOperators)!=null||(R.filterOperators=w3().map(F=>F.value.includes("Empty")?F:[F,st(we(st(we({},F),{value:"!"+F.value,getApplyFilterFn(j,A){const N=F.getApplyFilterFn(j,A);return N&&Ze.negate(N)}}),F.getApplyFilterFnV7&&{getApplyFilterFnV7(j,A){var H;const N=(H=F.getApplyFilterFnV7)==null?void 0:H.call(F,j,A);return N?Ze.negate(N):null}}),{label:"(not) "+(E["filterOperator"+Ze.upperFirst(F.value)]||F.value)})]).flat()));const{mergeRender:_}=R;if(!_)return R;const $=_,{other:L,override:B}=$,z=At($,["other","override"]);return st(we({},R),{originalRenderCell:R.renderCell||!0,renderCell(F){const{columns:j}=F.api.store.getSnapshot(),A=j.columnVisibilityModel[L]===!1;return u.createElement(ze,{},R.renderCell?R.renderCell(F):F.formattedValue,A&&u.createElement(ze,we(we({},l&&{lineHeight:"1em",fontSize:"smaller"}),z),M(we(we({},j.lookup[L]),B),F.row)))}})});return n&&k.push(we({field:iC,width:40*v,headerName:"",align:"center",headerAlign:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell(R){const O=n(we(we({},R.row),R));return setTimeout(()=>m(O.length)),u.createElement(ze,{whiteSpace:"nowrap"},...O)}},r)),k},[e,n,v]),w=u.useMemo(()=>{if(!p)return;const E=jc(C.map(({field:R,hideUnder:O,hidden:_})=>(_||O&&p<(typeof O=="number"?O:h.breakpoints.values[O]))&&R)),k=Object.fromEntries(E.map(R=>[R,!1]));return Ze.merge(t,{columns:{columnVisibilityModel:k}}),E},[C]),[b,x]=u.useState({}),P=u.useRef({});if(u.useEffect(()=>{const{current:{id:E,setCurRow:k}}=P;k==null||k(Ze.find(a.rows,{id:E}))}),!w)return null;return u.createElement(u.Fragment,{},i&&u.createElement(Er,{severity:"error"},i),o&&u.createElement(ze,{position:"relative"},u.createElement(jv,{sx:{position:"absolute",width:"calc(100% - 2px)",borderRadius:1,m:"1px 1px"}})),u.createElement(F3,st(we({initialState:t,style:{height:0,flex:"auto"},density:l?"compact":"standard",columns:C,apiRef:y,slots:we({},(s||o)&&{noRowsOverlay:()=>o?null:u.createElement(Hh,{},s)}),onCellClick({field:E,row:k}){if(E===iC)return;const R=y.current.getVisibleColumns().length,O=C.filter(_=>_.renderCell||_.field===iC||k[_.field]!==void 0);O.length<=R||po({title:"Details",onClose(){P.current={}},Content(){const[_,L]=u.useState(k),B=u.useRef(k);_&&(B.current=_);const z=B.current;return P.current={id:z.id,setCurRow:L},u.createElement(ze,{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(8em,1fr))",gap:"1em",gridAutoFlow:"dense",minWidth:"max(16em, 40vw)",sx:{opacity:_?void 0:.5}},O.map(T=>u.createElement(ze,{key:T.field,gridColumn:T.flex&&"1/-1"},u.createElement(ze,{bgcolor:"#0003",p:1},T.headerName||T.field),u.createElement(qr,{minHeight:"2.5em",px:1,wordBreak:"break-word"},M(T,z)))))}})}},a),{onColumnVisibilityModelChange:E=>x(E),columnVisibilityModel:we(we(we({},Object.fromEntries(w.map(E=>[E,!1]))),a.columnVisibilityModel),b)})));function M(E,k){const R=y.current;let O=k[E.field];E.valueGetter&&(O=E.valueGetter({value:O,api:R,row:k,field:E.field,id:k.id}));const _=E.originalRenderCell||E.renderCell;return _&&_!==!0?_(we({value:O,row:k,api:R},k)):E.valueFormatter?E.valueFormatter(we({value:O},k)):O}}var LE={},Fwe=et;Object.defineProperty(LE,"__esModule",{value:!0});var FE=LE.default=void 0,Nwe=Fwe(tt()),Bwe=Je(),zwe=(0,Nwe.default)((0,Bwe.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");FE=LE.default=zwe;var NE={},Vwe=et;Object.defineProperty(NE,"__esModule",{value:!0});var BE=NE.default=void 0,jwe=Vwe(tt()),Hwe=Je(),Uwe=(0,jwe.default)((0,Hwe.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");BE=NE.default=Uwe;var zE={},Wwe=et;Object.defineProperty(zE,"__esModule",{value:!0});var VE=zE.default=void 0,Gwe=Wwe(tt()),Kwe=Je(),qwe=(0,Gwe.default)((0,Kwe.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");VE=zE.default=qwe;var jE={},Ywe=et;Object.defineProperty(jE,"__esModule",{value:!0});var HE=jE.default=void 0,Qwe=Ywe(tt()),Xwe=Je(),Zwe=(0,Qwe.default)((0,Xwe.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");HE=jE.default=Zwe;var UE={},Jwe=et;Object.defineProperty(UE,"__esModule",{value:!0});var Tl=UE.default=void 0,eCe=Jwe(tt()),tCe=Je(),nCe=(0,eCe.default)((0,tCe.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");Tl=UE.default=nCe;var WE={},rCe=et;Object.defineProperty(WE,"__esModule",{value:!0});var GE=WE.default=void 0,oCe=rCe(tt()),sCe=Je(),iCe=(0,oCe.default)((0,sCe.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");GE=WE.default=iCe;var KE={},lCe=et;Object.defineProperty(KE,"__esModule",{value:!0});var N3=KE.default=void 0,aCe=lCe(tt()),cCe=Je(),uCe=(0,aCe.default)((0,cCe.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");N3=KE.default=uCe;var qE={},dCe=et;Object.defineProperty(qE,"__esModule",{value:!0});var B3=qE.default=void 0,fCe=dCe(tt()),pCe=Je(),hCe=(0,fCe.default)((0,pCe.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");B3=qE.default=hCe;const mCe=["localeText"],pS=u.createContext(null),YE=function(t){var n;const{localeText:r}=t,o=le(t,mCe),{utils:s,localeText:i}=(n=u.useContext(pS))!=null?n:{utils:void 0,localeText:void 0},l=je({props:o,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:c,dateFormats:f,dateLibInstance:p,adapterLocale:h,localeText:y}=l,v=u.useMemo(()=>S({},y,i,r),[y,i,r]),m=u.useMemo(()=>{if(!c)return s||null;const b=new c({locale:h,formats:f,instance:p});if(!b.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
|
|
619
|
-
`));return b},[c,h,f,p,s]),C=u.useMemo(()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null,[m]),w=u.useMemo(()=>({utils:m,defaultDates:C,localeText:v}),[C,m,v]);return D.jsx(pS.Provider,{value:w,children:a})},gCe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:S({},e)}}}}),z3={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"},vCe=z3;gCe(z3);const Wc=()=>{const e=u.useContext(pS);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=u.useMemo(()=>S({},vCe,e.localeText),[e.localeText]);return u.useMemo(()=>S({},e,{localeText:t}),[e,t])},on=()=>Wc().utils,Qh=()=>Wc().defaultDates,as=()=>Wc().localeText,ja=e=>{const t=on(),n=u.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},yCe=bt(D.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),bCe=bt(D.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),wCe=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"),CCe=bt(D.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");bt(D.jsxs(u.Fragment,{children:[D.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),D.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");const xCe=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"),SCe=bt(D.jsxs(u.Fragment,{children:[D.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),D.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),PCe=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 ECe(e){return Ke("MuiPickersArrowSwitcher",e)}We("MuiPickersArrowSwitcher",["root","spacer","button"]);const kCe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],ICe=["ownerState"],MCe=["ownerState"],_Ce=oe("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),TCe=oe("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),sD=oe(xr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>S({},e.hidden&&{visibility:"hidden"})),$Ce=e=>{const{classes:t}=e;return Te({root:["root"],spacer:["spacer"],button:["button"]},ECe,t)},V3=u.forwardRef(function(t,n){var r,o,s,i;const a=vn().direction==="rtl",c=je({props:t,name:"MuiPickersArrowSwitcher"}),{children:f,className:p,slots:h,slotProps:y,isNextDisabled:v,isNextHidden:m,onGoToNext:C,nextLabel:w,isPreviousDisabled:b,isPreviousHidden:x,onGoToPrevious:P,previousLabel:M}=c,E=le(c,kCe),k=c,R=$Ce(k),O={isDisabled:v,isHidden:m,goTo:C,label:w},_={isDisabled:b,isHidden:x,goTo:P,label:M},L=(r=h==null?void 0:h.previousIconButton)!=null?r:sD,B=qt({elementType:L,externalSlotProps:y==null?void 0:y.previousIconButton,additionalProps:{size:"medium",title:_.label,"aria-label":_.label,disabled:_.isDisabled,edge:"end",onClick:_.goTo},ownerState:S({},k,{hidden:_.isHidden}),className:R.button}),z=(o=h==null?void 0:h.nextIconButton)!=null?o:sD,T=qt({elementType:z,externalSlotProps:y==null?void 0:y.nextIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"start",onClick:O.goTo},ownerState:S({},k,{hidden:O.isHidden}),className:R.button}),$=(s=h==null?void 0:h.leftArrowIcon)!=null?s:bCe,F=qt({elementType:$,externalSlotProps:y==null?void 0:y.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),j=le(F,ICe),A=(i=h==null?void 0:h.rightArrowIcon)!=null?i:wCe,N=qt({elementType:A,externalSlotProps:y==null?void 0:y.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),H=le(N,MCe);return D.jsxs(_Ce,S({ref:n,className:xe(R.root,p),ownerState:k},E,{children:[D.jsx(L,S({},B,{children:a?D.jsx(A,S({},H)):D.jsx($,S({},j))})),f?D.jsx(qn,{variant:"subtitle1",component:"span",children:f}):D.jsx(TCe,{className:R.spacer,ownerState:k}),D.jsx(z,S({},T,{children:a?D.jsx($,S({},j)):D.jsx(A,S({},H))}))]}))}),_i=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),RCe=({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}},j3=["hours","minutes","seconds"],Rd=e=>j3.includes(e),Ql=e=>j3.includes(e)||e==="meridiem",OCe=(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,DCe=(e,t,n,r)=>{const o=bh(r.getHours(e),t,n);return r.setHours(e,o)},iD=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Xh=(e,t)=>(n,r)=>e?t.isAfter(n,r):iD(n,t)>iD(r,t),lD=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return _i(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:_i(n,["minutes"])?o.minutes:_i(n,["seconds"])?o.seconds:_i(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:_i(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,c;const f=u.useRef(n),p=u.useRef(o),h=u.useRef(o.includes(n)?n:o[0]),[y,v]=Qr({name:"useViews",state:"view",controlled:r,default:h.current}),m=u.useRef(s?y:null),[C,w]=Qr({name:"useViews",state:"focusedView",controlled:i,default:m.current});u.useEffect(()=>{(f.current&&f.current!==n||p.current&&p.current.some(_=>!o.includes(_)))&&(v(o.includes(n)?n:o[0]),p.current=o,f.current=n)},[n,v,y,o]);const b=o.indexOf(y),x=(a=o[b-1])!=null?a:null,P=(c=o[b+1])!=null?c:null,M=Ye((_,L)=>{w(L?_:B=>_===B?null:B),l==null||l(_,L)}),E=Ye(_=>{_!==y&&(v(_),M(_,!0),t&&t(_))}),k=Ye(()=>{P&&E(P),M(P,!0)}),R=Ye((_,L,B)=>{const z=L==="finish",T=B?o.indexOf(B)<o.length-1:!!P;e(_,z&&T?"partial":L),z&&k()}),O=Ye((_,L,B)=>{e(_,L?"partial":"finish",B),L&&(E(L),M(L,!0))});return{view:y,setView:E,focusedView:C,setFocusedView:M,nextView:P,previousView:x,defaultView:o.includes(n)?n:o[0],goToNextView:k,setValueAndGoToNextView:R,setValueAndGoToView:O}}function ACe(e,{disableFuture:t,maxDate:n,timezone:r}){const o=on();return u.useMemo(()=>{const s=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isBefore(s,n)?s:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function LCe(e,{disablePast:t,minDate:n,timezone:r}){const o=on();return u.useMemo(()=>{const s=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isAfter(s,n)?s:n);return!o.isBefore(i,e)},[t,n,e,o,r])}function QE(e,t,n,r){const o=on(),s=OCe(e,o),i=u.useCallback(l=>{const a=e==null?null:DCe(e,l,!!t,o);n(a,r!=null?r:"partial")},[t,e,n,r,o]);return{meridiemMode:s,handleMeridiemChange:i}}const wh=36,x0=2,S0=320,FCe=280,P0=334,H3=232,cp=48,E0=oe("div")({overflow:"hidden",width:S0,maxHeight:P0,display:"flex",flexDirection:"column",margin:"0 auto"});function NCe(e){return Ke("MuiTimeClock",e)}We("MuiTimeClock",["root","arrowSwitcher"]);const Od=220,Ni=36,Ch={x:Od/2,y:Od/2},U3={x:Ch.x,y:0},BCe=U3.x-Ch.x,zCe=U3.y-Ch.y,VCe=e=>e*(180/Math.PI),W3=(e,t,n)=>{const r=t-Ch.x,o=n-Ch.y,s=Math.atan2(BCe,zCe)-Math.atan2(r,o);let i=VCe(s);i=Math.round(i/e)*e,i%=360;const l=Math.floor(i/e)||0,a=bs(r,2)+bs(o,2),c=Math.sqrt(a);return{value:l,distance:c}},jCe=(e,t,n=1)=>{const r=n*6;let{value:o}=W3(r,e,t);return o=o*n%60,o},HCe=(e,t,n)=>{const{value:r,distance:o}=W3(30,e,t);let s=r||12;return n?s%=12:o<Od/2-Ni&&(s+=12,s%=24),s};function UCe(e){return Ke("MuiClockPointer",e)}We("MuiClockPointer",["root","thumb"]);const WCe=["className","hasSelected","isInner","type","viewValue"],GCe=e=>{const{classes:t}=e;return Te({root:["root"],thumb:["thumb"]},UCe,t)},KCe=oe("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>S({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),qCe=oe("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>S({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Ni/2}px)`,border:`${(Ni-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function YCe(e){const t=je({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:s}=t,i=le(t,WCe),l=u.useRef(o);u.useEffect(()=>{l.current=o},[o]);const a=S({},t,{shouldAnimate:l.current!==o}),c=GCe(a),f=()=>{let h=360/(o==="hours"?12:60)*s;return o==="hours"&&s>12&&(h-=360),{height:Math.round((r?.26:.4)*Od),transform:`rotateZ(${h}deg)`}};return D.jsx(KCe,S({style:f(),className:xe(n,c.root),ownerState:a},i,{children:D.jsx(qCe,{ownerState:a,className:c.thumb})}))}function QCe(e){return Ke("MuiClock",e)}We("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const Rp=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:s,utils:i,timezone:l})=>{const a=i.startOfDay(i.dateWithTimezone(void 0,l));n&&i.isBefore(o,a)&&(o=a),t&&i.isAfter(r,a)&&(r=a);let c=e,f=e;for(i.isBefore(e,o)&&(c=o,f=null),i.isAfter(e,r)&&(f&&(f=r),c=null);c||f;){if(c&&i.isAfter(c,r)&&(c=null),f&&i.isBefore(f,o)&&(f=null),c){if(!s(c))return c;c=i.addDays(c,1)}if(f){if(!s(f))return f;f=i.addDays(f,-1)}}return null},XCe=(e,t)=>t==null||!e.isValid(t)?null:t,Fs=(e,t,n)=>t==null||!e.isValid(t)?n:t,ZCe=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),XE=(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},hS=(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},ZE=(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")},JCe=["year","month","day"],id=e=>JCe.includes(e),aD=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return _i(n,["year"])?o.year:_i(n,["month"])?o.month:_i(n,["day"])?o.dayOfMonth:_i(n,["month","year"])?`${o.month} ${o.year}`:_i(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},exe=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},txe=e=>{const{classes:t}=e;return Te({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},QCe,t)},nxe=oe("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),rxe=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"}),oxe=oe("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),sxe=oe("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>S({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),ixe=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%)"})),lxe=oe(xr,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>S({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:Ni},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}})),axe=oe(xr,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>S({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:Ni},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}})),cD=oe(qn,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function cxe(e){const t=je({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:s,value:i,handleMeridiemChange:l,isTimeDisabled:a,meridiemMode:c,minutesStep:f=1,onChange:p,selectedId:h,type:y,viewValue:v,disabled:m,readOnly:C,className:w}=t,b=t,x=on(),P=as(),M=u.useRef(!1),E=txe(b),k=a(v,y),R=!n&&y==="hours"&&(v<1||v>12),O=(N,H)=>{m||C||a(N,y)||p(N,H)},_=(N,H)=>{let{offsetX:K,offsetY:Y}=N;if(K===void 0){const Q=N.target.getBoundingClientRect();K=N.changedTouches[0].clientX-Q.left,Y=N.changedTouches[0].clientY-Q.top}const te=y==="seconds"||y==="minutes"?jCe(K,Y,f):HCe(K,Y,!!n);O(te,H)},L=N=>{M.current=!0,_(N,"shallow")},B=N=>{M.current&&(_(N,"finish"),M.current=!1)},z=N=>{N.buttons>0&&_(N.nativeEvent,"shallow")},T=N=>{M.current&&(M.current=!1),_(N.nativeEvent,"finish")},$=u.useMemo(()=>y==="hours"?!0:v%5===0,[y,v]),F=y==="minutes"?f:1,j=u.useRef(null);Nt(()=>{o&&j.current.focus()},[o]);const A=N=>{if(!M.current)switch(N.key){case"Home":O(0,"partial"),N.preventDefault();break;case"End":O(y==="minutes"?59:23,"partial"),N.preventDefault();break;case"ArrowUp":O(v+F,"partial"),N.preventDefault();break;case"ArrowDown":O(v-F,"partial"),N.preventDefault();break}};return D.jsxs(nxe,{className:xe(w,E.root),children:[D.jsxs(rxe,{className:E.clock,children:[D.jsx(sxe,{onTouchMove:L,onTouchEnd:B,onMouseUp:T,onMouseMove:z,ownerState:{disabled:m},className:E.squareMask}),!k&&D.jsxs(u.Fragment,{children:[D.jsx(ixe,{className:E.pin}),i!=null&&D.jsx(YCe,{type:y,viewValue:v,isInner:R,hasSelected:$})]}),D.jsx(oxe,{"aria-activedescendant":h,"aria-label":P.clockLabelText(y,i,x),ref:j,role:"listbox",onKeyDown:A,tabIndex:0,className:E.wrapper,children:s})]}),n&&r&&D.jsxs(u.Fragment,{children:[D.jsx(lxe,{onClick:C?void 0:()=>l("am"),disabled:m||c===null,ownerState:b,className:E.amButton,title:dl(x,"am"),children:D.jsx(cD,{variant:"caption",className:E.meridiemText,children:dl(x,"am")})}),D.jsx(axe,{disabled:m||c===null,onClick:C?void 0:()=>l("pm"),ownerState:b,className:E.pmButton,title:dl(x,"pm"),children:D.jsx(cD,{variant:"caption",className:E.meridiemText,children:dl(x,"pm")})})]})]})}function uxe(e){return Ke("MuiClockNumber",e)}const wg=We("MuiClockNumber",["root","selected","disabled"]),dxe=["className","disabled","index","inner","label","selected"],fxe=e=>{const{classes:t,selected:n,disabled:r}=e;return Te({root:["root",n&&"selected",r&&"disabled"]},uxe,t)},pxe=oe("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${wg.disabled}`]:t.disabled},{[`&.${wg.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>S({height:Ni,width:Ni,position:"absolute",left:`calc((100% - ${Ni}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&&S({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function G3(e){const t=je({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:s,label:i,selected:l}=t,a=le(t,dxe),c=t,f=fxe(c),p=o%12/12*Math.PI*2-Math.PI/2,h=(Od-Ni-2)/2*(s?.65:1),y=Math.round(Math.cos(p)*h),v=Math.round(Math.sin(p)*h);return D.jsx(pxe,S({className:xe(n,f.root),"aria-disabled":r?!0:void 0,"aria-selected":l?!0:void 0,role:"option",style:{transform:`translate(${y}px, ${v+(Od-Ni)/2}px`},ownerState:c},a,{children:i}))}const hxe=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:s})=>{const i=t?s.getHours(t):null,l=[],a=e?1:0,c=e?12:23,f=p=>i===null?!1:e?p===12?i===12||i===0:i===p||i-12===p:i===p;for(let p=a;p<=c;p+=1){let h=p.toString();p===0&&(h="00");const y=!e&&(p===0||p>12);h=s.formatNumber(h);const v=f(p);l.push(D.jsx(G3,{id:v?o:void 0,index:p,inner:y,selected:v,disabled:r(p),label:h,"aria-label":n(h)},p))}return l},uD=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const s=e.formatNumber;return[[5,s("05")],[10,s("10")],[15,s("15")],[20,s("20")],[25,s("25")],[30,s("30")],[35,s("35")],[40,s("40")],[45,s("45")],[50,s("50")],[55,s("55")],[0,s("00")]].map(([i,l],a)=>{const c=i===t;return D.jsx(G3,{label:l,id:c?o:void 0,index:a+1,inner:!1,disabled:n(i),selected:c,"aria-label":r(l)},i)})},JE=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var s,i;const l=on(),a=u.useRef(n),c=(s=t!=null?t:a.current)!=null?s:o.emptyValue,f=u.useMemo(()=>o.getTimezone(l,c),[l,o,c]),p=Ye(m=>f==null?m:o.setTimezone(l,f,m)),h=(i=e!=null?e:f)!=null?i:"default",y=u.useMemo(()=>o.setTimezone(l,h,c),[o,l,h,c]),v=Ye((m,...C)=>{const w=p(m);r==null||r(w,...C)});return{value:y,handleValueChange:v,timezone:h}},rf=({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((c,...f)=>{l(c),o==null||o(c,...f)});return JE({timezone:t,value:i,defaultValue:void 0,onChange:a,valueManager:s})},ni={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},mxe=e=>Math.max(...e.map(t=>{var n;return(n=ni[t.type])!=null?n:1})),Kf=(e,t,n)=>{if(t===ni.year)return e.startOfYear(n);if(t===ni.month)return e.startOfMonth(n);if(t===ni.day)return e.startOfDay(n);let r=n;return t<ni.minutes&&(r=e.setMinutes(r,0)),t<ni.seconds&&(r=e.setSeconds(r,0)),t<ni.milliseconds&&(r=e.setMilliseconds(r,0)),r},gxe=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{var s;let i=o?o():Kf(t,n,ZE(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=Kf(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=Kf(t,n,e.maxDate));const l=Xh((s=e.disableIgnoringDatePartForTimeValidation)!=null?s:!1,t);return e.minTime!=null&&l(e.minTime,i)&&(i=Kf(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:hS(t,i,e.minTime))),e.maxTime!=null&&l(i,e.maxTime)&&(i=Kf(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:hS(t,i,e.maxTime))),i},K3=(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}},vxe=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},k0=(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))},q3=(e,t,n,r)=>{switch(n){case"month":return XE(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return k0(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[]}},Y3=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length<n;)r=`0${r}`;return r},Q3=(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?Y3(e,s,o.maxLength):s},yxe=(e,t,n,r,o,s,i)=>{const l=vxe(r),a=r==="Home",c=r==="End",f=n.value===""||a||c,p=()=>{const y=o[n.type]({currentDate:s,format:n.format,contentType:n.contentType}),v=b=>Q3(e,t,b,y,n),m=n.type==="minutes"&&i!=null&&i.minutesStep?i.minutesStep:1;let w=parseInt(n.value,10)+l*m;if(f){if(n.type==="year"&&!c&&!a)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);l>0||a?w=y.minimum:w=y.maximum}return w%m!==0&&((l<0||a)&&(w+=m-(m+w)%m),(l>0||c)&&(w-=w%m)),w>y.maximum?v(y.minimum+(w-y.maximum-1)%(y.maximum-y.minimum+1)):w<y.minimum?v(y.maximum-(y.minimum-w-1)%(y.maximum-y.minimum+1)):v(w)},h=()=>{const y=q3(e,t,n.type,n.format);if(y.length===0)return n.value;if(f)return l>0||a?y[0]:y[y.length-1];const m=(y.indexOf(n.value)+y.length+l)%y.length;return y[m]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?p():h()},ek=(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,""),X3=(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=ek(i,t?"input-rtl":"input-ltr"),a=`${i.startSeparator}${l}${i.endSeparator}`,c=Uu(a).length,f=a.length,p=Uu(l),h=r+l.indexOf(p[0])+i.startSeparator.length,y=h+p.length;o.push(S({},i,{start:n,end:n+c,startInInput:h,endInInput:y})),n+=c,r+=f}return o},bxe=(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}},dD=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),Z3=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,J3=(e,t,n,r,o)=>{if(n!=="digit")return!1;const s=e.dateWithTimezone(void 0,t);switch(r){case"year":return Z3(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")}},wxe=(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},fD=(e,t,n,r,o,s,i,l)=>{let a="";const c=[],f=e.date(),p=x=>{if(x==="")return null;const P=K3(e,x),M=J3(e,t,P.contentType,P.type,x),E=i?M:P.contentType==="digit",k=o!=null&&e.isValid(o);let R=k?e.formatByString(o,x):"",O=null;if(E)if(M)O=R===""?e.formatByString(f,x).length:R.length;else{if(P.maxLength==null)throw new Error(`MUI: The token ${x} should have a 'maxDigitNumber' property on it's adapter`);O=P.maxLength,k&&(R=Y3(e,R,O))}return c.push(S({},P,{format:x,maxLength:O,value:R,placeholder:bxe(e,t,n,P,x),hasLeadingZeros:M,hasLeadingZerosInFormat:M,hasLeadingZerosInInput:E,startSeparator:c.length===0?a:"",endSeparator:"",modified:!1})),null};let h=10,y=r,v=e.expandFormat(r);for(;v!==y;)if(y=v,v=e.expandFormat(y),h-=1,h<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const m=v,C=wxe(e,m),w=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((x,P)=>P.length-x.length).join("|")})`,"g");let b="";for(let x=0;x<m.length;x+=1){const P=C.find(O=>O.start<=x&&O.end>=x),M=m[x],E=P!=null,k=`${b}${m.slice(x)}`,R=w.test(k);!E&&M.match(/([A-Za-z]+)/)&&R?(b=k.slice(0,w.lastIndex),x+=w.lastIndex-1):E&&(P==null?void 0:P.start)===x||(P==null?void 0:P.end)===x||(p(b),b="",c.length===0?a+=M:c[c.length-1].endSeparator+=M)}return p(b),c.map(x=>{const P=M=>{let E=M;return l&&E!==null&&E.includes(" ")&&(E=`${E}`),s==="spacious"&&["/",".","-"].includes(E)&&(E=` ${E} `),E};return x.startSeparator=P(x.startSeparator),x.endSeparator=P(x.endSeparator),x})},Cxe=(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(ek(a,"non-input")))}const s=r.join(" "),i=o.join(" ");return e.parse(i,s)},xxe=(e,t)=>{const r=e.map(o=>{const s=ek(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${s}${o.endSeparator}`}).join("");return t?`${r}`:r},Sxe=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:s,longestMonth:i}=XE(e,n).reduce((l,a)=>{const c=e.getDaysInMonth(a);return c>l.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:a}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:Z3(e,t,l)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:l})=>({minimum:1,maximum:l!=null&&e.isValid(l)?e.getDaysInMonth(l):s,longestMonth:i}),weekDay:({format:l,contentType:a})=>{if(a==="digit"){const c=k0(e,t,l).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const a=e.getHours(o);return e.formatByString(e.endOfDay(n),l)!==a.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),l))}:{minimum:0,maximum:a}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}},Pxe=(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=k0(e,t,n.format),i=e.formatByString(r,n.format),l=s.indexOf(i),c=s.indexOf(n.value)-l;return e.addDays(r,c)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const s=e.getHours(r)<12,i=e.getHours(o);return s&&i>=12?e.addHours(o,-12):!s&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(r));case"minutes":return e.setMinutes(o,e.getMinutes(r));case"seconds":return e.setSeconds(o,e.getSeconds(r));default:return o}},pD={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},hD=(e,t,n,r,o,s)=>[...r].sort((i,l)=>pD[i.type]-pD[l.type]).reduce((i,l)=>!s||l.modified?Pxe(e,t,l,n,i):i,o),Exe=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,kxe=(e,t)=>{const n={};if(!t)return e.forEach((a,c)=>{const f=c===0?null:c-1,p=c===e.length-1?null:c+1;n[c]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let s=0,i=0,l=e.length-1;for(;l>=0;){i=e.findIndex((a,c)=>{var f;return c>=s&&((f=a.endSeparator)==null?void 0:f.includes(" "))&&a.endSeparator!==" / "}),i===-1&&(i=e.length-1);for(let a=i;a>=s;a-=1)o[a]=l,r[l]=a,l-=1;s=i+1}return e.forEach((a,c)=>{const f=o[c],p=f===0?null:r[f-1],h=f===e.length-1?null:r[f+1];n[c]={leftIndex:p,rightIndex:h}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},Ixe=["value","referenceDate"],os={emptyValue:null,getTodayValue:ZE,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=le(e,Ixe);return t!=null&&r.utils.isValid(t)?t:n!=null?n:gxe(r)},cleanValue:XCe,areValuesEqual:ZCe,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)},Mxe={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:X3(o(t),r),getValueStrFromSections:xxe,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)},tk=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>S({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})},nk=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const s=u.useMemo(()=>os.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:ni.day,timezone:o,getTodayDate:()=>ZE(n,o,"date")}),[]);return e!=null?e:s},_xe=["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"],Txe=e=>{const{classes:t}=e;return Te({root:["root"],arrowSwitcher:["arrowSwitcher"]},NCe,t)},$xe=oe(E0,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),Rxe=oe(V3,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),Oxe=["hours","minutes"],Dxe=u.forwardRef(function(t,n){const r=on(),o=je({props:t,name:"MuiTimeClock"}),{ampm:s=r.is12HourCycleInCurrentLocale(),ampmInClock:i=!1,autoFocus:l,components:a,componentsProps:c,slots:f,slotProps:p,value:h,defaultValue:y,referenceDate:v,disableIgnoringDatePartForTimeValidation:m=!1,maxTime:C,minTime:w,disableFuture:b,disablePast:x,minutesStep:P=1,shouldDisableClock:M,shouldDisableTime:E,showViewSwitcher:k,onChange:R,view:O,views:_=Oxe,openTo:L,onViewChange:B,focusedView:z,onFocusedViewChange:T,className:$,disabled:F,readOnly:j,timezone:A}=o,N=le(o,_xe),H=f!=null?f:tk(a),K=p!=null?p:c,{value:Y,handleValueChange:te,timezone:Q}=rf({name:"TimeClock",timezone:A,value:h,defaultValue:y,onChange:R,valueManager:os}),X=nk({value:Y,referenceDate:v,utils:r,props:o,timezone:Q}),J=as(),se=ja(Q),{view:Z,setView:he,previousView:ne,nextView:re,setValueAndGoToNextView:me}=Zh({view:O,views:_,openTo:L,onViewChange:B,onChange:te,focusedView:z,onFocusedViewChange:T}),{meridiemMode:ce,handleMeridiemChange:Se}=QE(X,s,me),ke=u.useCallback((pe,fe)=>{const de=Xh(m,r),be=fe==="hours"||fe==="minutes"&&_.includes("seconds"),_e=({start:Ge,end:Ve})=>!(w&&de(w,Ve)||C&&de(Ge,C)||b&&de(Ge,se)||x&&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,P)}case"seconds":{const Ge=r.setSeconds(X,pe);return!_e({start:Ge,end:Ge})||!Ne(pe)}default:throw new Error("not supported")}},[s,X,m,C,ce,w,P,M,E,r,b,x,se,_]),ae=Kt(),Ie=u.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:hxe({value:Y,utils:r,ampm:s,onChange:pe,getClockNumberText:J.hoursClockNumberText,isDisabled:fe=>F||ke(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:uD({utils:r,value:pe,onChange:fe,getClockNumberText:J.minutesClockNumberText,isDisabled:de=>F||ke(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:uD({utils:r,value:pe,onChange:fe,getClockNumberText:J.secondsClockNumberText,isDisabled:de=>F||ke(de,"seconds"),selectedId:ae})}}default:throw new Error("You must provide the type for ClockView")}},[Z,r,Y,s,J.hoursClockNumberText,J.minutesClockNumberText,J.secondsClockNumberText,ce,me,X,ke,ae,F]),ye=o,Me=Txe(ye);return D.jsxs($xe,S({ref:n,className:xe(Me.root,$),ownerState:ye},N,{children:[D.jsx(cxe,S({autoFocus:l!=null?l:!!z,ampmInClock:i&&_.includes("hours"),value:Y,type:Z,ampm:s,minutesStep:P,isTimeDisabled:ke,meridiemMode:ce,handleMeridiemChange:Se,selectedId:ae,disabled:F,readOnly:j},Ie)),k&&D.jsx(Rxe,{className:Me.arrowSwitcher,slots:H,slotProps:K,onGoToPrevious:()=>he(ne),isPreviousDisabled:!ne,previousLabel:J.openPreviousView,onGoToNext:()=>he(re),isNextDisabled:!re,nextLabel:J.openNextView,ownerState:ye})]}))});function Axe(e){return Ke("MuiDigitalClock",e)}const Lxe=We("MuiDigitalClock",["root","list","item"]),Fxe=["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"],Nxe=e=>{const{classes:t}=e;return Te({root:["root"],list:["list"],item:["item"]},Axe,t)},Bxe=oe(E0,{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:H3})),zxe=oe(Yd,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),Vxe=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)}})),jxe=u.forwardRef(function(t,n){var r,o,s;const i=on(),l=u.useRef(null),a=kt(n,l),c=je({props:t,name:"MuiDigitalClock"}),{ampm:f=i.is12HourCycleInCurrentLocale(),timeStep:p=30,autoFocus:h,components:y,componentsProps:v,slots:m,slotProps:C,value:w,defaultValue:b,referenceDate:x,disableIgnoringDatePartForTimeValidation:P=!1,maxTime:M,minTime:E,disableFuture:k,disablePast:R,minutesStep:O=1,shouldDisableClock:_,shouldDisableTime:L,onChange:B,view:z,openTo:T,onViewChange:$,focusedView:F,onFocusedViewChange:j,className:A,disabled:N,readOnly:H,views:K=["hours"],skipDisabled:Y=!1,timezone:te}=c,Q=le(c,Fxe),{value:X,handleValueChange:J,timezone:se}=rf({name:"DigitalClock",timezone:te,value:w,defaultValue:b,onChange:B,valueManager:os}),Z=as(),he=ja(se),ne=u.useMemo(()=>S({},c,{alreadyRendered:!!l.current}),[c]),re=Nxe(ne),me=(r=(o=m==null?void 0:m.digitalClockItem)!=null?o:y==null?void 0:y.DigitalClockItem)!=null?r:Vxe,ce=qt({elementType:me,externalSlotProps:(s=C==null?void 0:C.digitalClockItem)!=null?s:v==null?void 0:v.digitalClockItem,ownerState:{},className:re.item}),Se=nk({value:X,referenceDate:x,utils:i,props:c,timezone:se}),ke=Ye(pe=>J(pe,"finish","hours")),{setValueAndGoToNextView:ae}=Zh({view:z,views:K,openTo:T,onViewChange:$,onChange:ke,focusedView:F,onFocusedViewChange:j}),Ie=Ye(pe=>{ae(pe,"finish")});u.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=u.useCallback(pe=>{const fe=Xh(P,i),de=()=>!(E&&fe(E,pe)||M&&fe(pe,M)||k&&fe(pe,he)||R&&fe(he,pe)),be=()=>i.getMinutes(pe)%O!==0||_!=null&&_(i.toJsDate(pe).getTime(),"hours")?!1:L?!L(pe,"hours"):!0;return!de()||!be()},[P,i,E,M,k,he,R,O,_,L]),Me=u.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(Bxe,S({ref:a,className:xe(re.root,A),ownerState:ne},Q,{children:D.jsx(zxe,{autoFocusItem:h||!!F,role:"listbox","aria-label":Z.timePickerToolbarTitle,className:re.list,children:Me.map(pe=>{if(Y&&ye(pe))return null;const fe=i.isEqual(pe,X);return D.jsx(me,S({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 Hxe(e){return Ke("MuiMultiSectionDigitalClock",e)}We("MuiMultiSectionDigitalClock",["root"]);function Uxe(e){return Ke("MuiMultiSectionDigitalClock",e)}const Wxe=We("MuiMultiSectionDigitalClock",["root","item"]),Gxe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],Kxe=e=>{const{classes:t}=e;return Te({root:["root"],item:["item"]},Uxe,t)},qxe=oe(Yd,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:H3,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)"}})),Yxe=oe(Pr,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:cp,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)}})),Qxe=u.forwardRef(function(t,n){var r;const o=u.useRef(null),s=kt(n,o),i=u.useRef(null),l=je({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:a,onChange:c,className:f,disabled:p,readOnly:h,items:y,active:v,slots:m,slotProps:C,skipDisabled:w}=l,b=le(l,Gxe),x=u.useMemo(()=>S({},l,{alreadyRendered:!!o.current}),[l]),P=Kxe(x),M=(r=m==null?void 0:m.digitalClockSectionItem)!=null?r:Yxe;return u.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,v&&a&&E.focus();const k=E.offsetTop;o.current.scrollTop=k-4}),D.jsx(qxe,S({ref:s,className:xe(P.root,f),ownerState:x,autoFocusItem:a&&v,role:"listbox"},b,{children:y.map(E=>{var k,R;if(w&&(k=E.isDisabled)!=null&&k.call(E,E.value))return null;const O=E.isSelected(E.value);return D.jsx(M,S({onClick:()=>!h&&c(E.value),selected:O,disabled:p||((R=E.isDisabled)==null?void 0:R.call(E,E.value)),disableRipple:h,role:"option","aria-disabled":h,"aria-label":E.ariaLabel,"aria-selected":O},C==null?void 0:C.digitalClockSectionItem,{children:E.label}),E.label)})}))}),Xxe=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:s,timeStep:i})=>{const l=t?n.getHours(t):null,a=[],c=p=>l===null?!1:r?p===12?l===12||l===0:l===p||l-12===p:l===p,f=r?11:23;for(let p=0;p<=f;p+=i){let h=n.format(n.setHours(e,p),r?"hours12h":"hours24h");const y=s(parseInt(h,10).toString());h=n.formatNumber(h),a.push({value:p,label:h,isSelected:c,isDisabled:o,ariaLabel:y})}return a},mD=({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 c=n*a;return{value:c,label:r(c),isDisabled:t,isSelected:i,ariaLabel:o(c.toString())}})]},Zxe=["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"],Jxe=e=>{const{classes:t}=e;return Te({root:["root"]},Hxe,t)},eSe=oe(E0,{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}`})),tSe=u.forwardRef(function(t,n){const r=on(),o=je({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:s=r.is12HourCycleInCurrentLocale(),timeSteps:i,autoFocus:l,components:a,componentsProps:c,slots:f,slotProps:p,value:h,defaultValue:y,referenceDate:v,disableIgnoringDatePartForTimeValidation:m=!1,maxTime:C,minTime:w,disableFuture:b,disablePast:x,minutesStep:P=1,shouldDisableClock:M,shouldDisableTime:E,onChange:k,view:R,views:O=["hours","minutes"],openTo:_,onViewChange:L,focusedView:B,onFocusedViewChange:z,className:T,disabled:$,readOnly:F,skipDisabled:j=!1,timezone:A}=o,N=le(o,Zxe),{value:H,handleValueChange:K,timezone:Y}=rf({name:"MultiSectionDigitalClock",timezone:A,value:h,defaultValue:y,onChange:k,valueManager:os}),te=as(),Q=ja(Y),X=u.useMemo(()=>S({hours:1,minutes:5,seconds:5},i),[i]),J=nk({value:H,referenceDate:v,utils:r,props:o,timezone:Y}),se=Ye((fe,de,be)=>K(fe,de,be)),Z=u.useMemo(()=>!s||!O.includes("hours")||O.includes("meridiem")?O:[...O,"meridiem"],[s,O]),{view:he,setValueAndGoToView:ne,focusedView:re}=Zh({view:R,views:Z,openTo:_,onViewChange:L,onChange:se,focusedView:B,onFocusedViewChange:z}),me=Ye(fe=>{ne(fe,null,"meridiem")}),{meridiemMode:ce,handleMeridiemChange:Se}=QE(J,s,me,"finish"),ke=u.useCallback((fe,de)=>{const be=Xh(m,r),_e=de==="hours"||de==="minutes"&&Z.includes("seconds"),Ne=({start:Ve,end:Ue})=>!(w&&be(w,Ue)||C&&be(Ve,C)||b&&be(Ve,Q)||x&&be(Q,_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(J,Ve),"hours");case"minutes":return!E(r.setMinutes(J,Ve),"minutes");case"seconds":return!E(r.setSeconds(J,Ve),"seconds");default:return!1}return!0};switch(de){case"hours":{const Ve=bh(fe,ce,s),Ue=r.setHours(J,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(J,fe),Ue=r.setSeconds(Ve,0),Le=r.setSeconds(Ve,59);return!Ne({start:Ue,end:Le})||!Ge(fe,P)}case"seconds":{const Ve=r.setSeconds(J,fe);return!Ne({start:Ve,end:Ve})||!Ge(fe)}default:throw new Error("not supported")}},[s,J,m,C,ce,w,P,M,E,r,b,x,Q,Z]),ae=Ye((fe,de)=>{const be=Z.indexOf(fe),_e=Z[be+1];ne(de,_e,fe)}),Ie=u.useCallback(fe=>{switch(fe){case"hours":return{onChange:de=>{const be=bh(de,ce,s);ae("hours",r.setHours(J,be))},items:Xxe({now:Q,value:H,ampm:s,utils:r,isDisabled:de=>$||ke(de,"hours"),timeStep:X.hours,resolveAriaLabel:te.hoursClockNumberText})};case"minutes":return{onChange:de=>{ae("minutes",r.setMinutes(J,de))},items:mD({value:r.getMinutes(J),isDisabled:de=>$||ke(de,"minutes"),resolveLabel:de=>r.format(r.setMinutes(Q,de),"minutes"),timeStep:X.minutes,hasValue:!!H,resolveAriaLabel:te.minutesClockNumberText})};case"seconds":return{onChange:de=>{ae("seconds",r.setSeconds(J,de))},items:mD({value:r.getSeconds(J),isDisabled:de=>$||ke(de,"seconds"),resolveLabel:de=>r.format(r.setSeconds(Q,de),"seconds"),timeStep:X.seconds,hasValue:!!H,resolveAriaLabel:te.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.`)}},[Q,H,s,r,X.hours,X.minutes,X.seconds,te.hoursClockNumberText,te.minutesClockNumberText,te.secondsClockNumberText,ce,ae,J,$,ke,Se]),ye=u.useMemo(()=>Z.reduce((fe,de)=>S({},fe,{[de]:Ie(de)}),{}),[Z,Ie]),Me=o,pe=Jxe(Me);return D.jsx(eSe,S({ref:n,className:xe(pe.root,T),ownerState:Me,role:"group"},N,{children:Object.entries(ye).map(([fe,de])=>D.jsx(Qxe,{items:de.items,onChange:de.onChange,active:he===fe,autoFocus:l!=null?l:re===fe,disabled:$,readOnly:F,slots:f!=null?f:a,slotProps:p!=null?p:c,skipDisabled:j,"aria-label":te.selectViewText(fe)},fe))}))});function nSe(e){return Ke("MuiPickersDay",e)}const Ja=We("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),rSe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],oSe=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:s,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:l,classes:a}=e,c=i&&!l;return Te({root:["root",t&&!c&&"selected",s&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&l&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},nSe,a)},eB=({theme:e,ownerState:t})=>S({},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),[`&.${Ja.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Ja.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}},[`&.${Ja.disabled}:not(.${Ja.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ja.disabled}&.${Ja.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${x0}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${Ja.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),tB=(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]},sSe=oe(fi,{name:"MuiPickersDay",slot:"Root",overridesResolver:tB})(eB),iSe=oe("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:tB})(({theme:e,ownerState:t})=>S({},eB({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),qf=()=>{},lSe=u.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:c=!1,isAnimating:f,onClick:p,onDaySelect:h,onFocus:y=qf,onBlur:v=qf,onKeyDown:m=qf,onMouseDown:C=qf,onMouseEnter:w=qf,outsideCurrentMonth:b,selected:x=!1,showDaysOutsideCurrentMonth:P=!1,children:M,today:E=!1}=r,k=le(r,rSe),R=S({},r,{autoFocus:o,disabled:l,disableHighlightToday:a,disableMargin:c,selected:x,showDaysOutsideCurrentMonth:P,today:E}),O=oSe(R),_=on(),L=u.useRef(null),B=kt(L,n);Nt(()=>{o&&!l&&!f&&!b&&L.current.focus()},[o,l,f,b]);const z=$=>{C($),b&&$.preventDefault()},T=$=>{l||h(i),b&&$.currentTarget.focus(),p&&p($)};return b&&!P?D.jsx(iSe,{className:xe(O.root,O.hiddenDaySpacingFiller,s),ownerState:R,role:k.role}):D.jsx(sSe,S({className:xe(O.root,s),ref:B,centerRipple:!0,disabled:l,tabIndex:x?0:-1,onKeyDown:$=>m($,i),onFocus:$=>y($,i),onBlur:$=>v($,i),onMouseEnter:$=>w($,i),onClick:T,onMouseDown:z},k,{ownerState:R,children:M||_.format(i,"dayOfMonth")}))}),aSe=u.memo(lSe);function nB(e,t,n,r){const{value:o,onError:s}=e,i=Wc(),l=u.useRef(r),a=t({adapter:i,value:o,props:e});return u.useEffect(()=>{s&&!n(a,l.current)&&s(a,o),l.current=a},[n,s,l,a,o]),a}const cSe=e=>{const t=on(),n=as(),r=Wc(),s=vn().direction==="rtl",{valueManager:i,fieldValueManager:l,valueType:a,validator:c,internalProps:f,internalProps:{value:p,defaultValue:h,referenceDate:y,onChange:v,format:m,formatDensity:C="dense",selectedSections:w,onSelectedSectionsChange:b,shouldRespectLeadingZeros:x=!1,timezone:P}}=e,{timezone:M,value:E,handleValueChange:k}=JE({timezone:P,value:p,defaultValue:h,onChange:v,valueManager:i}),R=u.useMemo(()=>Sxe(t,M),[t,M]),O=u.useCallback((Q,X=null)=>l.getSectionsFromValue(t,Q,X,s,J=>fD(t,M,n,m,J,C,x,s)),[l,m,n,s,x,t,C,M]),_=u.useMemo(()=>l.getValueStrFromSections(O(i.emptyValue),s),[l,O,i.emptyValue,s]),[L,B]=u.useState(()=>{const Q=O(E),X={sections:Q,value:E,referenceValue:i.emptyValue,tempValueStrAndroid:null},J=mxe(Q),se=i.getInitialReferenceValue({referenceDate:y,value:E,utils:t,props:f,granularity:J,timezone:M});return S({},X,{referenceValue:se})}),[z,T]=Qr({controlled:w,default:null,name:"useField",state:"selectedSectionIndexes"}),$=Q=>{T(Q),b==null||b(Q),B(X=>S({},X,{selectedSectionQuery:null}))},F=u.useMemo(()=>{if(z==null)return null;if(z==="all")return{startIndex:0,endIndex:L.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof z=="number")return{startIndex:z,endIndex:z};if(typeof z=="string"){const Q=L.sections.findIndex(X=>X.type===z);return{startIndex:Q,endIndex:Q}}return z},[z,L.sections]),j=({value:Q,referenceValue:X,sections:J})=>{if(B(Z=>S({},Z,{sections:J,value:Q,referenceValue:X,tempValueStrAndroid:null})),i.areValuesEqual(t,L.value,Q))return;const se={validationError:c({adapter:r,value:Q,props:S({},f,{value:Q,timezone:M})})};k(Q,se)},A=(Q,X)=>{const J=[...L.sections];return J[Q]=S({},J[Q],{value:X,modified:!0}),X3(J,s)},N=()=>{j({value:i.emptyValue,referenceValue:L.referenceValue,sections:O(i.emptyValue)})},H=()=>{if(F==null)return;const Q=L.sections[F.startIndex],X=l.getActiveDateManager(t,L,Q),se=X.getSections(L.sections).filter(re=>re.value!=="").length===(Q.value===""?0:1),Z=A(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))?j(S({},ne,{sections:Z})):B(re=>S({},re,ne,{sections:Z,tempValueStrAndroid:null}))},K=Q=>{const X=(Z,he)=>{const ne=t.parse(Z,m);if(ne==null||!t.isValid(ne))return null;const re=fD(t,M,n,m,ne,C,x,s);return hD(t,M,ne,re,he,!1)},J=l.parseValueStr(Q,L.referenceValue,X),se=l.updateReferenceValue(t,J,L.referenceValue);j({value:J,referenceValue:se,sections:O(J,L.sections)})},Y=({activeSection:Q,newSectionValue:X,shouldGoToNextSection:J})=>{J&&F&&F.startIndex<L.sections.length-1?$(F.startIndex+1):F&&F.startIndex!==F.endIndex&&$(F.startIndex);const se=l.getActiveDateManager(t,L,Q),Z=A(F.startIndex,X),he=se.getSections(Z),ne=Cxe(t,he);let re,me;if(ne!=null&&t.isValid(ne)){const ce=hD(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?j(S({},re,{sections:Z})):B(ce=>S({},ce,re,{sections:Z,tempValueStrAndroid:null}))},te=Q=>B(X=>S({},X,{tempValueStrAndroid:Q}));return u.useEffect(()=>{const Q=O(L.value);B(X=>S({},X,{sections:Q}))},[m,t.locale]),u.useEffect(()=>{let Q=!1;i.areValuesEqual(t,L.value,E)?Q=i.getTimezone(t,L.value)!==i.getTimezone(t,E):Q=!0,Q&&B(X=>S({},X,{value:E,referenceValue:l.updateReferenceValue(t,E,X.referenceValue),sections:O(E)}))},[E]),{state:L,selectedSectionIndexes:F,setSelectedSections:$,clearValue:N,clearActiveSection:H,updateSectionValue:Y,updateValueFromValueStr:K,setTempAndroidValueStr:te,sectionsValueBoundaries:R,placeholder:_,timezone:M}},uSe=5e3,wu=e=>e.saveQuery!=null,dSe=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const s=on(),[i,l]=u.useState(null),a=Ye(()=>l(null));u.useEffect(()=>{var y;i!=null&&((y=e[i.sectionIndex])==null?void 0:y.type)!==i.sectionType&&a()},[e,i,a]),u.useEffect(()=>{if(i!=null){const y=setTimeout(()=>a(),uSe);return()=>{window.clearTimeout(y)}}return()=>{}},[i,a]);const c=({keyPressed:y,sectionIndex:v},m,C)=>{const w=y.toLowerCase(),b=e[v];if(i!=null&&(!C||C(i.value))&&i.sectionIndex===v){const P=`${i.value}${w}`,M=m(P,b);if(!wu(M))return l({sectionIndex:v,value:P,sectionType:b.type}),M}const x=m(w,b);return wu(x)&&!x.saveQuery?(a(),null):(l({sectionIndex:v,value:w,sectionType:b.type}),wu(x)?null:x)},f=y=>{const v=(w,b,x)=>{const P=b.filter(M=>M.toLowerCase().startsWith(x));return P.length===0?{saveQuery:!1}:{sectionValue:P[0],shouldGoToNextSection:P.length===1}},m=(w,b,x,P)=>{const M=E=>q3(s,o,b.type,E);if(b.contentType==="letter")return v(b.format,M(b.format),w);if(x&&P!=null&&K3(s,x).contentType==="letter"){const E=M(x),k=v(x,E,w);return wu(k)?{saveQuery:!1}:S({},k,{sectionValue:P(k.sectionValue,E)})}return{saveQuery:!1}};return c(y,(w,b)=>{switch(b.type){case"month":{const x=P=>dD(s,P,s.formats.month,b.format);return m(w,b,s.formats.month,x)}case"weekDay":{const x=(P,M)=>M.indexOf(P).toString();return m(w,b,s.formats.weekday,x)}case"meridiem":return m(w,b);default:return{saveQuery:!1}}})},p=y=>{const v=(C,w)=>{const b=+`${C}`,x=n[w.type]({currentDate:null,format:w.format,contentType:w.contentType});if(b>x.maximum)return{saveQuery:!1};if(b<x.minimum)return{saveQuery:!0};const P=+`${C}0`>x.maximum||C.length===x.maximum.toString().length;return{sectionValue:Q3(s,o,b,x,w),shouldGoToNextSection:P}};return c(y,(C,w)=>{if(w.contentType==="digit"||w.contentType==="digit-with-letter")return v(C,w);if(w.type==="month"){const b=J3(s,o,"digit","month","MM"),x=v(C,{type:w.type,format:"MM",hasLeadingZerosInFormat:b,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(wu(x))return x;const P=dD(s,x.sectionValue,"MM",w.format);return S({},x,{sectionValue:P})}if(w.type==="weekDay"){const b=v(C,w);if(wu(b))return b;const x=k0(s,o,w.format)[Number(b.sectionValue)-1];return S({},b,{sectionValue:x})}return{saveQuery:!1}},C=>!Number.isNaN(Number(C)))};return{applyCharacterEditing:Ye(y=>{const v=e[y.sectionIndex],C=!Number.isNaN(Number(y.keyPressed))?p(y):f(y);C==null?r(null):t({activeSection:v,newSectionValue:C.sectionValue,shouldGoToNextSection:C.shouldGoToNextSection})}),resetCharacterQuery:a}};function fSe(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const pSe=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},gy=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?gy(t.shadowRoot):t:null},hSe="@media (pointer: fine)",mSe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],gSe=e=>{const t=on(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:s,clearActiveSection:i,updateSectionValue:l,updateValueFromValueStr:a,setTempAndroidValueStr:c,sectionsValueBoundaries:f,placeholder:p,timezone:h}=cSe(e),{inputRef:y,internalProps:v,internalProps:{readOnly:m=!1,unstableFieldRef:C,minutesStep:w},forwardedProps:{onClick:b,onKeyDown:x,onFocus:P,onBlur:M,onMouseUp:E,onPaste:k,error:R,clearable:O,onClear:_,disabled:L},fieldValueManager:B,valueManager:z,validator:T}=e,$=le(e.forwardedProps,mSe),{applyCharacterEditing:F,resetCharacterQuery:j}=dSe({sections:n.sections,updateSectionValue:l,sectionsValueBoundaries:f,setTempAndroidValueStr:c,timezone:h}),A=u.useRef(null),N=kt(y,A),H=u.useRef(void 0),Y=vn().direction==="rtl",te=u.useMemo(()=>kxe(n.sections,Y),[n.sections,Y]),Q=()=>{var pe;if(m){o(null);return}const fe=(pe=A.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()||(b==null||b(pe,...fe),Q())}),J=Ye(pe=>{E==null||E(pe),pe.preventDefault()}),se=Ye((...pe)=>{P==null||P(...pe);const fe=A.current;window.clearTimeout(H.current),H.current=setTimeout(()=>{!fe||fe!==A.current||r!=null||m||(fe.value.length&&Number(fe.selectionEnd)-Number(fe.selectionStart)===fe.value.length?o("all"):Q())})}),Z=Ye((...pe)=>{M==null||M(...pe),o(null)}),he=Ye(pe=>{if(k==null||k(pe),m){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(),j(),a(fe)}),ne=Ye(pe=>{if(m)return;const fe=pe.target.value;if(fe===""){j(),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(B.getValueStrFromSections(n.sections,Y));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){Exe()?c(_e):(j(),i());return}F({keyPressed:Ge,sectionIndex:r.startIndex})}),re=Ye(pe=>{switch(x==null||x(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(te.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const fe=te.neighbors[r.startIndex].rightIndex;fe!==null&&o(fe)}break}case pe.key==="ArrowLeft":{if(pe.preventDefault(),r==null)o(te.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const fe=te.neighbors[r.startIndex].leftIndex;fe!==null&&o(fe)}break}case pe.key==="Delete":{if(pe.preventDefault(),m)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?s():i(),j();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(pe.key):{if(pe.preventDefault(),m||r==null)break;const fe=n.sections[r.startIndex],de=B.getActiveDateManager(t,n,fe),be=yxe(t,h,fe,pe.key,f,de.date,{minutesStep:w});l({activeSection:fe,newSectionValue:be,shouldGoToNextSection:!1});break}}});Nt(()=>{if(!A.current)return;if(r==null){A.current.scrollLeft&&(A.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!==A.current.selectionStart||be!==A.current.selectionEnd){const _e=A.current.scrollTop;A.current===gy(document)&&A.current.setSelectionRange(de,be),A.current.scrollTop=_e}});const me=nB(S({},v,{value:n.value,timezone:h}),T,z.isSameError,z.defaultErrorState),ce=u.useMemo(()=>R!==void 0?R:z.hasError(me),[z,me,R]);u.useEffect(()=>{!ce&&!r&&j()},[n.referenceValue,r,ce]),u.useEffect(()=>(A.current&&A.current===document.activeElement&&o("all"),()=>window.clearTimeout(H.current)),[]),u.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(j(),i())},[n.tempValueStrAndroid]);const Se=u.useMemo(()=>{var pe;return(pe=n.tempValueStrAndroid)!=null?pe:B.getValueStrFromSections(n.sections,Y)},[n.sections,B,n.tempValueStrAndroid,Y]),ke=u.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),ae=A.current&&A.current===gy(document),Ie=z.areValuesEqual(t,n.value,z.emptyValue),ye=!ae&&Ie;u.useImperativeHandle(C,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var pe,fe;const de=(pe=A.current.selectionStart)!=null?pe:0,be=(fe=A.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(),A==null||(de=A.current)==null||de.focus(),o(0)});return S({placeholder:p,autoComplete:"off",disabled:!!L},$,{value:ye?"":Se,inputMode:ke,readOnly:m,onClick:X,onFocus:se,onBlur:Z,onPaste:he,onChange:ne,onKeyDown:re,onMouseUp:J,onClear:Me,error:ce,ref:N,clearable:!!(O&&!Ie&&!m&&!L)})},rB=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:o,shouldDisableYear:s,disablePast:i,disableFuture:l,timezone:a}=e,c=n.utils.dateWithTimezone(void 0,a),f=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,c)):return"disableFuture";case!!(i&&n.utils.isBeforeDay(t,c)):return"disablePast";case!!(f&&n.utils.isBeforeDay(t,f)):return"minDate";case!!(p&&n.utils.isAfterDay(t,p)):return"maxDate";default:return null}},mS=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],gS=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],oB=["minDateTime","maxDateTime"],vSe=[...mS,...gS,...oB],sB=e=>vSe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),ySe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],bSe=(e,t)=>{const n=S({},e),r={},o=s=>{n.hasOwnProperty(s)&&(r[s]=n[s],delete n[s])};return ySe.forEach(o),t==="date"?mS.forEach(o):t==="time"?gS.forEach(o):t==="date-time"&&(mS.forEach(o),gS.forEach(o),oB.forEach(o)),{forwardedProps:n,internalProps:r}},wSe=oe(H4)({[`& .${Mp.container}`]:{outline:0},[`& .${Mp.paper}`]:{outline:0,minWidth:S0}}),CSe=oe(U4)({"&:first-of-type":{padding:0}});function xSe(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:wSe,c=(n=i==null?void 0:i.mobileTransition)!=null?n:Gd;return D.jsx(a,S({open:s,onClose:o},l==null?void 0:l.dialog,{TransitionComponent:c,TransitionProps:l==null?void 0:l.mobileTransition,PaperComponent:i==null?void 0:i.mobilePaper,PaperProps:l==null?void 0:l.mobilePaper,children:D.jsx(CSe,{children:r})}))}function SSe(e){return Ke("MuiPickersPopper",e)}We("MuiPickersPopper",["root","paper"]);const PSe="@media (prefers-reduced-motion: reduce)",ld=typeof navigator!="undefined"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),gD=ld&&ld[1]?parseInt(ld[1],10):null,vD=ld&&ld[2]?parseInt(ld[2],10):null,ESe=gD&&gD<10||vD&&vD<13||!1,iB=()=>F1(PSe,{defaultMatches:!1})||ESe,kSe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],ISe=e=>{const{classes:t}=e;return Te({root:["root"],paper:["paper"]},SSe,t)},MSe=oe(Na,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),_Se=oe(Vs,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>S({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function TSe(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function $Se(e,t){const n=u.useRef(!1),r=u.useRef(!1),o=u.useRef(null),s=u.useRef(!1);u.useEffect(()=>{if(!e)return;function a(){s.current=!0}return document.addEventListener("mousedown",a,!0),document.addEventListener("touchstart",a,!0),()=>{document.removeEventListener("mousedown",a,!0),document.removeEventListener("touchstart",a,!0),s.current=!1}},[e]);const i=Ye(a=>{if(!s.current)return;const c=r.current;r.current=!1;const f=pn(o.current);if(!o.current||"clientX"in a&&TSe(a,f))return;if(n.current){n.current=!1;return}let p;a.composedPath?p=a.composedPath().indexOf(o.current)>-1:p=!f.documentElement.contains(a.target)||o.current.contains(a.target),!p&&!c&&t(a)}),l=()=>{r.current=!0};return u.useEffect(()=>{if(e){const a=pn(o.current),c=()=>{n.current=!0};return a.addEventListener("touchstart",i),a.addEventListener("touchmove",c),()=>{a.removeEventListener("touchstart",i),a.removeEventListener("touchmove",c)}}},[e,i]),u.useEffect(()=>{if(e){const a=pn(o.current);return a.addEventListener("click",i),()=>{a.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,l,l]}const RSe=u.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:s,paperSlotProps:i,paperClasses:l,onPaperClick:a,onPaperTouchStart:c}=e,f=le(e,kSe),p=S({},o,{placement:r}),h=qt({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:l,ownerState:p});return D.jsx(n,S({},f,h,{onClick:y=>{var v;a(y),(v=h.onClick)==null||v.call(h,y)},onTouchStart:y=>{var v;c(y),(v=h.onTouchStart)==null||v.call(h,y)},ownerState:p,children:s}))});function OSe(e){var t,n,r,o;const s=je({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:l,containerRef:a=null,shouldRestoreFocus:c,onBlur:f,onDismiss:p,open:h,role:y,placement:v,slots:m,slotProps:C,reduceAnimations:w}=s;u.useEffect(()=>{function N(H){h&&(H.key==="Escape"||H.key==="Esc")&&p()}return document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N)}},[p,h]);const b=u.useRef(null);u.useEffect(()=>{y==="tooltip"||c&&!c()||(h?b.current=gy(document):b.current&&b.current instanceof HTMLElement&&setTimeout(()=>{b.current instanceof HTMLElement&&b.current.focus()}))},[h,y,c]);const[x,P,M]=$Se(h,f!=null?f:p),E=u.useRef(null),k=kt(E,a),R=kt(k,x),O=s,_=ISe(O),L=iB(),B=w!=null?w:L,z=N=>{N.key==="Escape"&&(N.stopPropagation(),p())},T=((t=m==null?void 0:m.desktopTransition)!=null?t:B)?Gd:ah,$=(n=m==null?void 0:m.desktopTrapFocus)!=null?n:s2,F=(r=m==null?void 0:m.desktopPaper)!=null?r:_Se,j=(o=m==null?void 0:m.popper)!=null?o:MSe,A=qt({elementType:j,externalSlotProps:C==null?void 0:C.popper,additionalProps:{transition:!0,role:y,open:h,anchorEl:i,placement:v,onKeyDown:z},className:_.root,ownerState:s});return D.jsx(j,S({},A,{children:({TransitionProps:N,placement:H})=>D.jsx($,S({open:h,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:y==="tooltip",isEnabled:()=>!0},C==null?void 0:C.desktopTrapFocus,{children:D.jsx(T,S({},N,C==null?void 0:C.desktopTransition,{children:D.jsx(RSe,{PaperComponent:F,ownerState:O,popperPlacement:H,ref:R,onPaperClick:P,onPaperTouchStart:M,paperClasses:_.paper,paperSlotProps:C==null?void 0:C.desktopPaper,children:l})}))}))}))}function lB(e){return Ke("MuiPickersToolbar",e)}We("MuiPickersToolbar",["root","content"]);const DSe=e=>{const{classes:t,isLandscape:n}=e;return Te({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},lB,t)},ASe=oe("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>S({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),LSe=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"}}),FSe=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiPickersToolbar"}),{children:o,className:s,toolbarTitle:i,hidden:l,titleId:a}=r,c=r,f=DSe(c);return l?null:D.jsxs(ASe,{ref:n,className:xe(f.root,s),ownerState:c,children:[D.jsx(qn,{color:"text.secondary",variant:"overline",id:a,children:i}),D.jsx(LSe,{className:f.content,ownerState:c,children:o})]})});function NSe(e){return Ke("MuiPickersToolbarText",e)}const yD=We("MuiPickersToolbarText",["root","selected"]),BSe=["className","selected","value"],zSe=e=>{const{classes:t,selected:n}=e;return Te({root:["root",n&&"selected"]},NSe,t)},VSe=oe(qn,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${yD.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${yD.selected}`]:{color:(e.vars||e).palette.text.primary}})),aB=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiPickersToolbarText"}),{className:o,value:s}=r,i=le(r,BSe),l=zSe(r);return D.jsx(VSe,S({ref:n,className:xe(o,l.root),component:"span"},i,{children:s}))}),jSe=["align","className","selected","typographyClassName","value","variant","width"],HSe=e=>{const{classes:t}=e;return Te({root:["root"]},lB,t)},USe=oe(Yn,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Wl=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:s,selected:i,typographyClassName:l,value:a,variant:c,width:f}=r,p=le(r,jSe),h=HSe(r);return D.jsx(USe,S({variant:"text",ref:n,className:xe(s,h.root)},f?{sx:{width:f}}:{},p,{children:D.jsx(aB,{align:o,className:l,variant:c,value:a,selected:i})}))}),WSe=({open:e,onOpen:t,onClose:n})=>{const r=u.useRef(typeof e=="boolean").current,[o,s]=u.useState(!1);u.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");s(e)}},[r,e]);const i=u.useCallback(l=>{r||s(l),l&&t&&t(),!l&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},GSe=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},KSe=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},qSe=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},YSe=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:s,onChange:i,value:l,defaultValue:a,closeOnSelect:c=r==="desktop",selectedSections:f,onSelectedSectionsChange:p,timezone:h}=e,{current:y}=u.useRef(a),{current:v}=u.useRef(l!==void 0),m=on(),C=Wc(),[w,b]=Qr({controlled:f,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:x,setIsOpen:P}=WSe(e),[M,E]=u.useState(()=>{let se;return l!==void 0?se=l:y!==void 0?se=y:se=t.emptyValue,{draft:se,lastPublishedValue:se,lastCommittedValue:se,lastControlledValue:l,hasBeenModifiedSinceMount:!1}}),{timezone:k,handleValueChange:R}=JE({timezone:h,value:l,defaultValue:y,onChange:i,valueManager:t});nB(S({},e,{value:M.draft,timezone:k}),o,t.isSameError,t.defaultErrorState);const O=Ye(se=>{const Z={action:se,dateState:M,hasChanged:me=>!t.areValuesEqual(m,se.value,me),isControlled:v,closeOnSelect:c},he=GSe(Z),ne=KSe(Z),re=qSe(Z);if(E(me=>S({},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:S({},e,{value:se.value,timezone:k})})};se.name==="setValueFromShortcut"&&se.shortcut!=null&&(ce.shortcut=se.shortcut),R(se.value,ce)}ne&&s&&s(se.value),re&&P(!1)});if(l!==void 0&&(M.lastControlledValue===void 0||!t.areValuesEqual(m,M.lastControlledValue,l))){const se=t.areValuesEqual(m,M.draft,l);E(Z=>S({},Z,{lastControlledValue:l},se?{}:{lastCommittedValue:l,lastPublishedValue:l,draft:l,hasBeenModifiedSinceMount:!0}))}const _=Ye(()=>{O({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),L=Ye(()=>{O({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),B=Ye(()=>{O({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),z=Ye(()=>{O({value:M.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),T=Ye(()=>{O({value:t.getTodayValue(m,k,n),name:"setValueFromAction",pickerAction:"today"})}),$=Ye(()=>P(!0)),F=Ye(()=>P(!1)),j=Ye((se,Z="partial")=>O({name:"setValueFromView",value:se,selectionState:Z})),A=Ye((se,Z,he)=>O({name:"setValueFromShortcut",value:se,changeImportance:Z!=null?Z:"accept",shortcut:he})),N=Ye((se,Z)=>O({name:"setValueFromField",value:se,context:Z})),H=Ye(se=>{b(se),p==null||p(se)}),K={onClear:_,onAccept:L,onDismiss:B,onCancel:z,onSetToday:T,onOpen:$,onClose:F},Y={value:M.draft,onChange:N,selectedSections:w,onSelectedSectionsChange:H},te=u.useMemo(()=>t.cleanValue(m,M.draft),[m,t,M.draft]),Q={value:te,onChange:j,onClose:F,open:x,onSelectedSectionsChange:H},J=S({},K,{value:te,onChange:j,onSelectShortcut:A,isValid:se=>{const Z=o({adapter:C,value:se,props:S({},e,{value:se,timezone:k})});return!t.hasError(Z)}});return{open:x,fieldProps:Y,viewProps:Q,layoutProps:J,actions:K}},QSe=["className","sx"],XSe=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:s,open:i,onSelectedSectionsChange:l,onClose:a}=t,{views:c,openTo:f,onViewChange:p,disableOpenPicker:h,viewRenderers:y,timezone:v}=e,m=le(e,QSe),{view:C,setView:w,defaultView:b,focusedView:x,setFocusedView:P,setValueAndGoToNextView:M}=Zh({view:void 0,views:c,openTo:f,onChange:s,onViewChange:p,autoFocus:o}),{hasUIView:E,viewModeLookup:k}=u.useMemo(()=>c.reduce((T,$)=>{let F;return h?F="field":y[$]!=null?F="UI":F="field",T.viewModeLookup[$]=F,F==="UI"&&(T.hasUIView=!0),T},{hasUIView:!1,viewModeLookup:{}}),[h,y,c]),R=u.useMemo(()=>c.reduce((T,$)=>y[$]!=null&&Rd($)?T+1:T,0),[y,c]),O=k[C],_=Ye(()=>O==="UI"),[L,B]=u.useState(O==="UI"?C:null);return L!==C&&k[C]==="UI"&&B(C),Nt(()=>{O==="field"&&i&&(a(),setTimeout(()=>{r==null||r.current.focus(),l(C)}))},[C]),Nt(()=>{if(!i)return;let T=C;O==="field"&&L!=null&&(T=L),T!==b&&k[T]==="UI"&&k[b]==="UI"&&(T=b),T!==C&&w(T),P(T,!0)},[i]),{hasUIView:E,shouldRestoreFocus:_,layoutProps:{views:c,view:L,onViewChange:w},renderCurrentView:()=>{if(L==null)return null;const T=y[L];return T==null?null:T(S({},m,n,t,{views:c,timezone:v,onChange:M,view:L,onViewChange:w,focusedView:x,onFocusedViewChange:P,showViewSwitcher:R>1,timeViewsCount:R}))}}};function bD(){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 ZSe=(e,t)=>{const[n,r]=u.useState(bD);return Nt(()=>{const s=()=>{r(bD())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),fSe(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},JSe=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,s=ZSe(n.views,o);return{layoutProps:S({},n,t,{isLandscape:s,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},cB=(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))}};cB(["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 uB=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:s,validator:i,autoFocusView:l})=>{const a=YSe({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),c=XSe({props:e,inputRef:o,additionalViewProps:s,autoFocusView:l,propsFromPickerValue:a.viewProps}),f=JSe({props:e,wrapperVariant:r,propsFromPickerValue:a.layoutProps,propsFromPickerViews:c.layoutProps});return{open:a.open,actions:a.actions,fieldProps:a.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:f.layoutProps}};function dB(e){return Ke("MuiPickersLayout",e)}const lC=We("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),ePe=["onAccept","onClear","onCancel","onSetToday","actions"];function tPe(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:s}=e,i=le(e,ePe),l=as();if(s==null||s.length===0)return null;const a=s==null?void 0:s.map(c=>{switch(c){case"clear":return D.jsx(Yn,{onClick:n,children:l.clearButtonLabel},c);case"cancel":return D.jsx(Yn,{onClick:r,children:l.cancelButtonLabel},c);case"accept":return D.jsx(Yn,{onClick:t,children:l.okButtonLabel},c);case"today":return D.jsx(Yn,{onClick:o,children:l.todayButtonLabel},c);default:return null}});return D.jsx(qre,S({},i,{children:a}))}const nPe=["items","changeImportance","isLandscape","onChange","isValid"],rPe=["getValue"];function oPe(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,s=le(e,nPe);if(t==null||t.length===0)return null;const i=t.map(l=>{let{getValue:a}=l,c=le(l,rPe);const f=a({isValid:o});return{label:c.label,onClick:()=>{r(f,n,c)},disabled:!o(f)}});return D.jsx(Bh,S({dense:!0,sx:[{maxHeight:P0,maxWidth:200,overflow:"auto"},...Array.isArray(s.sx)?s.sx:[s.sx]]},s,{children:i.map(l=>D.jsx(h2,{children:D.jsx(Fh,S({},l))},l.label))}))}function sPe(e){return e.view!==null}const iPe=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"]},dB,t)},lPe=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:s,onCancel:i,onSetToday:l,view:a,views:c,onViewChange:f,value:p,onChange:h,onSelectShortcut:y,isValid:v,isLandscape:m,disabled:C,readOnly:w,children:b,components:x,componentsProps:P,slots:M,slotProps:E}=e,k=M!=null?M:tk(x),R=E!=null?E:P,O=iPe(e),_=(t=k==null?void 0:k.actionBar)!=null?t:tPe,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:O.actionBar},ownerState:S({},e,{wrapperVariant:r})}),B=D.jsx(_,S({},L)),z=k==null?void 0:k.toolbar,T=qt({elementType:z,externalSlotProps:R==null?void 0:R.toolbar,additionalProps:{isLandscape:m,onChange:h,value:p,view:a,onViewChange:f,views:c,disabled:C,readOnly:w,className:O.toolbar},ownerState:S({},e,{wrapperVariant:r})}),$=sPe(T)&&z?D.jsx(z,S({},T)):null,F=b,j=k==null?void 0:k.tabs,A=a&&j?D.jsx(j,S({view:a,onViewChange:f},R==null?void 0:R.tabs)):null,N=(n=k==null?void 0:k.shortcuts)!=null?n:oPe,H=qt({elementType:N,externalSlotProps:R==null?void 0:R.shortcuts,additionalProps:{isValid:v,isLandscape:m,onChange:y,className:O.shortcuts},ownerState:{isValid:v,isLandscape:m,onChange:y,className:O.shortcuts,wrapperVariant:r}}),K=a&&N?D.jsx(N,S({},H)):null;return{toolbar:$,content:F,tabs:A,actionBar:B,shortcuts:K}},aPe=lPe,cPe=e=>{const{isLandscape:t,classes:n}=e;return Te({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},dB,n)},fB=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",[`& .${lC.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${lC.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${lC.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));fB.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 uPe=oe("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),pB=function(t){const n=je({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:s,actionBar:i,shortcuts:l}=aPe(n),{sx:a,className:c,isLandscape:f,ref:p,wrapperVariant:h}=n,y=n,v=cPe(y);return D.jsxs(fB,{ref:p,sx:a,className:xe(c,v.root),ownerState:y,children:[f?l:r,f?r:l,D.jsx(uPe,{className:v.contentWrapper,children:h==="desktop"?D.jsxs(u.Fragment,{children:[o,s]}):D.jsxs(u.Fragment,{children:[s,o]})}),i]})},dPe=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:o,minutesStep:s,shouldDisableClock:i,shouldDisableTime:l,disableIgnoringDatePartForTimeValidation:a=!1,disablePast:c,disableFuture:f,timezone:p}=n,h=e.utils.dateWithTimezone(void 0,p),y=Xh(a,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&y(r,t)):return"minTime";case!!(o&&y(t,o)):return"maxTime";case!!(f&&e.utils.isAfter(t,h)):return"disableFuture";case!!(c&&e.utils.isBefore(t,h)):return"disablePast";case!!(l&&l(t,"hours")):return"shouldDisableTime-hours";case!!(l&&l(t,"minutes")):return"shouldDisableTime-minutes";case!!(l&&l(t,"seconds")):return"shouldDisableTime-seconds";case!!(i&&i(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(i&&i(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(i&&i(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(s&&e.utils.getMinutes(t)%s!==0):return"minutesStep";default:return null}},rk=({props:e,value:t,adapter:n})=>{const r=rB({adapter:n,value:t,props:e});return r!==null?r:dPe({adapter:n,value:t,props:e})},fPe=e=>Ke("MuiPickersSlideTransition",e),ws=We("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),pPe=["children","className","reduceAnimations","slideDirection","transKey","classes"],hPe=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Te(r,fPe,t)},mPe=oe(r2,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ws["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ws["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ws.slideEnterActive}`]:t.slideEnterActive},{[`.${ws.slideExit}`]:t.slideExit},{[`.${ws["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ws["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},[`& .${ws["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ws["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ws.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ws.slideExit}`]:{transform:"translate(0%)"},[`& .${ws["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ws["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function gPe(e){const t=je({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=le(t,pPe),l=hPe(t),a=vn();if(o)return D.jsx("div",{className:xe(l.root,r),children:n});const c={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return D.jsx(mPe,{className:xe(l.root,r),childFactory:f=>u.cloneElement(f,{classNames:c}),role:"presentation",children:D.jsx(mZ,S({mountOnEnter:!0,unmountOnExit:!0,timeout:a.transitions.duration.complex,classNames:c},i,{children:n}),s)})}const hB=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i,timezone:l})=>{const a=Wc();return u.useCallback(c=>rB({adapter:a,value:c,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i,timezone:l}})!==null,[a,e,t,n,r,o,s,i,l])},vPe=e=>Ke("MuiDayCalendar",e);We("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const yPe=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],bPe=["ownerState"],wPe=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"]},vPe,t)},mB=(wh+x0*2)*6,CPe=oe("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xPe=oe("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),SPe=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})),PPe=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})),EPe=oe(qn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>S({},e.typography.caption,{width:wh,height:wh,padding:0,margin:`0 ${x0}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),kPe=oe("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:mB}),IPe=oe(gPe,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:mB}),MPe=oe("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),_Pe=oe("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${x0}px 0`,display:"flex",justifyContent:"center"});function TPe(e){var t,n,r;let{parentProps:o,day:s,focusableDay:i,selectedDays:l,isDateDisabled:a,currentMonthNumber:c,isViewFocused:f}=e,p=le(e,yPe);const{disabled:h,disableHighlightToday:y,isMonthSwitchingAnimating:v,showDaysOutsideCurrentMonth:m,components:C,componentsProps:w,slots:b,slotProps:x,timezone:P}=o,M=on(),E=ja(P),k=i!==null&&M.isSameDay(s,i),R=l.some(j=>M.isSameDay(j,s)),O=M.isSameDay(s,E),_=(t=(n=b==null?void 0:b.day)!=null?n:C==null?void 0:C.Day)!=null?t:aSe,L=qt({elementType:_,externalSlotProps:(r=x==null?void 0:x.day)!=null?r:w==null?void 0:w.day,additionalProps:S({disableHighlightToday:y,showDaysOutsideCurrentMonth:m,role:"gridcell",isAnimating:v,"data-timestamp":M.toJsDate(s).valueOf()},p),ownerState:S({},o,{day:s,selected:R})}),B=le(L,bPe),z=u.useMemo(()=>h||a(s),[h,a,s]),T=u.useMemo(()=>M.getMonth(s)!==c,[M,s,c]),$=u.useMemo(()=>{const j=M.startOfMonth(M.setMonth(s,c));return m?M.isSameDay(s,M.startOfWeek(j)):M.isSameDay(s,j)},[c,s,m,M]),F=u.useMemo(()=>{const j=M.endOfMonth(M.setMonth(s,c));return m?M.isSameDay(s,M.endOfWeek(j)):M.isSameDay(s,j)},[c,s,m,M]);return D.jsx(_,S({},B,{day:s,disabled:z,autoFocus:f&&k,today:O,outsideCurrentMonth:T,isFirstVisibleCell:$,isLastVisibleCell:F,selected:R,tabIndex:k?0:-1,"aria-selected":R,"aria-current":O?"date":void 0}))}function $Pe(e){const t=je({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:o,selectedDays:s,focusedDay:i,loading:l,onSelectedDaysChange:a,onMonthSwitchingAnimationEnd:c,readOnly:f,reduceAnimations:p,renderLoading:h=()=>D.jsx("span",{children:"..."}),slideDirection:y,TransitionProps:v,disablePast:m,disableFuture:C,minDate:w,maxDate:b,shouldDisableDate:x,shouldDisableMonth:P,shouldDisableYear:M,dayOfWeekFormatter:E,hasFocus:k,onFocusedViewChange:R,gridLabelId:O,displayWeekNumber:_,fixedWeekNumber:L,autoFocus:B,timezone:z}=t,T=ja(z),$=on(),F=wPe(t),A=vn().direction==="rtl",N=E||((ye,Me)=>$.format(Me,"weekdayShort").charAt(0).toUpperCase()),H=hB({shouldDisableDate:x,shouldDisableMonth:P,shouldDisableYear:M,minDate:w,maxDate:b,disablePast:m,disableFuture:C,timezone:z}),K=as(),[Y,te]=Qr({name:"DayCalendar",state:"hasFocus",controlled:k,default:B!=null?B:!1}),[Q,X]=u.useState(()=>i||T),J=Ye(ye=>{f||a(ye)}),se=ye=>{H(ye)||(n(ye),X(ye),R==null||R(!0),te(!0))},Z=Ye((ye,Me)=>{switch(ye.key){case"ArrowUp":se($.addDays(Me,-7)),ye.preventDefault();break;case"ArrowDown":se($.addDays(Me,7)),ye.preventDefault();break;case"ArrowLeft":{const pe=$.addDays(Me,A?1:-1),fe=$.addMonths(Me,A?1:-1),de=Rp({utils:$,date:pe,minDate:A?pe:$.startOfMonth(fe),maxDate:A?$.endOfMonth(fe):pe,isDateDisabled:H,timezone:z});se(de||pe),ye.preventDefault();break}case"ArrowRight":{const pe=$.addDays(Me,A?-1:1),fe=$.addMonths(Me,A?-1:1),de=Rp({utils:$,date:pe,minDate:A?$.startOfMonth(fe):pe,maxDate:A?pe:$.endOfMonth(fe),isDateDisabled:H,timezone:z});se(de||pe),ye.preventDefault();break}case"Home":se($.startOfWeek(Me)),ye.preventDefault();break;case"End":se($.endOfWeek(Me)),ye.preventDefault();break;case"PageUp":se($.addMonths(Me,1)),ye.preventDefault();break;case"PageDown":se($.addMonths(Me,-1)),ye.preventDefault();break}}),he=Ye((ye,Me)=>se(Me)),ne=Ye((ye,Me)=>{Y&&$.isSameDay(Q,Me)&&(R==null||R(!1))}),re=$.getMonth(o),me=u.useMemo(()=>s.filter(ye=>!!ye).map(ye=>$.startOfDay(ye)),[$,s]),ce=re,Se=u.useMemo(()=>u.createRef(),[ce]),ke=$.startOfWeek(T),ae=u.useMemo(()=>{const ye=$.startOfMonth(o),Me=$.endOfMonth(o);return H(Q)||$.isAfterDay(Q,Me)||$.isBeforeDay(Q,ye)?Rp({utils:$,date:Q,minDate:ye,maxDate:Me,disablePast:m,disableFuture:C,isDateDisabled:H,timezone:z}):Q},[o,C,m,Q,H,$,z]),Ie=u.useMemo(()=>{const ye=$.setTimezone(o,z),Me=$.getWeekArray(ye);let pe=$.addMonths(ye,1);for(;L&&Me.length<L;){const fe=$.getWeekArray(pe),de=$.isSameDay(Me[Me.length-1][0],fe[0][0]);fe.slice(de?1:0).forEach(be=>{Me.length<L&&Me.push(be)}),pe=$.addMonths(pe,1)}return Me},[o,L,$,z]);return D.jsxs(CPe,{role:"grid","aria-labelledby":O,className:F.root,children:[D.jsxs(xPe,{role:"row",className:F.header,children:[_&&D.jsx(PPe,{variant:"caption",role:"columnheader","aria-label":K.calendarWeekNumberHeaderLabel,className:F.weekNumberLabel,children:K.calendarWeekNumberHeaderText}),exe($,T).map((ye,Me)=>{var pe;const fe=$.format(ye,"weekdayShort");return D.jsx(SPe,{variant:"caption",role:"columnheader","aria-label":$.format($.addDays(ke,Me),"weekday"),className:F.weekDayLabel,children:(pe=N==null?void 0:N(fe,ye))!=null?pe:fe},fe+Me.toString())})]}),l?D.jsx(kPe,{className:F.loadingContainer,children:h()}):D.jsx(IPe,S({transKey:ce,onExited:c,reduceAnimations:p,slideDirection:y,className:xe(r,F.slideTransition)},v,{nodeRef:Se,children:D.jsx(MPe,{ref:Se,role:"rowgroup",className:F.monthContainer,children:Ie.map((ye,Me)=>D.jsxs(_Pe,{role:"row",className:F.weekContainer,"aria-rowindex":Me+1,children:[_&&D.jsx(EPe,{className:F.weekNumber,role:"rowheader","aria-label":K.calendarWeekNumberAriaLabelText($.getWeekNumber(ye[0])),children:K.calendarWeekNumberText($.getWeekNumber(ye[0]))}),ye.map((pe,fe)=>D.jsx(TPe,{parentProps:t,day:pe,selectedDays:me,focusableDay:ae,onKeyDown:Z,onFocus:he,onBlur:ne,onDaySelect:J,isDateDisabled:H,currentMonthNumber:re,isViewFocused:Y,"aria-colindex":fe+1},pe.toString()))]},`week-${ye[0]}`))})}))]})}const RPe=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return S({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return S({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const s=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return S({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:s&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:s?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},OPe=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:o,disablePast:s,disableSwitchToMonthOnDayFocus:i=!1,maxDate:l,minDate:a,onMonthChange:c,reduceAnimations:f,shouldDisableDate:p,timezone:h}=e,y=ja(h),v=on(),m=u.useRef(RPe(!!f,i,v)).current,C=u.useMemo(()=>{let R=null;return n?R=n:r&&(R=v.startOfMonth(r)),os.getInitialReferenceValue({value:t,utils:v,timezone:h,props:e,referenceDate:R,granularity:ni.day})},[]),[w,b]=u.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:v.isValid(t)?t:y,currentMonth:v.startOfMonth(C),slideDirection:"left"}),x=u.useCallback(R=>{b(S({type:"changeMonth"},R)),c&&c(R.newMonth)},[c]),P=u.useCallback(R=>{const O=R;v.isSameMonth(O,w.currentMonth)||x({newMonth:v.startOfMonth(O),direction:v.isAfterDay(O,w.currentMonth)?"left":"right"})},[w.currentMonth,x,v]),M=hB({shouldDisableDate:p,minDate:a,maxDate:l,disableFuture:o,disablePast:s,timezone:h}),E=u.useCallback(()=>{b({type:"finishMonthSwitchingAnimation"})},[]),k=Ye((R,O)=>{M(R)||b({type:"changeFocusedDay",focusedDay:R,withoutMonthSwitchingAnimation:O})});return{referenceDate:C,calendarState:w,changeMonth:P,changeFocusedDay:k,isDateDisabled:M,onMonthSwitchingAnimationEnd:E,handleChangeMonth:x}},DPe=["ownerState"],APe=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:o,slotProps:s,components:i,componentsProps:l})=>{var a,c,f,p,h,y;const v=as(),m=(a=(c=o==null?void 0:o.clearButton)!=null?c:i==null?void 0:i.ClearButton)!=null?a:xr,C=qt({elementType:m,externalSlotProps:(f=s==null?void 0:s.clearButton)!=null?f:l==null?void 0:l.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:v.fieldClearLabel}}),w=le(C,DPe),b=(p=(h=o==null?void 0:o.clearIcon)!=null?h:i==null?void 0:i.ClearIcon)!=null?p:PCe,x=qt({elementType:b,externalSlotProps:(y=s==null?void 0:s.clearIcon)!=null?y:l==null?void 0:l.clearIcon,ownerState:{}}),P=S({},n,{endAdornment:e?D.jsxs(u.Fragment,{children:[D.jsx(Cl,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:D.jsx(m,S({},w,{onClick:r,children:D.jsx(b,S({fontSize:"small"},x))}))}),n==null?void 0:n.endAdornment]}):n==null?void 0:n.endAdornment}),M=S({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:P,fieldProps:M}},LPe=e=>{var t,n,r,o,s,i,l,a;const c=on(),f=Qh(),h=((t=e.ampm)!=null?t:c.is12HourCycleInCurrentLocale())?c.formats.keyboardDateTime12h:c.formats.keyboardDateTime24h;return S({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:h,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Fs(c,(s=e.minDateTime)!=null?s:e.minDate,f.minDate),maxDate:Fs(c,(i=e.maxDateTime)!=null?i:e.maxDate,f.maxDate),minTime:(l=e.minDateTime)!=null?l:e.minTime,maxTime:(a=e.maxDateTime)!=null?a:e.maxTime})},FPe=({props:e,inputRef:t})=>{const n=LPe(e),{forwardedProps:r,internalProps:o}=bSe(n,"date-time");return gSe({inputRef:t,forwardedProps:r,internalProps:o,valueManager:os,fieldValueManager:Mxe,validator:rk,valueType:"date-time"})},NPe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],BPe=["inputRef"],zPe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],gB=u.forwardRef(function(t,n){var r,o,s;const i=je({props:t,name:"MuiDateTimeField"}),{components:l,componentsProps:a,slots:c,slotProps:f,InputProps:p,inputProps:h}=i,y=le(i,NPe),v=i,m=(r=(o=c==null?void 0:c.textField)!=null?o:l==null?void 0:l.TextField)!=null?r:Ba,C=qt({elementType:m,externalSlotProps:(s=f==null?void 0:f.textField)!=null?s:a==null?void 0:a.textField,externalForwardedProps:y,ownerState:v}),{inputRef:w}=C,b=le(C,BPe);b.inputProps=S({},h,b.inputProps),b.InputProps=S({},p,b.InputProps);const x=FPe({props:b,inputRef:w}),{ref:P,onPaste:M,onKeyDown:E,inputMode:k,readOnly:R,clearable:O,onClear:_}=x,L=le(x,zPe),{InputProps:B,fieldProps:z}=APe({onClear:_,clearable:O,fieldProps:L,InputProps:L.InputProps,slots:c,slotProps:f,components:l,componentsProps:a});return D.jsx(m,S({ref:n},z,{InputProps:S({},B,{readOnly:R}),inputProps:S({},L.inputProps,{inputMode:k,onPaste:M,onKeyDown:E,ref:P})}))}),VPe=e=>Ke("MuiPickersFadeTransitionGroup",e);We("MuiPickersFadeTransitionGroup",["root"]);const jPe=e=>{const{classes:t}=e;return Te({root:["root"]},VPe,t)},HPe=oe(r2,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function vB(e){const t=je({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=jPe(t),l=vn();return o?n:D.jsx(HPe,{className:xe(i.root,r),children:D.jsx(Gd,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},s)})}function UPe(e){return Ke("MuiPickersMonth",e)}const Cg=We("MuiPickersMonth",["root","monthButton","disabled","selected"]),WPe=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],GPe=e=>{const{disabled:t,selected:n,classes:r}=e;return Te({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},UPe,r)},KPe=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"})),qPe=oe("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Cg.disabled}`]:t.disabled},{[`&.${Cg.selected}`]:t.selected}]})(({theme:e})=>S({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`: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}}})),YPe=u.memo(function(t){const n=je({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:o,disabled:s,selected:i,value:l,tabIndex:a,onClick:c,onKeyDown:f,onFocus:p,onBlur:h,"aria-current":y,"aria-label":v}=n,m=le(n,WPe),C=u.useRef(null),w=GPe(n);return Nt(()=>{if(r){var b;(b=C.current)==null||b.focus()}},[r]),D.jsx(KPe,S({className:w.root,ownerState:n},m,{children:D.jsx(qPe,{ref:C,disabled:s,type:"button",role:"radio",tabIndex:s?-1:a,"aria-current":y,"aria-checked":i,"aria-label":v,onClick:b=>c(b,l),onKeyDown:b=>f(b,l),onFocus:b=>p(b,l),onBlur:b=>h(b,l),className:w.monthButton,ownerState:n,children:o})}))});function QPe(e){return Ke("MuiMonthCalendar",e)}We("MuiMonthCalendar",["root"]);const XPe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],ZPe=e=>{const{classes:t}=e;return Te({root:["root"]},QPe,t)};function JPe(e,t){const n=on(),r=Qh(),o=je({props:e,name:t});return S({disableFuture:!1,disablePast:!1},o,{minDate:Fs(n,o.minDate,r.minDate),maxDate:Fs(n,o.maxDate,r.maxDate)})}const e2e=oe("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:S0,boxSizing:"border-box"}),t2e=u.forwardRef(function(t,n){const r=JPe(t,"MuiMonthCalendar"),{className:o,value:s,defaultValue:i,referenceDate:l,disabled:a,disableFuture:c,disablePast:f,maxDate:p,minDate:h,onChange:y,shouldDisableMonth:v,readOnly:m,disableHighlightToday:C,autoFocus:w=!1,onMonthFocus:b,hasFocus:x,onFocusedViewChange:P,monthsPerRow:M=3,timezone:E,gridLabelId:k}=r,R=le(r,XPe),{value:O,handleValueChange:_,timezone:L}=rf({name:"MonthCalendar",timezone:E,value:s,defaultValue:i,onChange:y,valueManager:os}),B=ja(L),z=Ud(),T=on(),$=u.useMemo(()=>os.getInitialReferenceValue({value:O,utils:T,props:r,timezone:L,referenceDate:l,granularity:ni.month}),[]),F=r,j=ZPe(F),A=u.useMemo(()=>T.getMonth(B),[T,B]),N=u.useMemo(()=>O!=null?T.getMonth(O):C?null:T.getMonth($),[O,T,C,$]),[H,K]=u.useState(()=>N||A),[Y,te]=Qr({name:"MonthCalendar",state:"hasFocus",controlled:x,default:w!=null?w:!1}),Q=Ye(re=>{te(re),P&&P(re)}),X=u.useCallback(re=>{const me=T.startOfMonth(f&&T.isAfter(B,h)?B:h),ce=T.startOfMonth(c&&T.isBefore(B,p)?B:p),Se=T.startOfMonth(re);return T.isBefore(Se,me)||T.isAfter(Se,ce)?!0:v?v(Se):!1},[c,f,p,h,B,v,T]),J=Ye((re,me)=>{if(m)return;const ce=T.setMonth(O!=null?O:$,me);_(ce)}),se=Ye(re=>{X(T.setMonth(O!=null?O:$,re))||(K(re),Q(!0),b&&b(re))});u.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+(z.direction==="ltr"?-1:1))%12),re.preventDefault();break;case"ArrowRight":se((12+me+(z.direction==="ltr"?1:-1))%12),re.preventDefault();break}}),he=Ye((re,me)=>{se(me)}),ne=Ye((re,me)=>{H===me&&Q(!1)});return D.jsx(e2e,S({ref:n,className:xe(j.root,o),ownerState:F,role:"radiogroup","aria-labelledby":k},R,{children:XE(T,O!=null?O:$).map(re=>{const me=T.getMonth(re),ce=T.format(re,"monthShort"),Se=T.format(re,"month"),ke=me===N,ae=a||X(re);return D.jsx(YPe,{selected:ke,value:me,onClick:J,onKeyDown:Z,autoFocus:Y&&me===H,disabled:ae,tabIndex:me===H?0:-1,onFocus:he,onBlur:ne,"aria-current":A===me?"date":void 0,"aria-label":Se,monthsPerRow:M,children:ce},ce)})}))});function n2e(e){return Ke("MuiPickersYear",e)}const xg=We("MuiPickersYear",["root","yearButton","selected","disabled"]),r2e=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],o2e=e=>{const{disabled:t,selected:n,classes:r}=e;return Te({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},n2e,r)},s2e=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"})),i2e=oe("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${xg.disabled}`]:t.disabled},{[`&.${xg.selected}`]:t.selected}]})(({theme:e})=>S({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`: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}}})),l2e=u.memo(function(t){const n=je({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:s,disabled:i,selected:l,value:a,tabIndex:c,onClick:f,onKeyDown:p,onFocus:h,onBlur:y,"aria-current":v}=n,m=le(n,r2e),C=u.useRef(null),w=o2e(n);return u.useEffect(()=>{r&&C.current.focus()},[r]),D.jsx(s2e,S({className:xe(w.root,o),ownerState:n},m,{children:D.jsx(i2e,{ref:C,disabled:i,type:"button",role:"radio",tabIndex:i?-1:c,"aria-current":v,"aria-checked":l,onClick:b=>f(b,a),onKeyDown:b=>p(b,a),onFocus:b=>h(b,a),onBlur:b=>y(b,a),className:w.yearButton,ownerState:n,children:s})}))});function a2e(e){return Ke("MuiYearCalendar",e)}We("MuiYearCalendar",["root"]);const c2e=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],u2e=e=>{const{classes:t}=e;return Te({root:["root"]},a2e,t)};function d2e(e,t){var n;const r=on(),o=Qh(),s=je({props:e,name:t});return S({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 f2e=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:S0,maxHeight:FCe,boxSizing:"border-box",position:"relative"}),p2e=u.forwardRef(function(t,n){const r=d2e(t,"MuiYearCalendar"),{autoFocus:o,className:s,value:i,defaultValue:l,referenceDate:a,disabled:c,disableFuture:f,disablePast:p,maxDate:h,minDate:y,onChange:v,readOnly:m,shouldDisableYear:C,disableHighlightToday:w,onYearFocus:b,hasFocus:x,onFocusedViewChange:P,yearsPerRow:M,timezone:E,gridLabelId:k}=r,R=le(r,c2e),{value:O,handleValueChange:_,timezone:L}=rf({name:"YearCalendar",timezone:E,value:i,defaultValue:l,onChange:v,valueManager:os}),B=ja(L),z=Ud(),T=on(),$=u.useMemo(()=>os.getInitialReferenceValue({value:O,utils:T,props:r,timezone:L,referenceDate:a,granularity:ni.year}),[]),F=r,j=u2e(F),A=u.useMemo(()=>T.getYear(B),[T,B]),N=u.useMemo(()=>O!=null?T.getYear(O):w?null:T.getYear($),[O,T,w,$]),[H,K]=u.useState(()=>N||A),[Y,te]=Qr({name:"YearCalendar",state:"hasFocus",controlled:x,default:o!=null?o:!1}),Q=Ye(ce=>{te(ce),P&&P(ce)}),X=u.useCallback(ce=>{if(p&&T.isBeforeYear(ce,B)||f&&T.isAfterYear(ce,B)||y&&T.isBeforeYear(ce,y)||h&&T.isAfterYear(ce,h))return!0;if(!C)return!1;const Se=T.startOfYear(ce);return C(Se)},[f,p,h,y,B,C,T]),J=Ye((ce,Se)=>{if(m)return;const ke=T.setYear(O!=null?O:$,Se);_(ke)}),se=Ye(ce=>{X(T.setYear(O!=null?O:$,ce))||(K(ce),Q(!0),b==null||b(ce))});u.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+(z.direction==="ltr"?-1:1)),ce.preventDefault();break;case"ArrowRight":se(Se+(z.direction==="ltr"?1:-1)),ce.preventDefault();break}}),he=Ye((ce,Se)=>{se(Se)}),ne=Ye((ce,Se)=>{H===Se&&Q(!1)}),re=u.useRef(null),me=kt(n,re);return u.useEffect(()=>{if(o||re.current===null)return;const ce=re.current.querySelector('[tabindex="0"]');if(!ce)return;const Se=ce.offsetHeight,ke=ce.offsetTop,ae=re.current.clientHeight,Ie=re.current.scrollTop,ye=ke+Se;Se>ae||ke<Ie||(re.current.scrollTop=ye-ae/2-Se/2)},[o]),D.jsx(f2e,S({ref:me,className:xe(j.root,s),ownerState:F,role:"radiogroup","aria-labelledby":k},R,{children:T.getYearRange(y,h).map(ce=>{const Se=T.getYear(ce),ke=Se===N,ae=c||X(ce);return D.jsx(l2e,{selected:ke,value:Se,onClick:J,onKeyDown:Z,autoFocus:Y&&Se===H,disabled:ae,tabIndex:Se===H?0:-1,onFocus:he,onBlur:ne,"aria-current":A===Se?"date":void 0,yearsPerRow:M,children:T.format(ce,"year")},T.format(ce,"year"))})}))}),h2e=e=>Ke("MuiPickersCalendarHeader",e),m2e=We("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),g2e=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],v2e=["ownerState"],y2e=e=>{const{classes:t}=e;return Te({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},h2e,t)},b2e=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}),w2e=oe("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>S({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),C2e=oe("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),x2e=oe(xr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>S({marginRight:"auto"},e.view==="year"&&{[`.${m2e.switchViewIcon}`]:{transform:"rotate(180deg)"}})),S2e=oe(yCe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),P2e=u.forwardRef(function(t,n){var r,o,s,i;const l=as(),a=on(),c=je({props:t,name:"MuiPickersCalendarHeader"}),{slots:f,slotProps:p,components:h,currentMonth:y,disabled:v,disableFuture:m,disablePast:C,maxDate:w,minDate:b,onMonthChange:x,onViewChange:P,view:M,reduceAnimations:E,views:k,labelId:R,className:O,timezone:_}=c,L=le(c,g2e),B=c,z=y2e(c),T=(r=(o=f==null?void 0:f.switchViewButton)!=null?o:h==null?void 0:h.SwitchViewButton)!=null?r:x2e,$=qt({elementType:T,externalSlotProps:p==null?void 0:p.switchViewButton,additionalProps:{size:"small","aria-label":l.calendarViewSwitchingButtonAriaLabel(M)},ownerState:B,className:z.switchViewButton}),F=(s=(i=f==null?void 0:f.switchViewIcon)!=null?i:h==null?void 0:h.SwitchViewIcon)!=null?s:S2e,j=qt({elementType:F,externalSlotProps:p==null?void 0:p.switchViewIcon,ownerState:void 0,className:z.switchViewIcon}),A=le(j,v2e),N=()=>x(a.addMonths(y,1),"left"),H=()=>x(a.addMonths(y,-1),"right"),K=ACe(y,{disableFuture:m,maxDate:w,timezone:_}),Y=LCe(y,{disablePast:C,minDate:b,timezone:_}),te=()=>{if(!(k.length===1||!P||v))if(k.length===2)P(k.find(Q=>Q!==M)||k[0]);else{const Q=k.indexOf(M)!==0?0:1;P(k[Q])}};return k.length===1&&k[0]==="year"?null:D.jsxs(b2e,S({},L,{ownerState:B,className:xe(O,z.root),ref:n,children:[D.jsxs(w2e,{role:"presentation",onClick:te,ownerState:B,"aria-live":"polite",className:z.labelContainer,children:[D.jsx(vB,{reduceAnimations:E,transKey:a.format(y,"monthAndYear"),children:D.jsx(C2e,{id:R,ownerState:B,className:z.label,children:a.format(y,"monthAndYear")})}),k.length>1&&!v&&D.jsx(T,S({},$,{children:D.jsx(F,S({},A))}))]}),D.jsx(Gd,{in:M==="day",children:D.jsx(V3,{slots:f,slotProps:p,onGoToPrevious:H,isPreviousDisabled:Y,previousLabel:l.previousMonth,onGoToNext:N,isNextDisabled:K,nextLabel:l.nextMonth})})]}))}),E2e=e=>Ke("MuiDateCalendar",e);We("MuiDateCalendar",["root","viewTransitionContainer"]);const k2e=["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"],I2e=e=>{const{classes:t}=e;return Te({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},E2e,t)};function M2e(e,t){var n,r,o,s,i,l,a;const c=on(),f=Qh(),p=iB(),h=je({props:e,name:t});return S({},h,{loading:(n=h.loading)!=null?n:!1,disablePast:(r=h.disablePast)!=null?r:!1,disableFuture:(o=h.disableFuture)!=null?o:!1,openTo:(s=h.openTo)!=null?s:"day",views:(i=h.views)!=null?i:["year","day"],reduceAnimations:(l=h.reduceAnimations)!=null?l:p,renderLoading:(a=h.renderLoading)!=null?a:()=>D.jsx("span",{children:"..."}),minDate:Fs(c,h.minDate,f.minDate),maxDate:Fs(c,h.maxDate,f.maxDate)})}const _2e=oe(E0,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:P0}),T2e=oe(vB,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),yB=u.forwardRef(function(t,n){var r,o,s;const i=on(),l=Kt(),a=M2e(t,"MuiDateCalendar"),{autoFocus:c,onViewChange:f,value:p,defaultValue:h,referenceDate:y,disableFuture:v,disablePast:m,defaultCalendarMonth:C,onChange:w,onYearChange:b,onMonthChange:x,reduceAnimations:P,shouldDisableDate:M,shouldDisableMonth:E,shouldDisableYear:k,view:R,views:O,openTo:_,className:L,disabled:B,readOnly:z,minDate:T,maxDate:$,disableHighlightToday:F,focusedView:j,onFocusedViewChange:A,showDaysOutsideCurrentMonth:N,fixedWeekNumber:H,dayOfWeekFormatter:K,components:Y,componentsProps:te,slots:Q,slotProps:X,loading:J,renderLoading:se,displayWeekNumber:Z,yearsPerRow:he,monthsPerRow:ne,timezone:re}=a,me=le(a,k2e),{value:ce,handleValueChange:Se,timezone:ke}=rf({name:"DateCalendar",timezone:re,value:p,defaultValue:h,onChange:w,valueManager:os}),{view:ae,setView:Ie,focusedView:ye,setFocusedView:Me,goToNextView:pe,setValueAndGoToNextView:fe}=Zh({view:R,views:O,openTo:_,onChange:Se,onViewChange:f,autoFocus:c,focusedView:j,onFocusedViewChange:A}),{referenceDate:de,calendarState:be,changeFocusedDay:_e,changeMonth:Ne,handleChangeMonth:Ge,isDateDisabled:Ve,onMonthSwitchingAnimationEnd:Ue}=OPe({value:ce,defaultCalendarMonth:C,referenceDate:y,reduceAnimations:P,onMonthChange:x,minDate:T,maxDate:$,shouldDisableDate:M,disablePast:m,disableFuture:v,timezone:ke}),Le=B&&ce||T,ht=B&&ce||$,Zt=`${l}-grid-label`,Pt=ye!==null,wt=(r=(o=Q==null?void 0:Q.calendarHeader)!=null?o:Y==null?void 0:Y.CalendarHeader)!=null?r:P2e,Xe=qt({elementType:wt,externalSlotProps:(s=X==null?void 0:X.calendarHeader)!=null?s:te==null?void 0:te.calendarHeader,additionalProps:{views:O,view:ae,currentMonth:be.currentMonth,onViewChange:Ie,onMonthChange:(gt,Rt)=>Ge({newMonth:gt,direction:Rt}),minDate:Le,maxDate:ht,disabled:B,disablePast:m,disableFuture:v,reduceAnimations:P,timezone:ke,labelId:Zt,slots:Q,slotProps:X},ownerState:a}),Oe=Ye(gt=>{const Rt=i.startOfMonth(gt),vr=i.endOfMonth(gt),ir=Ve(gt)?Rp({utils:i,date:gt,minDate:i.isBefore(T,Rt)?Rt:T,maxDate:i.isAfter($,vr)?vr:$,disablePast:m,disableFuture:v,isDateDisabled:Ve,timezone:ke}):gt;ir?(fe(ir,"finish"),x==null||x(Rt)):(pe(),Ne(Rt)),_e(ir,!0)}),qe=Ye(gt=>{const Rt=i.startOfYear(gt),vr=i.endOfYear(gt),ir=Ve(gt)?Rp({utils:i,date:gt,minDate:i.isBefore(T,Rt)?Rt:T,maxDate:i.isAfter($,vr)?vr:$,disablePast:m,disableFuture:v,isDateDisabled:Ve,timezone:ke}):gt;ir?(fe(ir,"finish"),b==null||b(ir)):(pe(),Ne(Rt)),_e(ir,!0)}),mt=Ye(gt=>Se(gt&&hS(i,gt,ce!=null?ce:de),"finish"));u.useEffect(()=>{ce!=null&&i.isValid(ce)&&Ne(ce)},[ce]);const vt=a,Tt=I2e(vt),Yt={disablePast:m,disableFuture:v,maxDate:$,minDate:T},Qt={disableHighlightToday:F,readOnly:z,disabled:B,timezone:ke,gridLabelId:Zt},Pn=u.useRef(ae);u.useEffect(()=>{Pn.current!==ae&&(ye===Pn.current&&Me(ae,!0),Pn.current=ae)},[ye,Me,ae]);const bn=u.useMemo(()=>[ce],[ce]);return D.jsxs(_2e,S({ref:n,className:xe(Tt.root,L),ownerState:vt},me,{children:[D.jsx(wt,S({},Xe)),D.jsx(T2e,{reduceAnimations:P,className:Tt.viewTransitionContainer,transKey:ae,ownerState:vt,children:D.jsxs("div",{children:[ae==="year"&&D.jsx(p2e,S({},Yt,Qt,{value:ce,onChange:qe,shouldDisableYear:k,hasFocus:Pt,onFocusedViewChange:gt=>Me("year",gt),yearsPerRow:he,referenceDate:de})),ae==="month"&&D.jsx(t2e,S({},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($Pe,S({},be,Yt,Qt,{onMonthSwitchingAnimationEnd:Ue,onFocusedDayChange:_e,reduceAnimations:P,selectedDays:bn,onSelectedDaysChange:mt,shouldDisableDate:M,shouldDisableMonth:E,shouldDisableYear:k,hasFocus:Pt,onFocusedViewChange:gt=>Me("day",gt),showDaysOutsideCurrentMonth:N,fixedWeekNumber:H,dayOfWeekFormatter:K,displayWeekNumber:Z,components:Y,componentsProps:te,slots:Q,slotProps:X,loading:J,renderLoading:se}))]})})]}))}),$2e=["props","getOpenDialogAriaText"],R2e=["ownerState"],O2e=["ownerState"],D2e=e=>{var t,n,r,o,s;let{props:i,getOpenDialogAriaText:l}=e,a=le(e,$2e);const{slots:c,slotProps:f,className:p,sx:h,format:y,formatDensity:v,timezone:m,label:C,inputRef:w,readOnly:b,disabled:x,autoFocus:P,localeText:M,reduceAnimations:E}=i,k=on(),R=u.useRef(null),O=u.useRef(null),_=Kt(),L=(t=f==null||(n=f.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:B,actions:z,hasUIView:T,layoutProps:$,renderCurrentView:F,shouldRestoreFocus:j,fieldProps:A}=uB(S({},a,{props:i,inputRef:R,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),N=(r=c.inputAdornment)!=null?r:Cl,H=qt({elementType:N,externalSlotProps:f==null?void 0:f.inputAdornment,additionalProps:{position:"end"},ownerState:i}),K=le(H,R2e),Y=(o=c.openPickerButton)!=null?o:xr,te=qt({elementType:Y,externalSlotProps:f==null?void 0:f.openPickerButton,additionalProps:{disabled:x||b,onClick:B?z.onClose:z.onOpen,"aria-label":l(A.value,k),edge:K.position},ownerState:i}),Q=le(te,O2e),X=c.openPickerIcon,J=c.field,se=qt({elementType:J,externalSlotProps:f==null?void 0:f.field,additionalProps:S({},A,L&&{id:_},{readOnly:b,disabled:x,className:p,sx:h,format:y,formatDensity:v,timezone:m,label:C,autoFocus:P&&!i.open,focused:B?!0:void 0}),ownerState:i});T&&(se.InputProps=S({},se.InputProps,{ref:O,[`${K.position}Adornment`]:D.jsx(N,S({},K,{children:D.jsx(Y,S({},Q,{children:D.jsx(X,S({},f==null?void 0:f.openPickerIcon))}))}))}));const Z=S({textField:c.textField,clearIcon:c.clearIcon,clearButton:c.clearButton},se.slots),he=(s=c.layout)!=null?s:pB,ne=kt(R,se.inputRef,w);let re=_;L&&(C?re=`${_}-label`:re=void 0);const me=S({},f,{toolbar:S({},f==null?void 0:f.toolbar,{titleId:_}),popper:S({"aria-labelledby":re},f==null?void 0:f.popper)});return{renderPicker:()=>D.jsxs(YE,{localeText:M,children:[D.jsx(J,S({},se,{slots:Z,slotProps:me,inputRef:ne})),D.jsx(OSe,S({role:"dialog",placement:"bottom-start",anchorEl:O.current},z,{open:B,slots:c,slotProps:me,shouldRestoreFocus:j,reduceAnimations:E,children:D.jsx(he,S({},$,me==null?void 0:me.layout,{slots:c,slotProps:me,children:F()}))}))]})}},ad=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:c,classes:f,disableFuture:p,disablePast:h,minDate:y,maxDate:v,shouldDisableDate:m,shouldDisableMonth:C,shouldDisableYear:w,reduceAnimations:b,onMonthChange:x,monthsPerRow:P,onYearChange:M,yearsPerRow:E,defaultCalendarMonth:k,components:R,componentsProps:O,slots:_,slotProps:L,loading:B,renderLoading:z,disableHighlightToday:T,readOnly:$,disabled:F,showDaysOutsideCurrentMonth:j,dayOfWeekFormatter:A,sx:N,autoFocus:H,fixedWeekNumber:K,displayWeekNumber:Y,timezone:te})=>D.jsx(yB,{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:c,classes:f,disableFuture:p,disablePast:h,minDate:y,maxDate:v,shouldDisableDate:m,shouldDisableMonth:C,shouldDisableYear:w,reduceAnimations:b,onMonthChange:x,monthsPerRow:P,onYearChange:M,yearsPerRow:E,defaultCalendarMonth:k,components:R,componentsProps:O,slots:_,slotProps:L,loading:B,renderLoading:z,disableHighlightToday:T,readOnly:$,disabled:F,showDaysOutsideCurrentMonth:j,dayOfWeekFormatter:A,sx:N,autoFocus:H,fixedWeekNumber:K,displayWeekNumber:Y,timezone:te}),A2e=["props","getOpenDialogAriaText"],L2e=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:s}=e,i=le(e,A2e);const{slots:l,slotProps:a,className:c,sx:f,format:p,formatDensity:h,timezone:y,label:v,inputRef:m,readOnly:C,disabled:w,localeText:b}=o,x=on(),P=u.useRef(null),M=Kt(),E=(t=a==null||(n=a.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:k,actions:R,layoutProps:O,renderCurrentView:_,fieldProps:L}=uB(S({},i,{props:o,inputRef:P,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),B=l.field,z=qt({elementType:B,externalSlotProps:a==null?void 0:a.field,additionalProps:S({},L,E&&{id:M},!(w||C)&&{onClick:R.onOpen,onKeyDown:pSe(R.onOpen)},{readOnly:C!=null?C:!0,disabled:w,className:c,sx:f,format:p,formatDensity:h,timezone:y,label:v}),ownerState:o});z.inputProps=S({},z.inputProps,{"aria-label":s(L.value,x)});const T=S({textField:l.textField},z.slots),$=(r=l.layout)!=null?r:pB,F=kt(P,z.inputRef,m);let j=M;E&&(v?j=`${M}-label`:j=void 0);const A=S({},a,{toolbar:S({},a==null?void 0:a.toolbar,{titleId:M}),mobilePaper:S({"aria-labelledby":j},a==null?void 0:a.mobilePaper)});return{renderPicker:()=>D.jsxs(YE,{localeText:b,children:[D.jsx(B,S({},z,{slots:T,slotProps:A,inputRef:F})),D.jsx(xSe,S({},R,{open:k,slots:l,slotProps:A,children:D.jsx($,S({},O,A==null?void 0:A.layout,{slots:l,slotProps:A,children:_()}))}))]})}},aC=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:c,classes:f,disableFuture:p,disablePast:h,minTime:y,maxTime:v,shouldDisableTime:m,shouldDisableClock:C,minutesStep:w,ampm:b,ampmInClock:x,components:P,componentsProps:M,slots:E,slotProps:k,readOnly:R,disabled:O,sx:_,autoFocus:L,showViewSwitcher:B,disableIgnoringDatePartForTimeValidation:z,timezone:T})=>D.jsx(Dxe,{view:e,onViewChange:t,focusedView:n&&Rd(n)?n:null,onFocusedViewChange:r,views:o.filter(Rd),value:s,defaultValue:i,referenceDate:l,onChange:a,className:c,classes:f,disableFuture:p,disablePast:h,minTime:y,maxTime:v,shouldDisableTime:m,shouldDisableClock:C,minutesStep:w,ampm:b,ampmInClock:x,components:P,componentsProps:M,slots:E,slotProps:k,readOnly:R,disabled:O,sx:_,autoFocus:L,showViewSwitcher:B,disableIgnoringDatePartForTimeValidation:z,timezone:T}),F2e=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:c,classes:f,disableFuture:p,disablePast:h,minTime:y,maxTime:v,shouldDisableTime:m,shouldDisableClock:C,minutesStep:w,ampm:b,components:x,componentsProps:P,slots:M,slotProps:E,readOnly:k,disabled:R,sx:O,autoFocus:_,disableIgnoringDatePartForTimeValidation:L,timeSteps:B,skipDisabled:z,timezone:T})=>D.jsx(jxe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Rd),value:s,defaultValue:i,referenceDate:l,onChange:a,className:c,classes:f,disableFuture:p,disablePast:h,minTime:y,maxTime:v,shouldDisableTime:m,shouldDisableClock:C,minutesStep:w,ampm:b,components:x,componentsProps:P,slots:M,slotProps:E,readOnly:k,disabled:R,sx:O,autoFocus:_,disableIgnoringDatePartForTimeValidation:L,timeStep:B==null?void 0:B.minutes,skipDisabled:z,timezone:T}),N2e=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:c,classes:f,disableFuture:p,disablePast:h,minTime:y,maxTime:v,shouldDisableTime:m,shouldDisableClock:C,minutesStep:w,ampm:b,components:x,componentsProps:P,slots:M,slotProps:E,readOnly:k,disabled:R,sx:O,autoFocus:_,disableIgnoringDatePartForTimeValidation:L,timeSteps:B,skipDisabled:z,timezone:T})=>D.jsx(tSe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Rd),value:s,defaultValue:i,referenceDate:l,onChange:a,className:c,classes:f,disableFuture:p,disablePast:h,minTime:y,maxTime:v,shouldDisableTime:m,shouldDisableClock:C,minutesStep:w,ampm:b,components:x,componentsProps:P,slots:M,slotProps:E,readOnly:k,disabled:R,sx:O,autoFocus:_,disableIgnoringDatePartForTimeValidation:L,timeSteps:B,skipDisabled:z,timezone:T}),B2e=["views","format"],bB=(e,t)=>{let{views:n,format:r}=t,o=le(t,B2e);if(r)return r;const s=[],i=[];if(n.forEach(c=>{Rd(c)?i.push(c):s.push(c)}),i.length===0)return aD(e,S({views:s},o),!1);if(s.length===0)return lD(e,S({views:i},o));const l=lD(e,S({views:i},o));return`${aD(e,S({views:s},o),!1)} ${l}`},z2e=(e,t,n)=>n?t.filter(r=>!Ql(r)||r==="hours"):e?[...t,"meridiem"]:t,V2e=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function j2e({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e!=null?e:24,s=S({hours:1,minutes:5,seconds:5},n),i=V2e(s,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:s,shouldRenderTimeInASingleColumn:i,views:z2e(t,r,i)}}function H2e(e){return Ke("MuiDateTimePickerTabs",e)}We("MuiDateTimePickerTabs",["root"]);const U2e=e=>id(e)?"date":"time",W2e=e=>e==="date"?"day":"hours",G2e=e=>{const{classes:t}=e;return Te({root:["root"]},H2e,t)},K2e=oe(y2,{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}}})),q2e=function(t){const n=je({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=D.jsx(xCe,{}),onViewChange:o,timeIcon:s=D.jsx(SCe,{}),view:i,hidden:l=typeof window=="undefined"||window.innerHeight<667}=n,a=as(),c=G2e(n),f=(p,h)=>{o(W2e(h))};return l?null:D.jsxs(K2e,{ownerState:n,variant:"fullWidth",value:U2e(i),onChange:f,className:c.root,children:[D.jsx(Wv,{value:"date","aria-label":a.dateTableLabel,icon:D.jsx(u.Fragment,{children:r})}),D.jsx(Wv,{value:"time","aria-label":a.timeTableLabel,icon:D.jsx(u.Fragment,{children:s})})]})};function Y2e(e){return Ke("MuiDateTimePickerToolbar",e)}const cC=We("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),Q2e=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],X2e=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,Y2e,t)},wB=oe(FSe,{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"}));wB.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 Z2e=oe("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),CB=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 S({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&S({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),J2e=oe("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>S({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));CB.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 wD=oe(aB,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),eEe=oe("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${cC.ampmLabel}`]:t.ampmLabel},{[`&.${cC.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>S({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${cC.ampmLabel}`]:{fontSize:17}}));function tEe(e){const t=je({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,onChange:s,view:i,isLandscape:l,onViewChange:a,toolbarFormat:c,toolbarPlaceholder:f="––",views:p,disabled:h,readOnly:y,toolbarVariant:v="mobile"}=t,m=le(t,Q2e),C=t,w=on(),{meridiemMode:b,handleMeridiemChange:x}=QE(o,n,s),P=!!(n&&!r),M=v==="desktop",E=as(),k=vn(),R=X2e(S({},C,{theme:k})),O=L=>n?w.format(L,"hours12h"):w.format(L,"hours24h"),_=u.useMemo(()=>o?c?w.formatByString(o,c):w.format(o,"shortDate"):f,[o,c,f,w]);return D.jsxs(wB,S({toolbarTitle:E.dateTimePickerToolbarTitle,isLandscape:l,className:R.root},m,{ownerState:C,children:[D.jsxs(Z2e,{className:R.dateContainer,ownerState:C,children:[p.includes("year")&&D.jsx(Wl,{tabIndex:-1,variant:"subtitle1",onClick:()=>a("year"),selected:i==="year",value:o?w.format(o,"year"):"–"}),p.includes("day")&&D.jsx(Wl,{tabIndex:-1,variant:M?"h5":"h4",onClick:()=>a("day"),selected:i==="day",value:_})]}),D.jsxs(CB,{className:R.timeContainer,ownerState:C,children:[D.jsxs(J2e,{className:R.timeDigitsContainer,ownerState:C,children:[p.includes("hours")&&D.jsx(Wl,{variant:M?"h5":"h3",width:M&&!l?cp:void 0,onClick:()=>a("hours"),selected:i==="hours",value:o?O(o):"--"}),p.includes("minutes")&&D.jsxs(u.Fragment,{children:[D.jsx(wD,{variant:M?"h5":"h3",value:":",className:R.separator,ownerState:C}),D.jsx(Wl,{variant:M?"h5":"h3",width:M&&!l?cp:void 0,onClick:()=>a("minutes"),selected:i==="minutes",value:o?w.format(o,"minutes"):"--"})]}),p.includes("seconds")&&D.jsxs(u.Fragment,{children:[D.jsx(wD,{variant:M?"h5":"h3",value:":",className:R.separator,ownerState:C}),D.jsx(Wl,{variant:M?"h5":"h3",width:M&&!l?cp:void 0,onClick:()=>a("seconds"),selected:i==="seconds",value:o?w.format(o,"seconds"):"--"})]})]}),P&&!M&&D.jsxs(eEe,{className:R.ampmSelection,ownerState:C,children:[D.jsx(Wl,{variant:"subtitle2",selected:b==="am",typographyClassName:R.ampmLabel,value:dl(w,"am"),onClick:y?void 0:()=>x("am"),disabled:h}),D.jsx(Wl,{variant:"subtitle2",selected:b==="pm",typographyClassName:R.ampmLabel,value:dl(w,"pm"),onClick:y?void 0:()=>x("pm"),disabled:h})]}),n&&M&&D.jsx(Wl,{variant:"h5",onClick:()=>a("meridiem"),selected:i==="meridiem",value:o&&b?dl(w,b):"--",width:cp})]})]}))}function xB(e,t){var n,r,o,s,i,l,a,c,f,p,h;const y=on(),v=Qh(),m=je({props:e,name:t}),C=(n=m.ampm)!=null?n:y.is12HourCycleInCurrentLocale(),w=u.useMemo(()=>{var P;return((P=m.localeText)==null?void 0:P.toolbarTitle)==null?m.localeText:S({},m.localeText,{dateTimePickerToolbarTitle:m.localeText.toolbarTitle})},[m.localeText]),b=(r=m.slots)!=null?r:tk(m.components),x=(o=m.slotProps)!=null?o:m.componentsProps;return S({},m,RCe({views:m.views,openTo:m.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:C,localeText:w,orientation:(s=m.orientation)!=null?s:"portrait",disableIgnoringDatePartForTimeValidation:(i=m.disableIgnoringDatePartForTimeValidation)!=null?i:!!(m.minDateTime||m.maxDateTime||m.disablePast||m.disableFuture),disableFuture:(l=m.disableFuture)!=null?l:!1,disablePast:(a=m.disablePast)!=null?a:!1,minDate:Fs(y,(c=m.minDateTime)!=null?c:m.minDate,v.minDate),maxDate:Fs(y,(f=m.maxDateTime)!=null?f:m.maxDate,v.maxDate),minTime:(p=m.minDateTime)!=null?p:m.minTime,maxTime:(h=m.maxDateTime)!=null?h:m.maxTime,slots:S({toolbar:tEe,tabs:q2e},b),slotProps:S({},x,{toolbar:S({ampm:C},x==null?void 0:x.toolbar)})})}const nEe=oe("div")({display:"flex",margin:"0 auto"}),ec=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:c,classes:f,disableFuture:p,disablePast:h,minDate:y,minTime:v,maxDate:m,maxTime:C,shouldDisableDate:w,shouldDisableMonth:b,shouldDisableYear:x,shouldDisableTime:P,shouldDisableClock:M,reduceAnimations:E,minutesStep:k,ampm:R,onMonthChange:O,monthsPerRow:_,onYearChange:L,yearsPerRow:B,defaultCalendarMonth:z,components:T,componentsProps:$,slots:F,slotProps:j,loading:A,renderLoading:N,disableHighlightToday:H,readOnly:K,disabled:Y,showDaysOutsideCurrentMonth:te,dayOfWeekFormatter:Q,sx:X,autoFocus:J,fixedWeekNumber:se,displayWeekNumber:Z,timezone:he,disableIgnoringDatePartForTimeValidation:ne,timeSteps:re,skipDisabled:me,timeViewsCount:ce,shouldRenderTimeInASingleColumn:Se})=>{var ke,ae;const Ie=!!((ke=k1((ae=j==null?void 0:j.actionBar)!=null?ae:$==null?void 0:$.actionBar,{}))!=null&&(ke=ke.actions)!=null&&ke.length),ye={view:Ql(e)?e:"hours",onViewChange:t,focusedView:r&&Ql(r)?r:null,onFocusedViewChange:o,views:n.filter(Ql),value:s,defaultValue:i,referenceDate:l,onChange:a,className:c,classes:f,disableFuture:p,disablePast:h,minTime:v,maxTime:C,shouldDisableTime:P,shouldDisableClock:M,minutesStep:k,ampm:R,components:T,componentsProps:$,slots:F,slotProps:j,readOnly:K,disabled:Y,autoFocus:J,disableIgnoringDatePartForTimeValidation:ne,timeSteps:re,skipDisabled:me,timezone:he};return D.jsxs(u.Fragment,{children:[D.jsxs(nEe,{children:[D.jsx(yB,{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:c,classes:f,disableFuture:p,disablePast:h,minDate:y,maxDate:m,shouldDisableDate:w,shouldDisableMonth:b,shouldDisableYear:x,reduceAnimations:E,onMonthChange:O,monthsPerRow:_,onYearChange:L,yearsPerRow:B,defaultCalendarMonth:z,components:T,componentsProps:$,slots:F,slotProps:j,loading:A,renderLoading:N,disableHighlightToday:H,readOnly:K,disabled:Y,showDaysOutsideCurrentMonth:te,dayOfWeekFormatter:Q,sx:X,autoFocus:J,fixedWeekNumber:se,displayWeekNumber:Z,timezone:he}),ce>0&&D.jsxs(u.Fragment,{children:[D.jsx(ih,{orientation:"vertical"}),Se?F2e(S({},ye,{view:"hours",views:["hours"],focusedView:r&&Ql(r)?"hours":null,sx:S({width:"auto",[`&.${Lxe.root}`]:{maxHeight:P0}},Array.isArray(X)?X:[X])})):N2e(S({},ye,{view:Ql(e)?e:"hours",views:n.filter(Ql),focusedView:r&&Ql(r)?r:null,sx:S({borderBottom:0,width:"auto",[`.${Wxe.root}`]:{maxHeight:"100%"}},Array.isArray(X)?X:[X])}))]})]}),Ie&&D.jsx(ih,{})]})},SB=u.forwardRef(function(t,n){var r,o,s,i,l,a,c;const f=as(),p=on(),h=xB(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:y,thresholdToRenderTimeInASingleColumn:v,views:m,timeSteps:C}=j2e(h),w=!h.viewRenderers||Object.keys(h.viewRenderers).length===0,b=w?{day:ec,month:ec,year:ec,hours:ec,minutes:ec,seconds:ec,meridiem:ec}:S({day:ad,month:ad,year:ad,hours:null,minutes:null,seconds:null,meridiem:null},h.viewRenderers),x=(r=h.ampmInClock)!=null?r:!0,P=w?["accept"]:[],M=S({},h,{viewRenderers:b,format:bB(p,h),views:m,yearsPerRow:(o=h.yearsPerRow)!=null?o:4,ampmInClock:x,timeSteps:C,thresholdToRenderTimeInASingleColumn:v,shouldRenderTimeInASingleColumn:y,slots:S({field:gB,openPickerIcon:CCe},h.slots),slotProps:S({},h.slotProps,{field:k=>{var R;return S({},k1((R=h.slotProps)==null?void 0:R.field,k),sB(h),{ref:n})},toolbar:S({hidden:!0,ampmInClock:x,toolbarVariant:w?"desktop":"mobile"},(s=h.slotProps)==null?void 0:s.toolbar),tabs:S({hidden:!0},(i=h.slotProps)==null?void 0:i.tabs),actionBar:S({actions:P},(l=h.slotProps)==null?void 0:l.actionBar)})}),{renderPicker:E}=D2e({props:M,valueManager:os,valueType:"date-time",getOpenDialogAriaText:(a=(c=M.localeText)==null?void 0:c.openDatePickerDialogue)!=null?a:f.openDatePickerDialogue,validator:rk});return E()});SB.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:NF,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 PB=u.forwardRef(function(t,n){var r,o,s,i,l;const a=as(),c=on(),f=xB(t,"MuiMobileDateTimePicker"),p=S({day:ad,month:ad,year:ad,hours:aC,minutes:aC,seconds:aC},f.viewRenderers),h=(r=f.ampmInClock)!=null?r:!1,y=S({},f,{viewRenderers:p,format:bB(c,f),ampmInClock:h,slots:S({field:gB},f.slots),slotProps:S({},f.slotProps,{field:m=>{var C;return S({},k1((C=f.slotProps)==null?void 0:C.field,m),sB(f),{ref:n})},toolbar:S({hidden:!1,ampmInClock:h},(o=f.slotProps)==null?void 0:o.toolbar),tabs:S({hidden:!1},(s=f.slotProps)==null?void 0:s.tabs)})}),{renderPicker:v}=L2e({props:y,valueManager:os,valueType:"date-time",getOpenDialogAriaText:(i=(l=y.localeText)==null?void 0:l.openDatePickerDialogue)!=null?i:a.openDatePickerDialogue,validator:rk});return v()});PB.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:NF,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 rEe=["desktopModeMediaQuery"],oEe=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=hSe}=r,s=le(r,rEe);return F1(o,{defaultMatches:!0})?D.jsx(SB,S({ref:n},s)):D.jsx(PB,S({ref:n},s))});var EB={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ln,function(){var n=1e3,r=6e4,o=36e5,s="millisecond",i="second",l="minute",a="hour",c="day",f="week",p="month",h="quarter",y="year",v="date",m="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var $=["th","st","nd","rd"],F=T%100;return"["+T+($[(F-20)%10]||$[F]||$[0])+"]"}},x=function(T,$,F){var j=String(T);return!j||j.length>=$?T:""+Array($+1-j.length).join(F)+T},P={s:x,z:function(T){var $=-T.utcOffset(),F=Math.abs($),j=Math.floor(F/60),A=F%60;return($<=0?"+":"-")+x(j,2,"0")+":"+x(A,2,"0")},m:function T($,F){if($.date()<F.date())return-T(F,$);var j=12*(F.year()-$.year())+(F.month()-$.month()),A=$.clone().add(j,p),N=F-A<0,H=$.clone().add(j+(N?-1:1),p);return+(-(j+(F-A)/(N?A-H:H-A))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:p,y,w:f,d:c,D:v,h:a,m:l,s:i,ms:s,Q:h}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},M="en",E={};E[M]=b;var k="$isDayjsObject",R=function(T){return T instanceof B||!(!T||!T[k])},O=function T($,F,j){var A;if(!$)return M;if(typeof $=="string"){var N=$.toLowerCase();E[N]&&(A=N),F&&(E[N]=F,A=N);var H=$.split("-");if(!A&&H.length>1)return T(H[0])}else{var K=$.name;E[K]=$,A=K}return!j&&A&&(M=A),A||!j&&M},_=function(T,$){if(R(T))return T.clone();var F=typeof $=="object"?$:{};return F.date=T,F.args=arguments,new B(F)},L=P;L.l=O,L.i=R,L.w=function(T,$){return _(T,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var B=function(){function T(F){this.$L=O(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[k]=!0}var $=T.prototype;return $.parse=function(F){this.$d=function(j){var A=j.date,N=j.utc;if(A===null)return new Date(NaN);if(L.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var H=A.match(C);if(H){var K=H[2]-1||0,Y=(H[7]||"0").substring(0,3);return N?new Date(Date.UTC(H[1],K,H[3]||1,H[4]||0,H[5]||0,H[6]||0,Y)):new Date(H[1],K,H[3]||1,H[4]||0,H[5]||0,H[6]||0,Y)}}return new Date(A)}(F),this.init()},$.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()},$.$utils=function(){return L},$.isValid=function(){return this.$d.toString()!==m},$.isSame=function(F,j){var A=_(F);return this.startOf(j)<=A&&A<=this.endOf(j)},$.isAfter=function(F,j){return _(F)<this.startOf(j)},$.isBefore=function(F,j){return this.endOf(j)<_(F)},$.$g=function(F,j,A){return L.u(F)?this[j]:this.set(A,F)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(F,j){var A=this,N=!!L.u(j)||j,H=L.p(F),K=function(he,ne){var re=L.w(A.$u?Date.UTC(A.$y,ne,he):new Date(A.$y,ne,he),A);return N?re:re.endOf(c)},Y=function(he,ne){return L.w(A.toDate()[he].apply(A.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(ne)),A)},te=this.$W,Q=this.$M,X=this.$D,J="set"+(this.$u?"UTC":"");switch(H){case y:return N?K(1,0):K(31,11);case p:return N?K(1,Q):K(0,Q+1);case f:var se=this.$locale().weekStart||0,Z=(te<se?te+7:te)-se;return K(N?X-Z:X+(6-Z),Q);case c:case v:return Y(J+"Hours",0);case a:return Y(J+"Minutes",1);case l:return Y(J+"Seconds",2);case i:return Y(J+"Milliseconds",3);default:return this.clone()}},$.endOf=function(F){return this.startOf(F,!1)},$.$set=function(F,j){var A,N=L.p(F),H="set"+(this.$u?"UTC":""),K=(A={},A[c]=H+"Date",A[v]=H+"Date",A[p]=H+"Month",A[y]=H+"FullYear",A[a]=H+"Hours",A[l]=H+"Minutes",A[i]=H+"Seconds",A[s]=H+"Milliseconds",A)[N],Y=N===c?this.$D+(j-this.$W):j;if(N===p||N===y){var te=this.clone().set(v,1);te.$d[K](Y),te.init(),this.$d=te.set(v,Math.min(this.$D,te.daysInMonth())).$d}else K&&this.$d[K](Y);return this.init(),this},$.set=function(F,j){return this.clone().$set(F,j)},$.get=function(F){return this[L.p(F)]()},$.add=function(F,j){var A,N=this;F=Number(F);var H=L.p(j),K=function(Q){var X=_(N);return L.w(X.date(X.date()+Math.round(Q*F)),N)};if(H===p)return this.set(p,this.$M+F);if(H===y)return this.set(y,this.$y+F);if(H===c)return K(1);if(H===f)return K(7);var Y=(A={},A[l]=r,A[a]=o,A[i]=n,A)[H]||1,te=this.$d.getTime()+F*Y;return L.w(te,this)},$.subtract=function(F,j){return this.add(-1*F,j)},$.format=function(F){var j=this,A=this.$locale();if(!this.isValid())return A.invalidDate||m;var N=F||"YYYY-MM-DDTHH:mm:ssZ",H=L.z(this),K=this.$H,Y=this.$m,te=this.$M,Q=A.weekdays,X=A.months,J=A.meridiem,se=function(ne,re,me,ce){return ne&&(ne[re]||ne(j,N))||me[re].slice(0,ce)},Z=function(ne){return L.s(K%12||12,ne,"0")},he=J||function(ne,re,me){var ce=ne<12?"AM":"PM";return me?ce.toLowerCase():ce};return N.replace(w,function(ne,re){return re||function(me){switch(me){case"YY":return String(j.$y).slice(-2);case"YYYY":return L.s(j.$y,4,"0");case"M":return te+1;case"MM":return L.s(te+1,2,"0");case"MMM":return se(A.monthsShort,te,X,3);case"MMMM":return se(X,te);case"D":return j.$D;case"DD":return L.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return se(A.weekdaysMin,j.$W,Q,2);case"ddd":return se(A.weekdaysShort,j.$W,Q,3);case"dddd":return Q[j.$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,Y,!0);case"A":return he(K,Y,!1);case"m":return String(Y);case"mm":return L.s(Y,2,"0");case"s":return String(j.$s);case"ss":return L.s(j.$s,2,"0");case"SSS":return L.s(j.$ms,3,"0");case"Z":return H}return null}(ne)||H.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(F,j,A){var N,H=this,K=L.p(j),Y=_(F),te=(Y.utcOffset()-this.utcOffset())*r,Q=this-Y,X=function(){return L.m(H,Y)};switch(K){case y:N=X()/12;break;case p:N=X();break;case h:N=X()/3;break;case f:N=(Q-te)/6048e5;break;case c:N=(Q-te)/864e5;break;case a:N=Q/o;break;case l:N=Q/r;break;case i:N=Q/n;break;default:N=Q}return A?N:L.a(N)},$.daysInMonth=function(){return this.endOf(p).$D},$.$locale=function(){return E[this.$L]},$.locale=function(F,j){if(!F)return this.$L;var A=this.clone(),N=O(F,j,!0);return N&&(A.$L=N),A},$.clone=function(){return L.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},T}(),z=B.prototype;return _.prototype=z,[["$ms",s],["$s",i],["$m",l],["$H",a],["$W",c],["$M",p],["$y",y],["$D",v]].forEach(function(T){z[T[1]]=function($){return this.$g($,T[0],T[1])}}),_.extend=function(T,$){return T.$i||(T($,B,_),T.$i=!0),_},_.locale=O,_.isDayjs=R,_.unix=function(T){return _(1e3*T)},_.en=E[M],_.Ls=E,_.p={},_})})(EB);var sEe=EB.exports;const $r=pi(sEe);function iEe(o){var s=o,{onChange:e,error:t,helperText:n}=s,r=At(s,["onChange","error","helperText"]);return u.createElement(ze,{},u.createElement(oEe,st(we({},Z1(r,i=>i&&i instanceof Date?$r(i):i!=null?i:null)),{sx:we({width:"100%",color:"error.main"},r.sx),onChange(i){e(i&&new Date(i),{was:r.value,event:void 0})}})),n&&u.createElement(Kd,{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,c=At(p,["label","helperText","fields","value","onChange","onError","setApi","reorder","prepend"]);const h=u.useMemo(()=>(r||[]).map((w,b)=>bfe(we({},w),w.hasOwnProperty("id")?{$idx:b}:{id:b})),[JSON.stringify(r)]),y={fields:n.map(M=>{var E=M,{$width:w,$column:b,$type:x}=E,P=At(E,["$width","$column","$type"]);var k;return Ze.defaults(P,(k=CD[x])==null?void 0:k.field)})};i==null||i({isEqual:KN});const[v,m]=u.useState();return u.createElement(u.Fragment,{},e&&u.createElement(Z4,{sx:{ml:1}},e),t&&u.createElement(Kd,{},t),u.createElement(ze,we({},c),u.createElement(F3,{rows:h,sx:{".MuiDataGrid-virtualScroller":{minHeight:"3em"}},hideFooterSelectedRowCount:!0,hideFooter:!0,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}},columns:[...n.map(w=>{var x,P;const b=(x=CD[w.$type])==null?void 0:x.column;return we(we(we({field:w.k,headerName:(P=w.headerName)!=null?P:typeof w.label=="string"?w.label:l5(w.k),disableColumnMenu:!0},b),w.$width?{[w.$width>=8?"width":"flex"]:w.$width}:!(b!=null&&b.width)&&!(b!=null&&b.flex)&&{flex:1}),w.$column)}),{field:"",type:"actions",width:90,headerAlign:"center",renderHeader(){const w="Add";return u.createElement(u.Fragment,{},u.createElement(dn,{icon:VE,title:w,size:"small",onClick:b=>uh({form:y,title:w}).then(x=>{if(!x)return;const P=(r==null?void 0:r.slice())||[];a?P.unshift(x):P.push(x),C(P,b)})}),v!==void 0&&u.createElement(dn,{icon:B3,title:"Undo",size:"small",onClick:b=>C(v,b)}))},getActions({row:w}){const{$idx:b=w.id}=w,x="Modify";return[u.createElement(bg,{icon:u.createElement(HE),label:x,title:x,onClick(P){uh({values:w,form:y,title:x}).then(M=>{M&&C(r.map((E,k)=>k===b?M:E),P)})}}),u.createElement(bg,{icon:u.createElement(Tl),label:"Delete",showInMenu:l,onClick:P=>C(r.filter((M,E)=>E!==b),P)}),l&&b&&u.createElement(bg,{icon:u.createElement(GE),label:"Move up",showInMenu:!0,onClick:P=>C(hO(r.slice(),b,b-1),P)}),l&&b<h.length-1&&u.createElement(bg,{icon:u.createElement(N3),label:"Move down",showInMenu:!0,onClick:P=>C(hO(r.slice(),b,b+1),P)})].filter(Boolean)}}]})));function C(w,b){o(w,{was:r,event:b}),m(r)}}const CD={dateTime:{field:{comp:iEe},column:{type:"dateTime",minWidth:90,flex:.5,valueGetter:({value:e})=>e&&new Date(e),renderCell:({value:e})=>e&&u.createElement(ze,{},e.toLocaleDateString(),u.createElement("br"),e.toLocaleTimeString())}}};var ok={},lEe=et;Object.defineProperty(ok,"__esModule",{value:!0});var kB=ok.default=void 0,aEe=lEe(tt()),cEe=Je(),uEe=(0,aEe.default)((0,cEe.jsx)("path",{d:"M5 17h14v2H5zm7-12L5.33 15h13.34z"}),"Eject");kB=ok.default=uEe;var sk={},dEe=et;Object.defineProperty(sk,"__esModule",{value:!0});var IB=sk.default=void 0,fEe=dEe(tt()),pEe=Je(),hEe=(0,fEe.default)((0,pEe.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");IB=sk.default=hEe;var ik={},mEe=et;Object.defineProperty(ik,"__esModule",{value:!0});var MB=ik.default=void 0,gEe=mEe(tt()),vEe=Je(),yEe=(0,gEe.default)((0,vEe.jsx)("path",{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}),"VerticalAlignTop");MB=ik.default=yEe;const bEe=["element"];function wEe(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}function CEe(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 _B=u.createContext({});function xEe(e){const t=u.useRef(null);return u.useEffect(()=>{t.current=e},[e]),t.current}const xD=()=>{};function SEe(e){const[,t]=u.useState(),{registerDescendant:n=xD,unregisterDescendant:r=xD,descendants:o=[],parentId:s=null}=u.useContext(_B),i=wEe(o,c=>c.element===e.element),l=xEe(o),a=o.some((c,f)=>l&&l[f]&&l[f].element!==c.element);return Nt(()=>{if(e.element)return n(S({},e,{index:i})),()=>{r(e.element)};t({})},[n,r,i,a,e]),{parentId:s,index:i}}function TB(e){const{children:t,id:n}=e,[r,o]=u.useState([]),s=u.useCallback(a=>{let{element:c}=a,f=le(a,bEe);o(p=>{if(p.length===0)return[S({},f,{element:c,index:0})];const h=CEe(p,c);let y;if(p[h]&&p[h].element===c)y=p;else{const v=S({},f,{element:c,index:h});y=p.slice(),y.splice(h,0,v)}return y.forEach((v,m)=>{v.index=m}),y})},[]),i=u.useCallback(a=>{o(c=>c.filter(f=>a!==f.element))},[]),l=u.useMemo(()=>({descendants:r,registerDescendant:s,unregisterDescendant:i,parentId:n}),[r,s,i,n]);return D.jsx(_B.Provider,{value:l,children:t})}const $B={instance:null,multiSelect:!1,disabledItemsFocusable:!1,treeId:void 0,icons:{defaultCollapseIcon:null,defaultExpandIcon:null,defaultParentIcon:null,defaultEndIcon:null}},RB=u.createContext($B),OB=()=>u.useContext(RB);function PEe(e){const{instance:t,multiSelect:n}=OB(),r=t?t.isNodeExpandable(e):!1,o=t?t.isNodeExpanded(e):!1,s=t?t.isNodeFocused(e):!1,i=t?t.isNodeSelected(e):!1,l=t?t.isNodeDisabled(e):!1;return{disabled:l,expanded:o,selected:i,focused:s,handleExpansion:p=>{if(t&&!l){s||t.focusNode(p,e);const h=n&&(p.shiftKey||p.ctrlKey||p.metaKey);r&&!(h&&t.isNodeExpanded(e))&&t.toggleNodeExpansion(p,e)}},handleSelection:p=>{t&&!l&&(s||t.focusNode(p,e),n&&(p.shiftKey||p.ctrlKey||p.metaKey)?p.shiftKey?t.selectRange(p,{end:e}):t.selectNode(p,e,!0):t.selectNode(p,e))},preventSelection:p=>{(p.shiftKey||p.ctrlKey||p.metaKey||l)&&p.preventDefault()}}}const EEe=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],DB=u.forwardRef(function(t,n){const{classes:r,className:o,displayIcon:s,expansionIcon:i,icon:l,label:a,nodeId:c,onClick:f,onMouseDown:p}=t,h=le(t,EEe),{disabled:y,expanded:v,selected:m,focused:C,handleExpansion:w,handleSelection:b,preventSelection:x}=PEe(c),P=l||i||s,M=k=>{x(k),p&&p(k)},E=k=>{w(k),b(k),f&&f(k)};return D.jsxs("div",S({},h,{className:xe(o,r.root,v&&r.expanded,m&&r.selected,C&&r.focused,y&&r.disabled),onClick:E,onMouseDown:M,ref:n,children:[D.jsx("div",{className:r.iconContainer,children:P}),D.jsx("div",{className:r.label,children:a})]}))});function kEe(e){return Ke("MuiTreeItem",e)}const Gl=We("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),IEe=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],MEe=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"]},kEe,t)},_Ee=oe("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),TEe=oe(DB,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Gl.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Gl.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"}},[`&.${Gl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Gl.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Gl.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)}},[`&.${Gl.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)}},[`& .${Gl.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Gl.label}`]:S({paddingLeft:4,width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1)})),$Ee=oe(Bv,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),vS=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiTreeItem"}),{children:o,className:s,collapseIcon:i,ContentComponent:l=DB,ContentProps:a,endIcon:c,expandIcon:f,disabled:p,icon:h,id:y,label:v,nodeId:m,onClick:C,onMouseDown:w,TransitionComponent:b=Bv,TransitionProps:x}=r,P=le(r,IEe),{icons:M,multiSelect:E,disabledItemsFocusable:k,treeId:R,instance:O}=OB();let _;y!=null?_=y:R&&m&&(_=`${R}-${m}`);const[L,B]=u.useState(null),z=u.useRef(null),T=kt(B,n),$=u.useMemo(()=>({element:L,id:m}),[m,L]),{index:F,parentId:j}=SEe($),A=!!(Array.isArray(o)?o.length:o),N=O?O.isNodeExpanded(m):!1,H=O?O.isNodeFocused(m):!1,K=O?O.isNodeSelected(m):!1,Y=O?O.isNodeDisabled(m):!1,te=S({},r,{expanded:N,focused:H,selected:K,disabled:Y}),Q=MEe(te);let X,J;A&&(N?J=i||M.defaultCollapseIcon:J=f||M.defaultExpandIcon),A?X=M.defaultParentIcon:X=c||M.defaultEndIcon,u.useEffect(()=>{if(O&&F!==-1)return O.updateNode({id:m,idAttribute:_,index:F,parentId:j,expandable:A,disabled:p}),()=>O.removeNode(m)},[O,j,F,m,A,p,_]),u.useEffect(()=>{if(O&&v){var he,ne;return O.mapFirstChar(m,((he=(ne=z.current)==null?void 0:ne.textContent)!=null?he:"").substring(0,1).toLowerCase())}},[O,m,v]);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=pn(he.target),re.getElementById(R).focus({preventScroll:!0})}const ne=!k&&Y;O&&!H&&he.currentTarget===he.target&&!ne&&O.focusNode(he,m)}return D.jsxs(_Ee,S({className:xe(Q.root,s),role:"treeitem","aria-expanded":A?N:void 0,"aria-selected":se,"aria-disabled":Y||void 0,id:_,tabIndex:-1},P,{ownerState:te,onFocus:Z,ref:T,children:[D.jsx(TEe,S({as:l,ref:z,classes:{root:Q.content,expanded:Q.expanded,selected:Q.selected,focused:Q.focused,disabled:Q.disabled,iconContainer:Q.iconContainer,label:Q.label},label:v,nodeId:m,onClick:C,onMouseDown:w,icon:h,expansionIcon:J,displayIcon:X,ownerState:te},a)),o&&D.jsx(TB,{id:m,children:D.jsx($Ee,S({as:b,unmountOnExit:!0,className:Q.group,in:N,component:"ul",role:"group"},x,{children:o}))})]}))});function REe(e){return Ke("MuiTreeView",e)}We("MuiTreeView",["root"]);const OEe=(e,t)=>{const n=u.useRef({}),[r,o]=u.useState(()=>{const i={};return e.forEach(l=>{l.models&&Object.entries(l.models).forEach(([a,c])=>{n.current[a]={controlledProp:c.controlledProp,defaultProp:c.defaultProp,isControlled:t[c.controlledProp]!==void 0},i[a]=t[c.defaultProp]})}),i});return Object.fromEntries(Object.entries(n.current).map(([i,l])=>{const a=l.isControlled?t[l.controlledProp]:r[i];return[i,{value:a,setValue:c=>{l.isControlled||o(f=>S({},f,{[i]:c}))}}]}))};class DEe{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 uC=(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},up=(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},yS=e=>{let t=e.getNavigableChildrenIds(null).pop();for(;e.isNodeExpanded(t);)t=e.getNavigableChildrenIds(t).pop();return t},bS=e=>e.getNavigableChildrenIds(null)[0],of=(e,t)=>{Object.assign(e,t)},AEe=e=>e.isPropagationStopped!==void 0,LEe=({instance:e})=>{const[t]=u.useState(()=>new DEe),n=u.useCallback((...o)=>{const[s,i,l={}]=o;l.defaultMuiPrevented=!1,!(AEe(l)&&l.isPropagationStopped())&&t.emit(s,i,l)},[t]),r=u.useCallback((o,s)=>(t.on(o,s),()=>{t.removeListener(o,s)}),[t]);of(e,{$$publishEvent:n,$$subscribeEvent:r})},FEe=[LEe],NEe=e=>{const t=[...FEe,...e.plugins],n=t.reduce((v,m)=>m.getDefaultizedParams?m.getDefaultizedParams(v):v,e),r=OEe(t,n),s=u.useRef({}).current,i=u.useRef(null),l=kt(i,e.rootRef),[a,c]=u.useState(()=>{const v={};return t.forEach(m=>{m.getInitialState&&Object.assign(v,m.getInitialState(n))}),v}),f=[];let p=$B;const h=v=>{const m=v({instance:s,params:n,state:a,setState:c,rootRef:i,models:r})||{};m.getRootProps&&f.push(m.getRootProps),m.contextValue&&(p=m.contextValue)};return t.forEach(h),{getRootProps:(v={})=>{const m=S({role:"tree",tabIndex:0},v,{ref:l});return f.forEach(C=>{Object.assign(m,C(v))}),m},rootRef:l,contextValue:p}};function BEe(e){const{value:t,children:n}=e;return D.jsx(RB.Provider,{value:t,children:D.jsx(TB,{children:n})})}const zEe=(e,t,n)=>{e.$$publishEvent(t,n)},VEe=({instance:e,params:t})=>{const n=u.useRef({}),r=u.useCallback(c=>n.current[c],[]),o=u.useCallback(c=>{n.current[c.id]=c},[]),s=u.useCallback(c=>{const f=S({},n.current);delete f[c],n.current=f,zEe(e,"removeNode",{id:c})},[e]),i=u.useCallback(c=>{if(c==null)return!1;let f=e.getNode(c);if(!f)return!1;if(f.disabled)return!0;for(;f.parentId!=null;)if(f=e.getNode(f.parentId),f.disabled)return!0;return!1},[e]),l=Ye(c=>Object.values(n.current).filter(f=>f.parentId===c).sort((f,p)=>f.index-p.index).map(f=>f.id));of(e,{getNode:r,updateNode:o,removeNode:s,getChildrenIds:l,getNavigableChildrenIds:c=>{let f=e.getChildrenIds(c);return t.disabledItemsFocusable||(f=f.filter(p=>!e.isNodeDisabled(p))),f},isNodeDisabled:i})},lk=({instance:e,params:t,models:n})=>{const r=u.useCallback(l=>Array.isArray(n.expanded.value)?n.expanded.value.indexOf(l)!==-1:!1,[n.expanded.value]),o=u.useCallback(l=>{var a;return!!((a=e.getNode(l))!=null&&a.expandable)},[e]),s=Ye((l,a)=>{if(a==null)return;let c;n.expanded.value.indexOf(a)!==-1?c=n.expanded.value.filter(f=>f!==a):c=[a].concat(n.expanded.value),t.onNodeToggle&&t.onNodeToggle(l,c),n.expanded.setValue(c)});of(e,{isNodeExpanded:r,isNodeExpandable:o,toggleNodeExpansion:s,expandAllSiblings:(l,a)=>{const c=e.getNode(a),p=e.getChildrenIds(c.parentId).filter(y=>e.isNodeExpandable(y)&&!e.isNodeExpanded(y)),h=n.expanded.value.concat(p);p.length>0&&(n.expanded.setValue(h),t.onNodeToggle&&t.onNodeToggle(l,h))}})};lk.models={expanded:{controlledProp:"expanded",defaultProp:"defaultExpanded"}};const jEe=[];lk.getDefaultizedParams=e=>{var t;return S({},e,{defaultExpanded:(t=e.defaultExpanded)!=null?t:jEe})};const HEe=(e,t,n)=>{if(t===n)return[t,n];const r=e.getNode(t),o=e.getNode(n);if(r.parentId===o.id||o.parentId===r.id)return o.parentId===r.id?[r.id,o.id]:[o.id,r.id];const s=[r.id],i=[o.id];let l=r.parentId,a=o.parentId,c=i.indexOf(l)!==-1,f=s.indexOf(a)!==-1,p=!0,h=!0;for(;!f&&!c;)p&&(s.push(l),c=i.indexOf(l)!==-1,p=l!==null,!c&&p&&(l=e.getNode(l).parentId)),h&&!c&&(i.push(a),f=s.indexOf(a)!==-1,h=a!==null,!f&&h&&(a=e.getNode(a).parentId));const y=c?l:a,v=e.getChildrenIds(y),m=s[s.indexOf(y)-1],C=i[i.indexOf(y)-1];return v.indexOf(m)<v.indexOf(C)?[t,n]:[n,t]},ak=({instance:e,params:t,models:n})=>{const r=u.useRef(null),o=u.useRef(!1),s=u.useRef([]),i=v=>Array.isArray(n.selected.value)?n.selected.value.indexOf(v)!==-1:n.selected.value===v,l=(v,m,C=!1)=>{if(!t.disableSelection){if(C){if(Array.isArray(n.selected.value)){let w;n.selected.value.indexOf(m)!==-1?w=n.selected.value.filter(b=>b!==m):w=[m].concat(n.selected.value),t.onNodeSelect&&t.onNodeSelect(v,w),n.selected.setValue(w)}}else{const w=t.multiSelect?[m]:m;t.onNodeSelect&&t.onNodeSelect(v,w),n.selected.setValue(w)}r.current=m,o.current=!1,s.current=[]}},a=(v,m)=>{const[C,w]=HEe(e,v,m),b=[C];let x=C;for(;x!==w;)x=up(e,x),b.push(x);return b},c=(v,m)=>{let C=n.selected.value.slice();const{start:w,next:b,current:x}=m;!b||!x||(s.current.indexOf(x)===-1&&(s.current=[]),o.current?s.current.indexOf(b)!==-1?(C=C.filter(P=>P===w||P!==x),s.current=s.current.filter(P=>P===w||P!==x)):(C.push(b),s.current.push(b)):(C.push(b),s.current.push(x,b)),t.onNodeSelect&&t.onNodeSelect(v,C),n.selected.setValue(C))},f=(v,m)=>{let C=n.selected.value.slice();const{start:w,end:b}=m;o.current&&(C=C.filter(M=>s.current.indexOf(M)===-1));let x=a(w,b);x=x.filter(M=>!e.isNodeDisabled(M)),s.current=x;let P=C.concat(x);P=P.filter((M,E)=>P.indexOf(M)===E),t.onNodeSelect&&t.onNodeSelect(v,P),n.selected.setValue(P)};return of(e,{isNodeSelected:i,selectNode:l,selectRange:(v,m,C=!1)=>{if(t.disableSelection)return;const{start:w=r.current,end:b,current:x}=m;C?c(v,{start:w,next:b,current:x}):w!=null&&b!=null&&f(v,{start:w,end:b}),o.current=!0},rangeSelectToLast:(v,m)=>{r.current||(r.current=m);const C=o.current?r.current:m;e.selectRange(v,{start:C,end:yS(e)})},rangeSelectToFirst:(v,m)=>{r.current||(r.current=m);const C=o.current?r.current:m;e.selectRange(v,{start:C,end:bS(e)})}}),{getRootProps:()=>({"aria-multiselectable":t.multiSelect})}};ak.models={selected:{controlledProp:"selected",defaultProp:"defaultSelected"}};const UEe=[];ak.getDefaultizedParams=e=>{var t,n,r;return S({},e,{disableSelection:(t=e.disableSelection)!=null?t:!1,multiSelect:(n=e.multiSelect)!=null?n:!1,defaultSelected:(r=e.defaultSelected)!=null?r:e.multiSelect?UEe:null})};const SD=1e3;class WEe{constructor(t=SD){this.timeouts=new Map,this.cleanupTimeout=SD,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 GEe{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 KEe{}function qEe(e){let t=0;return function(r,o,s){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new GEe:new WEe);const[i]=u.useState(new KEe),l=u.useRef(null),a=u.useRef();a.current=s;const c=u.useRef(null);if(!l.current&&a.current){const f=(p,h)=>{if(!h.defaultMuiPrevented){var y;(y=a.current)==null||y.call(a,p,h)}};l.current=r.$$subscribeEvent(o,f),t+=1,c.current={cleanupToken:t},e.registry.register(i,()=>{var p;(p=l.current)==null||p.call(l),l.current=null,c.current=null},c.current)}else!a.current&&l.current&&(l.current(),l.current=null,c.current&&(e.registry.unregister(c.current),c.current=null));u.useEffect(()=>{if(!l.current&&a.current){const f=(p,h)=>{if(!h.defaultMuiPrevented){var y;(y=a.current)==null||y.call(a,p,h)}};l.current=r.$$subscribeEvent(o,f)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{var f;(f=l.current)==null||f.call(l),l.current=null}},[r,o])}}const YEe={registry:null},QEe=qEe(YEe),ck=({instance:e,params:t,state:n,setState:r,models:o,rootRef:s})=>{const i=Ye(y=>{const v=typeof y=="function"?y(n.focusedNodeId):y;r(m=>S({},m,{focusedNodeId:v}))}),l=u.useCallback(y=>n.focusedNodeId===y,[n.focusedNodeId]),a=Ye((y,v)=>{v&&(i(v),t.onNodeFocus&&t.onNodeFocus(y,v))});of(e,{isNodeFocused:l,focusNode:a}),QEe(e,"removeNode",({id:y})=>{i(v=>v===y&&s.current===pn(s.current).activeElement?e.getChildrenIds(null)[0]:v)});const c=y=>v=>{var m;if((m=y.onFocus)==null||m.call(y,v),v.target===v.currentTarget){const C=b=>{const x=e.getNode(b);return x&&(x.parentId==null||e.isNodeExpanded(x.parentId))};let w;Array.isArray(o.selected.value)?w=o.selected.value.find(C):o.selected.value!=null&&C(o.selected.value)&&(w=o.selected.value),w==null&&(w=e.getNavigableChildrenIds(null)[0]),e.focusNode(v,w)}},f=y=>v=>{var m;(m=y.onBlur)==null||m.call(y,v),i(null)},p=e.getNode(n.focusedNodeId),h=p?p.idAttribute:null;return{getRootProps:y=>({onFocus:c(y),onBlur:f(y),"aria-activedescendant":h!=null?h:void 0})}};ck.getInitialState=()=>({focusedNodeId:null});ck.getDefaultizedParams=e=>{var t;return S({},e,{disabledItemsFocusable:(t=e.disabledItemsFocusable)!=null?t:!1})};function XEe(e){return e&&e.length===1&&e.match(/\S/)}function PD(e,t,n){for(let r=t;r<e.length;r+=1)if(n===e[r])return r;return-1}const ZEe=({instance:e,params:t,state:n})=>{const o=vn().direction==="rtl",s=u.useRef({}),i=Ye((y,v)=>(s.current[y]=v,()=>{const m=S({},s.current);delete m[y],s.current=m}));of(e,{mapFirstChar:i});const l=y=>(n.focusedNodeId!=null&&e.isNodeExpandable(n.focusedNodeId)&&(e.isNodeExpanded(n.focusedNodeId)?e.focusNode(y,up(e,n.focusedNodeId)):e.isNodeDisabled(n.focusedNodeId)||e.toggleNodeExpansion(y,n.focusedNodeId)),!0),a=y=>{if(n.focusedNodeId==null)return!1;if(e.isNodeExpanded(n.focusedNodeId)&&!e.isNodeDisabled(n.focusedNodeId))return e.toggleNodeExpansion(y,n.focusedNodeId),!0;const v=e.getNode(n.focusedNodeId).parentId;return v?(e.focusNode(y,v),!0):!1},c=(y,v,m)=>{let C,w;const b=m.toLowerCase(),x=[],P=[];Object.keys(s.current).forEach(M=>{const E=e.getNode(M),k=E.parentId?e.isNodeExpanded(E.parentId):!0,R=t.disabledItemsFocusable?!1:e.isNodeDisabled(M);k&&!R&&(x.push(M),P.push(s.current[M]))}),C=x.indexOf(v)+1,C>=x.length&&(C=0),w=PD(P,C,b),w===-1&&(w=PD(P,0,b)),w>-1&&e.focusNode(y,x[w])},f=(y,v)=>{e.isNodeDisabled(up(e,v))||e.selectRange(y,{end:up(e,v),current:v},!0)},p=(y,v)=>{e.isNodeDisabled(uC(e,v))||e.selectRange(y,{end:uC(e,v),current:v},!0)},h=y=>v=>{var m;(m=y.onKeyDown)==null||m.call(y,v);let C=!1;const w=v.key;if(v.altKey||v.currentTarget!==v.target||n.focusedNodeId==null)return;const b=v.ctrlKey||v.metaKey;switch(w){case" ":!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&(C=!0,t.multiSelect&&v.shiftKey?e.selectRange(v,{end:n.focusedNodeId}):t.multiSelect?e.selectNode(v,n.focusedNodeId,!0):e.selectNode(v,n.focusedNodeId)),v.stopPropagation();break;case"Enter":e.isNodeDisabled(n.focusedNodeId)||(e.isNodeExpandable(n.focusedNodeId)?(e.toggleNodeExpansion(v,n.focusedNodeId),C=!0):t.disableSelection||(C=!0,t.multiSelect?e.selectNode(v,n.focusedNodeId,!0):e.selectNode(v,n.focusedNodeId))),v.stopPropagation();break;case"ArrowDown":t.multiSelect&&v.shiftKey&&!t.disableSelection&&f(v,n.focusedNodeId),e.focusNode(v,up(e,n.focusedNodeId)),C=!0;break;case"ArrowUp":t.multiSelect&&v.shiftKey&&!t.disableSelection&&p(v,n.focusedNodeId),e.focusNode(v,uC(e,n.focusedNodeId)),C=!0;break;case"ArrowRight":o?C=a(v):C=l(v);break;case"ArrowLeft":o?C=l(v):C=a(v);break;case"Home":t.multiSelect&&b&&v.shiftKey&&!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&e.rangeSelectToFirst(v,n.focusedNodeId),e.focusNode(v,bS(e)),C=!0;break;case"End":t.multiSelect&&b&&v.shiftKey&&!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&e.rangeSelectToLast(v,n.focusedNodeId),e.focusNode(v,yS(e)),C=!0;break;default:w==="*"?(e.expandAllSiblings(v,n.focusedNodeId),C=!0):t.multiSelect&&b&&w.toLowerCase()==="a"&&!t.disableSelection?(e.selectRange(v,{start:bS(e),end:yS(e)}),C=!0):!b&&!v.shiftKey&&XEe(w)&&(c(v,n.focusedNodeId,w),C=!0)}C&&(v.preventDefault(),v.stopPropagation())};return{getRootProps:y=>({onKeyDown:h(y)})}},JEe=({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}}}},eke=[VEe,lk,ak,ck,ZEe,JEe],tke=["disabledItemsFocusable","expanded","defaultExpanded","onNodeToggle","onNodeFocus","disableSelection","defaultSelected","selected","multiSelect","onNodeSelect","id","defaultCollapseIcon","defaultEndIcon","defaultExpandIcon","defaultParentIcon","children"],nke=e=>{const{classes:t}=e;return Te({root:["root"]},REe,t)},ED=oe("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0}),AB=u.forwardRef(function(t,n){const r=je({props:t,name:"MuiTreeView"}),o=r,s=r,{disabledItemsFocusable:i,expanded:l,defaultExpanded:a,onNodeToggle:c,onNodeFocus:f,disableSelection:p,defaultSelected:h,selected:y,multiSelect:v,onNodeSelect:m,id:C,defaultCollapseIcon:w,defaultEndIcon:b,defaultExpandIcon:x,defaultParentIcon:P,children:M}=s,E=le(s,tke),{getRootProps:k,contextValue:R}=NEe({disabledItemsFocusable:i,expanded:l,defaultExpanded:a,onNodeToggle:c,onNodeFocus:f,disableSelection:p,defaultSelected:h,selected:y,multiSelect:v,onNodeSelect:m,id:C,defaultCollapseIcon:w,defaultEndIcon:b,defaultExpandIcon:x,defaultParentIcon:P,plugins:eke,rootRef:n}),O=nke(r),_=qt({elementType:ED,externalSlotProps:{},externalForwardedProps:E,className:O.root,getSlotProps:k,ownerState:o});return D.jsx(BEe,{value:R,children:D.jsx(ED,S({},_,{children:M}))})});var uk={},rke=et;Object.defineProperty(uk,"__esModule",{value:!0});var LB=uk.default=void 0,oke=rke(tt()),ske=Je(),ike=(0,oke.default)((0,ske.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");LB=uk.default=ike;var dk={},lke=et;Object.defineProperty(dk,"__esModule",{value:!0});var FB=dk.default=void 0,ake=lke(tt()),cke=Je(),uke=(0,ake.default)((0,cke.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");FB=dk.default=uke;var fk={},dke=et;Object.defineProperty(fk,"__esModule",{value:!0});var NB=fk.default=void 0,fke=dke(tt()),kD=Je(),pke=(0,fke.default)([(0,kD.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,kD.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");NB=fk.default=pke;var pk={},hke=et;Object.defineProperty(pk,"__esModule",{value:!0});var BB=pk.default=void 0,mke=hke(tt()),gke=Je(),vke=(0,mke.default)((0,gke.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");BB=pk.default=vke;var hk={},yke=et;Object.defineProperty(hk,"__esModule",{value:!0});var zB=hk.default=void 0,bke=yke(tt()),wke=Je(),Cke=(0,bke.default)((0,wke.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");zB=hk.default=Cke;var mk={},xke=et;Object.defineProperty(mk,"__esModule",{value:!0});var VB=mk.default=void 0,Ske=xke(tt()),Pke=Je(),Eke=(0,Ske.default)((0,Pke.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");VB=mk.default=Eke;var gk={},kke=et;Object.defineProperty(gk,"__esModule",{value:!0});var jB=gk.default=void 0,Ike=kke(tt()),Mke=Je(),_ke=(0,Ike.default)((0,Mke.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");jB=gk.default=_ke;var vk={},Tke=et;Object.defineProperty(vk,"__esModule",{value:!0});var HB=vk.default=void 0,$ke=Tke(tt()),Rke=Je(),Oke=(0,$ke.default)((0,Rke.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");HB=vk.default=Oke;var yk={},Dke=et;Object.defineProperty(yk,"__esModule",{value:!0});var UB=yk.default=void 0,Ake=Dke(tt()),Lke=Je(),Fke=(0,Ake.default)((0,Lke.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");UB=yk.default=Fke;var bk={},Nke=et;Object.defineProperty(bk,"__esModule",{value:!0});var WB=bk.default=void 0,Bke=Nke(tt()),zke=Je(),Vke=(0,Bke.default)((0,zke.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");WB=bk.default=Vke;var wk={},jke=et;Object.defineProperty(wk,"__esModule",{value:!0});var GB=wk.default=void 0;Wke(u);var Hke=jke(tt()),Uke=Je();function KB(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(KB=function(r){return r?n:t})(e)}function Wke(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=KB(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 Gke=(0,Hke.default)((0,Uke.jsx)("path",{d:"M2 3h9v9H2V3m9 19H2v-9h9v9M21 3v9h-9V3h9m0 19h-9v-9h9v9Z"}),"Microsoft");GB=wk.default=Gke;let Sg;function Kke(){const{close:e}=po({title:"Add files or folders",dialogProps:{sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){const t=Ck();return u.createElement(u.Fragment,{},u.createElement(ze,{sx:{typography:"body1",px:1,py:2}},"Selected elements will be added under ",t.isRoot?u.createElement("i",{},"Home"):decodeURI(t.id)),u.createElement(Q6,{from:Sg!=null?Sg:t.source,onSelect(r){return rt(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 Et(u.createElement(ze,{},"Some elements have been rejected",u.createElement("ul",{},s.map(([l,a])=>u.createElement("li",{key:l},l,": ",a)))),"error"));const i=o.filter(l=>l.name).map(l=>t.id+encodeURI(l.name)+(l.link.endsWith("/")?"/":""));Ra(i),e()})}}))}})}function qke(){return rt(this,null,function*(){try{const e=yield jh("Enter folder name");if(!e)return;const{id:t}=Ck(),n=yield ct("add_vfs",{parent:t,name:e});Ra([t+encodeURI(n.name)+"/"]),yield Et(`Folder "${n.name}" created`,"success")}catch(e){yield Et(e)}})}function Yke(){return rt(this,null,function*(){try{const{id:e}=Ck(),t=yield ct("add_vfs",{parent:e,name:"new link",url:"https://google.com"});Ra([e+encodeURI(t.name)]),rr("Link created","success",{onClose:()=>Zv("input[name=url]")})}catch(e){yield Et(e)}})}function Ck(){const e=rn.selectedFiles[0]||rn.vfs;return e.type==="folder"?e:e.parent}function qB(n){var r=n,{items:e}=r,t=At(r,["items"]);const[o,s]=u.useState(),i=!!o,l=u.useCallback(()=>s(void 0),[]),a=u.useId(),c=u.useId();return u.createElement(u.Fragment,{},u.createElement(Yn,we({id:a,"aria-controls":i?c:void 0,"aria-haspopup":"true","aria-expanded":i?!0:void 0,onClick:f=>{s(f.currentTarget)}},t)),u.createElement(cN,{id:c,anchorEl:o,open:i,onClose:l,MenuListProps:{"aria-labelledby":a},children:e.map((f,p)=>u.createElement(Pr,st(we({key:p},f),{onClick(){var h;l(),(h=f.onClick)==null||h.apply(this,arguments)}})))}))}var xk={},Qke=et;Object.defineProperty(xk,"__esModule",{value:!0});var YB=xk.default=void 0,Xke=Qke(tt()),Zke=Je(),Jke=(0,Xke.default)((0,Zke.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");YB=xk.default=Jke;function wS(s){var i=s,{keys:e,form:t,saveOnChange:n,onSave:r}=i,o=At(i,["keys","form","saveOnChange","onSave"]);const l=Qn("get_config",{only:e}),[a,c]=u.useState(l.data);u.useEffect(()=>c(y=>l.data||y),[l.data]);const f=a&&!Ze.isEqual(a,l.data);if(u.useEffect(()=>{f&&n&&h()},[f]),!a)return l.element;const p=Ze.isFunction(t)?t(a):t;return u.createElement(Hc,st(we(we({values:a,set(y,v){c(m=>st(we({},m),{[v]:y}))},save:n?!1:{onClick:h,sx:Xd(f)}},Array.isArray(p)?{fields:p}:p),o),{barSx:we({gap:1},o.barSx),addToBar:[u.createElement(dn,{icon:YB,disabled:!f,title:"Reset",onClick(){c(l.data)}}),...o.addToBar||[]]}));function h(){return ct("set_config",{values:a}).then(r).then(l.reload)}}function CS(i){var l=i,{value:e="",onChange:t,helperText:n,setApi:r,autocompleteProps:o}=l,s=At(l,["value","onChange","helperText","setApi","autocompleteProps"]);const a=xfe(e),{list:c,loading:f}=Pl("get_file_list",{uri:a,admin:!0,onlyFolders:!0}),p=u.useMemo(()=>[a+"/"].concat(c.map(h=>e+h.n)),[c,a]);return u.createElement(Nh,we({value:e,options:p,isOptionEqualToValue:(h,y)=>h===y||h===y+"/",loading:f,disableClearable:!0,renderInput:h=>u.createElement(Ba,st(we(we({helperText:n,placeholder:"home",onChange(y){const v=y.target.value;(v.endsWith("/")||!v)&&t(v,{was:e,event:y})},onBlur(y){const v=y.target.value+"/";p.includes(v)&&t(v,{was:e,event:y})}},h),s),{InputLabelProps:we(we({shrink:!0},h.InputLabelProps),s.InputLabelProps)})),onChange:(h,y)=>t(y,{was:e,event:h})},o))}function eIe({statusApi:e}){var s;const t=((s=e.data)==null?void 0:s.platform)==="win32",{data:n,reload:r}=IN(t&&"windows_integrated");return u.createElement(qr,{mb:2,position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"},u.createElement(qB,{variant:"contained",startIcon:u.createElement(VE),items:[{children:"from disk",onClick:Kke},{children:"virtual folder",onClick:qke},{children:"web-link",onClick:Yke}]},"Add"),u.createElement(To,{variant:"outlined",onClick:o},"Roots"),a0(()=>Ra()),t&&u.createElement(To,we({icon:GB,variant:"outlined",doneMessage:!0},n!=null&&n.is?{confirm:!0,children:"Remove integration",onClick:()=>ct("windows_remove").then(r)}:{children:"System integration",onClick(){return rt(this,null,function*(){const l=u.createElement(ze,{},"We are going to add a command in the right-click of Windows File Manager",u.createElement("img",{src:"win-shell.png",style:{display:"block",width:"min(30em, 80vw)",marginTop:"1em"}}),u.createElement(Er,{severity:"info"},"It will also automatically copy the URL, ready to paste!")),a=yield jh(l,{field:{comp:CS,label:"Add to this folder"},form:{saveOnEnter:!1}});return a?ct("windows_integration",{parent:a}).then(r):!1})}})));function o(){const{close:l}=po({dialogProps:{maxWidth:"sm"},Content:()=>u.createElement(wS,{onSave(){e.reload(),l()},keys:[Dn.roots,Dn.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:CS,placeholder:"default",helperText:"Root path in VFS"}],toField:a=>Object.entries(a||{}).map(([c,f])=>({host:c,root:f})),fromField:a=>Object.fromEntries(a.map(c=>[c.host,c.root]))},{k:"roots_mandatory",label:"Block requests that are not using any of the domains above",helperText:"localhost connections are not included",comp:An}]}})})}}const Sk=Symbol.for("yaml.alias"),xS=Symbol.for("yaml.document"),Sa=Symbol.for("yaml.map"),QB=Symbol.for("yaml.pair"),El=Symbol.for("yaml.scalar"),sf=Symbol.for("yaml.seq"),Ns=Symbol.for("yaml.node.type"),Gc=e=>!!e&&typeof e=="object"&&e[Ns]===Sk,lf=e=>!!e&&typeof e=="object"&&e[Ns]===xS,af=e=>!!e&&typeof e=="object"&&e[Ns]===Sa,Fn=e=>!!e&&typeof e=="object"&&e[Ns]===QB,Sn=e=>!!e&&typeof e=="object"&&e[Ns]===El,cf=e=>!!e&&typeof e=="object"&&e[Ns]===sf;function Vn(e){if(e&&typeof e=="object")switch(e[Ns]){case Sa:case sf:return!0}return!1}function or(e){if(e&&typeof e=="object")switch(e[Ns]){case Sk:case Sa:case El:case sf:return!0}return!1}const tIe=e=>(Sn(e)||Vn(e))&&!!e.anchor,xo=Symbol("break visit"),XB=Symbol("skip children"),Bi=Symbol("remove node");function Ta(e,t){const n=ZB(t);lf(e)?Wu(null,e.contents,n,Object.freeze([e]))===Bi&&(e.contents=null):Wu(null,e,n,Object.freeze([]))}Ta.BREAK=xo;Ta.SKIP=XB;Ta.REMOVE=Bi;function Wu(e,t,n,r){const o=JB(e,t,n,r);if(or(o)||Fn(o))return e6(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===Bi&&(t.items.splice(s,1),s-=1)}}}else if(Fn(t)){r=Object.freeze(r.concat(t));const s=Wu("key",t.key,n,r);if(s===xo)return xo;s===Bi&&(t.key=null);const i=Wu("value",t.value,n,r);if(i===xo)return xo;i===Bi&&(t.value=null)}}return o}function I0(e,t){return rt(this,null,function*(){const n=ZB(t);lf(e)?(yield Gu(null,e.contents,n,Object.freeze([e])))===Bi&&(e.contents=null):yield Gu(null,e,n,Object.freeze([]))})}I0.BREAK=xo;I0.SKIP=XB;I0.REMOVE=Bi;function Gu(e,t,n,r){return rt(this,null,function*(){const o=yield JB(e,t,n,r);if(or(o)||Fn(o))return e6(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===Bi&&(t.items.splice(s,1),s-=1)}}}else if(Fn(t)){r=Object.freeze(r.concat(t));const s=yield Gu("key",t.key,n,r);if(s===xo)return xo;s===Bi&&(t.key=null);const i=yield Gu("value",t.value,n,r);if(i===xo)return xo;i===Bi&&(t.value=null)}}return o})}function ZB(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 JB(e,t,n,r){var o,s,i,l,a;if(typeof n=="function")return n(e,t,r);if(af(t))return(o=n.Map)==null?void 0:o.call(n,e,t,r);if(cf(t))return(s=n.Seq)==null?void 0:s.call(n,e,t,r);if(Fn(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 e6(e,t,n){const r=t[t.length-1];if(Vn(r))r.items[e]=n;else if(Fn(r))e==="key"?r.key=n:r.value=n;else if(lf(r))r.contents=n;else{const o=Gc(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const nIe={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},rIe=e=>e.replace(/[!,[\]{}]/g,t=>nIe[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+rIe(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={};Ta(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 t6(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 n6(e){const t=new Set;return Ta(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function r6(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function oIe(e,t){const n=[],r=new Map;let o=null;return{onAnchor:s=>{n.push(s),o||(o=n6(e));const i=r6(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 Rs(e,t,n){if(Array.isArray(e))return e.map((r,o)=>Rs(r,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!tIe(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 Pk{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(!lf(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=Rs(this,"",i);if(typeof o=="function")for(const{count:a,res:c}of i.anchors.values())o(c,a);return typeof s=="function"?Ku(s,{"":l},"",l):l}}class M0 extends Pk{constructor(t){super(Sk),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Ta(t,{Node:(r,o)=>{if(o===this)return Ta.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||(Rs(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(t6(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(Fn(t)){const r=ev(e,t.key,n),o=ev(e,t.value,n);return Math.max(r,o)}return 1}const o6=e=>!e||typeof e!="function"&&typeof e!="object";class $t extends Pk{constructor(t){super(El),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:Rs(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 sIe="tag:yaml.org,2002:";function iIe(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,h,y;if(lf(e)&&(e=e.contents),or(e))return e;if(Fn(e)){const v=(h=(p=n.schema[Sa]).createNode)==null?void 0:h.call(p,n.schema,null,n);return v.items.push(e),v}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!="undefined"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:o,onTagObj:s,schema:i,sourceObjects:l}=n;let a;if(r&&e&&typeof e=="object"){if(a=l.get(e),a)return a.anchor||(a.anchor=o(e)),new M0(a.anchor);a={anchor:null,node:null},l.set(e,a)}t!=null&&t.startsWith("!!")&&(t=sIe+t.slice(2));let c=iIe(e,t,i.tags);if(!c){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const v=new $t(e);return a&&(a.node=v),v}c=e instanceof Map?i[Sa]:Symbol.iterator in Object(e)?i[sf]:i[Sa]}s&&(s(c),delete n.onTagObj);const f=c!=null&&c.createNode?c.createNode(n.schema,e,n):typeof((y=c==null?void 0:c.nodeClass)==null?void 0:y.from)=="function"?c.nodeClass.from(n.schema,e,n):new $t(e);return t?f.tag=t:c.default||(f.tag=c.tag),a&&(a.node=f),f}function vy(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 dp=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class _0 extends Pk{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)||Fn(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(dp(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,vy(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(!Fn(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,vy(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}}_0.maxFlowStringSingleLineLength=60;const lIe=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function fl(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const da=(e,t,n)=>e.endsWith(`
|
|
625
|
-
`)?fl(n,t):n.includes(`
|
|
626
|
-
`)?`
|
|
627
|
-
`+fl(n,t):(e.endsWith(" ")?"":" ")+n,s6="flow",SS="block",tv="quoted";function T0(e,t,n="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:s=20,onFold:i,onOverflow:l}={}){if(!o||o<0)return e;const a=Math.max(1+s,1+o-t.length);if(e.length<=a)return e;const c=[],f={};let p=o-t.length;typeof r=="number"&&(r>o-Math.max(2,s)?c.push(0):p=o-r);let h,y,v=!1,m=-1,C=-1,w=-1;n===SS&&(m=ID(e,m),m!==-1&&(p=m+a));for(let x;x=e[m+=1];){if(n===tv&&x==="\\"){switch(C=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}w=m}if(x===`
|
|
628
|
-
`)n===SS&&(m=ID(e,m)),p=m+a,h=void 0;else{if(x===" "&&y&&y!==" "&&y!==`
|
|
629
|
-
`&&y!==" "){const P=e[m+1];P&&P!==" "&&P!==`
|
|
630
|
-
`&&P!==" "&&(h=m)}if(m>=p)if(h)c.push(h),p=h+a,h=void 0;else if(n===tv){for(;y===" "||y===" ";)y=x,x=e[m+=1],v=!0;const P=m>w+1?m-2:C-1;if(f[P])return e;c.push(P),f[P]=!0,p=P+a,h=void 0}else v=!0}y=x}if(v&&l&&l(),c.length===0)return e;i&&i();let b=e.slice(0,c[0]);for(let x=0;x<c.length;++x){const P=c[x],M=c[x+1]||e.length;P===0?b=`
|
|
631
|
-
${t}${e.slice(0,M)}`:(n===tv&&f[P]&&(b+=`${e[P]}\\`),b+=`
|
|
632
|
-
${t}${e.slice(P+1,M)}`)}return b}function ID(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 $0=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),R0=e=>/^(%|---|\.\.\.)/m.test(e);function aIe(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 Op(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(R0(e)?" ":"");let i="",l=0;for(let a=0,c=n[a];c;c=n[++a])if(c===" "&&n[a+1]==="\\"&&n[a+2]==="n"&&(i+=n.slice(l,a)+"\\ ",a+=1,l=a,c="\\"),c==="\\")switch(n[a+1]){case"u":{i+=n.slice(l,a);const f=n.substr(a+2,4);switch(f){case"0000":i+="\\0";break;case"0007":i+="\\a";break;case"000b":i+="\\v";break;case"001b":i+="\\e";break;case"0085":i+="\\N";break;case"00a0":i+="\\_";break;case"2028":i+="\\L";break;case"2029":i+="\\P";break;default:f.substr(0,2)==="00"?i+="\\x"+f.substr(2):i+=n.substr(a,6)}a+=5,l=a+1}break;case"n":if(r||n[a+2]==='"'||n.length<o)a+=1;else{for(i+=n.slice(l,a)+`
|
|
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:T0(i,s,tv,$0(t,!1))}function PS(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|
638
|
-
`)||/[ \t]\n|\n[ \t]/.test(e))return Op(e,t);const n=t.indent||(R0(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
639
|
-
${n}`)+"'";return t.implicitKey?r:T0(r,n,s6,$0(t,!1))}function qu(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=Op;else{const o=e.includes('"'),s=e.includes("'");o&&!s?r=PS:s&&!o?r=Op:r=n?PS:Op}return r(e,t)}let ES;try{ES=new RegExp(`(^|(?<!
|
|
640
|
-
))
|
|
641
|
-
+(?!
|
|
642
|
-
|$)`,"g")}catch(e){ES=/\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 c=r.indent||(r.forceBlockIndent||R0(n)?" ":""),f=i==="literal"?!0:i==="folded"||t===$t.BLOCK_FOLDED?!1:t===$t.BLOCK_LITERAL?!0:!aIe(n,a,c.length);if(!n)return f?`|
|
|
643
|
-
`:`>
|
|
644
|
-
`;let p,h;for(h=n.length;h>0;--h){const E=n[h-1];if(E!==`
|
|
645
|
-
`&&E!==" "&&E!==" ")break}let y=n.substring(h);const v=y.indexOf(`
|
|
646
|
-
`);v===-1?p="-":n===y||v!==y.length-1?(p="+",s&&s()):p="",y&&(n=n.slice(0,-y.length),y[y.length-1]===`
|
|
647
|
-
`&&(y=y.slice(0,-1)),y=y.replace(ES,`$&${c}`));let m=!1,C,w=-1;for(C=0;C<n.length;++C){const E=n[C];if(E===" ")m=!0;else if(E===`
|
|
648
|
-
`)w=C;else break}let b=n.substring(0,w<C?w+1:C);b&&(n=n.substring(b.length),b=b.replace(/\n+/g,`$&${c}`));let P=(f?"|":">")+(m?c?"2":"1":"")+p;if(e&&(P+=" "+l(e.replace(/ ?[\r\n]+/g," ")),o&&o()),f)return n=n.replace(/\n+/g,`$&${c}`),`${P}
|
|
649
|
-
${c}${b}${n}${y}`;n=n.replace(/\n+/g,`
|
|
650
|
-
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);const M=T0(`${b}${n}${y}`,c,SS,$0(r,!0));return`${P}
|
|
651
|
-
${c}${M}`}function cIe(e,t,n,r){const{type:o,value:s}=e,{actualString:i,implicitKey:l,indent:a,indentStep:c,inFlow:f}=t;if(l&&/[\n[\]{},]/.test(s)||f&&/[[\]{},]/.test(s))return 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(R0(s)){if(a==="")return t.forceBlockIndent=!0,nv(e,t,n,r);if(l&&a===c)return qu(s,t)}const p=s.replace(/\n+/g,`$&
|
|
654
|
-
${a}`);if(i){const h=m=>{var C;return m.default&&m.tag!=="tag:yaml.org,2002:str"&&((C=m.test)==null?void 0:C.test(p))},{compat:y,tags:v}=t.doc.schema;if(v.some(h)||y!=null&&y.some(h))return qu(s,t)}return l?p:T0(p,a,s6,$0(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 Op(i.value,t);case $t.QUOTE_SINGLE:return PS(i.value,t);case $t.PLAIN:return cIe(i,t,n,r);default:return null}};let c=a(l);if(c===null){const{defaultKeyType:f,defaultStringType:p}=t.options,h=o&&f||p;if(c=a(h),c===null)throw new Error(`Unsupported default string type ${h}`)}return c}function i6(e,t){const n=Object.assign({blockQuote:!0,commentString:lIe,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 uIe(e,t){var o,s,i,l;if(t.tag){const a=e.filter(c=>c.tag===t.tag);if(a.length>0)return(o=a.find(c=>c.format===t.format))!=null?o:a[0]}let n,r;if(Sn(t)){r=t.value;const a=e.filter(c=>{var f;return(f=c.identify)==null?void 0:f.call(c,r)});n=(s=a.find(c=>c.format===t.format))!=null?s:a.find(c=>!c.format)}else r=t,n=e.find(a=>a.nodeClass&&r instanceof a.nodeClass);if(!n){const a=(l=(i=r==null?void 0:r.constructor)==null?void 0:i.name)!=null?l:typeof r;throw new Error(`Tag not resolved for ${a} value`)}return n}function dIe(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const o=[],s=(Sn(e)||Vn(e))&&e.anchor;s&&t6(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 Dd(e,t,n,r){var a,c;if(Fn(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=uIe(t.doc.schema.tags,s));const i=dIe(s,o,t);i.length>0&&(t.indentAtStart=((c=t.indentAtStart)!=null?c:0)+i.length+1);const l=typeof o.stringify=="function"?o.stringify(s,t,n,r):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 fIe({key:e,value:t},n,r,o){var k,R;const{allNullValues:s,doc:i,indent:l,indentStep:a,options:{commentString:c,indentSeq:f,simpleKeys:p}}=n;let h=or(e)&&e.comment||null;if(p){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(Vn(e)){const O="With simple keys, collection cannot be used as a key value";throw new Error(O)}}let y=!p&&(!e||h&&t==null&&!n.inFlow||Vn(e)||(Sn(e)?e.type===$t.BLOCK_FOLDED||e.type===$t.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!y&&(p||!s),indent:l+a});let v=!1,m=!1,C=Dd(e,n,()=>v=!0,()=>m=!0);if(!y&&!n.inFlow&&C.length>1024){if(p)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");y=!0}if(n.inFlow){if(s||t==null)return v&&r&&r(),C===""?"?":y?`? ${C}`:C}else if(s&&!p||t==null&&y)return C=`? ${C}`,h&&!v?C+=da(C,n.indent,c(h)):m&&o&&o(),C;v&&(h=null),y?(h&&(C+=da(C,n.indent,c(h))),C=`? ${C}
|
|
656
|
-
${l}:`):(C=`${C}:`,h&&(C+=da(C,n.indent,c(h))));let w,b,x;or(t)?(w=!!t.spaceBefore,b=t.commentBefore,x=t.comment):(w=!1,b=null,x=null,t&&typeof t=="object"&&(t=i.createNode(t))),n.implicitKey=!1,!y&&!h&&Sn(t)&&(n.indentAtStart=C.length+1),m=!1,!f&&a.length>=2&&!n.inFlow&&!y&&cf(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let P=!1;const M=Dd(t,n,()=>P=!0,()=>m=!0);let E=" ";if(h||w||b){if(E=w?`
|
|
657
|
-
`:"",b){const O=c(b);E+=`
|
|
658
|
-
${fl(O,n.indent)}`}M===""&&!n.inFlow?E===`
|
|
659
|
-
`&&(E=`
|
|
660
|
-
|
|
661
|
-
`):E+=`
|
|
662
|
-
${n.indent}`}else if(!y&&Vn(t)){const O=M[0],_=M.indexOf(`
|
|
663
|
-
`),L=_!==-1,B=(R=(k=n.inFlow)!=null?k:t.flow)!=null?R:t.items.length===0;if(L||!B){let z=!1;if(L&&(O==="&"||O==="!")){let T=M.indexOf(" ");O==="&"&&T!==-1&&T<_&&M[T+1]==="!"&&(T=M.indexOf(" ",T+1)),(T===-1||_<T)&&(z=!0)}z||(E=`
|
|
664
|
-
${n.indent}`)}}else(M===""||M[0]===`
|
|
665
|
-
`)&&(E="");return C+=E+M,n.inFlow?P&&r&&r():x&&!P?C+=da(C,n.indent,c(x)):m&&o&&o(),C}function l6(e,t){(e==="debug"||e==="warn")&&(typeof process!="undefined"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const MD="<<";function a6(e,t,{key:n,value:r}){if(e!=null&&e.doc.schema.merge&&pIe(n))if(r=Gc(r)?r.resolve(e.doc):r,cf(r))for(const o of r.items)dC(e,t,o);else if(Array.isArray(r))for(const o of r)dC(e,t,o);else dC(e,t,r);else{const o=Rs(n,"",e);if(t instanceof Map)t.set(o,Rs(r,o,e));else if(t instanceof Set)t.add(o);else{const s=hIe(n,o,e),i=Rs(r,s,e);s in t?Object.defineProperty(t,s,{value:i,writable:!0,enumerable:!0,configurable:!0}):t[s]=i}}return t}const pIe=e=>e===MD||Sn(e)&&e.value===MD&&(!e.type||e.type===$t.PLAIN);function dC(e,t,n){const r=e&&Gc(n)?n.resolve(e.doc):n;if(!af(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 hIe(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(or(e)&&n&&n.doc){const r=i6(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)+'..."'),l6(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 Ek(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:QB}),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 a6(n,r,this)}toString(t,n,r){return t!=null&&t.doc?fIe(this,t,n,r):JSON.stringify(this)}}function c6(e,t,n){var s;return(((s=t.inFlow)!=null?s:e.flow)?gIe:mIe)(e,t,n)}function mIe({comment:e,items:t},n,{blockItemPrefix:r,flowChars:o,itemIndent:s,onChompKeep:i,onComment:l}){const{indent:a,options:{commentString:c}}=n,f=Object.assign({},n,{indent:s,type:null});let p=!1;const h=[];for(let v=0;v<t.length;++v){const m=t[v];let C=null;if(or(m))!p&&m.spaceBefore&&h.push(""),yy(n,h,m.commentBefore,p),m.comment&&(C=m.comment);else if(Fn(m)){const b=or(m.key)?m.key:null;b&&(!p&&b.spaceBefore&&h.push(""),yy(n,h,b.commentBefore,p))}p=!1;let w=Dd(m,f,()=>C=null,()=>p=!0);C&&(w+=da(w,s,c(C))),p&&C&&(p=!1),h.push(r+w)}let y;if(h.length===0)y=o.start+o.end;else{y=h[0];for(let v=1;v<h.length;++v){const m=h[v];y+=m?`
|
|
666
|
-
${a}${m}`:`
|
|
667
|
-
`}}return e?(y+=`
|
|
668
|
-
`+fl(c(e),a),l&&l()):p&&i&&i(),y}function gIe({comment:e,items:t},n,{flowChars:r,itemIndent:o,onComment:s}){const{indent:i,indentStep:l,flowCollectionPadding:a,options:{commentString:c}}=n;o+=l;const f=Object.assign({},n,{indent:o,inFlow:!0,type:null});let p=!1,h=0;const y=[];for(let w=0;w<t.length;++w){const b=t[w];let x=null;if(or(b))b.spaceBefore&&y.push(""),yy(n,y,b.commentBefore,!1),b.comment&&(x=b.comment);else if(Fn(b)){const M=or(b.key)?b.key:null;M&&(M.spaceBefore&&y.push(""),yy(n,y,M.commentBefore,!1),M.comment&&(p=!0));const E=or(b.value)?b.value:null;E?(E.comment&&(x=E.comment),E.commentBefore&&(p=!0)):b.value==null&&M&&M.comment&&(x=M.comment)}x&&(p=!0);let P=Dd(b,f,()=>x=null);w<t.length-1&&(P+=","),x&&(P+=da(P,o,c(x))),!p&&(y.length>h||P.includes(`
|
|
669
|
-
`))&&(p=!0),y.push(P),h=y.length}let v;const{start:m,end:C}=r;if(y.length===0)v=m+C;else if(p||(p=y.reduce((b,x)=>b+x.length+2,2)>_0.maxFlowStringSingleLineLength),p){v=m;for(const w of y)v+=w?`
|
|
670
|
-
${l}${i}${w}`:`
|
|
671
|
-
`;v+=`
|
|
672
|
-
${i}${C}`}else v=`${m}${a}${y.join(" ")}${a}${C}`;return e&&(v+=da(v,i,c(e)),s&&s()),v}function yy({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 uc(e,t){const n=Sn(t)?t.value:t;for(const r of e)if(Fn(r)&&(r.key===t||r.key===n||Sn(r.key)&&r.key.value===n))return r}class Go extends _0{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Sa,t),this.items=[]}static from(t,n,r){const{keepUndefined:o,replacer:s}=r,i=new this(t),l=(a,c)=>{if(typeof s=="function")c=s.call(n,a,c);else if(Array.isArray(s)&&!s.includes(a))return;(c!==void 0||o)&&i.items.push(Ek(a,c,r))};if(n instanceof Map)for(const[a,c]of n)l(a,c);else if(n&&typeof n=="object")for(const a of Object.keys(n))l(a,n[a]);return typeof t.sortMapEntries=="function"&&i.items.sort(t.sortMapEntries),i}add(t,n){var i;let r;Fn(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=uc(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)&&o6(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=uc(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){var s;const r=uc(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!!uc(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)a6(n,o,s);return o}toString(t,n,r){if(!t)return JSON.stringify(this);for(const o of this.items)if(!Fn(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})),c6(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const uf={collection:"map",default:!0,nodeClass:Go,tag:"tag:yaml.org,2002:map",resolve(e,t){return af(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Go.from(e,t,n)};class $a extends _0{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(sf,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)&&o6(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(Rs(s,String(o++),n));return r}toString(t,n,r){return t?c6(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 df={collection:"seq",default:!0,nodeClass:$a,tag:"tag:yaml.org,2002:seq",resolve(e,t){return cf(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>$a.from(e,t,n)},O0={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)}},D0={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"&&D0.test.test(e)?e:t.options.nullStr},kk={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&&kk.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 mi({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 u6={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:mi},d6={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():mi(e)}},f6={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:mi},A0=e=>typeof e=="bigint"||Number.isInteger(e),Ik=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function p6(e,t,n){const{value:r}=e;return A0(r)&&r>=0?n+r.toString(t):mi(e)}const h6={identify:e=>A0(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Ik(e,2,8,n),stringify:e=>p6(e,8,"0o")},m6={identify:A0,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Ik(e,0,10,n),stringify:mi},g6={identify:e=>A0(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Ik(e,2,16,n),stringify:e=>p6(e,16,"0x")},vIe=[uf,df,O0,D0,kk,h6,m6,g6,u6,d6,f6];function _D(e){return typeof e=="bigint"||Number.isInteger(e)}const Eg=({value:e})=>JSON.stringify(e),yIe=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Eg},{identify:e=>e==null,createNode:()=>new $t(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Eg},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:Eg},{identify:_D,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})=>_D(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:Eg}],bIe={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},wIe=[uf,df].concat(yIe,bIe),Mk={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer=="function")return Buffer.from(e,"base64");if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let o=0;o<n.length;++o)r[o]=n.charCodeAt(o);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,o,s){const i=n;let l;if(typeof Buffer=="function")l=i instanceof Buffer?i.toString("base64"):Buffer.from(i.buffer).toString("base64");else if(typeof btoa=="function"){let a="";for(let c=0;c<i.length;++c)a+=String.fromCharCode(i[c]);l=btoa(a)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=$t.BLOCK_LITERAL),t!==$t.QUOTE_DOUBLE){const a=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),c=Math.ceil(l.length/a),f=new Array(c);for(let p=0,h=0;p<c;++p,h+=a)f[p]=l.substr(h,a);l=f.join(t===$t.BLOCK_LITERAL?`
|
|
673
|
-
`:" ")}return Jh({comment:e,type:t,value:l},r,o,s)}};function v6(e,t){var n;if(cf(e))for(let r=0;r<e.items.length;++r){let o=e.items[r];if(!Fn(o)){if(af(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]=Fn(o)?o:new Xr(o)}}else t("Expected a sequence for this tag");return e}function y6(e,t,n){const{replacer:r}=n,o=new $a(e);o.tag="tag:yaml.org,2002:pairs";let s=0;if(t&&Symbol.iterator in Object(t))for(let i of t){typeof r=="function"&&(i=r.call(t,String(s++),i));let l,a;if(Array.isArray(i))if(i.length===2)l=i[0],a=i[1];else throw new TypeError(`Expected [key, value] tuple: ${i}`);else if(i&&i instanceof Object){const c=Object.keys(i);if(c.length===1)l=c[0],a=i[l];else throw new TypeError(`Expected { key: value } tuple: ${i}`)}else l=i;o.items.push(Ek(l,a,n))}return o}const _k={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:v6,createNode:y6};class cd extends $a{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(Fn(o)?(s=Rs(o.key,"",n),i=Rs(o.value,s,n)):s=Rs(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=y6(t,n,r),s=new this;return s.items=o.items,s}}cd.tag="tag:yaml.org,2002:omap";const Tk={collection:"seq",identify:e=>e instanceof Map,nodeClass:cd,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=v6(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 b6({value:e,source:t},n){return t&&(e?w6:C6).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const w6={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:b6},C6={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:b6},CIe={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:mi},xIe={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():mi(e)}},SIe={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:mi},em=e=>typeof e=="bigint"||Number.isInteger(e);function L0(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 $k(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 mi(e)}const PIe={identify:em,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>L0(e,2,2,n),stringify:e=>$k(e,2,"0b")},EIe={identify:em,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>L0(e,1,8,n),stringify:e=>$k(e,8,"0")},kIe={identify:em,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>L0(e,0,10,n),stringify:mi},IIe={identify:em,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>L0(e,2,16,n),stringify:e=>$k(e,16,"0x")};class ud extends Go{constructor(t){super(t),this.tag=ud.tag}add(t){let n;Fn(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),uc(this.items,n.key)||this.items.push(n)}get(t,n){const r=uc(this.items,t);return!n&&Fn(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=uc(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(Ek(i,null,r));return s}}ud.tag="tag:yaml.org,2002:set";const Rk={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(af(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 Ok(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 x6(e){let{value:t}=e,n=i=>i;if(typeof t=="bigint")n=i=>BigInt(i);else if(isNaN(t)||!isFinite(t))return mi(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 S6={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})=>Ok(e,n),stringify:x6},P6={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=>Ok(e,!1),stringify:x6},F0={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(F0.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,o,s,i,l]=t.map(Number),a=t[7]?Number((t[7]+"00").substr(1,3)):0;let c=Date.UTC(n,r-1,o,s||0,i||0,l||0,a);const f=t[8];if(f&&f!=="Z"){let p=Ok(f,!1);Math.abs(p)<30&&(p*=60),c-=6e4*p}return new Date(c)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},TD=[uf,df,O0,D0,w6,C6,PIe,EIe,kIe,IIe,CIe,xIe,SIe,Mk,Tk,_k,Rk,S6,P6,F0],$D=new Map([["core",vIe],["failsafe",[uf,df,O0]],["json",wIe],["yaml11",TD],["yaml-1.1",TD]]),RD={binary:Mk,bool:kk,float:f6,floatExp:d6,floatNaN:u6,floatTime:P6,int:m6,intHex:g6,intOct:h6,intTime:S6,map:uf,null:D0,omap:Tk,pairs:_k,seq:df,set:Rk,timestamp:F0},MIe={"tag:yaml.org,2002:binary":Mk,"tag:yaml.org,2002:omap":Tk,"tag:yaml.org,2002:pairs":_k,"tag:yaml.org,2002:set":Rk,"tag:yaml.org,2002:timestamp":F0};function fC(e,t){let n=$D.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from($D.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=RD[r];if(o)return o;const s=Object.keys(RD).map(i=>JSON.stringify(i)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${s}`)})}const _Ie=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class N0{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:o,schema:s,sortMapEntries:i,toStringDefaults:l}){this.compat=Array.isArray(t)?fC(t,"compat"):t?fC(null,t):null,this.merge=!!r,this.name=typeof s=="string"&&s||"core",this.knownTags=o?MIe:{},this.tags=fC(n,this.name),this.toStringOptions=l!=null?l:null,Object.defineProperty(this,Sa,{value:uf}),Object.defineProperty(this,El,{value:O0}),Object.defineProperty(this,sf,{value:df}),this.sortMapEntries=typeof i=="function"?i:i===!0?_Ie:null}clone(){const t=Object.create(N0.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function TIe(e,t){var a;const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const c=e.directives.toString(e);c?(n.push(c),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const o=i6(e,t),{commentString:s}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const c=s(e.commentBefore);n.unshift(fl(c,""))}let i=!1,l=null;if(e.contents){if(or(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const p=s(e.contents.commentBefore);n.push(fl(p,""))}o.forceBlockIndent=!!e.comment,l=e.contents.comment}const c=l?void 0:()=>i=!0;let f=Dd(e.contents,o,()=>l=null,c);l&&(f+=da(f,"",s(l))),(f[0]==="|"||f[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${f}`:n.push(f)}else n.push(Dd(e.contents,o));if((a=e.directives)!=null&&a.docEnd)if(e.comment){const c=s(e.comment);c.includes(`
|
|
676
|
-
`)?(n.push("..."),n.push(fl(c,""))):n.push(`... ${c}`)}else n.push("...");else{let c=e.comment;c&&i&&(c=c.replace(/^\n+/,"")),c&&((!i||l)&&n[n.length-1]!==""&&n.push(""),n.push(fl(s(c),"")))}return n.join(`
|
|
677
|
-
`)+`
|
|
678
|
-
`}class ff{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Ns,{value:xS});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(ff.prototype,{[Ns]:{value:xS}});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=n6(this);t.anchor=!n||r.has(n)?r6(n||"a",r):n}return new M0(t.anchor)}createNode(t,n,r){let o;if(typeof n=="function")t=n.call({"":t},"",t),o=n;else if(Array.isArray(n)){const C=b=>typeof b=="number"||b instanceof String||b instanceof Number,w=n.filter(C).map(String);w.length>0&&(n=n.concat(w)),o=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:s,anchorPrefix:i,flow:l,keepUndefined:a,onTagObj:c,tag:f}=r!=null?r:{},{onAnchor:p,setAnchors:h,sourceObjects:y}=oIe(this,i||"a"),v={aliasDuplicateObjects:s!=null?s:!0,keepUndefined:a!=null?a:!1,onAnchor:p,onTagObj:c,replacer:o,schema:this.schema,sourceObjects:y},m=Sh(t,f,v);return l&&Vn(m)&&(m.flow=!0),h(),m}createPair(t,n,r={}){const o=this.createNode(t,null,r),s=this.createNode(n,null,r);return new Xr(o,s)}delete(t){return Cu(this.contents)?this.contents.delete(t):!1}deleteIn(t){return dp(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 dp(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 dp(t)?this.contents!==void 0:Vn(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=vy(this.schema,[t],n):Cu(this.contents)&&this.contents.set(t,n)}setIn(t,n){dp(t)?this.contents=n:this.contents==null?this.contents=vy(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 N0(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=Rs(this.contents,n!=null?n:"",l);if(typeof s=="function")for(const{count:c,res:f}of l.anchors.values())s(f,c);return typeof i=="function"?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 TIe(this,t)}}function Cu(e){if(Vn(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Dk extends Error{constructor(t,n,r,o){super(),this.name=t,this.code=r,this.message=o,this.pos=n}}class dc extends Dk{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class E6 extends Dk{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const by=(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 c=" ".repeat(s)+"^".repeat(l);n.message+=`:
|
|
680
|
-
|
|
681
|
-
${i}
|
|
682
|
-
${c}
|
|
683
|
-
`}};function Ad(e,{flow:t,indicator:n,next:r,offset:o,onError:s,startOnNewline:i}){let l=!1,a=i,c=i,f="",p="",h=!1,y=!1,v=!1,m=null,C=null,w=null,b=null,x=null;for(const E of e)switch(v&&(E.type!=="space"&&E.type!=="newline"&&E.type!=="comma"&&s(E.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),v=!1),E.type){case"space":!t&&a&&n!=="doc-start"&&E.source[0]===" "&&s(E,"TAB_AS_INDENT","Tabs are not allowed as indentation"),c=!0;break;case"comment":{c||s(E,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const k=E.source.substring(1)||" ";f?f+=p+k:f=k,p="",a=!1;break}case"newline":a?f?f+=E.source:l=!0:p+=E.source,a=!0,h=!0,(m||C)&&(y=!0),c=!0;break;case"anchor":m&&s(E,"MULTIPLE_ANCHORS","A node can have at most one anchor"),E.source.endsWith(":")&&s(E.offset+E.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=E,x===null&&(x=E.offset),a=!1,c=!1,v=!0;break;case"tag":{C&&s(E,"MULTIPLE_TAGS","A node can have at most one tag"),C=E,x===null&&(x=E.offset),a=!1,c=!1,v=!0;break}case n:(m||C)&&s(E,"BAD_PROP_ORDER",`Anchors and tags must be after the ${E.source} indicator`),b&&s(E,"UNEXPECTED_TOKEN",`Unexpected ${E.source} in ${t!=null?t:"collection"}`),b=E,a=!1,c=!1;break;case"comma":if(t){w&&s(E,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),w=E,a=!1,c=!1;break}default:s(E,"UNEXPECTED_TOKEN",`Unexpected ${E.type} token`),a=!1,c=!1}const P=e[e.length-1],M=P?P.offset+P.source.length:o;return v&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:w,found:b,spaceBefore:l,comment:f,hasNewline:h,hasNewlineAfterProp:y,anchor:m,tag:C,end:M,start:x!=null?x: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 kS(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 k6(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 OD="All mapping items must start at the same column";function $Ie({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,c=null;for(const h of r.items){const{start:y,key:v,sep:m,value:C}=h,w=Ad(y,{indicator:"explicit-key-ind",next:v!=null?v:m==null?void 0:m[0],offset:a,onError:o,startOnNewline:!0}),b=!w.found;if(b){if(v&&(v.type==="block-seq"?o(a,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in v&&v.indent!==r.indent&&o(a,"BAD_INDENT",OD)),!w.anchor&&!w.tag&&!m){c=w.end,w.comment&&(l.comment?l.comment+=`
|
|
685
|
-
`+w.comment:l.comment=w.comment);continue}(w.hasNewlineAfterProp||Ph(v))&&o(v!=null?v:y[y.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((p=w.found)==null?void 0:p.indent)!==r.indent&&o(a,"BAD_INDENT",OD);const x=w.end,P=v?e(n,v,w,o):t(n,x,y,null,w,o);n.schema.compat&&kS(r.indent,v,o),k6(n,l.items,P)&&o(x,"DUPLICATE_KEY","Map keys must be unique");const M=Ad(m!=null?m:[],{indicator:"map-value-ind",next:C,offset:P.range[2],onError:o,startOnNewline:!v||v.type==="block-scalar"});if(a=M.end,M.found){b&&((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&&w.start<M.found.offset-1024&&o(P.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const E=C?e(n,C,M,o):t(n,a,m,null,M,o);n.schema.compat&&kS(r.indent,C,o),a=E.range[2];const k=new Xr(P,E);n.options.keepSourceTokens&&(k.srcToken=h),l.items.push(k)}else{b&&o(P.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),M.comment&&(P.comment?P.comment+=`
|
|
686
|
-
`+M.comment:P.comment=M.comment);const E=new Xr(P);n.options.keepSourceTokens&&(E.srcToken=h),l.items.push(E)}}return c&&c<a&&o(c,"IMPOSSIBLE","Map comment with trailing content"),l.range=[r.offset,a,c!=null?c:a],l}function RIe({composeNode:e,composeEmptyNode:t},n,r,o,s){var f;const i=(f=s==null?void 0:s.nodeClass)!=null?f:$a,l=new i(n.schema);n.atRoot&&(n.atRoot=!1);let a=r.offset,c=null;for(const{start:p,value:h}of r.items){const y=Ad(p,{indicator:"seq-item-ind",next:h,offset:a,onError:o,startOnNewline:!0});if(!y.found)if(y.anchor||y.tag||h)h&&h.type==="block-seq"?o(y.end,"BAD_INDENT","All sequence items must start at the same column"):o(a,"MISSING_CHAR","Sequence item without - indicator");else{c=y.end,y.comment&&(l.comment=y.comment);continue}const v=h?e(n,h,y,o):t(n,y.end,p,null,y,o);n.schema.compat&&kS(r.indent,h,o),a=v.range[2],l.items.push(v)}return l.range=[r.offset,a,c!=null?c: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:c}=l;switch(c){case"space":s=!0;break;case"comment":{n&&!s&&r(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const f=a.substring(1)||" ";o?o+=i+f:o=f,i="";break}case"newline":o&&(i+=a),s=!0;break;default:r(l,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=a.length}}return{comment:o,offset:t}}const pC="Block collections are not allowed within flow collections",hC=e=>e&&(e.type==="block-map"||e.type==="block-seq");function OIe({composeNode:e,composeEmptyNode:t},n,r,o,s){var C,w;const i=r.start.source==="{",l=i?"flow map":"flow sequence",a=(C=s==null?void 0:s.nodeClass)!=null?C:i?Go:$a,c=new a(n.schema);c.flow=!0;const f=n.atRoot;f&&(n.atRoot=!1);let p=r.offset+r.start.source.length;for(let b=0;b<r.items.length;++b){const x=r.items[b],{start:P,key:M,sep:E,value:k}=x,R=Ad(P,{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&&!k){b===0&&R.comma?o(R.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):b<r.items.length-1&&o(R.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),R.comment&&(c.comment?c.comment+=`
|
|
687
|
-
`+R.comment:c.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(b===0)R.comma&&o(R.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(R.comma||o(R.start,"MISSING_CHAR",`Missing , between ${l} items`),R.comment){let O="";e:for(const _ of P)switch(_.type){case"comma":case"space":break;case"comment":O=_.source.substring(1);break e;default:break e}if(O){let _=c.items[c.items.length-1];Fn(_)&&(_=(w=_.value)!=null?w:_.key),_.comment?_.comment+=`
|
|
688
|
-
`+O:_.comment=O,R.comment=R.comment.substring(O.length+1)}}if(!i&&!E&&!R.found){const O=k?e(n,k,R,o):t(n,R.end,E,null,R,o);c.items.push(O),p=O.range[2],hC(k)&&o(O.range,"BLOCK_IN_FLOW",pC)}else{const O=R.end,_=M?e(n,M,R,o):t(n,O,P,null,R,o);hC(M)&&o(_.range,"BLOCK_IN_FLOW",pC);const L=Ad(E!=null?E:[],{flow:l,indicator:"map-value-ind",next:k,offset:_.range[2],onError:o,startOnNewline:!1});if(L.found){if(!i&&!R.found&&n.options.strict){if(E)for(const T of E){if(T===L.found)break;if(T.type==="newline"){o(T,"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 k&&("source"in k&&k.source&&k.source[0]===":"?o(k,"MISSING_CHAR",`Missing space after : in ${l}`):o(L.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const B=k?e(n,k,L,o):L.found?t(n,L.end,E,null,L,o):null;B?hC(k)&&o(B.range,"BLOCK_IN_FLOW",pC):L.comment&&(_.comment?_.comment+=`
|
|
689
|
-
`+L.comment:_.comment=L.comment);const z=new Xr(_,B);if(n.options.keepSourceTokens&&(z.srcToken=x),i){const T=c;k6(n,T.items,_)&&o(O,"DUPLICATE_KEY","Map keys must be unique"),T.items.push(z)}else{const T=new Go(n.schema);T.flow=!0,T.items.push(z),c.items.push(T)}p=B?B.range[2]:L.end}}const h=i?"}":"]",[y,...v]=r.end;let m=p;if(y&&y.source===h)m=y.offset+y.source.length;else{const b=l[0].toUpperCase()+l.substring(1),x=f?`${b} must end with a ${h}`:`${b} in block collection must be sufficiently indented and end with a ${h}`;o(p,f?"MISSING_CHAR":"BAD_INDENT",x),y&&y.source.length!==1&&v.unshift(y)}if(v.length>0){const b=tm(v,m,n.options.strict,o);b.comment&&(c.comment?c.comment+=`
|
|
690
|
-
`+b.comment:c.comment=b.comment),c.range=[r.offset,m,b.offset]}else c.range=[r.offset,m,m];return c}function mC(e,t,n,r,o,s){const i=n.type==="block-map"?$Ie(e,t,n,r,s):n.type==="block-seq"?RIe(e,t,n,r,s):OIe(e,t,n,r,s),l=i.constructor;return o==="!"||o===l.tagName?(i.tag=l.tagName,i):(o&&(i.tag=o),i)}function DIe(e,t,n,r,o){var p,h;const s=r?t.directives.tagName(r.source,y=>o(r,"TAG_RESOLVE_FAILED",y)):null,i=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!r||!s||s==="!"||s===Go.tagName&&i==="map"||s===$a.tagName&&i==="seq"||!i)return mC(e,t,n,o,s);let l=t.schema.tags.find(y=>y.tag===s&&y.collection===i);if(!l){const y=t.schema.knownTags[s];if(y&&y.collection===i)t.schema.tags.push(Object.assign({},y,{default:!1})),l=y;else return y!=null&&y.collection?o(r,"BAD_COLLECTION_TYPE",`${y.tag} used for ${i} collection, but expects ${y.collection}`,!0):o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),mC(e,t,n,o,s)}const a=mC(e,t,n,o,s,l),c=(h=(p=l.resolve)==null?void 0:p.call(l,a,y=>o(r,"TAG_RESOLVE_FAILED",y),t.options))!=null?h:a,f=or(c)?c:new $t(c);return f.range=a.range,f.tag=s,l!=null&&l.format&&(f.format=l.format),f}function I6(e,t,n){const r=e.offset,o=AIe(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?LIe(e.source):[];let l=i.length;for(let m=i.length-1;m>=0;--m){const C=i[m][1];if(C===""||C==="\r")l=m;else break}if(l===0){const m=o.chomp==="+"&&i.length>0?`
|
|
691
|
-
`.repeat(Math.max(1,i.length-1)):"";let C=r+o.length;return e.source&&(C+=e.source.length),{value:m,type:s,comment:o.comment,range:[r,C,C]}}let a=e.indent+o.indent,c=e.offset+o.length,f=0;for(let m=0;m<l;++m){const[C,w]=i[m];if(w===""||w==="\r")o.indent===0&&C.length>a&&(a=C.length);else{if(C.length<a){const b="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(c+C.length,"MISSING_CHAR",b)}o.indent===0&&(a=C.length),f=m;break}c+=C.length+w.length+1}for(let m=i.length-1;m>=l;--m)i[m][0].length>a&&(l=m+1);let p="",h="",y=!1;for(let m=0;m<f;++m)p+=i[m][0].slice(a)+`
|
|
692
|
-
`;for(let m=f;m<l;++m){let[C,w]=i[m];c+=C.length+w.length+1;const b=w[w.length-1]==="\r";if(b&&(w=w.slice(0,-1)),w&&C.length<a){const P=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(c-w.length-(b?2:1),"BAD_INDENT",P),C=""}s===$t.BLOCK_LITERAL?(p+=h+C.slice(a)+w,h=`
|
|
693
|
-
`):C.length>a||w[0]===" "?(h===" "?h=`
|
|
694
|
-
`:!y&&h===`
|
|
695
|
-
`&&(h=`
|
|
696
|
-
|
|
697
|
-
`),p+=h+C.slice(a)+w,h=`
|
|
698
|
-
`,y=!0):w===""?h===`
|
|
699
|
-
`?p+=`
|
|
700
|
-
`:h=`
|
|
701
|
-
`:(p+=h+w,h=" ",y=!1)}switch(o.chomp){case"-":break;case"+":for(let m=l;m<i.length;++m)p+=`
|
|
702
|
-
`+i[m][0].slice(a);p[p.length-1]!==`
|
|
703
|
-
`&&(p+=`
|
|
704
|
-
`);break;default:p+=`
|
|
705
|
-
`}const v=r+o.length+e.source.length;return{value:p,type:s,comment:o.comment,range:[r,v,v]}}function AIe({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],s=o[0];let i=0,l="",a=-1;for(let h=1;h<o.length;++h){const y=o[h];if(!l&&(y==="-"||y==="+"))l=y;else{const v=Number(y);!i&&v?i=v:a===-1&&(a=e+h)}}a!==-1&&r(a,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let c=!1,f="",p=o.length;for(let h=1;h<t.length;++h){const y=t[h];switch(y.type){case"space":c=!0;case"newline":p+=y.source.length;break;case"comment":n&&!c&&r(y,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),p+=y.source.length,f=y.source.substring(1);break;case"error":r(y,"UNEXPECTED_TOKEN",y.message),p+=y.source.length;break;default:{const v=`Unexpected token in block scalar header: ${y.type}`;r(y,"UNEXPECTED_TOKEN",v);const m=y.source;m&&typeof m=="string"&&(p+=m.length)}}}return{mode:s,indent:i,chomp:l,comment:f,length:p}}function LIe(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 M6(e,t,n){const{offset:r,type:o,source:s,end:i}=e;let l,a;const c=(h,y,v)=>n(r+h,y,v);switch(o){case"scalar":l=$t.PLAIN,a=FIe(s,c);break;case"single-quoted-scalar":l=$t.QUOTE_SINGLE,a=NIe(s,c);break;case"double-quoted-scalar":l=$t.QUOTE_DOUBLE,a=BIe(s,c);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[r,r+s.length,r+s.length]}}const f=r+s.length,p=tm(i,f,t,n);return{value:a,type:l,comment:p.comment,range:[r,f,p.offset]}}function FIe(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}`),_6(e)}function NIe(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),_6(e.slice(1,-1)).replace(/''/g,"'")}function _6(e){var a;let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
706
|
-
`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
707
|
-
`,"sy")}catch(c){t=new RegExp("(.*?)[ \\t]*\\r?\\n","sy"),n=new RegExp("[ \\t]*(.*?)[ \\t]*\\r?\\n","sy")}let r=t.exec(e);if(!r)return e;let o=r[1],s=" ",i=t.lastIndex;for(n.lastIndex=i;r=n.exec(e);)r[1]===""?s===`
|
|
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 BIe(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}=zIe(e,r);n+=s,r=i}else if(o==="\\"){let s=e[++r];const i=VIe[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+=jIe(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 zIe(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 VIe={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
720
|
-
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function jIe(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 T6(e,t,n,r){const{value:o,type:s,comment:i,range:l}=t.type==="block-scalar"?I6(t,e.options.strict,r):M6(t,e.options.strict,r),a=n?e.directives.tagName(n.source,p=>r(n,"TAG_RESOLVE_FAILED",p)):null,c=n&&a?HIe(e.schema,o,a,n,r):t.type==="scalar"?UIe(e,o,t,r):e.schema[El];let f;try{const p=c.resolve(o,h=>r(n!=null?n:t,"TAG_RESOLVE_FAILED",h),e.options);f=Sn(p)?p:new $t(p)}catch(p){const h=p instanceof Error?p.message:String(p);r(n!=null?n:t,"TAG_RESOLVE_FAILED",h),f=new $t(o)}return f.range=l,f.source=o,s&&(f.type=s),a&&(f.tag=a),c.format&&(f.format=c.format),i&&(f.comment=i),f}function HIe(e,t,n,r,o){var l;if(n==="!")return e[El];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[El])}function UIe({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[El];if(t.compat){const l=(i=t.compat.find(a=>{var c;return a.default&&((c=a.test)==null?void 0:c.test(n))}))!=null?i:t[El];if(s.tag!==l.tag){const a=e.tagString(s.tag),c=e.tagString(l.tag),f=`Value may be parsed as either ${a} or ${c}`;o(r,"TAG_RESOLVE_FAILED",f,!0)}}return s}function WIe(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 GIe={composeNode:$6,composeEmptyNode:Ak};function $6(e,t,n,r){const{spaceBefore:o,comment:s,anchor:i,tag:l}=n;let a,c=!0;switch(t.type){case"alias":a=KIe(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=T6(e,t,l,r),i&&(a.anchor=i.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":a=DIe(GIe,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=Ak(e,t.offset,void 0,null,n,r),c=!1}}return i&&a.anchor===""&&r(i,"BAD_ALIAS","Anchor cannot be an empty string"),o&&(a.spaceBefore=!0),s&&(t.type==="scalar"&&t.source===""?a.comment=s:a.commentBefore=s),e.options.keepSourceTokens&&c&&(a.srcToken=t),a}function Ak(e,t,n,r,{spaceBefore:o,comment:s,anchor:i,tag:l,end:a},c){const f={type:"scalar",offset:WIe(t,n,r),indent:-1,source:""},p=T6(e,f,l,c);return i&&(p.anchor=i.source.substring(1),p.anchor===""&&c(i,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(p.spaceBefore=!0),s&&(p.comment=s,p.range[2]=a),p}function KIe({options:e},{offset:t,source:n,end:r},o){const s=new M0(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 qIe(e,t,{offset:n,start:r,value:o,end:s},i){const l=Object.assign({_directives:t},e),a=new ff(void 0,l),c={atRoot:!0,directives:a.directives,options:a.options,schema:a.schema},f=Ad(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?$6(c,o,f,i):Ak(c,f.end,r,null,f,i);const p=a.contents.range[2],h=tm(s,p,!1,i);return h.comment&&(a.comment=h.comment),a.range=[n,p,h.offset],a}function Yf(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 DD(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 Lk{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,o,s)=>{const i=Yf(n);s?this.warnings.push(new E6(i,r,o)):this.errors.push(new dc(i,r,o))},this.directives=new io({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:o}=DD(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];Fn(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:DD(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=Yf(t);s[0]+=n,this.onError(s,"BAD_DIRECTIVE",r,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=qIe(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 dc(Yf(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 dc(Yf(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 dc(Yf(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 ff(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 YIe(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 dc([l,l+1],s,i)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return M6(e,t,r);case"block-scalar":return I6(e,t,r)}}return null}function QIe(e,t){var c;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=(c=t.end)!=null?c:[{type:"newline",offset:-1,indent:r,source:`
|
|
728
|
-
`}];switch(l[0]){case"|":case">":{const f=l.indexOf(`
|
|
729
|
-
`),p=l.substring(0,f),h=l.substring(f+1)+`
|
|
730
|
-
`,y=[{type:"block-scalar-header",offset:s,indent:r,source:p}];return R6(y,a)||y.push({type:"newline",offset:-1,indent:r,source:`
|
|
731
|
-
`}),{type:"block-scalar",offset:s,indent:r,props:y,source:h}}case'"':return{type:"double-quoted-scalar",offset:s,indent:r,source:l,end:a};case"'":return{type:"single-quoted-scalar",offset:s,indent:r,source:l,end:a};default:return{type:"scalar",offset:s,indent:r,source:l,end:a}}}function XIe(e,t,n={}){let{afterKey:r=!1,implicitKey:o=!1,inFlow:s=!1,type:i}=n,l="indent"in e?e.indent:null;if(r&&typeof l=="number"&&(l+=2),!i)switch(e.type){case"single-quoted-scalar":i="QUOTE_SINGLE";break;case"double-quoted-scalar":i="QUOTE_DOUBLE";break;case"block-scalar":{const c=e.props[0];if(c.type!=="block-scalar-header")throw new Error("Invalid block scalar header");i=c.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:i="PLAIN"}const a=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">":ZIe(e,a);break;case'"':gC(e,a,"double-quoted-scalar");break;case"'":gC(e,a,"single-quoted-scalar");break;default:gC(e,a,"scalar")}}function ZIe(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}];R6(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 R6(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 gC(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 JIe=e=>"type"in e?wy(e):rv(e);function wy(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=wy(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+=wy(t)),n)for(const s of n)o+=s.source;return r&&(o+=wy(r)),o}const IS=Symbol("break visit"),eMe=Symbol("skip children"),O6=Symbol("remove item");function Fc(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),D6(Object.freeze([]),e,t)}Fc.BREAK=IS;Fc.SKIP=eMe;Fc.REMOVE=O6;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 D6(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=D6(Object.freeze(e.concat([[o,i]])),s.items[i],n);if(typeof l=="number")i=l-1;else{if(l===IS)return IS;l===O6&&(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 B0="\uFEFF",z0="",V0="",Eh="",tMe=e=>!!e&&"items"in e,nMe=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function rMe(e){switch(e){case B0:return"<BOM>";case z0:return"<DOC>";case V0:return"<FLOW_END>";case Eh:return"<SCALAR>";default:return JSON.stringify(e)}}function A6(e){switch(e){case B0:return"byte-order-mark";case z0:return"doc-mode";case V0:return"flow-error-end";case Eh: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 oMe=Object.freeze(Object.defineProperty({__proto__:null,BOM:B0,DOCUMENT:z0,FLOW_END:V0,SCALAR:Eh,createScalarToken:QIe,isCollection:tMe,isScalar:nMe,prettyToken:rMe,resolveAsScalar:YIe,setScalarValue:XIe,stringify:JIe,tokenType:A6,visit:Fc},Symbol.toStringTag,{value:"Module"}));function Cs(e){switch(e){case void 0:case" ":case`
|
|
738
|
-
`:case"\r":case" ":return!0;default:return!1}}const AD="0123456789ABCDEFabcdef".split(""),sMe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),vC=",[]{}".split(""),iMe=` ,[]{}
|
|
739
|
-
\r `.split(""),yC=e=>!e||iMe.includes(e);class L6{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==="...")&&Cs(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]===B0&&(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 z0,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==="---"&&Cs(this.charAt(3)))return yield*Ae(this.pushCount(3)),this.indentValue=0,this.indentNext=0,"doc";if(n==="..."&&Cs(this.charAt(3)))return yield*Ae(this.pushCount(3)),"stream"}return this.indentValue=yield*Ae(this.pushSpaces(!1)),this.indentNext>this.indentValue&&!Cs(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===":")&&Cs(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(yC)),"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("..."))&&Cs(o[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield V0,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(yC)),"flow";case'"':case"'":return this.flowKey=!0,yield*Ae(this.parseQuotedScalar());case":":{const i=this.charAt(1);if(this.flowKey||Cs(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=>Cs(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 Eh,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(Cs(s)||t&&s===",")break;n=r}else if(Cs(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&&vC.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&&vC.includes(o))break;n=r}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield Eh,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(yC)))+(yield*Ae(this.pushSpaces(!0)))+(yield*Ae(this.pushIndicators()));case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(Cs(n)||t&&vC.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(;!Cs(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(sMe.includes(n))n=this.buffer[++t];else if(n==="%"&&AD.includes(this.buffer[t+1])&&AD.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 F6{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 Qs(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function LD(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 N6(e){switch(e==null?void 0:e.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function kg(e){var t;switch(e.type){case"document":return e.start;case"block-map":{const n=e.items[e.items.length-1];return(t=n.sep)!=null?t:n.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function 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 FD(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!Qs(t.start,"explicit-key-ind")&&!Qs(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,N6(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 Fk=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 L6,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=A6(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"&&FD(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=!Qs(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&&LD(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":{LD(t.start)!==-1?(yield*Ae(this.pop()),yield*Ae(this.step())):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=kg(this.peek(2)),r=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&&!Qs(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(Qs(n.start,"explicit-key-ind"))if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Qs(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(N6(n.key)&&!Qs(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(Qs(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]}):Qs(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"&&Qs(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||Qs(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const o=this.startBlockValue(t);if(o){this.stack.push(o);return}}yield*Ae(this.pop()),yield*Ae(this.step())}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*Ae(this.pop()),r=this.peek(1);while(r&&r.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:o,sep:[]}):n.sep?this.stack.push(o):Object.assign(n,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const r=this.startBlockValue(t);r?this.stack.push(r):(yield*Ae(this.pop()),yield*Ae(this.step()))}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===t.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*Ae(this.pop()),yield*Ae(this.step());else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const o=kg(r),s=xu(o);FD(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=kg(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=kg(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 B6(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new F6||null,prettyErrors:t}}function lMe(e,t={}){const{lineCounter:n,prettyErrors:r}=B6(t),o=new Fk(n==null?void 0:n.addNewLine),s=new Lk(t),i=Array.from(s.compose(o.parse(e)));if(r&&n)for(const l of i)l.errors.forEach(by(e,n)),l.warnings.forEach(by(e,n));return i.length>0?i:Object.assign([],{empty:!0},s.streamInfo())}function z6(e,t={}){const{lineCounter:n,prettyErrors:r}=B6(t),o=new Fk(n==null?void 0:n.addNewLine),s=new Lk(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 dc(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(i.errors.forEach(by(e,n)),i.warnings.forEach(by(e,n))),i}function aMe(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);const o=z6(e,n);if(!o)return null;if(o.warnings.forEach(s=>l6(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 cMe(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 ff(e,r,n).toString(n)}const ND=Object.freeze(Object.defineProperty({__proto__:null,Alias:M0,CST:oMe,Composer:Lk,Document:ff,Lexer:L6,LineCounter:F6,Pair:Xr,Parser:Fk,Scalar:$t,Schema:N0,YAMLError:Dk,YAMLMap:Go,YAMLParseError:dc,YAMLSeq:$a,YAMLWarning:E6,isAlias:Gc,isCollection:Vn,isDocument:lf,isMap:af,isNode:or,isPair:Fn,isScalar:Sn,isSeq:cf,parse:aMe,parseAllDocuments:lMe,parseDocument:z6,stringify:cMe,visit:Ta,visitAsync:I0},Symbol.toStringTag,{value:"Module"}));var Nk={},uMe=et;Object.defineProperty(Nk,"__esModule",{value:!0});var Bk=Nk.default=void 0,dMe=uMe(tt()),fMe=Je(),pMe=(0,dMe.default)((0,fMe.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");Bk=Nk.default=pMe;var zk={},hMe=et;Object.defineProperty(zk,"__esModule",{value:!0});var V6=zk.default=void 0,mMe=hMe(tt()),gMe=Je(),vMe=(0,mMe.default)((0,gMe.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");V6=zk.default=vMe;var Vk={},yMe=et;Object.defineProperty(Vk,"__esModule",{value:!0});var MS=Vk.default=void 0,bMe=yMe(tt()),wMe=Je(),CMe=(0,bMe.default)((0,wMe.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");MS=Vk.default=CMe;var jk={},xMe=et;Object.defineProperty(jk,"__esModule",{value:!0});var j6=jk.default=void 0,SMe=xMe(tt()),PMe=Je(),EMe=(0,SMe.default)((0,PMe.jsx)("path",{d:"M15 21h-2v-2h2v2zm-2-7h-2v5h2v-5zm8-2h-2v4h2v-4zm-2-2h-2v2h2v-2zM7 12H5v2h2v-2zm-2-2H3v2h2v-2zm7-5h2V3h-2v2zm-7.5-.5v3h3v-3h-3zM9 9H3V3h6v6zm-4.5 7.5v3h3v-3h-3zM9 21H3v-6h6v6zm7.5-16.5v3h3v-3h-3zM21 9h-6V3h6v6zm-2 10v-3h-4v2h2v3h4v-2h-2zm-2-7h-4v2h4v-2zm-4-2H7v2h2v2h2v-2h2v-2zm1-1V7h-2V5h-2v4h4zM6.75 5.25h-1.5v1.5h1.5v-1.5zm0 12h-1.5v1.5h1.5v-1.5zm12-12h-1.5v1.5h1.5v-1.5z"}),"QrCode2");j6=jk.default=EMe;let H6=null;class U6{}U6.render=function(e,t){H6(e,t)};self.QrCreator=U6;(function(e){function t(l,a,c,f){var p={},h=e(c,a);h.u(l),h.J(),f=f||0;var y=h.h(),v=h.h()+2*f;return p.text=l,p.level=a,p.version=c,p.O=v,p.a=function(m,C){return m-=f,C-=f,0>m||m>=y||0>C||C>=y?!1:h.a(m,C)},p}function n(l,a,c,f,p,h,y,v,m,C){function w(b,x,P,M,E,k,R){b?(l.lineTo(x+k,P+R),l.arcTo(x,P,M,E,h)):l.lineTo(x,P)}y?l.moveTo(a+h,c):l.moveTo(a,c),w(v,f,c,f,p,-h,0),w(m,f,p,a,p,0,-h),w(C,a,p,a,c,h,0),w(y,a,c,f,c,0,h)}function r(l,a,c,f,p,h,y,v,m,C){function w(b,x,P,M){l.moveTo(b+P,x),l.lineTo(b,x),l.lineTo(b,x+M),l.arcTo(b,x,b+P,x,h)}y&&w(a,c,h,h),v&&w(f,c,-h,h),m&&w(f,p,-h,-h),C&&w(a,p,h,-h)}function o(l,a){var c=a.fill;if(typeof c=="string")l.fillStyle=c;else{var f=c.type,p=c.colorStops;if(c=c.position.map(y=>Math.round(y*a.size)),f==="linear-gradient")var h=l.createLinearGradient.apply(l,c);else if(f==="radial-gradient")h=l.createRadialGradient.apply(l,c);else throw Error("Unsupported fill");p.forEach(([y,v])=>{h.addColorStop(y,v)}),l.fillStyle=h}}function s(l,a){e:{var c=a.text,f=a.v,p=a.N,h=a.K,y=a.P;for(p=Math.max(1,p||1),h=Math.min(40,h||40);p<=h;p+=1)try{var v=t(c,f,p,y);break e}catch(F){}v=void 0}if(!v)return null;for(c=l.getContext("2d"),a.background&&(c.fillStyle=a.background,c.fillRect(a.left,a.top,a.size,a.size)),f=v.O,h=a.size/f,c.beginPath(),y=0;y<f;y+=1)for(p=0;p<f;p+=1){var m=c,C=a.left+p*h,w=a.top+y*h,b=y,x=p,P=v.a,M=C+h,E=w+h,k=b-1,R=b+1,O=x-1,_=x+1,L=Math.floor(Math.min(.5,Math.max(0,a.R))*h),B=P(b,x),z=P(k,O),T=P(k,x);k=P(k,_);var $=P(b,_);_=P(R,_),x=P(R,x),R=P(R,O),b=P(b,O),C=Math.round(C),w=Math.round(w),M=Math.round(M),E=Math.round(E),B?n(m,C,w,M,E,L,!T&&!b,!T&&!$,!x&&!$,!x&&!b):r(m,C,w,M,E,L,T&&b&&z,T&&$&&k,x&&$&&_,x&&b&&R)}return o(c,a),c.fill(),l}var i={minVersion:1,maxVersion:40,ecLevel:"L",left:0,top:0,size:200,fill:"#000",background:null,text:"no text",radius:.5,quiet:0};H6=function(l,a){var c={};Object.assign(c,i,l),c.N=c.minVersion,c.K=c.maxVersion,c.v=c.ecLevel,c.left=c.left,c.top=c.top,c.size=c.size,c.fill=c.fill,c.background=c.background,c.text=c.text,c.R=c.radius,c.P=c.quiet,a instanceof HTMLCanvasElement?((a.width!==c.size||a.height!==c.size)&&(a.width=c.size,a.height=c.size),a.getContext("2d").clearRect(0,0,a.width,a.height),s(a,c)):(l=document.createElement("canvas"),l.width=c.size,l.height=c.size,c=s(l,c),a.appendChild(c))}})(function(){function e(a){var c=n.s(a);return{S:function(){return 4},b:function(){return c.length},write:function(f){for(var p=0;p<c.length;p+=1)f.put(c[p],8)}}}function t(){var a=[],c=0,f={B:function(){return a},c:function(p){return(a[Math.floor(p/8)]>>>7-p%8&1)==1},put:function(p,h){for(var y=0;y<h;y+=1)f.m((p>>>h-y-1&1)==1)},f:function(){return c},m:function(p){var h=Math.floor(c/8);a.length<=h&&a.push(0),p&&(a[h]|=128>>>c%8),c+=1}};return f}function n(a,c){function f(b,x){for(var P=-1;7>=P;P+=1)if(!(-1>=b+P||v<=b+P))for(var M=-1;7>=M;M+=1)-1>=x+M||v<=x+M||(y[b+P][x+M]=0<=P&&6>=P&&(M==0||M==6)||0<=M&&6>=M&&(P==0||P==6)||2<=P&&4>=P&&2<=M&&4>=M)}function p(b,x){for(var P=v=4*a+17,M=Array(P),E=0;E<P;E+=1){M[E]=Array(P);for(var k=0;k<P;k+=1)M[E][k]=null}for(y=M,f(0,0),f(v-7,0),f(0,v-7),P=s.G(a),M=0;M<P.length;M+=1)for(E=0;E<P.length;E+=1){k=P[M];var R=P[E];if(y[k][R]==null)for(var O=-2;2>=O;O+=1)for(var _=-2;2>=_;_+=1)y[k+O][R+_]=O==-2||O==2||_==-2||_==2||O==0&&_==0}for(P=8;P<v-8;P+=1)y[P][6]==null&&(y[P][6]=P%2==0);for(P=8;P<v-8;P+=1)y[6][P]==null&&(y[6][P]=P%2==0);for(P=s.w(h<<3|x),M=0;15>M;M+=1)E=!b&&(P>>M&1)==1,y[6>M?M:8>M?M+1:v-15+M][8]=E,y[8][8>M?v-M-1:9>M?15-M:14-M]=E;if(y[v-8][8]=!b,7<=a){for(P=s.A(a),M=0;18>M;M+=1)E=!b&&(P>>M&1)==1,y[Math.floor(M/3)][M%3+v-8-3]=E;for(M=0;18>M;M+=1)E=!b&&(P>>M&1)==1,y[M%3+v-8-3][Math.floor(M/3)]=E}if(m==null){for(b=l.I(a,h),P=t(),M=0;M<C.length;M+=1)E=C[M],P.put(4,4),P.put(E.b(),s.f(4,a)),E.write(P);for(M=E=0;M<b.length;M+=1)E+=b[M].j;if(P.f()>8*E)throw Error("code length overflow. ("+P.f()+">"+8*E+")");for(P.f()+4<=8*E&&P.put(0,4);P.f()%8!=0;)P.m(!1);for(;!(P.f()>=8*E)&&(P.put(236,8),!(P.f()>=8*E));)P.put(17,8);var L=0;for(E=M=0,k=Array(b.length),R=Array(b.length),O=0;O<b.length;O+=1){var B=b[O].j,z=b[O].o-B;for(M=Math.max(M,B),E=Math.max(E,z),k[O]=Array(B),_=0;_<k[O].length;_+=1)k[O][_]=255&P.B()[_+L];for(L+=B,_=s.C(z),B=r(k[O],_.b()-1).l(_),R[O]=Array(_.b()-1),_=0;_<R[O].length;_+=1)z=_+B.b()-R[O].length,R[O][_]=0<=z?B.c(z):0}for(_=P=0;_<b.length;_+=1)P+=b[_].o;for(P=Array(P),_=L=0;_<M;_+=1)for(O=0;O<b.length;O+=1)_<k[O].length&&(P[L]=k[O][_],L+=1);for(_=0;_<E;_+=1)for(O=0;O<b.length;O+=1)_<R[O].length&&(P[L]=R[O][_],L+=1);m=P}for(b=m,P=-1,M=v-1,E=7,k=0,x=s.F(x),R=v-1;0<R;R-=2)for(R==6&&--R;;){for(O=0;2>O;O+=1)y[M][R-O]==null&&(_=!1,k<b.length&&(_=(b[k]>>>E&1)==1),x(M,R-O)&&(_=!_),y[M][R-O]=_,--E,E==-1&&(k+=1,E=7));if(M+=P,0>M||v<=M){M-=P,P=-P;break}}}var h=o[c],y=null,v=0,m=null,C=[],w={u:function(b){b=e(b),C.push(b),m=null},a:function(b,x){if(0>b||v<=b||0>x||v<=x)throw Error(b+","+x);return y[b][x]},h:function(){return v},J:function(){for(var b=0,x=0,P=0;8>P;P+=1){p(!0,P);var M=s.D(w);(P==0||b>M)&&(b=M,x=P)}p(!1,x)}};return w}function r(a,c){if(typeof a.length=="undefined")throw Error(a.length+"/"+c);var f=function(){for(var h=0;h<a.length&&a[h]==0;)h+=1;for(var y=Array(a.length-h+c),v=0;v<a.length-h;v+=1)y[v]=a[v+h];return y}(),p={c:function(h){return f[h]},b:function(){return f.length},multiply:function(h){for(var y=Array(p.b()+h.b()-1),v=0;v<p.b();v+=1)for(var m=0;m<h.b();m+=1)y[v+m]^=i.i(i.g(p.c(v))+i.g(h.c(m)));return r(y,0)},l:function(h){if(0>p.b()-h.b())return p;for(var y=i.g(p.c(0))-i.g(h.c(0)),v=Array(p.b()),m=0;m<p.b();m+=1)v[m]=p.c(m);for(m=0;m<h.b();m+=1)v[m]^=i.i(i.g(h.c(m))+y);return r(v,0).l(h)}};return p}n.s=function(a){for(var c=[],f=0;f<a.length;f++){var p=a.charCodeAt(f);128>p?c.push(p):2048>p?c.push(192|p>>6,128|p&63):55296>p||57344<=p?c.push(224|p>>12,128|p>>6&63,128|p&63):(f++,p=65536+((p&1023)<<10|a.charCodeAt(f)&1023),c.push(240|p>>18,128|p>>12&63,128|p>>6&63,128|p&63))}return c};var o={L:1,M:0,Q:3,H:2},s=function(){function a(p){for(var h=0;p!=0;)h+=1,p>>>=1;return h}var c=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],f={w:function(p){for(var h=p<<10;0<=a(h)-a(1335);)h^=1335<<a(h)-a(1335);return(p<<10|h)^21522},A:function(p){for(var h=p<<12;0<=a(h)-a(7973);)h^=7973<<a(h)-a(7973);return p<<12|h},G:function(p){return c[p-1]},F:function(p){switch(p){case 0:return function(h,y){return(h+y)%2==0};case 1:return function(h){return h%2==0};case 2:return function(h,y){return y%3==0};case 3:return function(h,y){return(h+y)%3==0};case 4:return function(h,y){return(Math.floor(h/2)+Math.floor(y/3))%2==0};case 5:return function(h,y){return h*y%2+h*y%3==0};case 6:return function(h,y){return(h*y%2+h*y%3)%2==0};case 7:return function(h,y){return(h*y%3+(h+y)%2)%2==0};default:throw Error("bad maskPattern:"+p)}},C:function(p){for(var h=r([1],0),y=0;y<p;y+=1)h=h.multiply(r([1,i.i(y)],0));return h},f:function(p,h){if(p!=4||1>h||40<h)throw Error("mode: "+p+"; type: "+h);return 10>h?8:16},D:function(p){for(var h=p.h(),y=0,v=0;v<h;v+=1)for(var m=0;m<h;m+=1){for(var C=0,w=p.a(v,m),b=-1;1>=b;b+=1)if(!(0>v+b||h<=v+b))for(var x=-1;1>=x;x+=1)0>m+x||h<=m+x||(b!=0||x!=0)&&w==p.a(v+b,m+x)&&(C+=1);5<C&&(y+=3+C-5)}for(v=0;v<h-1;v+=1)for(m=0;m<h-1;m+=1)C=0,p.a(v,m)&&(C+=1),p.a(v+1,m)&&(C+=1),p.a(v,m+1)&&(C+=1),p.a(v+1,m+1)&&(C+=1),(C==0||C==4)&&(y+=3);for(v=0;v<h;v+=1)for(m=0;m<h-6;m+=1)p.a(v,m)&&!p.a(v,m+1)&&p.a(v,m+2)&&p.a(v,m+3)&&p.a(v,m+4)&&!p.a(v,m+5)&&p.a(v,m+6)&&(y+=40);for(m=0;m<h;m+=1)for(v=0;v<h-6;v+=1)p.a(v,m)&&!p.a(v+1,m)&&p.a(v+2,m)&&p.a(v+3,m)&&p.a(v+4,m)&&!p.a(v+5,m)&&p.a(v+6,m)&&(y+=40);for(m=C=0;m<h;m+=1)for(v=0;v<h;v+=1)p.a(v,m)&&(C+=1);return y+=Math.abs(100*C/h/h-50)/5*10}};return f}(),i=function(){for(var a=Array(256),c=Array(256),f=0;8>f;f+=1)a[f]=1<<f;for(f=8;256>f;f+=1)a[f]=a[f-4]^a[f-5]^a[f-6]^a[f-8];for(f=0;255>f;f+=1)c[a[f]]=f;return{g:function(p){if(1>p)throw Error("glog("+p+")");return c[p]},i:function(p){for(;0>p;)p+=255;for(;256<=p;)p-=255;return a[p]}}}(),l=function(){function a(p,h){switch(h){case o.L:return c[4*(p-1)];case o.M:return c[4*(p-1)+1];case o.Q:return c[4*(p-1)+2];case o.H:return c[4*(p-1)+3]}}var c=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],f={I:function(p,h){var y=a(p,h);if(typeof y=="undefined")throw Error("bad rs block @ typeNumber:"+p+"/errorCorrectLevel:"+h);p=y.length/3,h=[];for(var v=0;v<p;v+=1)for(var m=y[3*v],C=y[3*v+1],w=y[3*v+2],b=0;b<m;b+=1){var x=w,P={};P.o=C,P.j=x,h.push(P)}return h}};return f}();return n}());const kMe=QrCreator,IMe="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept";function MMe({file:e,addToBar:t,statusApi:n}){var $,F,A;const T=e,{parent:r,children:o,isRoot:s,byMasks:i}=T,l=At(T,["parent","children","isRoot","byMasks"]),[a,c]=u.useState(l);u.useEffect(()=>{c(Object.assign(Z1(Qw,()=>null),l))},[e]);const f=u.useMemo(()=>{let N=e.parent;for(;N;){if(N.default!=null)return N.default;N=N.parent}},[e]),{source:p}=e,h=e.type==="folder",y=!e.type&&p&&e.size<0,v=a.url!==void 0,m=p!==void 0,C=m&&h,w=Xo("lg"),b=!v&&(w||m),x=!v&&w||m&&!C,P=e.accept>""||h&&((F=e.can_upload)!=null?F:($=e.inherited)==null?void 0:$.can_upload),M=h,E=tE(),{movingFile:k}=js(),{data:R,element:O}=Qn("get_accounts");if(O||!R)return O;const _=R.list,L=!m&&"Works only on folders with source! ",B={can_read:!v,can_see:!0,can_archive:!v,can_list:h,can_upload:h&&m,can_delete:h&&m};return u.createElement(Hc,{values:a,set(N,H){c(K=>{var Q;const te=H==="source"&&K.name&&((Q=K.source)==null?void 0:Q.endsWith(K.name))?GN(N):K.name;return st(we({},K),{name:te,[H]:N})})},barSx:we({gap:2,width:"100%"},E),stickyBar:!0,addToBar:[u.createElement(dn,{icon:V6,disabled:s||k===e.id,title:"Cut (you can also use drag & drop to move items)","aria-label":"Cut",onClick(){rn.movingFile=e.id,Et(u.createElement(ze,{},"Now that this is marked for moving, click on the destination folder, and then the paste button ",u.createElement(MS)),"info")}}),k&&u.createElement(dn,{icon:MS,disabled:e.type!=="folder"||e.id.startsWith(k)||e.id===k.replace(/[^/]+\/?$/,""),title:k,onClick(){return rn.movingFile="",Y6(k,e.id)}}),!s&&u.createElement(dn,{icon:Tl,title:"Delete",confirm:"Delete?",onClick:()=>ct("del_vfs",{uris:[e.id]}).then(()=>Ra())}),...J1(t)],onError:Et,save:{sx:Xd(!Xv(a,l)),onClick(){return rt(this,null,function*(){const N=Ze.omit(a,["ctime","mtime","size","id"]);N.masks||(N.masks=null),yield ct("set_vfs",{uri:a.id,props:N}),N.name!==e.name&&(rn.selectedFiles[0].id=e.parent.id+N.name+(h?"/":"")),Ra()})}},fields:[h&&m&&u.createElement(Er,{severity:"info"},'To set permissions on individual items in folder, add them by clicking Add button, and then "from disk"'),s?u.createElement(Er,{severity:"info"},"This is Home, the root of your shared files. Options set here will be applied to all files."):{k:"name",required:!0,xl:!0,helperText:m&&"You can decide a name that's different from the one on your disk"},v?{k:"url",label:"URL",lg:12,required:!0}:{k:"source",label:"Load content from disk",xl:!0,comp:Dp,files:y||!h,folders:y||h,placeholder:"no",helperText:a.source?h?"Content from this path on disk will be listed, but you can also add more":void 0:"This field is empty, and thus this element is a virtual-folder. You can set this field, pointing at any folder/file on disk."},!v&&{k:"id",comp:_Me,statusApi:n,xs:12},z("can_read","Who can see but not download will be asked to login"),z("can_see","If you can't see, you may still download with a direct link"),z("can_archive","Should this be included when user downloads as ZIP",{lg:h?!0:12}),z("can_list","Permission to see content of folders",{contentText:"subfolders"}),z("can_delete",[L,"Those who can delete can also rename and cut/move"]),z("can_upload",L,{contentText:"subfolders"}),x&&{k:"size",comp:Tp,lg:4,toField:xl},b&&{k:"ctime",comp:Tp,md:6,lg:x&&4,label:"Created",toField:Yx},b&&{k:"mtime",comp:Tp,md:6,lg:x&&4,label:"Modified",toField:Yx},P&&{k:"accept",label:"Accept on upload",placeholder:"anything",xl:M?4:12,helperText:u.createElement(ts,{href:IMe,target:"_blank"},"Example: .zip")},M&&{k:"default",comp:An,xl:!0,label:"Serve as website if index.html is found"+(f&&a.default==null?" (inherited)":""),value:(A=a.default)!=null?A:f,toField:Boolean,fromField:N=>N&&!f?"index.html":N?null:!1,helperText:er("...instead of showing list of files")},h&&{k:"masks",multiline:!0,toField:ND.stringify,fromField:N=>N?ND.parse(N):void 0,sx:{"& textarea":{fontFamily:"monospace"}},helperText:["Special field, leave empty unless you know what you are doing. YAML syntax. ",xa("Permissions","(examples)")]}]});function z(N,H,K={}){var Q,X;if(!B[N])return null;const Y=[N,...jc(Ze.map(B,(J,se)=>!J&&se))],te=Ze.difference(Object.keys(Qw),Y);return we({comp:W6,k:N,lg:6,xl:4,parent:r,accounts:_,helperText:H,isDir:h,otherPerms:te.map(J=>({value:J,label:"As "+_S(J)})),label:"Who can "+_S(N),inherit:(X=(Q=e.inherited)==null?void 0:Q[N])!=null?X:Qw[N],byMasks:i==null?void 0:i[N],fromField:J=>J!=null?J:null},K)}}function _S(e){const t=e.split("_")[1];return t==="read"?"download":t==="archive"?"zip":t}function W6(v){var m=v,{value:e,onChange:t,parent:n,inherit:r,accounts:o,helperText:s,otherPerms:i,byMasks:l,hideValues:a,isChildren:c,isDir:f,contentText:p="folder content",setApi:h}=m,y=At(m,["value","onChange","parent","inherit","accounts","helperText","otherPerms","byMasks","hideValues","isChildren","isDir","contentText","setApi"]);const C=(l!==void 0?"As per mask: ":n!==void 0?"As parent: ":"Default: ")+BD(l!=null?l:r),w=pfe(e),b=w?e.this:e,x=u.useMemo(()=>jc([{value:null,label:C},{value:!0},{value:!1},{value:"*"},...i,{value:[],label:"Select accounts"}].map(k=>!(a!=null&&a.includes(k.value))&&we({label:Ze.capitalize(BD(k.value))},k))),[r,n,b]),P=500,M=Array.isArray(b);return u.createElement(ze,{sx:{borderRight:w?"8px solid #8884":void 0,transition:`all ${P}ms`}},u.createElement(Kr,st(we({},y),{value:M?[]:b!=null?b:null,onChange(k,{event:R}){t(w?E(st(we({},e),{this:k!=null?k:void 0})):k!=null?k:void 0,{was:e,event:R})},options:x})),u.createElement(Bv,{in:M,timeout:P},M&&u.createElement(l0,{label:o!=null&&o.length?"Accounts for "+y.label:"You didn't create any account yet",value:b,onChange:t,options:(o==null?void 0:o.map(k=>({value:k.username,label:k.username})))||[]})),u.createElement(Kd,{},s,!c&&f&&u.createElement(al,{sx:{display:"block",mt:-.5},onClick(k){t(w?b:{this:b,children:b==null?!r:void 0},{was:e,event:k})}},w?"Different permission for ":"Same permission for ",p)),!c&&u.createElement(Bv,{in:w,timeout:P},u.createElement(W6,{label:"Permission for "+p,parent:n,inherit:r,accounts:o,otherPerms:i,isDir:f,value:w&&(e==null?void 0:e.children),isChildren:!0,hideValues:[b!=null?b:r,b],onChange(k,{event:R}){w&&t(E(st(we({},e),{children:k})),{was:e,event:R})}})));function E(k){return k.this===k.children?k.this:k}}function BD(e){return e===!1?"no one":e===!0?"anyone":e==="*"?"any account (login required)":Array.isArray(e)?e.join(", "):typeof e=="string"?"as "+_S(e):"*UNKNOWN*"+JSON.stringify(e)}function _Me({value:e,statusApi:t}){const{data:n,reload:r,error:o}=t,s=(n==null?void 0:n.urls.https)||(n==null?void 0:n.urls.http),i=(n==null?void 0:n.baseUrl)&&new URL(n.baseUrl).hostname,l=u.useMemo(()=>i&&Ze.find(n.roots,(h,y)=>$fe(i,y)),[n]);l&&e&&(e=e.indexOf(l)===1?e.slice(l.length):void 0);const a=ci((n==null?void 0:n.baseUrl)||"",e),c=u.useMemo(()=>u.forwardRef((h,y)=>u.createElement(ts,st(we({ref:y},h),{href:a,style:{height:"auto"},target:"frontend"}),a)),[a]);return u.createElement(ze,{display:"flex"},s?u.createElement(Tp,{label:"Link",value:a||`outside of configured base address (${i})`,error:o,InputProps:{inputComponent:c},end:u.createElement(ze,{},u.createElement(dn,{icon:Bk,title:"Copy",disabled:!a,onClick:()=>navigator.clipboard.writeText(a)}),u.createElement(dn,{icon:j6,title:"QR Code",onClick:f}),u.createElement(dn,{icon:HE,title:"Change",onClick(){G6().then(r)}}))}):"error");function f(){po({title:"QR Code",dialogProps:{sx:{bgcolor:"background.default",border:"1px solid"}},Content(){const h=vn();return u.createElement("canvas",{ref:y=>y&&p(y,a,h.palette.text.primary),style:{width:"100%"}})}})}function p(h,y,v){return rt(this,null,function*(){try{kMe.render({text:y,radius:0,ecLevel:"H",fill:v,background:null,size:300},h)}catch(m){console.error("Error generating QR code:",m)}})}}function G6(){return rt(this,null,function*(){return new Promise(e=>rt(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}=po({title:"Base address",Content(){const[s,i]=u.useState(n||""),l=new URL(s||r[0]).protocol+"//",a=r.includes(s)?"":s.slice(l.length),c=u.createElement(G2,{sx:{ml:2}});return u.createElement(ze,{display:"flex",flexDirection:"column"},u.createElement(ze,{mb:2},"Choose a base address for your links"),u.createElement(Yd,{},u.createElement(Pr,{selected:!s,onClick:()=>f("")},"Automatic",!s&&c),r.map(h=>u.createElement(Pr,{key:h,selected:h===s,onClick:()=>f(h)},h,h===s&&c))),u.createElement(Wi,{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:h=>f(ci(l,h)),start:u.createElement(Kr,{value:l,onChange:h=>a?f(h+a):rr("Enter domain first"),options:["http://","https://"],size:"small",variant:"standard",sx:{"& .MuiSelect-select":{pt:"1px",pb:0}}}),sx:{mt:2}}),u.createElement(ze,{mt:2,textAlign:"right"},u.createElement(To,{icon:Vh,children:"Save",onClick(){return rt(this,null,function*(){s!==n&&(yield ct("set_config",{values:{base_url:s.replace(/\/$/,"")}})),e(s),o()})}})));function f(h){h.endsWith("/")&&(h=h.slice(0,-1)),i(h)}}})}))})}let TS;function TMe(){var P,M,E;const[e]=u.useState(()=>new Map),{vfs:t,selectedFiles:n,movingFile:r}=js(),{data:o,reload:s,element:i}=Qn("get_vfs");u.useMemo(()=>t||s(),[t,s]);const l="md",a=Xo(l),c=Qn("get_status"),{data:f}=c,p=u.useMemo(()=>{const k=f==null?void 0:f.baseUrl,R=(f==null?void 0:f.urls.https)||(f==null?void 0:f.urls.http);return k&&!R.includes(k)?[k,...R]:R},[f]),[h,y]=u.useState(!1);function v(){y(!0)}const m=!n.length||h?null:n.length===1?u.createElement(MMe,{addToBar:a&&[u.createElement(ze,{flex:1}),$S(n[0]),u.createElement(dn,{icon:o0,title:"Close",onClick:v})],statusApi:c,file:n[0]}):u.createElement(u.Fragment,{},u.createElement(qr,{},u.createElement(qn,{variant:"h6"},n.length+" selected"),u.createElement(Yn,{onClick:$Me,startIcon:u.createElement(Tl)},"Remove")),u.createElement(Bh,{dense:!0,disablePadding:!0},n.map(k=>u.createElement(h2,{key:k.id},u.createElement(Di,{primary:k.name,secondary:k.source}))))),[C,w]=u.useState(()=>Ze.noop);if(u.useEffect(()=>{var k;r===((k=n[0])==null?void 0:k.id)&&C()},[r,C]),u.useEffect(()=>{if(a||!m)return;const{close:k}=po({title:n.length>1?"Multiple selection":u.createElement(qr,{},$S(n[0]),n[0].name||"Home"),Content:()=>m,onClose:v});return w(()=>k),k},[a,n]),u.useEffect(()=>{if(rn.vfs=void 0,!o)return;e.clear();const{root:k}=o;if(!k)return;k.isRoot=!0,O(k),rn.vfs=k;const R=TS||rn.selectedFiles.map(_=>_.id);TS=void 0,rn.selectedFiles=jc(R.map(_=>e.get(_)));function O(_,L="/",B=void 0){if(_.parent=B,_.id=_.isRoot?"/":ci(L,encodeURIComponent(_.name),_.type==="folder"?"/":""),e.set(_.id,_),!!_.children)for(const z of _.children)O(z,_.id,_)}},[o,e]),i)return e.clear(),i;const x=!((M=(P=o==null?void 0:o.root)==null?void 0:P.children)!=null&&M.length)&&!((E=o==null?void 0:o.root)!=null&&E.source)?{severity:"warning",children:"Add something to your shared files — click Add"}:p&&{severity:"info",children:["Your shared files can be browsed from ",Fue(" or ",p.slice(0,3).map(k=>u.createElement(ts,{href:k,target:"frontend"},k)))]};return u.createElement(oi,{container:!0,rowSpacing:1,columnSpacing:2},u.createElement(oi,{item:!0,mb:2,xs:12},u.createElement(Er,{severity:"info"},"If you rename or delete here, it's virtual, and only affects what is presented to the users"),x&&u.createElement(Er,x)),u.createElement(oi,{item:!0,[l]:7,lg:6,xl:5},u.createElement(qn,{variant:"h6",mb:1},"Virtual File System"),u.createElement(eIe,{statusApi:c}),t&&u.createElement(RMe,{id2node:e,statusApi:c,onSelect:()=>y(!1)})),a&&m&&u.createElement(oi,{item:!0,[l]:!0,maxWidth:"100%"},u.createElement(O1,{sx:{overflow:"initial"}},u.createElement(D1,{},m))))}function Ra(e){TS=e,rn.vfs=void 0}function $Me(){return rt(this,null,function*(){const e=rn.selectedFiles;if(e.length&&(yield pr(`Delete ${e.length} item(s)?`)))try{const t=e.map(o=>o.id);Ze.pull(t,"/");const{errors:n}=yield ct("del_vfs",{uris:t}),r=t.filter((o,s)=>n[s]);if(r.length)return Et("Following elements couldn't be deleted: "+r.join(", "),"error");Ra()}catch(t){yield Et(t)}})}const K6=BB,q6=VB;function RMe({id2node:e,statusApi:t,onSelect:n}){const{vfs:r,selectedFiles:o}=js(),[s,i]=u.useState(o.map(v=>v.id)),[l,a]=u.useState(Array.from(e.keys())),c=u.useRef(),f=u.useRef();if(!r)return null;const p="vfs";return u.createElement(AB,{ref:f,expanded:l,selected:s,multiSelect:!0,id:p,sx:{overflowX:"auto",maxWidth:f.current&&`calc(100vw - ${16+f.current.offsetLeft}px)`,"& ul":{borderLeft:"1px dashed #444",marginLeft:"15px",paddingLeft:"15px"}},onNodeSelect(v,m){typeof m!="string"&&(i(m),rn.selectedFiles=jc(m.map(C=>e.get(C))),n())}},y(r));function h(v){return v!==void 0&&v!==!0}function y(v){var P,M,E;let{id:m,name:C,isRoot:w}=v;if(!m)debugger;const b=v.type==="folder";return u.createElement(vS,{ref(k){k==null||k.addEventListener("focusin",R=>R.stopImmediatePropagation())},label:u.createElement(ze,{draggable:!w,onDragStart(){c.current=m},onDragOver(k){if(!b)return;const R=c.current;R!=null&&R.startsWith(m)&&!R.slice(m.length+1).includes("/")||k.preventDefault()},onDrop(){return rt(this,null,function*(){const k=c.current;k&&(yield pr(`Moving ${k} under ${m}`))&&Y6(k,m)})},sx:{display:"flex",gap:".5em",lineHeight:"2em",alignItems:"center"}},u.createElement(ze,{display:"flex",flex:0},$S(v),u.createElement(ze,{sx:{flex:0,ml:"2px",my:"2px","&>*":{fontSize:"87%",opacity:.6,mt:"-2px"},display:"grid",gridAutoFlow:"column",gridTemplateRows:"auto auto"}},v.can_delete!==void 0&&Wr(Tl,"Delete permission"),v.can_upload!==void 0&&Wr(Uh,"Upload permission"),!w&&!v.source&&!v.url&&Wr(UB,"Virtual (no source)"),h(v.can_see)&&Wr(jB,"Restrictions on who can see"),h(v.can_read)&&Wr(u0,"Restrictions on who can download"),v.default&&Wr(HB,"Act as website"),v.masks&&Wr(NB,"Masks"),v.size===-1&&Wr(WB,"Source not found"),Sl(Ze.findKey((P=t.data)==null?void 0:P.roots,k=>k===m.slice(1)),k=>k&&Wr(N1,`home for ${k}`)))),w?"Home":(()=>{var _;const k=(_=v.parent)==null?void 0:_.source,{source:R}=v,O=k&&(R!=null&&R.startsWith(k))?"."+R.slice(k.length):R;return!O||!(R!=null&&R.endsWith(C))||O.length>45?u.createElement(ze,{lineHeight:"1.2em"},C):u.createElement("span",{},u.createElement("span",{style:{opacity:.4}},O.slice(0,-C.length)),O.slice(-C.length))})()),key:C,collapseIcon:u.createElement(FB,{onClick(k){a(l.filter(R=>R!==m)),k.preventDefault(),k.stopPropagation()}}),expandIcon:u.createElement(LB,{onClick(k){a([...l,m]),k.preventDefault(),k.stopPropagation()}}),nodeId:m},w&&!((M=v.children)!=null&&M.length)?u.createElement(vS,{nodeId:"?",label:u.createElement("i",{},"nothing here")}):(E=v.children)==null?void 0:E.map(y))}}function Y6(e,t){ct("move_vfs",{from:e,parent:t}).then(()=>{Ra([t+e.slice(1+e.lastIndexOf("/",e.length-2))])},Et)}function $S(e){return e.isRoot?Wr(N1,"home, or root if you like"):e.type==="folder"?Wr(K6,"Folder"):e.url?Wr(zB,"Web-link"):Wr(q6,"File")}var zD=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function OMe(e,t){return!!(e===t||zD(e)&&zD(t))}function DMe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!OMe(e[n],t[n]))return!1;return!0}function bC(e,t){t===void 0&&(t=DMe);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 AMe=typeof performance=="object"&&typeof performance.now=="function",VD=AMe?function(){return performance.now()}:function(){return Date.now()};function jD(e){cancelAnimationFrame(e.id)}function LMe(e,t){var n=VD();function r(){VD()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var wC=-1;function HD(e){if(e===void 0&&(e=!1),wC===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),wC=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return wC}var Su=null;function UD(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 FMe=150,NMe=function(t,n){return t};function BMe(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,s=e.getOffsetForIndexAndAlignment,i=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,a=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return t=function(p){P1(h,p);function h(v){var m;return m=p.call(this,v)||this,m._instanceProps=a(m.props,Rx(m)),m._outerRef=void 0,m._resetIsScrollingTimeoutId=null,m.state={instance:Rx(m),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof m.props.initialScrollOffset=="number"?m.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},m._callOnItemsRendered=void 0,m._callOnItemsRendered=bC(function(C,w,b,x){return m.props.onItemsRendered({overscanStartIndex:C,overscanStopIndex:w,visibleStartIndex:b,visibleStopIndex:x})}),m._callOnScroll=void 0,m._callOnScroll=bC(function(C,w,b){return m.props.onScroll({scrollDirection:C,scrollOffset:w,scrollUpdateWasRequested:b})}),m._getItemStyle=void 0,m._getItemStyle=function(C){var w=m.props,b=w.direction,x=w.itemSize,P=w.layout,M=m._getItemStyleCache(c&&x,c&&P,c&&b),E;if(M.hasOwnProperty(C))E=M[C];else{var k=n(m.props,C,m._instanceProps),R=o(m.props,C,m._instanceProps),O=b==="horizontal"||P==="horizontal",_=b==="rtl",L=O?k:0;M[C]=E={position:"absolute",left:_?void 0:L,right:_?L:void 0,top:O?0:k,height:O?"100%":R,width:O?R:"100%"}}return E},m._getItemStyleCache=void 0,m._getItemStyleCache=bC(function(C,w,b){return{}}),m._onScrollHorizontal=function(C){var w=C.currentTarget,b=w.clientWidth,x=w.scrollLeft,P=w.scrollWidth;m.setState(function(M){if(M.scrollOffset===x)return null;var E=m.props.direction,k=x;if(E==="rtl")switch(UD()){case"negative":k=-x;break;case"positive-descending":k=P-b-x;break}return k=Math.max(0,Math.min(k,P-b)),{isScrolling:!0,scrollDirection:M.scrollOffset<x?"forward":"backward",scrollOffset:k,scrollUpdateWasRequested:!1}},m._resetIsScrollingDebounced)},m._onScrollVertical=function(C){var w=C.currentTarget,b=w.clientHeight,x=w.scrollHeight,P=w.scrollTop;m.setState(function(M){if(M.scrollOffset===P)return null;var E=Math.max(0,Math.min(P,x-b));return{isScrolling:!0,scrollDirection:M.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},m._resetIsScrollingDebounced)},m._outerRefSetter=function(C){var w=m.props.outerRef;m._outerRef=C,typeof w=="function"?w(C):w!=null&&typeof w=="object"&&w.hasOwnProperty("current")&&(w.current=C)},m._resetIsScrollingDebounced=function(){m._resetIsScrollingTimeoutId!==null&&jD(m._resetIsScrollingTimeoutId),m._resetIsScrollingTimeoutId=LMe(m._resetIsScrolling,FMe)},m._resetIsScrolling=function(){m._resetIsScrollingTimeoutId=null,m.setState({isScrolling:!1},function(){m._getItemStyleCache(-1,null)})},m}h.getDerivedStateFromProps=function(m,C){return zMe(m,C),f(m),null};var y=h.prototype;return y.scrollTo=function(m){m=Math.max(0,m),this.setState(function(C){return C.scrollOffset===m?null:{scrollDirection:C.scrollOffset<m?"forward":"backward",scrollOffset:m,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},y.scrollToItem=function(m,C){C===void 0&&(C="auto");var w=this.props,b=w.itemCount,x=w.layout,P=this.state.scrollOffset;m=Math.max(0,Math.min(m,b-1));var M=0;if(this._outerRef){var E=this._outerRef;x==="vertical"?M=E.scrollWidth>E.clientWidth?HD():0:M=E.scrollHeight>E.clientHeight?HD():0}this.scrollTo(s(this.props,m,C,P,this._instanceProps,M))},y.componentDidMount=function(){var m=this.props,C=m.direction,w=m.initialScrollOffset,b=m.layout;if(typeof w=="number"&&this._outerRef!=null){var x=this._outerRef;C==="horizontal"||b==="horizontal"?x.scrollLeft=w:x.scrollTop=w}this._callPropsCallbacks()},y.componentDidUpdate=function(){var m=this.props,C=m.direction,w=m.layout,b=this.state,x=b.scrollOffset,P=b.scrollUpdateWasRequested;if(P&&this._outerRef!=null){var M=this._outerRef;if(C==="horizontal"||w==="horizontal")if(C==="rtl")switch(UD()){case"negative":M.scrollLeft=-x;break;case"positive-ascending":M.scrollLeft=x;break;default:var E=M.clientWidth,k=M.scrollWidth;M.scrollLeft=k-E-x;break}else M.scrollLeft=x;else M.scrollTop=x}this._callPropsCallbacks()},y.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&jD(this._resetIsScrollingTimeoutId)},y.render=function(){var m=this.props,C=m.children,w=m.className,b=m.direction,x=m.height,P=m.innerRef,M=m.innerElementType,E=m.innerTagName,k=m.itemCount,R=m.itemData,O=m.itemKey,_=O===void 0?NMe:O,L=m.layout,B=m.outerElementType,z=m.outerTagName,T=m.style,$=m.useIsScrolling,F=m.width,j=this.state.isScrolling,A=b==="horizontal"||L==="horizontal",N=A?this._onScrollHorizontal:this._onScrollVertical,H=this._getRangeToRender(),K=H[0],Y=H[1],te=[];if(k>0)for(var Q=K;Q<=Y;Q++)te.push(u.createElement(C,{data:R,key:_(Q,R),index:Q,isScrolling:$?j:void 0,style:this._getItemStyle(Q)}));var X=r(this.props,this._instanceProps);return u.createElement(B||z||"div",{className:w,onScroll:N,ref:this._outerRefSetter,style:S({position:"relative",height:x,width:F,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},T)},u.createElement(M||E||"div",{children:te,ref:P,style:{height:A?"100%":X,pointerEvents:j?"none":void 0,width:A?X:"100%"}}))},y._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var m=this.props.itemCount;if(m>0){var C=this._getRangeToRender(),w=C[0],b=C[1],x=C[2],P=C[3];this._callOnItemsRendered(w,b,x,P)}}if(typeof this.props.onScroll=="function"){var M=this.state,E=M.scrollDirection,k=M.scrollOffset,R=M.scrollUpdateWasRequested;this._callOnScroll(E,k,R)}},y._getRangeToRender=function(){var m=this.props,C=m.itemCount,w=m.overscanCount,b=this.state,x=b.isScrolling,P=b.scrollDirection,M=b.scrollOffset;if(C===0)return[0,0,0,0];var E=i(this.props,M,this._instanceProps),k=l(this.props,E,M,this._instanceProps),R=!x||P==="backward"?Math.max(1,w):1,O=!x||P==="forward"?Math.max(1,w):1;return[Math.max(0,E-R),Math.max(0,Math.min(C-1,k+O)),E,k]},h}(u.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var zMe=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},VMe=BMe({getItemOffset:function(t,n){var r=t.itemSize;return n*r},getItemSize:function(t,n){var r=t.itemSize;return r},getEstimatedTotalSize:function(t){var n=t.itemCount,r=t.itemSize;return r*n},getOffsetForIndexAndAlignment:function(t,n,r,o,s,i){var l=t.direction,a=t.height,c=t.itemCount,f=t.itemSize,p=t.layout,h=t.width,y=l==="horizontal"||p==="horizontal",v=y?h:a,m=Math.max(0,c*f-v),C=Math.min(m,n*f),w=Math.max(0,n*f-v+f+i);switch(r==="smart"&&(o>=w-v&&o<=C+v?r="auto":r="center"),r){case"start":return C;case"end":return w;case"center":{var b=Math.round(w+(C-w)/2);return b<Math.ceil(v/2)?0:b>m+Math.floor(v/2)?m:b}case"auto":default:return o>=w&&o<=C?o:o<w?w:C}},getStartIndexForOffset:function(t,n){var r=t.itemCount,o=t.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/o)))},getStopIndexForStartIndex:function(t,n,r){var o=t.direction,s=t.height,i=t.itemCount,l=t.itemSize,a=t.layout,c=t.width,f=o==="horizontal"||a==="horizontal",p=n*l,h=f?c:s,y=Math.ceil((h+r-p)/l);return Math.max(0,Math.min(i-1,n+y-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}});function Q6({onSelect:e,multiple:t=!0,files:n=!0,folders:r=!0,fileMask:o,from:s=""}){const[i,l]=u.useState(s),[a,c]=u.useState(!1),f=u.useRef(!1);u.useEffect(()=>{ct("resolve_path",{path:s,closestFolder:!0}).then(T=>{typeof T.path=="string"&&(l(T.path),f.current=T.path[1]===":")}).finally(()=>c(!0))},[s]);const{list:p,error:h,connecting:y,reload:v}=Pl(a&&"get_ls",{path:i,files:n,fileMask:o});u.useEffect(()=>{C([]),b("")},[i]);const[m,C]=u.useState([]),[w,b]=u.useState(""),x=u.useMemo(()=>Ze.debounce(T=>b(T)),[]),P=u.useMemo(()=>{const T=new RegExp(Ze.escapeRegExp(w),"i");return $=>T.test($)},[w]),[M,E]=u.useState(0),k=u.useMemo(()=>Ze.sortBy(p.filter(T=>P(T.n)),["k","d"]),[p,P]),R=f.current?"":"/",O=f.current?"\\":"/",_=gfe(O,i),L=i.length<2;return u.createElement(u.Fragment,{},u.createElement(ze,{display:"flex",gap:1},u.createElement(Yn,{title:"root",disabled:L,onClick(){l(R)}},u.createElement(MB)),u.createElement(Yn,{disabled:L,title:"parent folder",onClick(){const T=/[\\/]$/.test(i)?i.slice(0,-1):i,$=Ife(T)?R:T.slice(0,T.lastIndexOf(O)||1);l($)}},u.createElement(GE)),u.createElement(Wi,{label:"Current path",value:i,InputLabelProps:{shrink:!0},onChange(T){return rt(this,null,function*(){if(!T)return l(R);const $=yield ct("resolve_path",{path:T});if($.isFolder===!1)return n?e([T]):l(T.slice(0,-GN(T)));l($.path)})}})),h?u.createElement(Er,{severity:"error"},e5(h)):u.createElement(u.Fragment,{},u.createElement(ze,{ref(T){if(!T)return;const $=(T==null?void 0:T.clientHeight)-1;$-M>1&&E($)},sx:{flex:1,display:"flex",flexDirection:"column"}},p.length?u.createElement(VMe,{width:"100%",height:M,itemSize:46,itemCount:k.length,overscanCount:5,children({index:T,style:$}){const F=k[T],j=F.k==="d";return u.createElement(Pr,{style:st(we({},$),{padding:0}),key:F.n,onClick(){j?l(_+F.n):e([_+F.n])}},t&&u.createElement(V4,{checked:m.includes(F.n),disabled:!r&&j,onClick(A){const N=F.n,H=m.filter(K=>K!==N);C(H.length<m.length?H:[...m,N]),A.stopPropagation()}}),u.createElement(hl,{},u.createElement(F.k?K6:q6)),u.createElement(Di,{sx:{whiteSpace:"pre-wrap",wordBreak:"break-all"}},F.n),!j&&F.s!==void 0&&u.createElement(qn,{variant:"body2",color:"text.secondary",ml:4,mr:1},xl(F.s)))}}):u.createElement(Hh,{flex:1,mt:"4em"},y?f5():"No elements in this folder")),u.createElement(qr,{alignItems:"stretch"},(t||r||!n)&&u.createElement(Yn,{variant:"contained",disabled:!i||!r&&!m.length&&n,sx:{minWidth:"max-content"},onClick(){e(m.length?m.map(T=>_+T):[i])}},n&&(m.length||!r)?`Select (${m.length})`:"Select this folder"),u.createElement(Ba,{size:"small",value:w,label:`Filter results (${k.length}${k.length<p.length?"/"+p.length:""})`,onChange(T){x(T.target.value)},sx:{flex:1}}),u.createElement(dn,{icon:IB,doneMessage:!0,title:"Create folder",sx:{mt:"5px"},onClick(){return rt(this,null,function*(){const T=yield jh("New folder name");if(!T)return!1;yield ct("mkdir",{path:`${i}/${T}`}),v()})}}))))}function Dp(a){var c=a,{value:e,onChange:t,files:n=!0,folders:r=!1,fileMask:o,defaultPath:s,title:i}=c,l=At(c,["value","onChange","files","folders","fileMask","defaultPath","title"]);const f=Xo("md");return u.createElement(Wi,st(we({},l),{value:e,onChange:t,onTyping:p=>!p.includes(`
|
|
761
|
-
`)&&p,InputProps:{multiline:!0,endAdornment:u.createElement(Cl,{position:"end"},u.createElement(dn,{icon:kB,title:"Browse files...",edge:"end",onClick(){const{close:p}=po({title:i!=null?i:n?"Pick a file":"Pick a folder",dialogProps:{fullScreen:!f,sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){return u.createElement(Q6,{multiple:!1,folders:r,files:n,fileMask:o,from:e||s,onSelect(y){return rt(this,null,function*(){var C;let v=y==null?void 0:y[0];if(!v)return;const m=(C=yield ct("get_cwd"))==null?void 0:C.path;v.startsWith(m)&&(v=v.slice(m.length+1)||"."),t(v,{was:e,event:"picker"}),p()})}})}})}}))}}))}var Hk={},jMe=et;Object.defineProperty(Hk,"__esModule",{value:!0});var ov=Hk.default=void 0,HMe=jMe(tt()),UMe=Je(),WMe=(0,HMe.default)((0,UMe.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=Hk.default=WMe;var Uk={},GMe=et;Object.defineProperty(Uk,"__esModule",{value:!0});var X6=Uk.default=void 0,KMe=GMe(tt()),qMe=Je(),YMe=(0,KMe.default)((0,qMe.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");X6=Uk.default=YMe;var Wk={},QMe=et;Object.defineProperty(Wk,"__esModule",{value:!0});var Z6=Wk.default=void 0,XMe=QMe(tt()),ZMe=Je(),JMe=(0,XMe.default)((0,ZMe.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");Z6=Wk.default=JMe;var Gk={},e_e=et;Object.defineProperty(Gk,"__esModule",{value:!0});var J6=Gk.default=void 0,t_e=e_e(tt()),n_e=Je(),r_e=(0,t_e.default)((0,n_e.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"OpenInNew");J6=Gk.default=r_e;function o_e(){var E,k,R,_;const e=" — ",{username:t}=js(),{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}=Pl("get_plugins"),[c,f]=u.useState(!1),{list:p}=Pl(c&&"get_plugin_updates"),[h,y]=u.useState();if(o||!n)return o;const{http:v,https:m}=n,C=!(v!=null&&v.listening)&&(m!=null&&m.listening)?"s":"",w=C?m:(v==null?void 0:v.listening)&&v,b=w&&`http${C}://`+window.location.hostname+(w.port===(C?443:80)?"":":"+w.port),x=Ze.pick(n,["http","https"]),P=Z1(x,B=>B.busy?[`port ${B.port} already used by ${B.busy}${e}choose a `,Ig("different port"),` or stop ${B.busy}`]:B.error),M=P&&jc(Object.entries(P).map(([B,z])=>z&&[er(`Protocol <u>${B}</u> cannot work: `),z,(qk(z)||Yk(z))&&[e,u.createElement(al,{onClick(){xy().then(()=>zh(999)).then(l.reload).then(r)}},"make one")," or ",e,Ig("provide adequate files")]]));return u.createElement(ze,{display:"flex",gap:2,flexDirection:"column",alignItems:"flex-start",height:"100%"},t&&oo("","Welcome "+t),M.length?ch(M.map(B=>oo("error",ch(B)))):oo("success","Server is working"),s?!((k=(E=s.root)==null?void 0:E.children)!=null&&k.length)&&!((R=s.root)!=null&&R.source)?oo("warning","You have no files shared",e,i_e("add some")):oo("",er("This is the Admin-panel, where you manage your server. Access your files on "),u.createElement(ts,{target:"frontend",href:"../.."},"Front-end",u.createElement(Z6,{sx:{verticalAlign:"sub",ml:".2em"}}))):u.createElement(jv),!b&&oo("warning","Frontend unreachable: ",Ze.map(P,(B,z)=>z+" "+(B?"is in error":"is off")).join(", "),!M.length&&[e,Ig("switch http or https on")]),a.find(B=>B.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 Admin-panel from another computer ",u.createElement(c0,{to:"accounts"},er("create an account with *admin* permission"))),RS(l,n)&&oo("warning",RS(l,n),e,Ig("set the number of proxies"),e,"unless you are sure and you can ",u.createElement(Yn,{size:"small",onClick(){return rt(this,null,function*(){(yield pr("Go on only if you know what you are doing"))&&(yield ct("set_config",{values:{ignore_proxies:!0}}))&&l.reload()})}},"ignore this warning"),e,xa("Proxy-warning","Explanation")),(((_=l.data)==null?void 0:_.proxies)>0||(n==null?void 0:n.proxyDetected))&&oo("",xa("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',u.createElement("ol",{},u.createElement("li",{},"configure FRP with type=http (best solution)"),u.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)")),u.createElement("li",{},`disable "admin access for localhost" in HFS (safe, but you won't see users' IPs)`))),oo("",xa("","See the documentation")," and ",u.createElement(ts,{target:"support",href:X1+"discussions"},"get support")),p.length>0&&oo("success","Updates available for plugin(s): "+p.map(B=>B.id).join(", ")),n.updatePossible==="local"?u.createElement(To,{icon:ov,onClick:()=>CC()},"Update from local file"):h?Sl(Ze.find(h,"isNewer"),B=>!h.length||!n.updatePossible&&!B?oo("","No update available"):B&&!n.updatePossible?oo("success",`Version ${B.name} available`):u.createElement(qr,{vert:!0},h.map(z=>u.createElement(qr,{key:z.name,alignItems:"flex-start",flexWrap:"wrap"},u.createElement(O1,{},u.createElement(D1,{},u.createElement(To,st(we({icon:ov},!z.isNewer&&z.prerelease&&{color:"warning",variant:"outlined"}),{onClick:()=>CC(z.tag_name)}),ci("Install ",z.name,z.isNewer?"":" (older)")),u.createElement(ze,{mt:1},s_e(z.body)))))))):u.createElement(To,{variant:"outlined",icon:ov,onClick(){return f(!0),ct("check_update").then(B=>y(B.options),Et)},onContextMenu(B){return rt(this,null,function*(){if(B.preventDefault(),!n.updatePossible)return Et("Automatic update is only for binary versions","warning");const z=yield jh("Enter a link to the zip to install");z&&(yield CC(z))})},title:n.updatePossible&&"Right-click if you want to install a zip"},"Check for updates"))}function s_e(e){return er(e,{onText:t});function t(n){return eE(n,new RegExp("(?<=^|\\W)#(\\d+)\\b","g"),r=>u.createElement(ts,{href:X1+"issues/"+r[1],target:"_blank"},u.createElement(J6)))}}function CC(e){return rt(this,null,function*(){if(!(yield pr("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=Et("This is taking too long, please check your server","warning")),yield zh(500);n==null||n.close(),v5(rn,"loginRequired",()=>rn.loginRequired=!1),yield Et("Procedure complete","success"),window.location.reload()})}function oo(e,...t){return u.createElement(ze,{fontSize:"x-large",color:n=>{var r;return e&&((r=n.palette[e])==null?void 0:r.main)}},u.createElement({success:X6,info:Jv,"":Jv,warning:i0,error:s0}[e],{sx:{mr:1,color:e?void 0:"primary.main"}}),...t)}function i_e(e="File System page"){return u.createElement(c0,{to:"fs"},e)}function Ig(e="Options page"){return u.createElement(c0,{to:"options"},e)}function RS(e,t){return e.data&&!e.data.proxies&&(t==null?void 0:t.proxyDetected)&&"A proxy was detected but none is configured"}var ez={},l_e=ln&&ln.__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=ln&&ln.__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)},a_e=ln&&ln.__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]}),c_e=ln&&ln.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),u_e=ln&&ln.__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)&&a_e(t,e,n);return c_e(t,e),t},d_e=ln&&ln.__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(ez,"__esModule",{value:!0});var Qf=u_e(u),f_e=13,p_e=9,h_e=8,m_e=89,Mg=90,g_e=77,WD=57,GD=219,KD=222,qD=192,v_e=27,YD=100,y_e=3e3,b_e=typeof window!="undefined"&&"navigator"in window&&/Win/i.test(navigator.platform),xC=typeof window!="undefined"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),sv="npm__react-simple-code-editor__textarea",w_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
|
-
`),C_e=function(e){l_e(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,c=a.stack,f=a.offset;if(c.length&&f>-1){n._history.stack=c.slice(0,f+1);var p=n._history.stack.length;if(p>YD){var h=p-YD;n._history.stack=c.slice(h,p),n._history.offset=Math.max(n._history.offset-h,0)}}var y=Date.now();if(o){var v=n._history.stack[n._history.offset];if(v&&y-v.timestamp<y_e){var m=/[^a-z0-9]([a-z0-9]+)$/i,C=(s=n._getLines(v.value,v.selectionStart).pop())===null||s===void 0?void 0:s.match(m),w=(i=n._getLines(r.value,r.selectionStart).pop())===null||i===void 0?void 0:i.match(m);if(C!=null&&C[1]&&(!((l=w==null?void 0:w[1])===null||l===void 0)&&l.startsWith(C[1]))){n._history.stack[n._history.offset]=wr(wr({},r),{timestamp:y});return}}}n._history.stack.push(wr(wr({},r),{timestamp:y})),n._history.offset++},n._updateInput=function(r){var o=n._input;o&&(o.value=r.value,o.selectionStart=r.selectionStart,o.selectionEnd=r.selectionEnd,n.props.onValueChange(r.value))},n._applyEdits=function(r){var o=n._input,s=n._history.stack[n._history.offset];s&&o&&(n._history.stack[n._history.offset]=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===v_e&&r.currentTarget.blur();var c=r.currentTarget,f=c.value,p=c.selectionStart,h=c.selectionEnd,y=(i?" ":" ").repeat(s);if(r.keyCode===p_e&&!l&&n.state.capture)if(r.preventDefault(),r.shiftKey){var v=n._getLines(f,p),m=v.length-1,C=n._getLines(f,h).length-1,w=f.split(`
|
|
789
|
-
`).map(function(B,z){return z>=m&&z<=C&&B.startsWith(y)?B.substring(y.length):B}).join(`
|
|
790
|
-
`);if(f!==w){var b=v[m];n._applyEdits({value:w,selectionStart:b!=null&&b.startsWith(y)?p-y.length:p,selectionEnd:h-(f.length-w.length)})}}else if(p!==h){var v=n._getLines(f,p),x=v.length-1,P=n._getLines(f,h).length-1,b=v[x];n._applyEdits({value:f.split(`
|
|
791
|
-
`).map(function(T,$){return $>=x&&$<=P?y+T:T}).join(`
|
|
792
|
-
`),selectionStart:b&&/\S/.test(b)?p+y.length:p,selectionEnd:h+y.length*(P-x+1)})}else{var M=p+y.length;n._applyEdits({value:f.substring(0,p)+y+f.substring(h),selectionStart:M,selectionEnd:M})}else if(r.keyCode===h_e){var E=p!==h,k=f.substring(0,p);if(k.endsWith(y)&&!E){r.preventDefault();var M=p-y.length;n._applyEdits({value:f.substring(0,p-y.length)+f.substring(h),selectionStart:M,selectionEnd:M})}}else if(r.keyCode===f_e){if(p===h){var R=n._getLines(f,p).pop(),O=R==null?void 0:R.match(/^\s+/);if(O!=null&&O[0]){r.preventDefault();var _=`
|
|
793
|
-
`+O[0],M=p+_.length;n._applyEdits({value:f.substring(0,p)+_+f.substring(h),selectionStart:M,selectionEnd:M})}}}else if(r.keyCode===WD||r.keyCode===GD||r.keyCode===KD||r.keyCode===qD){var L=void 0;r.keyCode===WD&&r.shiftKey?L=["(",")"]:r.keyCode===GD?r.shiftKey?L=["{","}"]:L=["[","]"]:r.keyCode===KD?r.shiftKey?L=['"','"']:L=["'","'"]:r.keyCode===qD&&!r.shiftKey&&(L=["`","`"]),p!==h&&L&&(r.preventDefault(),n._applyEdits({value:f.substring(0,p)+L[0]+f.substring(p,h)+L[1]+f.substring(h),selectionStart:p,selectionEnd:h+2}))}else(xC?r.metaKey&&r.keyCode===Mg:r.ctrlKey&&r.keyCode===Mg)&&!r.shiftKey&&!r.altKey?(r.preventDefault(),n._undoEdit()):(xC?r.metaKey&&r.keyCode===Mg&&r.shiftKey:b_e?r.ctrlKey&&r.keyCode===m_e:r.ctrlKey&&r.keyCode===Mg&&r.shiftKey)&&!r.altKey?(r.preventDefault(),n._redoEdit()):r.keyCode===g_e&&r.ctrlKey&&(!xC||r.shiftKey)&&(r.preventDefault(),n.setState(function(B){return{capture:!B.capture}}))}},n._handleChange=function(r){var o=r.currentTarget,s=o.value,i=o.selectionStart,l=o.selectionEnd;n._recordChange({value:s,selectionStart:i,selectionEnd:l},!0),n.props.onValueChange(s)},n._history={stack:[],offset:-1},n._input=null,n}return t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(n){this._history=n.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var n=this,r=this.props,o=r.value,s=r.style,i=r.padding,l=r.highlight,a=r.textareaId,c=r.textareaClassName,f=r.autoFocus,p=r.disabled,h=r.form,y=r.maxLength,v=r.minLength,m=r.name,C=r.placeholder,w=r.readOnly,b=r.required,x=r.onClick,P=r.onFocus,M=r.onBlur,E=r.onKeyUp;r.onKeyDown,r.onValueChange,r.tabSize,r.insertSpaces,r.ignoreTabKey;var k=r.preClassName,R=d_e(r,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),O={paddingTop:typeof i=="object"?i.top:i,paddingRight:typeof i=="object"?i.right:i,paddingBottom:typeof i=="object"?i.bottom:i,paddingLeft:typeof i=="object"?i.left:i},_=l(o);return Qf.createElement("div",wr({},R,{style:wr(wr({},Xf.container),s)}),Qf.createElement("pre",wr({className:k,"aria-hidden":"true",style:wr(wr(wr({},Xf.editor),Xf.highlight),O)},typeof _=="string"?{dangerouslySetInnerHTML:{__html:_+"<br />"}}:{children:_})),Qf.createElement("textarea",{ref:function(L){return n._input=L},style:wr(wr(wr({},Xf.editor),Xf.textarea),O),className:sv+(c?" ".concat(c):""),id:a,value:o,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:x,onKeyUp:E,onFocus:P,onBlur:M,disabled:p,form:h,maxLength:y,minLength:v,name:m,placeholder:C,readOnly:w,required:b,autoFocus:f,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),Qf.createElement("style",{dangerouslySetInnerHTML:{__html:w_e}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(Qf.Component),x_e=ez.default=C_e,Xf={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 Kk=u.forwardRef((r,n)=>{var o=r,{style:e}=o,t=At(o,["style"]);return u.createElement(x_e,we({highlight:_fe,padding:10,tabSize:4,insertSpaces:!0,ignoreTabKey:!1,style:we({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 S_e(s){var i=s,{onChange:e,value:t,onBlur:n,setApi:r}=i,o=At(i,["onChange","value","onBlur","setApi"]);const[l,a]=u.useState(t||"");return u.createElement(Ba,st(we({multiline:!0,fullWidth:!0,value:l,InputProps:{inputComponent:P_e},onChange(c){a(c.target.value)},onBlur(c){n==null||n(c),e(c.target.value,{was:t,event:c})}},o),{onKeyDown(c){var v;if((v=o.onKeyDown)==null||v.call(o,c),z1(c)==="Enter")return e(l,{was:t,event:c});if(!c.altKey||c.key!=="Tab")return;c.preventDefault();const f=document.querySelectorAll(NN),p=Ze.indexOf(f,c.target),h=f.length,y=(p+(c.shiftKey?-1:1)+h)%h;f[y].focus(),console.debug(f[y])}}))}const P_e=u.forwardRef((r,n)=>{var o=r,{onChange:e}=o,t=At(o,["onChange"]);return u.createElement(ze,{sx:{width:"100%",textarea:{outline:0}}},u.createElement(Kk,st(we({ref:n,padding:2,style:{background:"initial",borderBottom:"initial"}},t),{onValueChange:s=>e({target:{value:s}}),onKeyDown(s){z1(s)==="Enter"&&s.preventDefault()}})))});let Pa,OS;const tz=D2({changes:{}});A2(rn,e=>{e.some(t=>t[1][0]==="config")&&nz()});const Cy={log:"Access",error_log:"Access error",console:"Console"},QD=Wi;function E_e(){var m;const{data:e,reload:t,element:n}=Qn("get_config",{omit:["vfs"]}),r=js(),{changes:o}=L2(tz),s=Qn(e&&"get_status"),i=s.data,l=OS=s.reload;u.useEffect(()=>void l(),[e]),u.useEffect(()=>()=>OS=void 0,[]);const a=Xo("sm"),c=(m=Qn("get_admins").data)==null?void 0:m.list;if(n)return n;if(s.error)return s.element;const f=Pa!==e?rn.config=Pa=e:r.config,p={comp:Vo,min:1,unit:"KB/s",placeholder:"no limit",sm:6},h={comp:Vo,min:0,placeholder:"no limit",toField:C=>C||"",sm:4},y=f.https_port>=0;return u.createElement(Hc,{sx:{maxWidth:"60em"},values:f,set(C,w){rn.config[w]=C},stickyBar:!0,onError:Et,save:{onClick:v,sx:Xd(Object.keys(o).length>0)},barSx:{gap:2},addToBar:[u.createElement(Yn,{onClick(){t(),l()},startIcon:u.createElement(r0)},"Reload"),u.createElement(Yn,{component:DP,to:"/edit",startIcon:u.createElement(BE)},a?"Edit config file":"File")],defaults(){return{sm:6}},fields:[{k:"port",comp:ZD,md:4,label:"HTTP port",status:(i==null?void 0:i.http)||!0,suggestedPort:80},{k:"https_port",comp:ZD,md:4,label:"HTTPS port",status:(i==null?void 0:i.https)||!0,suggestedPort:443,onChange(C){return C>=0&&!y&&!f.cert&&xy().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]},y&&f.port>=0&&{k:"force_https",comp:An,md:4,label:"Force HTTPS",helperText:"Not applied to localhost"},y&&{k:"cert",comp:Dp,md:4,label:"HTTPS certificate file",helperText:xa("HTTPS#certificate","What is this?"),error:Sl(i==null?void 0:i.https.error,C=>qk(C)&&(i.https.listening?C:[C," - ",u.createElement(al,{key:"fix",onClick:xy},"make one")]))},y&&we({k:"private_key",comp:Dp,md:4,label:"HTTPS private key file"},Sl(i==null?void 0:i.https.error,C=>Yk(C)?{error:!0,helperText:C}:null)),{k:"favicon",comp:Dp,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:k_e,sm:12,md:6},{k:"open_browser_at_start",comp:An,label:"Open Admin-panel at start",helperText:"Browser is automatically launched with HFS"},{k:"localhost_admin",comp:An,label:"Unprotected admin on localhost",getError:C=>!C&&(c==null?void 0:c.length)===0&&"First create at least one admin account",helperText:"Access Admin-panel without entering credentials"},st(we({k:"max_kbps"},p),{label:"Limit output",helperText:"Doesn't apply to localhost"}),st(we({k:"max_kbps_per_ip"},p),{label:"Limit output per-IP"}),st(we({k:Dn.max_downloads},h),{helperText:"Number of simultaneous downloads"}),st(we({k:Dn.max_downloads_per_ip},h),{label:"Max downloads per-IP"}),st(we({k:Dn.max_downloads_per_account},h),{label:"Max downloads per-account",helperText:"Overrides other limits"}),{k:"dont_overwrite_uploading",comp:An,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:An,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:An,helperText:"Include betas searching updates"},{k:"admin_net",comp:QD,label:"Admin-panel accessible from",placeholder:"any address",helperText:u.createElement(u.Fragment,{},"IP address of browser machine. ",u.createElement(fp))},{k:"descript_ion",comp:An,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,...Ze.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:RS(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:u.createElement(fp),$width:1,$column:{renderCell:({value:C,id:w})=>u.createElement("code",{},C,C==="*"&&w<Ze.size(f.mime)-1&&Wr(i0,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(([w,b])=>({k:w,v:b})),fromField:C=>Object.fromEntries(C.map(w=>[w.k,w.v]))},{k:"block",label:!1,comp:xh,prepend:!0,sm:12,fields:[{k:"ip",label:"Blocked IP",sm:6,required:!0,helperText:u.createElement(fp)},{k:"expire",$type:"dateTime",minDate:new Date,sm:6,helperText:"Leave empty for no expiration"},{k:"comment"}]},{k:"server_code",comp:S_e,sm:12,getError:C=>wfe(()=>new Function(C)&&null,w=>w.message),helperText:er(`This code works similarly to [a plugin](${X1}blob/main/dev-plugins.md) (with some limitations)`)},u.createElement(XD,{title:"Log"}),{k:"log",label:Cy.log,md:3,helperText:"Requests are logged here"},{k:"error_log",label:Cy.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:QD,label:"Don't log address",md:3,placeholder:"no exception",helperText:u.createElement(fp)},{k:"log_gui",sm:4,comp:An,label:"Log interface loading",helperText:"Some requests are necessary to load the interface"},{k:"log_api",sm:4,comp:An,label:"Log API requests",helperText:"Requests for commands"},{k:"log_ua",sm:4,comp:An,label:"Log User-Agent",helperText:"Contains browser and possibly OS information"},u.createElement(XD,{title:"Front-end",subtitle:"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:afe,label:"Default tiles size",helperText:"Zero = list mode"},{k:"theme",comp:Kr,xs:6,sm:4,options:ufe},{k:"sort_by",comp:Kr,xs:6,sm:4,options:cfe},{k:"invert_order",comp:An,xs:6,sm:4},{k:"folders_first",comp:An,xs:6,sm:4},{k:"sort_numerics",comp:An,xs:6,sm:4,label:"Sort numeric names"}]});function v(){return rt(this,null,function*(){var _,L;if(Ze.isEmpty(o))return rr("Nothing to save");const C=window.location,w=["port","https_port"];if(w.every(B=>o[B]!==void 0))return Et("You cannot change both http and https port at once. Please, do one, save, and then do the other.","warning");const b=[(_=i==null?void 0:i.http)==null?void 0:_.listening,(L=i==null?void 0:i.https)==null?void 0:L.listening],x=location.protocol==="https:";x&&(w.reverse(),b.reverse());const P=o[w[0]],M=f[w[1]],E=M>0&&b[1],k=x?"http":"https";if(P<0&&!E)return Et("You cannot switch off this port unless you have a working fixed port for "+k,"warning");if(P===0&&!E)return Et("You cannot randomize this port unless you have a working fixed port for "+k,"warning");if(P>0&&!(yield pr("You are changing the port and you may be disconnected")))return;const R="cert"in o||"private_key"in o;if(x&&R&&!(yield pr("You may disrupt https service, kicking you out")))return;if(yield ct("set_config",{values:o}),P!==void 0||o.listen_interface&&!(C.hostname==="localhost"&&YN(o.listen_interface))){yield Et("You are being redirected but in some cases this may fail. Hold on tight!","warning");const B=QN(o.listen_interface||C.hostname);return window.location.href=P<=0?`${x?"http:":"https:"}//${B}:${M}${C.pathname}`:`${C.protocol}//${B}:${P||f[w[0]]}${C.pathname}`}const O="port"in o||"https_port"in o;setTimeout(l,O||R?1e3:0),Object.assign(Pa,o),nz(),rr("Changes applied","success")})}}function XD({title:e,subtitle:t}){return u.createElement(ih,{},u.createElement("h3",{style:{margin:0}},e),u.createElement(ze,{fontSize:"small"},t))}function nz(){const e={};if(rn.config)for(const[t,n]of Object.entries(rn.config))JSON.stringify(n)!==JSON.stringify(Pa==null?void 0:Pa[t])&&(e[t]=n);tz.changes=e}function qk(e){return/certificate/.test(e)}function Yk(e){return/private key/.test(e)}function ZD({label:e,value:t,onChange:n,setApi:r,status:o,suggestedPort:s=1,error:i,helperText:l}){const a=u.useRef(s);t>0&&(a.current=t);const c=Number(t>0?a.current:t)||0;let f=o==null?void 0:o.error;return f&&(qk(f)||Yk(f)?f=void 0:i=!0),u.createElement(ze,{},u.createElement(ze,{display:"flex"},u.createElement(Kr,{sx:{flexGrow:1},label:e,error:i,value:c,options:[{label:"off",value:-1},{label:"random",value:0},{label:"choose",value:a.current}],onChange:n}),t>0&&u.createElement(Vo,{label:"Number",fullWidth:!1,value:t,onChange:n,setApi:r,error:i,min:1,max:65535,helperText:l,sx:{minWidth:"5.5em"}})),o&&u.createElement(Kd,{error:i},o===!0?"...":f!=null?f:(o==null?void 0:o.listening)&&"Correctly working on port "+o.port))}function k_e({label:e,value:t,onChange:n,error:r}){const o=!t||t==="-",s="example.com";return u.createElement(ze,{display:"flex"},u.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&&u.createElement(Wi,{label:"Domain to allow",value:t,placeholder:"example.com",onChange:n,error:r,helperText:u.createElement(fp)}))}function fp(){return xa("Wildcards","Wildcards supported")}function xy(){return rt(this,null,function*(){return new Promise(e=>{const{close:t}=po({icon:FE,title:"Get a certificate",onClose:e,Content:()=>u.createElement(ze,{p:1,lineHeight:1.5},u.createElement(ze,{},"HTTPS needs a certificate to work."),u.createElement(ze,{},"We suggest you to ",u.createElement(c0,{to:"internet",onClick:t},"get a free but proper certificate"),"."),u.createElement(ze,{},"If you don't have a domain ",u.createElement(al,{onClick:n},"make a self-signed certificate")," but that ",xa("HTTPS#certificate"," won't be perfect"),"."))});function n(){return rt(this,null,function*(){if(!window.crypto.subtle)return Et("Retry this procedure on localhost","warning");const r=u5();try{yield zh(50);const o=yield ct("save_pem",yield I_e({}));r(),yield ct("set_config",{values:o}),Pa&&Object.assign(Pa,o),setTimeout(OS,1e3),Object.assign(rn.config,o),t(),yield Et("Certificate saved","success")}finally{r()}})}})})}function I_e(e){return rt(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 Qk={},M_e=et;Object.defineProperty(Qk,"__esModule",{value:!0});var rz=Qk.default=void 0,__e=M_e(tt()),T_e=Je(),$_e=(0,__e.default)((0,T_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");rz=Qk.default=$_e;function R_e(){const[e,t]=u.useState(0),n=Pfe(Cy),{pause:r,pauseButton:o}=m5(),[s,i]=g5(a=>({title:"Show/hide APIs",icon:rz,sx:{rotate:a?"0deg":"180deg"},disabled:e>=2}),!0),l=!Xo("sm")&&{error_log:"Errors"};return u.createElement(u.Fragment,{},u.createElement(qr,{gap:0},u.createElement(y2,{value:e,onChange(a,c){t(c)}},n.map(a=>u.createElement(Wv,{label:Ze.get(l,a)||Cy[a],key:a}))),u.createElement(ze,{flex:1}),i,o),u.createElement(O_e,{key:e,pause:r,showApi:s,file:n[e]}))}function O_e({file:e,pause:t,showApi:n}){const[r,o]=u.useState(!1),[s,i]=u.useState(!1),{list:l,error:a,connecting:c}=Pl("get_log",{file:e},{invert:!0,pause:t,map(p){var y;const{extra:h}=p;return h!=null&&h.country&&!r&&o(!0),h!=null&&h.ua&&!s&&i(!0),p.notes=h!=null&&h.dl?"fully downloaded":p.method==="PUT"||h!=null&&h.ul?"uploaded "+xl(h.size,{sep:Xde}):p.status===Qd&&((y=p.uri)!=null&&y.startsWith(ju+"loginSrp"))?"login failed"+ci(`:
|
|
794
|
-
`,h==null?void 0:h.u):p.notes,p}}),f={field:"ts",headerName:"Timestamp",type:"dateTime",width:90,valueGetter:({value:p})=>new Date(p),renderCell:({value:p})=>u.createElement(u.Fragment,{},p.toLocaleDateString(),u.createElement("br"),p.toLocaleTimeString())};return u.createElement(Yh,{error:a,loading:c,rows:u.useMemo(()=>{var p;return n||((p=l==null?void 0:l[0])==null?void 0:p.uri)===void 0?l:l.filter(h=>!h.uri.startsWith(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:h})=>{var y;return u.createElement(u.Fragment,{},u.createElement("span",{},p),u.createElement(ey,{code:(y=h.extra)==null?void 0:y.country}))}}}},{headerName:"Country",field:"country",valueGetter:({row:p})=>{var h;return(h=p.extra)==null?void 0:h.country},hidden:!r,hideUnder:"xl",renderCell:({value:p})=>u.createElement(ey,{code:p,def:"-"})},{field:"user",headerName:"Username",flex:.3,maxWidth:200,hideUnder:"xl"},f,{field:"method",headerName:"Method",width:80,hideUnder:"xl"},{field:"status",headerName:"Code",type:"number",width:70,hideUnder:"xl"},{field:"length",headerName:"Size",type:"number",hideUnder:"md",valueFormatter:({value:p})=>xl(p)},{headerName:"Agent",hideUnder:"md",field:"ua",width:60,hidden:!s,valueGetter:({row:p})=>{var h;return(h=p.extra)==null?void 0:h.ua},renderCell:({value:p})=>p&&oz(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:h})=>{var b;const[y,v]=vfe("?",p).map(decodeURIComponent),m=(b=h.extra)==null?void 0:b.ul;if(m)return typeof m=="string"?m:y+m.join(" + ");if(!y.startsWith(ju))return[y,v&&u.createElement(ze,{key:0,component:"span",color:"text.secondary",fontSize:"smaller"},"?",v)];const C=y.slice(ju.length),w=v&&": "+Array.from(new URLSearchParams(v)).map(x=>{var P;return`${x[0]}=${(P=Sfe(x[1]))!=null?P:x[1]}`}).join(" ; ");return"API "+C+w}}]})}function oz(e){const t="https://upload.wikimedia.org/wikipedia/commons/",n=Rfe(e),r=i(n,{Chrome:t+"e/e1/Google_Chrome_icon_%28February_2022%29.svg",Chromium:t+"f/fe/Chromium_Material_Icon.svg",Firefox:t+"a/a0/Firefox_logo%2C_2019.svg",Safari:t+"5/52/Safari_browser_logo.svg",Edge:t+"f/f6/Edge_Logo_2019.svg",Opera:t+"4/49/Opera_2015_icon.svg"}),o=Ze.findKey(D_e,l=>l.test(e)),s=o&&i(o,{android:t+"d/d7/Android_robot.svg",linux:t+"0/0a/Tux-shaded.svg",win:t+"0/0a/Unofficial_Windows_logo_variant_-_2002%E2%80%932012_%28Multicolored%29.svg",apple:t+"7/74/Apple_logo_dark_grey.svg"});return u.createElement(_l,{title:e,children:u.createElement("span",{fontSize:"18px"},r||n," ",s)});function i(l,a){const c=a[l];return c&&u.createElement("img",{src:c,style:{height:"1em",verticalAlign:"bottom",marginRight:".2em"}})}}const D_e={apple:/Mac OS|iPhone OS/,win:/Windows NT/,android:/Android/,linux:/Linux/};function A_e(){return u.createElement(u.Fragment,{},u.createElement(F_e),u.createElement(N_e))}const L_e=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function F_e(){const{data:e,element:t}=Qn("get_status"),{data:n}=Due("get_connection_stats");e&&n&&Object.assign(e,n);const r=Xo("xl"),o=Xo("md"),s=Xo("sm");return t||u.createElement(ze,{display:"flex",flexWrap:"wrap",gap:"1em",mb:2},r&&i("started"),r&&i("http",{label:"HTTP",render:l}),o&&i("https",{label:"HTTPS",render:l}),s&&i("connections"),i("sent",{render:xl,minWidth:"4em"}),s&&i("got",{render:xl,minWidth:"4em"}),i("outSpeed",{label:"Output speed",render:DS}),o&&i("inSpeed",{label:"Input speed",render:DS}));function i(a,{label:c,minWidth:f,render:p}={}){let h=Ze.get(e,a);if(h===void 0)return null;typeof h=="string"&&L_e.test(h)&&(h=new Date(h).toLocaleString());let y;return p&&(h=p(h),Array.isArray(h)&&([h,y]=h)),c||(c=Ze.capitalize(a.replaceAll("_"," "))),u.createElement(Fh,{variant:"filled",color:y,label:u.createElement(u.Fragment,{},u.createElement("b",{},c),": ",u.createElement("span",{style:{display:"inline-block",minWidth:f}},h))})}function l(a){return a.listening?["port "+a.port,"success"]:a.error?[a.error,"error"]:"off"}}function N_e(){var a;const{list:e,error:t,props:n}=Pl("get_connections"),r=Qn("get_config",{only:[Dn.geo_enable]}),{monitorOnlyFiles:o}=js(),{pause:s,pauseButton:i}=m5(),l=u.useMemo(()=>e==null?void 0:e.filter(c=>!o||c.op).map((c,f)=>we({id:f},c)),[!s&&e,o]);return u.createElement(u.Fragment,{},u.createElement(ze,{display:"flex",alignItems:"center"},u.createElement(Kr,{fullWidth:!1,value:o,onChange:c=>rn.monitorOnlyFiles=c,options:{"Show only files":!0,"Show all connections":!1}}),u.createElement(ze,{flex:1}),i),u.createElement(Yh,{error:t,rows:l,noRows:o&&"No downloads at the moment",columns:[{field:"ip",headerName:"Address",flex:1,maxWidth:400,renderCell:({row:c,value:f})=>QN(f)+" :"+c.port,mergeRender:{other:"user",fontSize:"small"}},{field:"country",hidden:((a=r.data)==null?void 0:a[Dn.geo_enable])!==!0,headerName:"Country",hideUnder:"md",renderCell:({value:c,row:f})=>u.createElement(ey,{code:c,ip:f.ip,def:"-"})},{field:"user",headerName:"User",hideUnder:"md"},{field:"started",headerName:"Started",type:"dateTime",width:100,hideUnder:"lg",valueFormatter:({value:c})=>new Date(c).toLocaleTimeString()},{field:"path",headerName:"File",flex:1.5,renderCell({value:c,row:f}){var p;if(!(!c||!f.op))return f.op==="browsing"?u.createElement(ze,{},c,u.createElement(ze,{fontSize:"x-small"},"browsing")):u.createElement(u.Fragment,{},u.createElement(p5,{icon:f.archive?P5:f.op==="upload"?Uh:mE,progress:(p=f.opProgress)!=null?p:f.opOffset,offset:f.opOffset,addTitle:f.opTotal&&"Total: "+xl(f.opTotal),sx:{mr:1}}),f.archive?u.createElement(ze,{},c,u.createElement(ze,{fontSize:"x-small",color:"text.secondary"},f.archive)):Sl(c==null?void 0:c.lastIndexOf("/"),h=>u.createElement(ze,{},c.slice(h+1),h>0&&u.createElement(ze,{fontSize:"x-small",color:"text.secondary"},c.slice(0,h)))))}},{field:"outSpeed",headerName:"Speed",width:110,hideUnder:"sm",type:"number",renderCell:({value:c,row:f})=>DS(Math.max(c||0,f.inSpeed||0)||void 0),mergeRender:{other:"sent",fontSize:"small",textAlign:"right"}},{field:"sent",headerName:"Sent",type:"number",hideUnder:"md",renderCell:({value:c,row:f})=>xl(Math.max(c||0,f.got||0))},{field:"v",headerName:"Protocol",align:"center",hideUnder:1/0,renderCell:({value:c})=>u.createElement(u.Fragment,{},"IPv"+c,Wr(u0,"HTTPS",{opacity:.5}))},{field:"agent",headerName:"Agent",hideUnder:"lg",renderCell:({value:c})=>oz(c)}],actionsProps:{hideUnder:"sm"},actions:({row:c})=>[u.createElement(dn,{icon:x5,title:"Disconnect",onClick:()=>ct("disconnect",Ze.pick(c,["ip","port"])).then(()=>rr("Disconnection requested"))}),u.createElement(dn,{icon:S5,title:"Block IP",confirm:"Block address "+c.ip,disabled:c.ip===(n==null?void 0:n.you),onClick:()=>B_e(c.ip)})]}))}function B_e(e){return Ffe("block",t=>[...t,{ip:e}])}function DS(e){return e===void 0?"":mfe(e*1e3,{digits:1})}var Xk={},z_e=et;Object.defineProperty(Xk,"__esModule",{value:!0});var sz=Xk.default=void 0,V_e=z_e(tt()),j_e=Je(),H_e=(0,V_e.default)((0,j_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");sz=Xk.default=H_e;var Zk={},U_e=et;Object.defineProperty(Zk,"__esModule",{value:!0});var Jk=Zk.default=void 0,W_e=U_e(tt()),G_e=Je(),K_e=(0,W_e.default)((0,G_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");Jk=Zk.default=K_e;var eI={},q_e=et;Object.defineProperty(eI,"__esModule",{value:!0});var iz=eI.default=void 0,Y_e=q_e(tt()),Q_e=Je(),X_e=(0,Y_e.default)((0,Q_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");iz=eI.default=X_e;var tI={},Z_e=et;Object.defineProperty(tI,"__esModule",{value:!0});var lz=tI.default=void 0,J_e=Z_e(tt()),eTe=Je(),tTe=(0,J_e.default)((0,eTe.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");lz=tI.default=tTe;var nI={},nTe=et;Object.defineProperty(nI,"__esModule",{value:!0});var az=nI.default=void 0,rTe=nTe(tt()),oTe=Je(),sTe=(0,rTe.default)((0,oTe.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");az=nI.default=sTe;var rI={},iTe=et;Object.defineProperty(rI,"__esModule",{value:!0});var cz=rI.default=void 0,lTe=iTe(tt()),JD=Je(),aTe=(0,lTe.default)([(0,JD.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,JD.jsx)("path",{d:"M16.5 12H15v5l3.6 2.1.8-1.2-2.9-1.7z"},"1")],"AutoDelete");cz=rI.default=aTe;function cTe({account:e,done:t,groups:n,addToBar:r,reload:o}){const{username:s}=js(),[i,l]=u.useState(e),[a,c]=u.useState([]);u.useEffect(()=>{var v,m;l(e),c(n.filter(C=>C!==e.username)),Dfe()||(m=(v=h.current)==null?void 0:v.querySelector("input"))==null||m.focus()},[JSON.stringify(e)]);const f=!e.username,p=!i.hasPassword,h=u.useRef();return u.createElement(Hc,{formRef:h,values:i,set(v,m){l(C=>st(we({},C),{[m]:v}))},barSx:we({gap:2,width:"100%"},tE()),stickyBar:!0,addToBar:[!f&&u.createElement(dn,st(we({icon:Tl,title:"Delete",confirm:"Delete?"},s===e.username&&{disabled:!0,title:"Cannot delete current account"}),{onClick:()=>ct("del_account",{username:e.username}).then(o)})),u.createElement(dn,{icon:cz,title:"Invalidate past sessions",doneMessage:!0,disabled:e.invalidated,onClick:()=>ct("invalidate_sessions",{username:e.username}).then(o)}),...J1(r)],fields:[{k:"username",label:p?"Group name":void 0,autoComplete:"off",required:!0,xl:p?12:4,getError:v=>v!==e.username&&ct("get_account",{username:v}).then(m=>(m==null?void 0:m.username)===e.username?"usernames are case-insensitive":"already used",()=>!1)},!p&&{k:"password",md:6,xl:4,type:"password",autoComplete:"new-password",required:f,label:f?"Password":"Change password"},!p&&{k:"password2",md:6,xl:4,type:"password",autoComplete:"new-password",label:"Repeat password",getError:(v,{values:m})=>(v||"")!==(m.password||"")&&"Enter same password"},{k:"disabled",comp:An,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:An,xs:"auto",helperText:i.ignore_limits?"Speed limits don't apply to this account":"Speed limits apply to this account"},we({k:"admin",comp:An,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:An,fromField:v=>!v,toField:v=>!v,label:"Allow password change",xs:"auto"},p&&u.createElement(Er,{severity:"info"},'To add users to this group, select the user and then click "Inherit"'),{k:"belongs",comp:l0,label:"Inherit from groups",options:a,helperText:"Specify groups to inherit permissions from"+(p?". A group can inherit from another group":"")+(a.length?"":". Now disabled because there are no groups to select, create one first.")},{k:"redirect",comp:CS,helperText:"If you want this account to be redirected to a specific folder/address at login time"}],onError:Et,save:{sx:Xd(!Xv(i,e)),onClick(){return rt(this,null,function*(){const M=i,{password:v="",password2:m,adminActualAccess:C,hasPassword:w,invalidated:b}=M,x=At(M,["password","password2","adminActualAccess","hasPassword","invalidated"]);if(f){const E=yield ct("add_account",x);if(v)try{yield AS(i.username,v)}catch(k){throw ct("del_account",{username:i.username}).then(),k}t(E==null?void 0:E.username),rr("Account created","success");return}const P=yield ct("set_account",{username:e.username,changes:x});v&&(yield AS(i.username,v)),e.username===s&&(rn.username=i.username),setTimeout(()=>rr("Account modified","success"),1),t(P==null?void 0:P.username)})}}})}function AS(e,t){return rt(this,null,function*(){const n=new vc.SRPRoutines(new vc.SRPParameters),r=yield vc.createVerifierAndSalt(n,e,t);return ct("change_srp_others",{username:e,salt:String(r.s),verifier:String(r.v)}).catch(o=>{if(o.code!==Jde)throw o;return ct("change_password_others",{username:e,newPassword:t})})})}const SC={fieldSeparator:",",lineSeparator:`
|
|
795
|
-
`,quote:'"'},_g={field:0,fieldOffset:0,line:0,lineOffset:0,quoted:!1,appendCell:!1,appendField:!1,appendRow:!1};class eA extends Error{constructor(t,n){super(`Invalid CSV at ${t}:${n}`)}}class uTe{constructor(t=SC){wi(this,"_rows",[]);wi(this,"_row",[]);wi(this,"_cell","");wi(this,"_options",SC);wi(this,"_state",we({},_g));wi(this,"_index",0);wi(this,"_current","");wi(this,"_previous","");wi(this,"_quoteState",we({},_g));this._options=Object.assign({},SC,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 eA(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=we({},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 eA(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=we({},_g),this._index=0,this._current="",this._previous="",this._quoteState=we({},_g)}}function dTe(e){return rt(this,null,function*(){XN(t=>rt(this,null,function*(){const n=t==null?void 0:t[0];if(!n)return;const r=yield ZN(n);if(!r)return;const s=new uTe().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 h=s[p.skipFirstLines||0],y=f(h,we(we({},l),p));return{save:{startIcon:u.createElement(Uh),children:"Go"},fields:[u.createElement(ze,{p:1},"Total lines:",s.length),{k:"skipFirstLines",comp:Vo,min:0,max:s.length-1,typing:!0,md:6,helperText:u.createElement(u.Fragment,{},"First line: ",u.createElement("code",{},h.join(", ")))},{k:"overwriteExistingAccounts",comp:An,md:6},st(we({k:"usernameColumn"},i),{helperText:u.createElement(u.Fragment,{},"First username: ",y.u)}),st(we({k:"passwordColumn"},i),{helperText:u.createElement(u.Fragment,{},"First password: ",y.p)}),st(we({k:"groupColumn"},i),{helperText:u.createElement(u.Fragment,{},"First group: ",y.g)}),st(we({k:"redirectColumn"},i),{helperText:u.createElement(u.Fragment,{},"First redirect: ",y.r)})]}}});if(!a)return;const{close:c}=po({title:"Importing...",Content(){const[p,h]=u.useState(0),[y,v]=u.useState();return u.useEffect(()=>{let m=!1;return setTimeout(()=>rt(this,null,function*(){var P;if(m)return;let C=0,w=0,b=a.skipFirstLines;const x=s.length-b;try{let M=0;for(const E of s){if(m)return;if(b){b--;continue}const k=f(E,a);v(k),h(M++/x),yield ct("add_account",{username:k.u,belongs:(P=k.g)==null?void 0:P.split(","),redirect:k.r,overwrite:a.overwriteExistingAccounts}).then(()=>{if(k.p)return AS(k.u,k.p)},R=>{if(R.code===efe)return w++;C++})}}finally{c();const M=x-C-w,E="Results: "+[ci("",C," failed"),ci("",M," succeeded"),ci("",w," skipped because already present")].filter(Boolean).join(", ");Et(E,!M&&C?"error":C||w?"warning":"success"),e==null||e()}})),()=>{m=!0}},[]),u.createElement(ze,{display:"flex",gap:2,alignItems:"center"},u.createElement(p5,{icon:Jk,progress:p}),y==null?void 0:y.u)}});function f(p,h){return{u:p[h.usernameColumn-1],p:p[h.passwordColumn-1],g:p[h.groupColumn-1],r:p[h.redirectColumn-1]}}}),{multiple:!1,accept:".csv"})})}function fTe(){const{username:e}=js(),{data:t,reload:n,element:r}=Qn("get_accounts"),[o,s]=u.useState([]),i=Array.isArray(o);u.useEffect(()=>{Array.isArray(t==null?void 0:t.list)&&i&&s(o.filter(v=>t.list.find(m=>(m==null?void 0:m.username)===v)))},[t]);const l=t==null?void 0:t.list,a=i&&Ze.find(l,{username:o[0]}),f=Xo("md"),p=!(o.length>0)||!l?null:i&&o.length>1?u.createElement(u.Fragment,{},u.createElement(qr,{},u.createElement(qn,{variant:"h6"},o.length+" selected"),u.createElement(Yn,{onClick:y,startIcon:u.createElement(Tl)},"Remove")),u.createElement(Bh,{},o.map(v=>u.createElement(h2,{key:v},u.createElement(Di,{},v))))):Sl(a||{username:"",hasPassword:o==="new-user",adminActualAccess:!1,invalidated:!0},v=>u.createElement(cTe,{account:v,groups:l.filter(m=>!m.hasPassword).map(m=>m.username),addToBar:f&&[u.createElement(ze,{flex:1}),tA(v,{fontSize:"large",sx:{p:1}}),u.createElement(dn,{icon:o0,title:"Close",onClick:h})],reload:n,done(m){s([m]),n()}}));return u.useEffect(()=>{if(f||!p||!o.length)return;const{close:v}=po({title:Ze.isString(o)?Ze.startCase(o):o.length>1?"Multiple selection":a?(a.hasPassword?"User: ":"Group: ")+a.username:"?",Content:()=>p,onClose:h});return v},[f,o,a]),r||u.createElement(oi,{container:!0,maxWidth:"80em"},u.createElement(oi,{item:!0,xs:12},u.createElement(ze,{display:"flex",flexWrap:"wrap",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},u.createElement(qB,{variant:"contained",startIcon:u.createElement(az),items:[{children:"user",onClick:()=>s("new-user")},{children:"group",onClick:()=>s("new-group")},{children:"from CSV",onClick:()=>dTe(n)}]},"Add"),a0(n),(l==null?void 0:l.length)>0&&u.createElement(qn,{p:1},`${l.length} account(s)`))),u.createElement(oi,{item:!0,md:5},!(l!=null&&l.length)&&u.createElement(Er,{severity:"info"},er`To access administration <u>remotely</u> you will need to create a user account with admin permission`),u.createElement(AB,{multiSelect:!0,sx:{pr:4,pb:2,minWidth:"15em"},selected:i?o:[],onNodeSelect(v,m){s(m)}},l==null?void 0:l.map(v=>{var m,C;return u.createElement(vS,{key:v.username,nodeId:v.username,label:u.createElement(ze,{sx:{display:"flex",flexWrap:"wrap",padding:".2em 0",gap:".5em",alignItems:"center"}},tA(v),v.adminActualAccess&&Wr(iz,"Can login into Admin"),v.username,!!((m=v.belongs)!=null&&m.length)&&u.createElement(ze,{sx:{color:"text.secondary",fontSize:"small"}},"(",(C=v.belongs)==null?void 0:C.join(", "),")"))})}))),f&&p&&u.createElement(oi,{item:!0,md:7},u.createElement(O1,{},u.createElement(D1,{},p))));function h(){s([])}function y(){return rt(this,null,function*(){if(!(o.length>Ze.pull(o,e).length&&!(yield pr(`Will delete the rest but not current account (${e})`)))&&o.length&&(yield pr(`Delete ${o.length} item(s)?`)))try{const v=[];for(const m of o)(yield ct("del_account",{username:m}).then(()=>1,()=>0))||v.push(m);if(n(),v.length)return Et("Following elements couldn't be deleted: "+v.join(", "),"error")}catch(v){yield Et(v)}})}}function tA(e,t={}){return u.createElement(u.Fragment,{},u.createElement(e.hasPassword?lz:Jk,t),e.disabled&&u.createElement(sz))}var oI={},pTe=et;Object.defineProperty(oI,"__esModule",{value:!0});var uz=oI.default=void 0,hTe=pTe(tt()),mTe=Je(),gTe=(0,hTe.default)((0,mTe.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");uz=oI.default=gTe;function vTe(){const{element:e}=Qn("get_config",{only:[]}),{username:t}=js();return e||u.createElement(ze,{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:2},t?u.createElement(u.Fragment,{},"You are logged in as: "+t,u.createElement(To,{icon:P2,size:"large",variant:"contained",onClick:()=>ct("logout").catch(r=>r.code!==Qd&&Et(r))},"I want to logout")):u.createElement(Er,{severity:"info"},"You are not logged in, because authentication is not required on localhost"),u.createElement(To,{icon:uz,size:"large",variant:"contained",color:"warning",confirm:"Stopping the server, this interface won't respond anymore",onClick(){return rt(this,null,function*(){yield ct("quit"),yield Et("Good-bye","success"),location.reload()})}},"Quit HFS"))}function yTe(){const{list:e,error:t,connecting:n,reload:r}=Pl("get_langs"),o=u.useMemo(()=>["en",...Ze.uniq(e.map(l=>l.code))],[e]),s=Xo("md");return u.createElement(u.Fragment,{},s&&u.createElement(Er,{severity:"info"},"Translation is limited to Front-end, it doesn't apply to Admin-panel"),u.createElement(ze,{mt:1,maxWidth:"40em",flex:1,display:"flex",flexDirection:"column"},u.createElement(ze,{mb:1,display:"flex"},u.createElement(Yn,{variant:"contained",startIcon:u.createElement(Uh),onClick:i},"Add"),u.createElement(ze,{flex:1}),u.createElement(bTe,{langs:o})),u.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})=>[u.createElement(dn,{icon:Tl,title:l.embedded?"Cannot delete (embedded)":"Delete",confirm:"Delete?",disabled:l.embedded,onClick(){return rt(this,null,function*(){yield ct("del_lang",Ze.pick(l,"code")),r(),rr("Deleted")})}})]})));function i(){XN(l=>rt(this,null,function*(){if(!l)return;const a={};for(const c of l)a[c.name]=yield ZN(c);try{yield ct("add_langs",{langs:a}),r(),rr("Loaded")}catch(c){yield Et(c)}}),{accept:".json"})}}function bTe({langs:e}){const t="force_lang",{data:n,reload:r,loading:o}=Qn("get_config",{only:[t]}),[s,i]=u.useState();u.useEffect(()=>{var f;return i((f=n==null?void 0:n[t])!=null?f:s)},[n]);const[l,a]=u.useState();return u.createElement(Kr,{fullWidth:!1,disabled:!!o||typeof l=="string",value:l!=null?l:s,onChange(f){return rt(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 sI={},wTe=et;Object.defineProperty(sI,"__esModule",{value:!0});var LS=sI.default=void 0,CTe=wTe(tt()),xTe=Je(),STe=(0,CTe.default)((0,xTe.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");LS=sI.default=STe;var iI={},PTe=et;Object.defineProperty(iI,"__esModule",{value:!0});var dz=iI.default=void 0,ETe=PTe(tt()),kTe=Je(),ITe=(0,ETe.default)((0,kTe.jsx)("path",{d:"M16 18v2H8v-2h8zM11 7.99V16h2V7.99h3L12 4 8 7.99h3z"}),"Upgrade");dz=iI.default=ITe;function nA({updates:e}){const{list:t,updateEntry:n,error:r,updateList:o,initializing:s}=Pl(e?"get_plugin_updates":"get_plugins");u.useEffect(()=>{s||o(l=>Ze.sortBy(l,a=>(a.started?"0":"1")+a.id))},[s]);const i="small";return u.createElement(Yh,{error:e0(r,vz),rows:t.length?t:[],initializing:s,disableColumnSelector:!0,disableColumnMenu:!0,hideFooter:!0,noRows:e&&'No updates available. Only plugins available on "search online" are checked.',columns:[{field:"id",headerName:"name",flex:.3,minWidth:150,renderCell:fz,mergeRender:{other:"description",fontSize:"x-small"}},{field:"version",width:70,hideUnder:"sm"},{field:"description",flex:1,hideUnder:"sm"}],actions:({row:l,id:a})=>e?[u.createElement(dn,{icon:dz,title:l.updated?"Already updated":"Update",disabled:l.updated,size:i,onClick(){return rt(this,null,function*(){yield ct("update_plugin",{id:a,branch:l.branch},{timeout:!1}).catch(y=>{var v;throw y.code!==qx?y:Error("Failed dependencies: "+((v=y.cause)==null?void 0:v.map(m=>ci('plugin "',m.id||m.repo,'" ')+m.error).join("; ")))}),n({id:a},{updated:!0}),rr("Plugin updated")})}})]:[u.createElement(dn,l.started?{icon:LS,title:u.createElement(ze,{"aria-hidden":!0},`Stop ${a}`,u.createElement("br"),"Started "+new Date(l.started).toLocaleString()),"aria-label":`Stop ${a}`,size:i,color:"success",onClick(){return rt(this,null,function*(){yield ct("stop_plugin",{id:a}),rr("Plugin stopped",u.createElement(LS,{color:"warning"}))})}}:{icon:n0,title:`Start ${a}`,size:i,onClick:()=>hz(a)}),u.createElement(dn,{icon:_2,title:"Options",size:i,disabled:!l.started&&"Start plugin to access options"||!l.config&&"No options available for this plugin",progress:!1,onClick(){return rt(this,null,function*(){const y=yield ct("get_plugin",{id:a});let v=y.config;const m=yield uh({title:`Options for ${a}`,form:w=>({before:u.createElement(ze,{mx:2,mb:3},l.description),fields:pz(l.config),save:{children:"Save and close"},barSx:{gap:1},addToBar:[u.createElement(To,{variant:"outlined",onClick:()=>C(w)},"Save")]}),values:y.config,dialogProps:Ze.merge({sx:{m:"auto"}},l.configDialog)});if(m&&!Ze.isEqual(v,m))return C(m);function C(w){return rt(this,null,function*(){yield ct("set_plugin",{id:a,config:w}),Object.assign(v,w),rr("Configuration saved")})}})}}),u.createElement(dn,{icon:Tl,title:"Uninstall",size:i,confirm:"Remove?",onClick(){return rt(this,null,function*(){yield ct("uninstall_plugin",{id:a}),rr("Plugin uninstalled")})}})]})}function fz({row:e,value:t}){const{repo:n}=e;return u.createElement(u.Fragment,{},r(e.badApi,!0),r(e.error),n!=null&&n.includes("//")?u.createElement(ts,{href:n,target:"plugin"},t):n?Sl(n==null?void 0:n.split("/"),o=>u.createElement(u.Fragment,{},u.createElement(ts,{href:"https://github.com/"+n,target:"plugin"},o[1])," by ",o[0])):t);function r(o,s=!1){return o&&u.createElement(_l,{title:o,children:u.createElement(s0,{fontSize:"small",color:s?"warning":"error",sx:{ml:-.5,mr:.5}})})}}function pz(e){return Object.entries(e).map(([t,n])=>{if(!Ze.isPlainObject(n))return n;let c=n,{type:r,defaultValue:o,fields:s,frontend:i}=c,l=At(c,["type","defaultValue","fields","frontend"]);const a=MTe[r];return a===xh&&(s=pz(s)),o!==void 0&&r==="boolean"&&(l.placeholder=`Default value is ${JSON.stringify(o)}`),we({k:t,comp:a,fields:s},l)})}const MTe={string:Wi,number:Vo,boolean:An,select:Kr,multiselect:l0,array:xh,real_path:Dp};function hz(e){return rt(this,null,function*(){try{return yield ct("start_plugin",{id:e}),rr("Plugin started",u.createElement(n0,{color:"success"})),!0}catch(t){Et(`Plugin ${e} didn't start, with error: ${String((t==null?void 0:t.message)||t)}`,"error")}})}var lI={},_Te=et;Object.defineProperty(lI,"__esModule",{value:!0});var mz=lI.default=void 0,TTe=_Te(tt()),$Te=Je(),RTe=(0,TTe.default)((0,$Te.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");mz=lI.default=RTe;function OTe(){const[e,t]=u.useState(""),n=R2(e,1e3),{list:r,error:o,initializing:s}=Pl("get_online_plugins",{text:n}),i=js();return u.createElement(u.Fragment,{},u.createElement(Wi,{value:e,onChange:t,start:u.createElement(mz),typing:!0,label:"Search text"}),u.createElement(Yh,{error:e0(o,vz),rows:r.length?r:[],noRows:"No compatible plugins have been found",initializing:s,columnVisibilityModel:i.onlinePluginsColumns,onColumnVisibilityModelChange:a=>Object.assign(rn.onlinePluginsColumns,a),columns:[{field:"id",headerName:"name",flex:1,renderCell:fz,mergeRender:{other:"description",fontSize:"x-small"}},{field:"version",width:70},{field:"pushed_at",headerName:"last update",valueGetter:({value:a})=>new Date(a).toLocaleDateString()},{field:"license",width:80},{field:"description",flex:3,hideUnder:"sm"},{field:"stargazers_count",width:50,headerName:"stars",align:"center",hideUnder:"sm"}],actions:({row:a,id:c})=>[u.createElement(dn,{icon:mE,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 rt(this,null,function*(){if(a.missing&&!(yield pr("This will also install: "+Ze.map(a.missing,"repo").join(", "))))return;const p=a.branch||a.default_branch;l(c,p).catch(h=>{if(h.code!==qx)return Et(h);const y=u.createElement(u.Fragment,{},"This plugin has some dependencies unmet:",h.data.map(v=>u.createElement("li",{key:v.repo},v.repo+": "+v.error)));return Et(y,"error")})})}})]}));function l(a,c){return rt(this,null,function*(){try{const f=yield ct("download_plugin",{id:a,branch:c,stop:!0},{timeout:!1});(yield pr(`Plugin ${a} downloaded`,{confirmText:"Start"}))&&(yield hz(f.id))}catch(f){let p=!1;if(f.code===qx)for(const h of f.cause)h.error==="missing"&&(rr("Installing dependency: "+h.repo),yield l(h.repo),p=!0);if(p)return l(a,c);throw f}})}}const gz={Installed:nA,"Search online|Search":OTe,"Check updates|Updates":()=>u.createElement(nA,{updates:!0})},DTe=Object.keys(gz),ATe=Object.values(gz),vz={ENOTFOUND:"Cannot reach github.com"};function LTe(){const[e,t]=u.useState(0),n=!Xo("sm");return u.createElement(u.Fragment,{},u.createElement(y2,{value:e,onChange(r,o){t(o)}},DTe.map(r=>u.createElement(Wv,{key:r,label:r.split("|").slice(n?-1:0)[0]}))),u.createElement(ATe[e]))}const FTe={top:"Top of HTML Body",bottom:"Bottom of HTML Body"};function NTe(){const{data:e,reload:t}=Qn("get_custom_html"),[n,r]=u.useState(""),[o,s]=u.useState({}),[i,l]=u.useState({});u.useEffect(()=>e&&l(e==null?void 0:e.sections),[e]),u.useEffect(()=>s(i),[i]);const a=u.useMemo(()=>{const p=Ze.sortBy(Object.keys(o),h=>!isNaN(+h));return p.includes(n)||r(Ze.findKey(o,Boolean)||(p==null?void 0:p[0])||""),p.map(h=>{var y;return{value:h,label:(FTe[h]||ci("HTTP ",rfe[h])||Ze.startCase(h))+((y=o[h])!=null&&y.trim()?" *":"")}})},[R2(o,500)]),c=u.useMemo(()=>!Ze.isEqualWith(i,o,(p,h)=>!p&&!h||void 0),[i,o]);return u.createElement(u.Fragment,{},u.createElement(Er,{severity:"info"},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. "),xa("customization","More help")),u.createElement(ze,{display:"flex",alignItems:"center",gap:1,mb:1},u.createElement(Kr,{label:"Section",value:n,options:a,onChange:r}),a0(t),u.createElement(dn,{icon:Vh,title:`Save
|
|
796
|
-
(ctrl+enter)`,sx:Xd(c),onClick:f})),u.createElement(Kk,{value:(o==null?void 0:o[n])||"",style:{background:"#8881"},onValueChange(p){s(h=>st(we({},h),{[n]:p}))},onKeyDown(p){["s","Enter"].includes(z1(p))&&(f().then(),p.preventDefault())}}));function f(){return ct("set_custom_html",{sections:o}).then(()=>l(o))}}var aI={},BTe=et;Object.defineProperty(aI,"__esModule",{value:!0});var yz=aI.default=void 0,zTe=BTe(tt()),Tg=Je(),VTe=(0,zTe.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");yz=aI.default=VTe;var cI={},jTe=et;Object.defineProperty(cI,"__esModule",{value:!0});var bz=cI.default=void 0,HTe=jTe(tt()),rA=Je(),UTe=(0,HTe.default)([(0,rA.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,rA.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");bz=cI.default=UTe;var uI={},WTe=et;Object.defineProperty(uI,"__esModule",{value:!0});var wz=uI.default=void 0,GTe=WTe(tt()),oA=Je(),KTe=(0,GTe.default)([(0,oA.jsx)("path",{d:"M15 15H5v4h14v-4h-4zm-7 3H6v-2h2v2zm3.5 0h-2v-2h2v2zm3.5 0h-2v-2h2v2z",opacity:".3"},"0"),(0,oA.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");wz=uI.default=KTe;var dI={},qTe=et;Object.defineProperty(dI,"__esModule",{value:!0});var Cz=dI.default=void 0,YTe=qTe(tt()),QTe=Je(),XTe=(0,YTe.default)((0,QTe.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");Cz=dI.default=XTe;var fI={},ZTe=et;Object.defineProperty(fI,"__esModule",{value:!0});var xz=fI.default=void 0,JTe=ZTe(tt()),e$e=Je(),t$e=(0,JTe.default)((0,e$e.jsx)("path",{d:"M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"}),"Storage");xz=fI.default=t$e;const sA=d5.filter(e=>Bpe.includes(e.code)),iA="https://portforward.com/",PC=1080,EC=`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 n$e(){var R,O,_,L;const[e,t]=u.useState(),[n,r]=u.useState(!1),[o,s]=u.useState(!1),i=Qn("get_status"),l=Qn("get_config",{only:["base_url"]}),a=Sl([(O=(R=i.data)==null?void 0:R.http)==null?void 0:O.error,(L=(_=i.data)==null?void 0:_.https)==null?void 0:L.error],([B,z])=>B&&z?"error":B||z?"warning":"success"),c=Qn("get_nat",{},{timeout:20}),{data:f}=c,p=f==null?void 0:f.internalPort,h=(f==null?void 0:f.mapped)&&f.mapped.private.port!==p&&f.mapped.private.port,y=(f==null?void 0:f.externalIp)&&(f==null?void 0:f.publicIps)&&!f.publicIps.includes(f.externalIp),v=$N();return u.useEffect(()=>{v.state&&P(!0).then()},[v.state]),u.createElement(qr,{vert:!0,gap:"2em",maxWidth:"40em"},u.createElement(Er,{severity:"info"},"This page makes sure your site is working correctly on the Internet"),b(),x(),C(),m());function m(){const B=u.useMemo(()=>Ze.sortBy(sA,"name").map(z=>({value:z.code,label:z.name})),[sA]);return u.createElement(IC,{title:"Geo IP",icon:Gv},u.createElement(wS,{keys:[Dn.geo_enable,Dn.geo_allow,Dn.geo_list,Dn.geo_allow_unknown],form:z=>{var T;return{fields:[{k:Dn.geo_enable,comp:An,label:"Enable",helperText:"Necessary database will be downloaded every month (2MB)"},...z[Dn.geo_enable]?[{k:Dn.geo_allow,comp:Kr,label:"Rule",options:{"no restriction":null,"block selected countries":!1,"allow selected countries":!0}},z[Dn.geo_allow]!=null&&{k:Dn.geo_list,comp:l0,label:`Selected countries (${((T=z[Dn.geo_list])==null?void 0:T.length)||0})`,placeholder:"none",options:B,renderOption:$=>u.createElement(ey,{code:$.value,long:!0}),clearable:!0,getError:$=>z[Dn.geo_allow]&&!($!=null&&$.length)&&"Cannot be empty"},z[Dn.geo_allow]!=null&&{k:Dn.geo_allow_unknown,comp:Kr,label:"When country cannot be determined",options:{Allow:!0,Block:!1}}]:[]]}}}))}function C(){const[B,z]=u.useState(),T=Qn("get_cert");if(u.useEffect(()=>{ct("get_config",{only:["acme_domain","acme_email","acme_renew"]}).then(z)},[]),!i||!B)return u.createElement(Vi);const{https:$}=i.data||{},F=($==null?void 0:$.port)===Qde,j=$==null?void 0:$.error;return c.element||i.element||u.createElement(IC,{title:"HTTPS",icon:u0,color:$!=null&&$.listening&&!j?"success":"warning"},j?u.createElement(Er,{severity:"warning"},j):F&&u.createElement(al,{onClick:w},"Not enabled"),T.element||Sl(T.data,N=>{var H,K;return N.none?u.createElement(al,{onClick:()=>xy().then(T.reload)},"No certificate configured"):u.createElement(ze,{},u.createElement(FE,{fontSize:"small",sx:{mr:1,verticalAlign:"middle"}}),"Current certificate",u.createElement("ul",{},u.createElement("li",{},"Domain: ",((H=N.altNames)==null?void 0:H.join(" + "))||"-"),u.createElement("li",{},"Issuer: ",((K=N.issuer)==null?void 0:K.O)||u.createElement("i",{},"self-signed")),u.createElement("li",{},"Validity: ",["validFrom","validTo"].map(Y=>Yx(N[Y])).join(" – "))))}),u.createElement(ih),u.createElement(Hc,{gap:1,gridProps:{rowSpacing:1},values:B,set(N,H){z(K=>{const Y=st(we({},K),{[H]:N});return ct("set_config",{values:Y}),Y})},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:An,disabled:!B.acme_domain}],save:{children:"Request",startIcon:u.createElement(Cz),onClick(){return rt(this,null,function*(){var te;const[N,...H]=B.acme_domain.split(",");N===((te=T.data.subject)==null?void 0:te.CN)&&Number(new Date(T.data.validTo))-Date.now()>=30*lfe&&!(yield pr("Your certificate is still good",{confirmText:"Make a new one anyway"}))||!(yield pr("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:N}).catch(Q=>pr(String(Q),{confirmText:"Continue anyway"})))===!1||(yield ct("make_cert",{domain:N,altNames:H,email:B.acme_email},{timeout:2e4}).then(()=>rt(this,null,function*(){yield Et("Certificate created","success"),F&&(yield w()),T.reload()}),Et))})}}}))}function w(){return rt(this,null,function*(){if(!(yield pr(`HTTPS is currently disabled.
|
|
798
|
-
Full configuration is available in the Options page.`,{confirmText:"Enable it"})))return;const B=u5();try{yield ct("set_config",{values:{https_port:443}}),yield zh(1e3),i.reload()}finally{B()}})}function b(){var $;const B=($=l.data)==null?void 0:$.base_url,z=B&&new URL(B).hostname,T=!kfe(z)&&z;return l.element||u.createElement(IC,{icon:Gv,title:"Address / Domain"},u.createElement(qr,{flexWrap:"wrap"},B||"Automatic, not configured",u.createElement(qr,{},u.createElement(To,{size:"small",variant:"outlined",onClick:()=>void G6().then(l.reload)},"Change"),T&&u.createElement(To,{size:"small",variant:"outlined",onClick:()=>ct("check_domain",{domain:T}).then(()=>Et("Domain seems ok","success"))},"Check"))),u.createElement(wS,{keys:["force_base_url"],saveOnChange:!0,form:{fields:[{k:"force_base_url",comp:An,label:"Accept requests only using domain (and localhost)"}]}}))}function x(){if(c.error)return c.element;if(!f)return u.createElement(Vi);const B=f==null?void 0:f.publicIps.includes(f==null?void 0:f.localIp);return u.createElement(qr,{justifyContent:"space-around"},u.createElement(kC,{name:"Server",icon:B?xz:yz,color:a,ip:f==null?void 0:f.localIp,below:p&&u.createElement(ze,{fontSize:"smaller"},"port ",p)}),!B&&u.createElement(lA),!B&&u.createElement(kC,{name:"Router",icon:wz,ip:f==null?void 0:f.gatewayIp,color:(f==null?void 0:f.mapped)&&(h?"warning":"success"),below:o?u.createElement(jv,{sx:{height:"1em"}}):u.createElement(al,{fontSize:"smaller",display:"block",onClick:M},"port ",h?"is wrong":(f==null?void 0:f.externalPort)||"unknown")}),u.createElement(lA),u.createElement(kC,{name:"Internet",icon:bz,ip:f==null?void 0:f.publicIps,color:e?"success":e===!1?"error":y?"warning":void 0,below:n?u.createElement(jv,{sx:{height:"1em"}}):u.createElement(ze,{fontSize:"smaller"},y&&u.createElement(al,{display:"block",onClick:()=>Et(EC,"warning")},"Double NAT"),e?"Working!":e===!1?"Failed!":""," ",(f==null?void 0:f.publicIps.length)>0&&f.internalPort&&u.createElement(al,{onClick:()=>P()},"Verify"))}))}function P(B=!1){return rt(this,null,function*(){var T;yield c.loading;const z=c.getData();if(z&&(t(void 0),!(!B&&!(yield pr("This test will check if your server is working properly on the Internet"))))){r(!0);try{const $=(T=l.data)==null?void 0:T.base_url,F=$&&(yield ct("self_check",{url:$}).catch(()=>Et(er(`Sorry, we couldn't verify your configured address ${$} 😰
|
|
799
|
-
still, we are going to test your IP address 🤞`),"warning")));if(F!=null&&F.success)return t(!0),Et(u.createElement(ze,{},"Your server is responding correctly over the Internet:",u.createElement("ul",{},u.createElement("li",{},F.url))),"success");(F==null?void 0:F.success)===!1&&(yield Et(er(`Your configured address ${$} doesn't seem to work 😰
|
|
800
|
-
still, we are going to test your IP address 🤞`),"warning"));const j=yield ct("self_check",{});if(j.some(K=>K.success)){t(!0);const K=F.success===!1&&er(`Your server is responding over the Internet 👍
|
|
801
|
-
but not with configured address ${$} 👎
|
|
802
|
-
just on your IP:`);return Et(u.createElement(ze,{},K||"Your server is responding correctly over the Internet:",u.createElement("ul",{},...j.map(Y=>u.createElement("li",{},Y.url)))),K?"warning":"success")}if(t(!1),h)return E().then(v);if(y)return Et(EC,"warning");const A="We couldn't reach your server from the Internet. ";if(z.upnp&&!z.mapped)return pr(A+"Try port-forwarding on your router",{confirmText:"Fix it"}).then(K=>rt(this,null,function*(){if(K){try{yield k(z.internalPort,"","")}catch(Y){yield k(PC,"")}rr("Port forwarded, now we verify again","success"),v()}}));const N=yield ct("get_config",{only:[Dn.geo_enable,Dn.geo_allow]}),{close:H}=Et(u.createElement(ze,{},A+"Possible causes:",u.createElement("ul",{},N[Dn.geo_enable]&&N[Dn.geo_allow]!=null&&u.createElement("li",{},"You may be blocking a country from where the test is performed"),!z.upnp&&u.createElement("li",{},"Your router may need to be configured. ",u.createElement(ts,{href:iA,target:"help"},"How?")),u.createElement("li",{},"There could be a firewall, try configuring or disabling it."),(z.externalPort||z.internalPort)<=1024&&u.createElement("li",{},"Your Internet Provider may be blocking ports under 1024. ",z.upnp&&u.createElement(Yn,{size:"small",onClick(){H(),k(PC).then(v)}},"Try "+PC)),z.mapped&&u.createElement("li",{},"A bug in your modem/router, try rebooting it."),u.createElement("li",{},EC))),"warning")}catch($){Et($)}finally{r(!1)}}})}function M(){return rt(this,null,function*(){if(!f)return;if(h)return(yield pr(`There is a port-forwarding but it is pointing to the wrong port (${h})`,{confirmText:"Fix it"}))&&E();if(!f.upnp)return Et(u.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](${iA}).`)),"info");const B=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 (${p}), or a different one.`),{value:f.externalPort||p,field:{label:"Port seen from the Internet",comp:Vo},addToBar:f.mapped&&[u.createElement(Yn,{color:"warning",onClick:z},"Remove")],dialogProps:{sx:{maxWidth:"20em"}}});B&&(yield k(Number(B),"Port forwarded"));function z(){ji(),k(0,"Port removed")}})}function E(){return f!=null&&f.externalPort?k(f.externalPort,"Forwarding corrected"):Et("externalPort not found","error")}function k(B,z="",T="Operation failed"){return rt(this,null,function*(){s(!0);try{yield ct("map_port",{external:B}),c.reload(),z&&rr(z,"success"),t(void 0)}catch($){if(T){const F=B&&Math.min(B,f.internalPort)<1024,j=T+(F?". Some routers refuse to work with ports under 1024.":"");yield Et(j,"error")}throw $}finally{s(!1)}})}}function lA(){return u.createElement(ze,{flex:1,className:"animated-dashed-line"})}function kC({name:e,icon:t,color:n,ip:r,below:o}){const s="min(20vw, 10vh)";return u.createElement(ze,{display:"inline-block",textAlign:"center"},u.createElement(t,{color:n,sx:{fontSize:s,mb:"-0.1em"}}),u.createElement(ze,{fontSize:"larger"},e),u.createElement(ze,{fontSize:"smaller",whiteSpace:"pre-wrap"},J1(r).join(`
|
|
805
|
-
`)||"unknown"),o)}function IC({title:e,icon:t,color:n,children:r}){return u.createElement(O1,{},u.createElement(D1,{},u.createElement(qr,{vert:!0},u.createElement(ze,{fontSize:"x-large"},t&&u.createElement(t,{color:n,sx:{mr:1,mb:"2px"}}),e),r)))}const iv=[{path:"",icon:N1,label:"Home",comp:o_e},{path:"fs",icon:yN,label:"Shared files",comp:TMe},{path:"accounts",icon:CN,comp:fTe},{path:"options",icon:_2,comp:E_e},{path:"internet",icon:Gv,comp:n$e},{path:"monitoring",icon:xN,comp:A_e,noPaddingOnMobile:!0},{path:"logs",icon:wN,comp:R_e,noPaddingOnMobile:!0},{path:"language",icon:SN,comp:yTe},{path:"plugins",icon:bN,comp:LTe,noPaddingOnMobile:!0},{path:"html",icon:PN,label:"Custom HTML",comp:NTe},{path:"logout",icon:P2,comp:vTe}];function aA({onSelect:e}){const{VERSION:t}=t0(),n="hfs-logo.svg",r=B1().height<700;return u.createElement(ze,{display:"flex",flexDirection:"column",bgcolor:"primary.main",minHeight:"100%"},u.createElement(Bh,{sx:{pr:1,py:0,color:"primary.contrastText",height:"100vh",boxSizing:"border-box",overflowY:"auto",position:"sticky",top:0,display:"flex",flexDirection:"column","&>a":{flex:"0"}}},u.createElement(ze,{display:"flex",px:2,py:.5,gap:2,alignItems:"center"},u.createElement(ze,{fontSize:"min(3rem, max(5vw, 4vh))"},"HFS"),u.createElement(ze,{fontSize:"small"},eE(t||"",/-/,()=>u.createElement("br"))),r&&u.createElement("img",{src:n,style:{height:"2.5em"}})),iv.map(o=>u.createElement(Sie,{key:o.path,to:o.path,component:dq,onClick:e,style:({isActive:s})=>s?{textDecoration:"underline"}:{},children:void 0},o.icon&&u.createElement(hl,{sx:{color:"primary.contrastText",minWidth:48}},u.createElement(o.icon)),u.createElement(Di,{sx:{whiteSpace:"nowrap"},primary:Sz(o)}))),!r&&u.createElement(ze,{sx:{flex:1,opacity:.7,background:`url(${n}) no-repeat bottom`,backgroundSize:"contain",margin:2}})))}function Sz(e){var t;return e&&((t=e.label)!=null?t:Ze.capitalize(e.path))}function r$e({children:e}){const{loginRequired:t}=js();return t===Q1?u.createElement(Hh,{},u.createElement(Er,{severity:"error"},"Admin-panel only for localhost"),u.createElement(ze,{mt:2,fontSize:"small"},"because no admin account was configured")):t?u.createElement(o$e):u.createElement(u.Fragment,{},e)}function o$e(){var i;const[e,t]=u.useState({username:"",password:""}),[n,r]=u.useState(""),o=u.useRef(),s=(i=o.current)==null?void 0:i.querySelector('input[value=""]');return u.useEffect(()=>{var a;return(a=s==null?void 0:s.focus)==null?void 0:a.call(s)},[s]),u.createElement(Hh,{},u.createElement(Hc,{formRef:o,values:e,set(a,c){t(f=>st(we({},f),{[c]:a}))},fields:[{k:"username",autoComplete:"username",autoFocus:!0,required:!0},{k:"password",type:"password",autoComplete:"current-password",required:!0}],addToBar:[n&&u.createElement(Er,{severity:"error",sx:{flex:1}},n)],saveOnEnter:!0,save:{children:"Enter",startIcon:null,onClick(){return rt(this,null,function*(){try{r(""),yield s$e(e.username,e.password)}catch(a){r(String(a))}})}}}))}function s$e(e,t){return rt(this,null,function*(){const n=yield yde(e,t,ct).catch(r=>{throw(r==null?void 0:r.code)===Qd?"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";rn.loginRequired=!1,Pz(n)})}const Pz=Afe(rn);Pz(t0().session);var pI={},i$e=et;Object.defineProperty(pI,"__esModule",{value:!0});var Ez=pI.default=void 0,l$e=i$e(tt()),a$e=Je(),c$e=(0,l$e.default)((0,a$e.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");Ez=pI.default=c$e;var kz={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ln,function(){var n="week",r="year";return function(o,s,i){var l=s.prototype;l.week=function(a){if(a===void 0&&(a=null),a!==null)return this.add(7*(a-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=i(this).startOf(r).add(1,r).date(c),p=i(this).endOf(n);if(f.isBefore(p))return 1}var h=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),y=this.diff(h,n,!0);return y<0?i(this).startOf("week").week():Math.ceil(y)},l.weeks=function(a){return a===void 0&&(a=null),this.week(a)}}})})(kz);var u$e=kz.exports;const d$e=pi(u$e);var Iz={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ln,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,s=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,l={},a=function(m){return(m=+m)+(m>68?1900:2e3)},c=function(m){return function(C){this[m]=+C}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var w=C.match(/([+-]|\d\d)/g),b=60*w[1]+(+w[2]||0);return b===0?0:w[0]==="+"?-b:b}(m)}],p=function(m){var C=l[m];return C&&(C.indexOf?C:C.s.concat(C.f))},h=function(m,C){var w,b=l.meridiem;if(b){for(var x=1;x<=24;x+=1)if(m.indexOf(b(x,0,C))>-1){w=x>12;break}}else w=m===(C?"pm":"PM");return w},y={A:[i,function(m){this.afternoon=h(m,!1)}],a:[i,function(m){this.afternoon=h(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[o,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[s,c("seconds")],ss:[s,c("seconds")],m:[s,c("minutes")],mm:[s,c("minutes")],H:[s,c("hours")],h:[s,c("hours")],HH:[s,c("hours")],hh:[s,c("hours")],D:[s,c("day")],DD:[o,c("day")],Do:[i,function(m){var C=l.ordinal,w=m.match(/\d+/);if(this.day=w[0],C)for(var b=1;b<=31;b+=1)C(b).replace(/\[|\]/g,"")===m&&(this.day=b)}],M:[s,c("month")],MM:[o,c("month")],MMM:[i,function(m){var C=p("months"),w=(p("monthsShort")||C.map(function(b){return b.slice(0,3)})).indexOf(m)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[i,function(m){var C=p("months").indexOf(m)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(m){this.year=a(m)}],YYYY:[/\d{4}/,c("year")],Z:f,ZZ:f};function v(m){var C,w;C=m,w=l&&l.formats;for(var b=(m=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,_,L){var B=L&&L.toUpperCase();return _||w[L]||n[L]||w[B].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(z,T,$){return T||$.slice(1)})})).match(r),x=b.length,P=0;P<x;P+=1){var M=b[P],E=y[M],k=E&&E[0],R=E&&E[1];b[P]=R?{regex:k,parser:R}:M.replace(/^\[|\]$/g,"")}return function(O){for(var _={},L=0,B=0;L<x;L+=1){var z=b[L];if(typeof z=="string")B+=z.length;else{var T=z.regex,$=z.parser,F=O.slice(B),j=T.exec(F)[0];$.call(_,j),O=O.replace(j,"")}}return function(A){var N=A.afternoon;if(N!==void 0){var H=A.hours;N?H<12&&(A.hours+=12):H===12&&(A.hours=0),delete A.afternoon}}(_),_}}return function(m,C,w){w.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(a=m.parseTwoDigitYear);var b=C.prototype,x=b.parse;b.parse=function(P){var M=P.date,E=P.utc,k=P.args;this.$u=E;var R=k[1];if(typeof R=="string"){var O=k[2]===!0,_=k[3]===!0,L=O||_,B=k[2];_&&(B=k[2]),l=this.$locale(),!O&&B&&(l=w.Ls[B]),this.$d=function(F,j,A){try{if(["x","X"].indexOf(j)>-1)return new Date((j==="X"?1e3:1)*F);var N=v(j)(F),H=N.year,K=N.month,Y=N.day,te=N.hours,Q=N.minutes,X=N.seconds,J=N.milliseconds,se=N.zone,Z=new Date,he=Y||(H||K?1:Z.getDate()),ne=H||Z.getFullYear(),re=0;H&&!K||(re=K>0?K-1:Z.getMonth());var me=te||0,ce=Q||0,Se=X||0,ke=J||0;return se?new Date(Date.UTC(ne,re,he,me,ce,Se,ke+60*se.offset*1e3)):A?new Date(Date.UTC(ne,re,he,me,ce,Se,ke)):new Date(ne,re,he,me,ce,Se,ke)}catch(ae){return new Date("")}}(M,R,E),this.init(),B&&B!==!0&&(this.$L=this.locale(B).$L),L&&M!=this.format(R)&&(this.$d=new Date("")),l={}}else if(R instanceof Array)for(var z=R.length,T=1;T<=z;T+=1){k[1]=R[T-1];var $=w.apply(this,k);if($.isValid()){this.$d=$.$d,this.$L=$.$L,this.init();break}T===z&&(this.$d=new Date(""))}else x.call(this,P)}}})})(Iz);var f$e=Iz.exports;const p$e=pi(f$e);var Mz={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ln,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,s){var i=o.prototype,l=i.format;s.en.formats=n,i.format=function(a){a===void 0&&(a="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,f=function(p,h){return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(y,v,m){var C=m&&m.toUpperCase();return v||h[m]||n[m]||h[C].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(w,b,x){return b||x.slice(1)})})}(a,c===void 0?{}:c);return l.call(this,f)}}})})(Mz);var h$e=Mz.exports;const m$e=pi(h$e);var _z={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ln,function(){return function(n,r,o){r.prototype.isBetween=function(s,i,l,a){var c=o(s),f=o(i),p=(a=a||"()")[0]==="(",h=a[1]===")";return(p?this.isAfter(c,l):!this.isBefore(c,l))&&(h?this.isBefore(f,l):!this.isAfter(f,l))||(p?this.isBefore(c,l):!this.isAfter(c,l))&&(h?this.isAfter(f,l):!this.isBefore(f,l))}}})})(_z);var g$e=_z.exports;const v$e=pi(g$e);$r.extend(p$e);$r.extend(m$e);$r.extend(v$e);const y$e=cB(["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"]),b$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"},w$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"},MC=["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
|
-
`),cA=["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
|
-
`),C$e=(e,t)=>t?(...n)=>e(...n).locale(t):e;class x$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=b$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(MC);return $r.utc(s)},this.createTZDate=(s,i)=>{if(!this.hasUTCPlugin())throw new Error(MC);if(!this.hasTimezonePlugin())throw new Error(cA);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&&(y$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 c=s.tz(this.cleanTimezone(i),!0);return((l=c.$offset)!=null?l:0)===((a=s.$offset)!=null?a:0)?s:c}return s},this.date=s=>s===null?null:this.dayjs(s),this.dateWithTimezone=(s,i)=>{if(s===null)return null;let l;return i==="UTC"?l=this.createUTCDate(s):i==="system"||i==="default"&&!this.hasTimezonePlugin()?l=this.createSystemDate(s):l=this.createTZDate(s,i),this.locale===void 0?l:l.locale(this.locale)},this.getTimezone=s=>{if(this.hasTimezonePlugin()){var i;const l=(i=s.$x)==null?void 0:i.$timezone;if(l)return l}return this.hasUTCPlugin()&&s.isUTC()?"UTC":"system"},this.setTimezone=(s,i)=>{if(this.getTimezone(s)===i)return s;if(i==="UTC"){if(!this.hasUTCPlugin())throw new Error(MC);return s.utc()}if(i==="system")return s.local();if(!this.hasTimezonePlugin()){if(i==="default")return s;throw new Error(cA)}return $r.tz(s,this.cleanTimezone(i))},this.toJsDate=s=>s.toDate(),this.parseISO=s=>this.dayjs(s),this.toISO=s=>s.toISOString(),this.parse=(s,i)=>s===""?null:this.dayjs(s,i,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=s=>{const i=this.getLocaleFormats(),l=a=>a.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(c,f,p)=>f||p.slice(1));return s.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(a,c,f)=>{const p=f&&f.toUpperCase();return c||i[f]||l(i[p])})},this.getFormatHelperText=s=>this.expandFormat(s).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=s=>s===null,this.isValid=s=>this.dayjs(s).isValid(),this.format=(s,i)=>this.formatByString(s,this.formats[i]),this.formatByString=(s,i)=>this.dayjs(s).format(i),this.formatNumber=s=>s,this.getDiff=(s,i,l)=>s.diff(i,l),this.isEqual=(s,i)=>s===null&&i===null?!0:this.dayjs(s).toDate().getTime()===this.dayjs(i).toDate().getTime(),this.isSameYear=(s,i)=>this.isSame(s,i,"YYYY"),this.isSameMonth=(s,i)=>this.isSame(s,i,"YYYY-MM"),this.isSameDay=(s,i)=>this.isSame(s,i,"YYYY-MM-DD"),this.isSameHour=(s,i)=>s.isSame(i,"hour"),this.isAfter=(s,i)=>s>i,this.isAfterYear=(s,i)=>this.hasUTCPlugin()?!this.isSameYear(s,i)&&s.utc()>i.utc():s.isAfter(i,"year"),this.isAfterDay=(s,i)=>this.hasUTCPlugin()?!this.isSameDay(s,i)&&s.utc()>i.utc():s.isAfter(i,"day"),this.isBefore=(s,i)=>s<i,this.isBeforeYear=(s,i)=>this.hasUTCPlugin()?!this.isSameYear(s,i)&&s.utc()<i.utc():s.isBefore(i,"year"),this.isBeforeDay=(s,i)=>this.hasUTCPlugin()?!this.isSameDay(s,i)&&s.utc()<i.utc():s.isBefore(i,"day"),this.isWithinRange=(s,[i,l])=>s>=i&&s<=l,this.startOfYear=s=>this.adjustOffset(s.startOf("year")),this.startOfMonth=s=>this.adjustOffset(s.startOf("month")),this.startOfWeek=s=>this.adjustOffset(s.startOf("week")),this.startOfDay=s=>this.adjustOffset(s.startOf("day")),this.endOfYear=s=>this.adjustOffset(s.endOf("year")),this.endOfMonth=s=>this.adjustOffset(s.endOf("month")),this.endOfWeek=s=>this.adjustOffset(s.endOf("week")),this.endOfDay=s=>this.adjustOffset(s.endOf("day")),this.addYears=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"year"):s.add(i,"year")),this.addMonths=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"month"):s.add(i,"month")),this.addWeeks=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"week"):s.add(i,"week")),this.addDays=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"day"):s.add(i,"day")),this.addHours=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"hour"):s.add(i,"hour")),this.addMinutes=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"minute"):s.add(i,"minute")),this.addSeconds=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"second"):s.add(i,"second")),this.getYear=s=>s.year(),this.getMonth=s=>s.month(),this.getDate=s=>s.date(),this.getHours=s=>s.hour(),this.getMinutes=s=>s.minute(),this.getSeconds=s=>s.second(),this.getMilliseconds=s=>s.millisecond(),this.setYear=(s,i)=>this.adjustOffset(s.set("year",i)),this.setMonth=(s,i)=>this.adjustOffset(s.set("month",i)),this.setDate=(s,i)=>this.adjustOffset(s.set("date",i)),this.setHours=(s,i)=>this.adjustOffset(s.set("hour",i)),this.setMinutes=(s,i)=>this.adjustOffset(s.set("minute",i)),this.setSeconds=(s,i)=>this.adjustOffset(s.set("second",i)),this.setMilliseconds=(s,i)=>this.adjustOffset(s.set("millisecond",i)),this.getDaysInMonth=s=>s.daysInMonth(),this.getNextMonth=s=>this.addMonths(s,1),this.getPreviousMonth=s=>this.addMonths(s,-1),this.getMonthArray=s=>{const l=[s.startOf("year")];for(;l.length<12;){const a=l[l.length-1];l.push(this.addMonths(a,1))}return l},this.mergeDateAndTime=(s,i)=>s.hour(i.hour()).minute(i.minute()).second(i.second()),this.getWeekdays=()=>{const s=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(i=>this.formatByString(this.addDays(s,i),"dd"))},this.getWeekArray=s=>{const i=this.setLocaleToValue(s),l=i.startOf("month").startOf("week"),a=i.endOf("month").endOf("week");let c=0,f=l;const p=[];for(;f<a;){const h=Math.floor(c/7);p[h]=p[h]||[],p[h].push(f),f=this.addDays(f,1),c+=1}return p},this.getWeekNumber=s=>s.week(),this.getYearRange=(s,i)=>{const l=s.startOf("year"),a=i.endOf("year"),c=[];let f=l;for(;f<a;)c.push(f),f=this.addYears(f,1);return c},this.getMeridiemText=s=>s==="am"?"AM":"PM",this.rawDayJsInstance=r,this.dayjs=C$e((o=this.rawDayJsInstance)!=null?o:$r,t),this.locale=t,this.formats=S({},w$e,n),$r.extend(d$e)}}function S$e(){rn.title="Config file";const{data:e,reload:t,element:n}=Qn("get_config_text",{}),[r,o]=u.useState(),[s,i]=u.useState(),[l,a]=u.useState(!1);return u.useEffect(()=>{i(e==null?void 0:e.text)},[e]),u.useEffect(()=>{s!==void 0&&o(s||"")},[s]),u.createElement(u.Fragment,{},u.createElement(qr,{flexWrap:"wrap",justifyContent:"space-between"},u.createElement(To,{icon:Bk,onClick:f},"Copy excluding passwords"),l?u.createElement(u.Fragment,{},a0(t),u.createElement(dn,{icon:Vh,title:`Save
|
|
808
|
-
(ctrl+enter)`,sx:Xd(r!==s),onClick:c}),u.createElement(Er,{severity:"warning",sx:{flex:1,minWidth:"10em"}},"Be careful, you can easily break things here")):u.createElement(To,{icon:BE,variant:"outlined",labelFrom:"sm",onClick(){a(!0),setTimeout(()=>Zv("main textarea"),500)}},"Edit"),u.createElement(ze,{flex:1,minWidth:"fit-content"},u.createElement(Tp,{label:"File path",value:e==null?void 0:e.fullPath}))),n||r!==void 0&&u.createElement(Nue,{margin:10},u.createElement(Kk,{value:r,disabled:!l,style:{background:"#8881"},onValueChange:o,onKeyDown(p){["s","Enter"].includes(z1(p))&&(c().then(),p.preventDefault())}})));function c(){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 P$e(){return u.createElement(rZ,{theme:Fpe()},u.createElement(E$e,{},u.createElement(YE,{dateAdapter:x$e},u.createElement(r$e,{},u.createElement(aq,{},u.createElement(ade,{style:{display:"flex",flexDirection:"column",minHeight:"100%",flex:1,maxWidth:"100%"}},u.createElement(k$e)))))))}function E$e(e){return u.createElement(ze,we({sx:{bgcolor:"background.default",color:"text.primary",flex:1}},e))}function k$e(){const e=jd().pathname.slice(1),t=iv.find(a=>a.path===e);let{title:n}=js();n=t&&(t.title||Sz(t))||n;const[r,o]=u.useState(!1),s=Xo("lg"),i=t!=null&&t.noPaddingOnMobile?0:1,l=$F();return _N("keydown",({key:a,ctrlKey:c})=>{var h;if(!c)return;const f=Number(e0(a,{0:10}));if(!f)return;const p=(h=iv[f-1])==null?void 0:h.path;p!==void 0&&l(p||"/")}),u.createElement(u.Fragment,{},u.createElement(Bue,{},u.createElement("h1",{},"Admin-panel")),!s&&u.createElement(I$e,{title:n,openMenu:()=>o(!0)}),!s&&u.createElement(Moe,{anchor:"left",open:r,onClose(){o(!1)}},u.createElement(aA,{onSelect:()=>o(!1)})),u.createElement(ze,{display:"flex",flex:1},s&&u.createElement(aA),u.createElement(ze,{component:"main",sx:{background:"url(cup.svg) no-repeat right fixed",backgroundSize:"contain",px:{xs:i,md:2,lg:3},pb:{xs:i,md:2},boxSizing:"border-box",position:"relative",display:"flex",flexDirection:"column",width:"100%",overflowX:"clip"}},n&&s&&u.createElement(qn,{variant:"h2",mb:2},n),u.createElement(rq,{},iv.map((a,c)=>u.createElement(Sx,{key:c,path:a.path,element:u.createElement(a.comp)})),u.createElement(Sx,{path:"edit",element:u.createElement(S$e)})))))}function I$e({title:e,openMenu:t}){return u.createElement(IJ,{position:"sticky",sx:{mb:2}},u.createElement(gN,{},u.createElement(xr,{size:"large",edge:"start",color:"inherit",sx:{mr:2},"aria-label":"menu",onClick:t},u.createElement(Ez)),u.createElement(ze,{component:"h2",m:0},e)))}Lfe();SF(document.getElementById("root")).render(u.createElement(u.StrictMode,{},u.createElement(P$e)));export{ln as c,pi as g};
|