hfs 0.51.1 → 0.52.0-alpha2
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/admin/assets/index-V0udjUIR.js +808 -0
- package/admin/assets/{index-49472c6b.css → index-rD-EYdVL.css} +1 -1
- package/{frontend/assets/sha512-l_aqBm0S.js → admin/assets/sha512-kdrIq7UN.js} +1 -1
- package/admin/index.html +2 -3
- package/frontend/assets/index-EdGoLuWB.css +1 -0
- package/frontend/assets/index-r8i8c_PX.js +101 -0
- package/{admin/assets/sha512-c9d3d113.js → frontend/assets/sha512-4UUUqqOn.js} +1 -1
- package/frontend/index.html +2 -2
- package/package.json +9 -7
- package/src/adminApis.js +4 -86
- package/src/api.accounts.js +12 -15
- package/src/api.auth.js +9 -35
- 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 +25 -7
- package/src/customHtml.js +1 -1
- package/src/ddns.js +53 -0
- package/src/github.js +2 -2
- package/src/langs/hfs-lang-it.json +10 -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 +2 -1
- package/src/util-http.js +12 -8
- package/admin/assets/index-30c70443.js +0 -808
- package/frontend/assets/index-Bsm0eh8l.js +0 -101
- package/frontend/assets/index-tdvGCFPn.css +0 -1
- 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 jU=Object.defineProperty,zU=Object.defineProperties;var VU=Object.getOwnPropertyDescriptors;var Km=Object.getOwnPropertySymbols;var zT=Object.prototype.hasOwnProperty,VT=Object.prototype.propertyIsEnumerable;var ow=(e,t)=>{if(t=Symbol[e])return t;throw Error("Symbol."+e+" is not defined")},bs=Math.pow,sw=(e,t,n)=>t in e?jU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ye=(e,t)=>{for(var n in t||(t={}))zT.call(t,n)&&sw(e,n,t[n]);if(Km)for(var n of Km(t))VT.call(t,n)&&sw(e,n,t[n]);return e},st=(e,t)=>zU(e,VU(t));var At=(e,t)=>{var n={};for(var r in e)zT.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Km)for(var r of Km(e))t.indexOf(r)<0&&VT.call(e,r)&&(n[r]=e[r]);return n};var wi=(e,t,n)=>(sw(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())}),HU=function(e,t){this[0]=e,this[1]=t};var Ae=e=>{var t=e[ow("asyncIterator")],n=!1,r,o={};return t==null?(t=e[ow("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 HU(new Promise(l=>{var a=t[s](i);if(!(a instanceof Object))throw TypeError("Object expected");l(a)}),1)}}),o[ow("iterator")]=()=>o,r("next"),"throw"in t?r("throw"):o.throw=s=>{throw s},"return"in t&&r("return"),o};function UU(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 zS(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 nA={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 Th=Symbol.for("react.element"),WU=Symbol.for("react.portal"),GU=Symbol.for("react.fragment"),KU=Symbol.for("react.strict_mode"),qU=Symbol.for("react.profiler"),YU=Symbol.for("react.provider"),QU=Symbol.for("react.context"),XU=Symbol.for("react.forward_ref"),ZU=Symbol.for("react.suspense"),JU=Symbol.for("react.memo"),eW=Symbol.for("react.lazy"),HT=Symbol.iterator;function tW(e){return e===null||typeof e!="object"?null:(e=HT&&e[HT]||e["@@iterator"],typeof e=="function"?e:null)}var rA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},oA=Object.assign,sA={};function Nd(e,t,n){this.props=e,this.context=t,this.refs=sA,this.updater=n||rA}Nd.prototype.isReactComponent={};Nd.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")};Nd.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function iA(){}iA.prototype=Nd.prototype;function VS(e,t,n){this.props=e,this.context=t,this.refs=sA,this.updater=n||rA}var HS=VS.prototype=new iA;HS.constructor=VS;oA(HS,Nd.prototype);HS.isPureReactComponent=!0;var UT=Array.isArray,lA=Object.prototype.hasOwnProperty,US={current:null},aA={key:!0,ref:!0,__self:!0,__source:!0};function cA(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)lA.call(t,r)&&!aA.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var a=Array(l),c=0;c<l;c++)a[c]=arguments[c+2];o.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Th,type:e,key:s,ref:i,props:o,_owner:US.current}}function nW(e,t){return{$$typeof:Th,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function WS(e){return typeof e=="object"&&e!==null&&e.$$typeof===Th}function rW(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var WT=/\/+/g;function iw(e,t){return typeof e=="object"&&e!==null&&e.key!=null?rW(""+e.key):t.toString(36)}function Ag(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 Th:case WU:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+iw(i,0):r,UT(o)?(n="",e!=null&&(n=e.replace(WT,"$&/")+"/"),Ag(o,t,n,"",function(c){return c})):o!=null&&(WS(o)&&(o=nW(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(WT,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",UT(e))for(var l=0;l<e.length;l++){s=e[l];var a=r+iw(s,l);i+=Ag(s,t,n,a,o)}else if(a=tW(e),typeof a=="function")for(e=a.call(e),l=0;!(s=e.next()).done;)s=s.value,a=r+iw(s,l++),i+=Ag(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 qm(e,t,n){if(e==null)return e;var r=[],o=0;return Ag(e,r,"","",function(s){return t.call(n,s,o++)}),r}function oW(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},Lg={transition:null},sW={ReactCurrentDispatcher:uo,ReactCurrentBatchConfig:Lg,ReactCurrentOwner:US};Ut.Children={map:qm,forEach:function(e,t,n){qm(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return qm(e,function(){t++}),t},toArray:function(e){return qm(e,function(t){return t})||[]},only:function(e){if(!WS(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ut.Component=Nd;Ut.Fragment=GU;Ut.Profiler=qU;Ut.PureComponent=VS;Ut.StrictMode=KU;Ut.Suspense=ZU;Ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sW;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=oA({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=US.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)lA.call(t,a)&&!aA.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var c=0;c<a;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:Th,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:YU,_context:e},e.Consumer=e};Ut.createElement=cA;Ut.createFactory=function(e){var t=cA.bind(null,e);return t.type=e,t};Ut.createRef=function(){return{current:null}};Ut.forwardRef=function(e){return{$$typeof:XU,render:e}};Ut.isValidElement=WS;Ut.lazy=function(e){return{$$typeof:eW,_payload:{_status:-1,_result:e},_init:oW}};Ut.memo=function(e,t){return{$$typeof:JU,type:e,compare:t===void 0?null:t}};Ut.startTransition=function(e){var t=Lg.transition;Lg.transition={};try{e()}finally{Lg.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";nA.exports=Ut;var u=nA.exports;const Ko=pi(u),Lp=UU({__proto__:null,default:Ko},[u]);var uA={exports:{}},ss={},dA={exports:{}},fA={};/**
|
|
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(L,B){var H=L.length;L.push(B);e:for(;0<H;){var K=H-1>>>1,Y=L[K];if(0<o(Y,B))L[K]=B,L[H]=Y,H=K;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var B=L[0],H=L.pop();if(H!==B){L[0]=H;e:for(var K=0,Y=L.length,J=Y>>>1;K<J;){var Q=2*(K+1)-1,X=L[Q],te=Q+1,se=L[te];if(0>o(X,H))te<Y&&0>o(se,X)?(L[K]=se,L[te]=H,K=te):(L[K]=X,L[Q]=H,K=Q);else if(te<Y&&0>o(se,H))L[K]=se,L[te]=H,K=te;else break e}}return B}function o(L,B){var H=L.sortIndex-B.sortIndex;return H!==0?H:L.id-B.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(L){for(var B=n(c);B!==null;){if(B.callback===null)r(c);else if(B.startTime<=L)r(c),B.sortIndex=B.expirationTime,t(a,B);else break;B=n(c)}}function P(L){if(m=!1,x(L),!v)if(n(a)!==null)v=!0,F(M);else{var B=n(c);B!==null&&V(P,B.startTime-L)}}function M(L,B){v=!1,m&&(m=!1,w(R),R=-1),y=!0;var H=h;try{for(x(B),p=n(a);p!==null&&(!(p.expirationTime>B)||L&&!A());){var K=p.callback;if(typeof K=="function"){p.callback=null,h=p.priorityLevel;var Y=K(p.expirationTime<=B);B=e.unstable_now(),typeof Y=="function"?p.callback=Y:p===n(a)&&r(a),x(B)}else r(a);p=n(a)}if(p!==null)var J=!0;else{var Q=n(c);Q!==null&&V(P,Q.startTime-B),J=!1}return J}finally{p=null,h=H,y=!1}}var E=!1,I=null,R=-1,O=5,T=-1;function A(){return!(e.unstable_now()-T<O)}function z(){if(I!==null){var L=e.unstable_now();T=L;var B=!0;try{B=I(!0,L)}finally{B?N():(E=!1,I=null)}}else E=!1}var N;if(typeof b=="function")N=function(){b(z)};else if(typeof MessageChannel!="undefined"){var _=new MessageChannel,$=_.port2;_.port1.onmessage=z,N=function(){$.postMessage(null)}}else N=function(){C(z,0)};function F(L){I=L,E||(E=!0,N())}function V(L,B){R=C(function(){L(e.unstable_now())},B)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){v||y||(v=!0,F(M))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(L){switch(h){case 1:case 2:case 3:var B=3;break;default:B=h}var H=h;h=B;try{return L()}finally{h=H}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,B){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var H=h;h=L;try{return B()}finally{h=H}},e.unstable_scheduleCallback=function(L,B,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,L){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,L={id:f++,callback:B,priorityLevel:L,startTime:H,expirationTime:Y,sortIndex:-1},H>K?(L.sortIndex=H,t(c,L),n(a)===null&&L===n(c)&&(m?(w(R),R=-1):m=!0,V(P,H-K))):(L.sortIndex=Y,t(a,L),v||y||(v=!0,F(M))),L},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(L){var B=h;return function(){var H=h;h=B;try{return L.apply(this,arguments)}finally{h=H}}}})(fA);dA.exports=fA;var iW=dA.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 pA=u,Zo=iW;function Ue(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 hA=new Set,Fp={};function Nc(e,t){fd(e,t),fd(e+"Capture",t)}function fd(e,t){for(Fp[e]=t,e=0;e<t.length;e++)hA.add(t[e])}var vl=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),AC=Object.prototype.hasOwnProperty,lW=/^[: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]*$/,GT={},KT={};function aW(e){return AC.call(KT,e)?!0:AC.call(GT,e)?!1:lW.test(e)?KT[e]=!0:(GT[e]=!0,!1)}function cW(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 uW(e,t,n,r){if(t===null||typeof t=="undefined"||cW(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 GS=/[\-:]([a-z])/g;function KS(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(GS,KS);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(GS,KS);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(GS,KS);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 qS(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")&&(uW(t,n,o,r)&&(n=null),r||o===null?aW(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 Il=pA.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ym=Symbol.for("react.element"),$u=Symbol.for("react.portal"),Ru=Symbol.for("react.fragment"),YS=Symbol.for("react.strict_mode"),LC=Symbol.for("react.profiler"),mA=Symbol.for("react.provider"),gA=Symbol.for("react.context"),QS=Symbol.for("react.forward_ref"),FC=Symbol.for("react.suspense"),NC=Symbol.for("react.suspense_list"),XS=Symbol.for("react.memo"),Xl=Symbol.for("react.lazy"),vA=Symbol.for("react.offscreen"),qT=Symbol.iterator;function Mf(e){return e===null||typeof e!="object"?null:(e=qT&&e[qT]||e["@@iterator"],typeof e=="function"?e:null)}var Hn=Object.assign,lw;function Jf(e){if(lw===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);lw=t&&t[1]||""}return`
|
|
26
|
-
`+lw+e}var aw=!1;function cw(e,t){if(!e||aw)return"";aw=!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{aw=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Jf(e):""}function dW(e){switch(e.tag){case 5:return Jf(e.type);case 16:return Jf("Lazy");case 13:return Jf("Suspense");case 19:return Jf("SuspenseList");case 0:case 2:case 15:return e=cw(e.type,!1),e;case 11:return e=cw(e.type.render,!1),e;case 1:return e=cw(e.type,!0),e;default:return""}}function BC(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 Ru:return"Fragment";case $u:return"Portal";case LC:return"Profiler";case YS:return"StrictMode";case FC:return"Suspense";case NC:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case gA:return(e.displayName||"Context")+".Consumer";case mA:return(e._context.displayName||"Context")+".Provider";case QS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case XS:return t=e.displayName||null,t!==null?t:BC(e.type)||"Memo";case Xl:t=e._payload,e=e._init;try{return BC(e(t))}catch(n){}}return null}function fW(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 BC(t);case 8:return t===YS?"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 yA(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function pW(e){var t=yA(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 Qm(e){e._valueTracker||(e._valueTracker=pW(e))}function bA(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=yA(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function dv(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 jC(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 YT(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 wA(e,t){t=t.checked,t!=null&&qS(e,"checked",t,!1)}function zC(e,t){wA(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")?VC(e,t.type,n):t.hasOwnProperty("defaultValue")&&VC(e,t.type,Ea(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function QT(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 VC(e,t,n){(t!=="number"||dv(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ep=Array.isArray;function Qu(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 HC(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Ue(91));return Hn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function XT(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Ue(92));if(ep(n)){if(1<n.length)throw Error(Ue(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ea(n)}}function CA(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 ZT(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function xA(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 UC(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?xA(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Xm,SA=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(Xm=Xm||document.createElement("div"),Xm.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Xm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Np(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hp={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},hW=["Webkit","ms","Moz","O"];Object.keys(hp).forEach(function(e){hW.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hp[t]=hp[e]})});function PA(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||hp.hasOwnProperty(e)&&hp[e]?(""+t).trim():t+"px"}function EA(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=PA(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var mW=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 WC(e,t){if(t){if(mW[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ue(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ue(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ue(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ue(62))}}function GC(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 KC=null;function ZS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qC=null,Xu=null,Zu=null;function JT(e){if(e=Rh(e)){if(typeof qC!="function")throw Error(Ue(280));var t=e.stateNode;t&&(t=$y(t),qC(e.stateNode,e.type,t))}}function kA(e){Xu?Zu?Zu.push(e):Zu=[e]:Xu=e}function IA(){if(Xu){var e=Xu,t=Zu;if(Zu=Xu=null,JT(e),t)for(e=0;e<t.length;e++)JT(t[e])}}function MA(e,t){return e(t)}function TA(){}var uw=!1;function _A(e,t,n){if(uw)return e(t,n);uw=!0;try{return MA(e,t,n)}finally{uw=!1,(Xu!==null||Zu!==null)&&(TA(),IA())}}function Bp(e,t){var n=e.stateNode;if(n===null)return null;var r=$y(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(Ue(231,t,typeof n));return n}var YC=!1;if(vl)try{var Tf={};Object.defineProperty(Tf,"passive",{get:function(){YC=!0}}),window.addEventListener("test",Tf,Tf),window.removeEventListener("test",Tf,Tf)}catch(e){YC=!1}function gW(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 mp=!1,fv=null,pv=!1,QC=null,vW={onError:function(e){mp=!0,fv=e}};function yW(e,t,n,r,o,s,i,l,a){mp=!1,fv=null,gW.apply(vW,arguments)}function bW(e,t,n,r,o,s,i,l,a){if(yW.apply(this,arguments),mp){if(mp){var c=fv;mp=!1,fv=null}else throw Error(Ue(198));pv||(pv=!0,QC=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 $A(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 e_(e){if(Bc(e)!==e)throw Error(Ue(188))}function wW(e){var t=e.alternate;if(!t){if(t=Bc(e),t===null)throw Error(Ue(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 e_(o),e;if(s===r)return e_(o),t;s=s.sibling}throw Error(Ue(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(Ue(189))}}if(n.alternate!==r)throw Error(Ue(190))}if(n.tag!==3)throw Error(Ue(188));return n.stateNode.current===n?e:t}function RA(e){return e=wW(e),e!==null?OA(e):null}function OA(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=OA(e);if(t!==null)return t;e=e.sibling}return null}var DA=Zo.unstable_scheduleCallback,t_=Zo.unstable_cancelCallback,CW=Zo.unstable_shouldYield,xW=Zo.unstable_requestPaint,nr=Zo.unstable_now,SW=Zo.unstable_getCurrentPriorityLevel,JS=Zo.unstable_ImmediatePriority,AA=Zo.unstable_UserBlockingPriority,hv=Zo.unstable_NormalPriority,PW=Zo.unstable_LowPriority,LA=Zo.unstable_IdlePriority,Iy=null,_i=null;function EW(e){if(_i&&typeof _i.onCommitFiberRoot=="function")try{_i.onCommitFiberRoot(Iy,e,void 0,(e.current.flags&128)===128)}catch(t){}}var ii=Math.clz32?Math.clz32:MW,kW=Math.log,IW=Math.LN2;function MW(e){return e>>>=0,e===0?32:31-(kW(e)/IW|0)|0}var Zm=64,Jm=4194304;function tp(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function mv(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~o;l!==0?r=tp(l):(s&=i,s!==0&&(r=tp(s)))}else i=n&~o,i!==0?r=tp(i):s!==0&&(r=tp(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ii(t),o=1<<n,r|=e[n],t&=~o;return r}function TW(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 _W(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]=TW(l,t)):a<=t&&(e.expiredLanes|=l),s&=~l}}function XC(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function FA(){var e=Zm;return Zm<<=1,!(Zm&4194240)&&(Zm=64),e}function dw(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _h(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 eP(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 NA(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var BA,tP,jA,zA,VA,ZC=!1,eg=[],fa=null,pa=null,ha=null,jp=new Map,zp=new Map,na=[],RW="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 n_(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":jp.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zp.delete(t.pointerId)}}function _f(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=Rh(t),t!==null&&tP(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function OW(e,t,n,r,o){switch(t){case"focusin":return fa=_f(fa,e,t,n,r,o),!0;case"dragenter":return pa=_f(pa,e,t,n,r,o),!0;case"mouseover":return ha=_f(ha,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return jp.set(s,_f(jp.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,zp.set(s,_f(zp.get(s)||null,e,t,n,r,o)),!0}return!1}function HA(e){var t=lc(e.target);if(t!==null){var n=Bc(t);if(n!==null){if(t=n.tag,t===13){if(t=$A(n),t!==null){e.blockedOn=t,VA(e.priority,function(){jA(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 Fg(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=JC(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);KC=r,n.target.dispatchEvent(r),KC=null}else return t=Rh(n),t!==null&&tP(t),e.blockedOn=n,!1;t.shift()}return!0}function r_(e,t,n){Fg(e)&&n.delete(t)}function DW(){ZC=!1,fa!==null&&Fg(fa)&&(fa=null),pa!==null&&Fg(pa)&&(pa=null),ha!==null&&Fg(ha)&&(ha=null),jp.forEach(r_),zp.forEach(r_)}function $f(e,t){e.blockedOn===t&&(e.blockedOn=null,ZC||(ZC=!0,Zo.unstable_scheduleCallback(Zo.unstable_NormalPriority,DW)))}function Vp(e){function t(o){return $f(o,e)}if(0<eg.length){$f(eg[0],e);for(var n=1;n<eg.length;n++){var r=eg[n];r.blockedOn===e&&(r.blockedOn=null)}}for(fa!==null&&$f(fa,e),pa!==null&&$f(pa,e),ha!==null&&$f(ha,e),jp.forEach(t),zp.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);)HA(n),n.blockedOn===null&&na.shift()}var Ju=Il.ReactCurrentBatchConfig,gv=!0;function AW(e,t,n,r){var o=fn,s=Ju.transition;Ju.transition=null;try{fn=1,nP(e,t,n,r)}finally{fn=o,Ju.transition=s}}function LW(e,t,n,r){var o=fn,s=Ju.transition;Ju.transition=null;try{fn=4,nP(e,t,n,r)}finally{fn=o,Ju.transition=s}}function nP(e,t,n,r){if(gv){var o=JC(e,t,n,r);if(o===null)Cw(e,t,r,vv,n),n_(e,r);else if(OW(o,e,t,n,r))r.stopPropagation();else if(n_(e,r),t&4&&-1<RW.indexOf(e)){for(;o!==null;){var s=Rh(o);if(s!==null&&BA(s),s=JC(e,t,n,r),s===null&&Cw(e,t,r,vv,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else Cw(e,t,r,null,n)}}var vv=null;function JC(e,t,n,r){if(vv=null,e=ZS(r),e=lc(e),e!==null)if(t=Bc(e),t===null)e=null;else if(n=t.tag,n===13){if(e=$A(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 vv=e,null}function UA(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(SW()){case JS:return 1;case AA:return 4;case hv:case PW:return 16;case LA:return 536870912;default:return 16}default:return 16}}var sa=null,rP=null,Ng=null;function WA(){if(Ng)return Ng;var e,t=rP,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 Ng=o.slice(e,1<r?1-r:void 0)}function Bg(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 tg(){return!0}function o_(){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)?tg:o_,this.isPropagationStopped=o_,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=tg)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=tg)},persist:function(){},isPersistent:tg}),t}var Bd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},oP=is(Bd),$h=Hn({},Bd,{view:0,detail:0}),FW=is($h),fw,pw,Rf,My=Hn({},$h,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sP,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"?(fw=e.screenX-Rf.screenX,pw=e.screenY-Rf.screenY):pw=fw=0,Rf=e),fw)},movementY:function(e){return"movementY"in e?e.movementY:pw}}),s_=is(My),NW=Hn({},My,{dataTransfer:0}),BW=is(NW),jW=Hn({},$h,{relatedTarget:0}),hw=is(jW),zW=Hn({},Bd,{animationName:0,elapsedTime:0,pseudoElement:0}),VW=is(zW),HW=Hn({},Bd,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),UW=is(HW),WW=Hn({},Bd,{data:0}),i_=is(WW),GW={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},KW={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"},qW={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function YW(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=qW[e])?!!t[e]:!1}function sP(){return YW}var QW=Hn({},$h,{key:function(e){if(e.key){var t=GW[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Bg(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?KW[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sP,charCode:function(e){return e.type==="keypress"?Bg(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Bg(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),XW=is(QW),ZW=Hn({},My,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),l_=is(ZW),JW=Hn({},$h,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sP}),eG=is(JW),tG=Hn({},Bd,{propertyName:0,elapsedTime:0,pseudoElement:0}),nG=is(tG),rG=Hn({},My,{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}),oG=is(rG),sG=[9,13,27,32],iP=vl&&"CompositionEvent"in window,gp=null;vl&&"documentMode"in document&&(gp=document.documentMode);var iG=vl&&"TextEvent"in window&&!gp,GA=vl&&(!iP||gp&&8<gp&&11>=gp),a_=String.fromCharCode(32),c_=!1;function KA(e,t){switch(e){case"keyup":return sG.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ou=!1;function lG(e,t){switch(e){case"compositionend":return qA(t);case"keypress":return t.which!==32?null:(c_=!0,a_);case"textInput":return e=t.data,e===a_&&c_?null:e;default:return null}}function aG(e,t){if(Ou)return e==="compositionend"||!iP&&KA(e,t)?(e=WA(),Ng=rP=sa=null,Ou=!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 GA&&t.locale!=="ko"?null:t.data;default:return null}}var cG={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 u_(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!cG[e.type]:t==="textarea"}function YA(e,t,n,r){kA(r),t=yv(t,"onChange"),0<t.length&&(n=new oP("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var vp=null,Hp=null;function uG(e){iL(e,0)}function Ty(e){var t=Lu(e);if(bA(t))return e}function dG(e,t){if(e==="change")return t}var QA=!1;if(vl){var mw;if(vl){var gw="oninput"in document;if(!gw){var d_=document.createElement("div");d_.setAttribute("oninput","return;"),gw=typeof d_.oninput=="function"}mw=gw}else mw=!1;QA=mw&&(!document.documentMode||9<document.documentMode)}function f_(){vp&&(vp.detachEvent("onpropertychange",XA),Hp=vp=null)}function XA(e){if(e.propertyName==="value"&&Ty(Hp)){var t=[];YA(t,Hp,e,ZS(e)),_A(uG,t)}}function fG(e,t,n){e==="focusin"?(f_(),vp=t,Hp=n,vp.attachEvent("onpropertychange",XA)):e==="focusout"&&f_()}function pG(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ty(Hp)}function hG(e,t){if(e==="click")return Ty(t)}function mG(e,t){if(e==="input"||e==="change")return Ty(t)}function gG(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var di=typeof Object.is=="function"?Object.is:gG;function Up(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(!AC.call(t,o)||!di(e[o],t[o]))return!1}return!0}function p_(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function h_(e,t){var n=p_(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=p_(n)}}function ZA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ZA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function JA(){for(var e=window,t=dv();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=dv(e.document)}return t}function lP(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 vG(e){var t=JA(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ZA(n.ownerDocument.documentElement,n)){if(r!==null&&lP(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=h_(n,s);var i=h_(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 yG=vl&&"documentMode"in document&&11>=document.documentMode,Du=null,ex=null,yp=null,tx=!1;function m_(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;tx||Du==null||Du!==dv(r)||(r=Du,"selectionStart"in r&&lP(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),yp&&Up(yp,r)||(yp=r,r=yv(ex,"onSelect"),0<r.length&&(t=new oP("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Du)))}function ng(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Au={animationend:ng("Animation","AnimationEnd"),animationiteration:ng("Animation","AnimationIteration"),animationstart:ng("Animation","AnimationStart"),transitionend:ng("Transition","TransitionEnd")},vw={},eL={};vl&&(eL=document.createElement("div").style,"AnimationEvent"in window||(delete Au.animationend.animation,delete Au.animationiteration.animation,delete Au.animationstart.animation),"TransitionEvent"in window||delete Au.transitionend.transition);function _y(e){if(vw[e])return vw[e];if(!Au[e])return e;var t=Au[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in eL)return vw[e]=t[n];return e}var tL=_y("animationend"),nL=_y("animationiteration"),rL=_y("animationstart"),oL=_y("transitionend"),sL=new Map,g_="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){sL.set(e,t),Nc(t,[e])}for(var yw=0;yw<g_.length;yw++){var bw=g_[yw],bG=bw.toLowerCase(),wG=bw[0].toUpperCase()+bw.slice(1);Oa(bG,"on"+wG)}Oa(tL,"onAnimationEnd");Oa(nL,"onAnimationIteration");Oa(rL,"onAnimationStart");Oa("dblclick","onDoubleClick");Oa("focusin","onFocus");Oa("focusout","onBlur");Oa(oL,"onTransitionEnd");fd("onMouseEnter",["mouseout","mouseover"]);fd("onMouseLeave",["mouseout","mouseover"]);fd("onPointerEnter",["pointerout","pointerover"]);fd("onPointerLeave",["pointerout","pointerover"]);Nc("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Nc("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Nc("onBeforeInput",["compositionend","keypress","textInput","paste"]);Nc("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Nc("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Nc("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var np="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),CG=new Set("cancel close invalid load scroll toggle".split(" ").concat(np));function v_(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,bW(r,t,void 0,e),e.currentTarget=null}function iL(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;v_(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;v_(o,l,c),s=a}}}if(pv)throw e=QC,pv=!1,QC=null,e}function kn(e,t){var n=t[ix];n===void 0&&(n=t[ix]=new Set);var r=e+"__bubble";n.has(r)||(lL(t,e,2,!1),n.add(r))}function ww(e,t,n){var r=0;t&&(r|=4),lL(n,e,r,t)}var rg="_reactListening"+Math.random().toString(36).slice(2);function Wp(e){if(!e[rg]){e[rg]=!0,hA.forEach(function(n){n!=="selectionchange"&&(CG.has(n)||ww(n,!1,e),ww(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[rg]||(t[rg]=!0,ww("selectionchange",!1,t))}}function lL(e,t,n,r){switch(UA(t)){case 1:var o=AW;break;case 4:o=LW;break;default:o=nP}n=o.bind(null,t,n,e),o=void 0,!YC||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 Cw(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=lc(l),i===null)return;if(a=i.tag,a===5||a===6){r=s=i;continue e}l=l.parentNode}}r=r.return}_A(function(){var c=s,f=ZS(n),p=[];e:{var h=sL.get(e);if(h!==void 0){var y=oP,v=e;switch(e){case"keypress":if(Bg(n)===0)break e;case"keydown":case"keyup":y=XW;break;case"focusin":v="focus",y=hw;break;case"focusout":v="blur",y=hw;break;case"beforeblur":case"afterblur":y=hw;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=s_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=BW;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=eG;break;case tL:case nL:case rL:y=VW;break;case oL:y=nG;break;case"scroll":y=FW;break;case"wheel":y=oG;break;case"copy":case"cut":case"paste":y=UW;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=l_}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=Bp(b,w),P!=null&&m.push(Gp(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!==KC&&(v=n.relatedTarget||n.fromElement)&&(lc(v)||v[yl]))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?lc(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=s_,P="onMouseLeave",w="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(m=l_,P="onPointerLeave",w="onPointerEnter",b="pointer"),C=y==null?h:Lu(y),x=v==null?h:Lu(v),h=new m(P,b+"leave",y,n,f),h.target=C,h.relatedTarget=x,P=null,lc(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=au(x))b++;for(x=0,P=w;P;P=au(P))x++;for(;0<b-x;)m=au(m),b--;for(;0<x-b;)w=au(w),x--;for(;b--;){if(m===w||w!==null&&m===w.alternate)break t;m=au(m),w=au(w)}m=null}else m=null;y!==null&&y_(p,h,y,m,!1),v!==null&&C!==null&&y_(p,C,v,m,!0)}}e:{if(h=c?Lu(c):window,y=h.nodeName&&h.nodeName.toLowerCase(),y==="select"||y==="input"&&h.type==="file")var M=dG;else if(u_(h))if(QA)M=mG;else{M=pG;var E=fG}else(y=h.nodeName)&&y.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(M=hG);if(M&&(M=M(e,c))){YA(p,M,n,f);break e}E&&E(e,h,c),e==="focusout"&&(E=h._wrapperState)&&E.controlled&&h.type==="number"&&VC(h,"number",h.value)}switch(E=c?Lu(c):window,e){case"focusin":(u_(E)||E.contentEditable==="true")&&(Du=E,ex=c,yp=null);break;case"focusout":yp=ex=Du=null;break;case"mousedown":tx=!0;break;case"contextmenu":case"mouseup":case"dragend":tx=!1,m_(p,n,f);break;case"selectionchange":if(yG)break;case"keydown":case"keyup":m_(p,n,f)}var I;if(iP)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 Ou?KA(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(GA&&n.locale!=="ko"&&(Ou||R!=="onCompositionStart"?R==="onCompositionEnd"&&Ou&&(I=WA()):(sa=f,rP="value"in sa?sa.value:sa.textContent,Ou=!0)),E=yv(c,R),0<E.length&&(R=new i_(R,e,null,n,f),p.push({event:R,listeners:E}),I?R.data=I:(I=qA(n),I!==null&&(R.data=I)))),(I=iG?lG(e,n):aG(e,n))&&(c=yv(c,"onBeforeInput"),0<c.length&&(f=new i_("onBeforeInput","beforeinput",null,n,f),p.push({event:f,listeners:c}),f.data=I))}iL(p,t)})}function Gp(e,t,n){return{instance:e,listener:t,currentTarget:n}}function yv(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=Bp(e,n),s!=null&&r.unshift(Gp(e,s,o)),s=Bp(e,t),s!=null&&r.push(Gp(e,s,o))),e=e.return}return r}function au(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function y_(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=Bp(n,s),a!=null&&i.unshift(Gp(n,a,l))):o||(a=Bp(n,s),a!=null&&i.push(Gp(n,a,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var xG=/\r\n?/g,SG=/\u0000|\uFFFD/g;function b_(e){return(typeof e=="string"?e:""+e).replace(xG,`
|
|
30
|
-
`).replace(SG,"")}function og(e,t,n){if(t=b_(t),b_(e)!==t&&n)throw Error(Ue(425))}function bv(){}var nx=null,rx=null;function ox(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 sx=typeof setTimeout=="function"?setTimeout:void 0,PG=typeof clearTimeout=="function"?clearTimeout:void 0,w_=typeof Promise=="function"?Promise:void 0,EG=typeof queueMicrotask=="function"?queueMicrotask:typeof w_!="undefined"?function(e){return w_.resolve(null).then(e).catch(kG)}:sx;function kG(e){setTimeout(function(){throw e})}function xw(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Vp(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Vp(t)}function 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 C_(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 jd=Math.random().toString(36).slice(2),Mi="__reactFiber$"+jd,Kp="__reactProps$"+jd,yl="__reactContainer$"+jd,ix="__reactEvents$"+jd,IG="__reactListeners$"+jd,MG="__reactHandles$"+jd;function lc(e){var t=e[Mi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yl]||n[Mi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=C_(e);e!==null;){if(n=e[Mi])return n;e=C_(e)}return t}e=n,n=e.parentNode}return null}function Rh(e){return e=e[Mi]||e[yl],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Lu(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ue(33))}function $y(e){return e[Kp]||null}var lx=[],Fu=-1;function Da(e){return{current:e}}function Mn(e){0>Fu||(e.current=lx[Fu],lx[Fu]=null,Fu--)}function xn(e,t){Fu++,lx[Fu]=e.current,e.current=t}var ka={},Zr=Da(ka),Eo=Da(!1),xc=ka;function pd(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 wv(){Mn(Eo),Mn(Zr)}function x_(e,t,n){if(Zr.current!==ka)throw Error(Ue(168));xn(Zr,t),xn(Eo,n)}function aL(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Ue(108,fW(e)||"Unknown",o));return Hn({},n,r)}function Cv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ka,xc=Zr.current,xn(Zr,e),xn(Eo,Eo.current),!0}function S_(e,t,n){var r=e.stateNode;if(!r)throw Error(Ue(169));n?(e=aL(e,t,xc),r.__reactInternalMemoizedMergedChildContext=e,Mn(Eo),Mn(Zr),xn(Zr,e)):Mn(Eo),xn(Eo,n)}var il=null,Ry=!1,Sw=!1;function cL(e){il===null?il=[e]:il.push(e)}function TG(e){Ry=!0,cL(e)}function Aa(){if(!Sw&&il!==null){Sw=!0;var e=0,t=fn;try{var n=il;for(fn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}il=null,Ry=!1}catch(o){throw il!==null&&(il=il.slice(e+1)),DA(JS,Aa),o}finally{fn=t,Sw=!1}}return null}var Nu=[],Bu=0,xv=null,Sv=0,ks=[],Is=0,Sc=null,ul=1,dl="";function nc(e,t){Nu[Bu++]=Sv,Nu[Bu++]=xv,xv=e,Sv=t}function uL(e,t,n){ks[Is++]=ul,ks[Is++]=dl,ks[Is++]=Sc,Sc=e;var r=ul;e=dl;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,ul=1<<32-ii(t)+o|n<<o|r,dl=s+e}else ul=1<<s|n<<o|r,dl=e}function aP(e){e.return!==null&&(nc(e,1),uL(e,1,0))}function cP(e){for(;e===xv;)xv=Nu[--Bu],Nu[Bu]=null,Sv=Nu[--Bu],Nu[Bu]=null;for(;e===Sc;)Sc=ks[--Is],ks[Is]=null,dl=ks[--Is],ks[Is]=null,ul=ks[--Is],ks[Is]=null}var Yo=null,qo=null,Ln=!1,ei=null;function dL(e,t){var n=Ts(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 P_(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:ul,overflow:dl}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ts(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Yo=e,qo=null,!0):!1;default:return!1}}function ax(e){return(e.mode&1)!==0&&(e.flags&128)===0}function cx(e){if(Ln){var t=qo;if(t){var n=t;if(!P_(e,t)){if(ax(e))throw Error(Ue(418));t=ma(n.nextSibling);var r=Yo;t&&P_(e,t)?dL(r,n):(e.flags=e.flags&-4097|2,Ln=!1,Yo=e)}}else{if(ax(e))throw Error(Ue(418));e.flags=e.flags&-4097|2,Ln=!1,Yo=e}}}function E_(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Yo=e}function sg(e){if(e!==Yo)return!1;if(!Ln)return E_(e),Ln=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ox(e.type,e.memoizedProps)),t&&(t=qo)){if(ax(e))throw fL(),Error(Ue(418));for(;t;)dL(e,t),t=ma(t.nextSibling)}if(E_(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Ue(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 fL(){for(var e=qo;e;)e=ma(e.nextSibling)}function hd(){qo=Yo=null,Ln=!1}function uP(e){ei===null?ei=[e]:ei.push(e)}var _G=Il.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 Pv=Da(null),Ev=null,ju=null,dP=null;function fP(){dP=ju=Ev=null}function pP(e){var t=Pv.current;Mn(Pv),e._currentValue=t}function ux(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 ed(e,t){Ev=e,dP=ju=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(dP!==e)if(e={context:e,memoizedValue:t,next:null},ju===null){if(Ev===null)throw Error(Ue(308));ju=e,Ev.dependencies={lanes:0,firstContext:e}}else ju=ju.next=e;return t}var ac=null;function hP(e){ac===null?ac=[e]:ac.push(e)}function pL(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,hP(t)):(n.next=o.next,o.next=n),t.interleaved=n,bl(e,r)}function bl(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 mP(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hL(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 hl(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,bl(e,n)}return o=r.interleaved,o===null?(t.next=t,hP(r)):(t.next=o.next,o.next=t),r.interleaved=t,bl(e,n)}function jg(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,eP(e,n)}}function k_(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 kv(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 I_(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(Ue(191,o));o.call(r)}}}var mL=new pA.Component().refs;function dx(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 Oy={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=hl(r,o);s.payload=t,n!=null&&(s.callback=n),t=ga(e,s,o),t!==null&&(li(t,e,o,r),jg(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=co(),o=ya(e),s=hl(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),jg(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=co(),r=ya(e),o=hl(n,r);o.tag=2,t!=null&&(o.callback=t),t=ga(e,o,r),t!==null&&(li(t,e,r,n),jg(t,e,r))}};function M_(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?!Up(n,r)||!Up(o,s):!0}function gL(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)?pd(e,o):ka),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Oy,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function T_(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&&Oy.enqueueReplaceState(t,t.state,null)}function fx(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=mL,mP(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=Os(s):(s=ko(t)?xc:Zr.current,o.context=pd(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(dx(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&&Oy.enqueueReplaceState(o,o.state,null),kv(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(Ue(309));var r=n.stateNode}if(!r)throw Error(Ue(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===mL&&(l=o.refs={}),i===null?delete l[s]:l[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(Ue(284));if(!n._owner)throw Error(Ue(290,e))}return e}function ig(e,t){throw e=Object.prototype.toString.call(t),Error(Ue(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function __(e){var t=e._init;return t(e._payload)}function vL(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=_w(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===Ru?f(w,b,x.props.children,P,x.key):b!==null&&(b.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===Xl&&__(M)===b.type)?(P=o(b,x.props),P.ref=Of(w,b,x),P.return=w,P):(P=Gg(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=$w(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=hc(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=_w(""+b,w.mode,x),b.return=w,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Ym:return x=Gg(b.type,b.key,b.props,null,w.mode,x),x.ref=Of(w,null,b),x.return=w,x;case $u:return b=$w(b,w.mode,x),b.return=w,b;case Xl:var P=b._init;return p(w,P(b._payload),x)}if(ep(b)||Mf(b))return b=hc(b,w.mode,x,null),b.return=w,b;ig(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 Ym:return x.key===M?a(w,b,x,P):null;case $u:return x.key===M?c(w,b,x,P):null;case Xl:return M=x._init,h(w,b,M(x._payload),P)}if(ep(x)||Mf(x))return M!==null?null:f(w,b,x,P,null);ig(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 Ym:return w=w.get(P.key===null?x:P.key)||null,a(b,w,P,M);case $u: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(ep(P)||Mf(P))return w=w.get(x)||null,f(b,w,P,M,null);ig(b,P)}return null}function v(w,b,x,P){for(var M=null,E=null,I=b,R=b=0,O=null;I!==null&&R<x.length;R++){I.index>R?(O=I,I=null):O=I.sibling;var T=h(w,I,x[R],P);if(T===null){I===null&&(I=O);break}e&&I&&T.alternate===null&&t(w,I),b=s(T,b,R),E===null?M=T:E.sibling=T,E=T,I=O}if(R===x.length)return n(w,I),Ln&&nc(w,R),M;if(I===null){for(;R<x.length;R++)I=p(w,x[R],P),I!==null&&(b=s(I,b,R),E===null?M=I:E.sibling=I,E=I);return Ln&&nc(w,R),M}for(I=r(w,I);R<x.length;R++)O=y(I,w,R,x[R],P),O!==null&&(e&&O.alternate!==null&&I.delete(O.key===null?R:O.key),b=s(O,b,R),E===null?M=O:E.sibling=O,E=O);return e&&I.forEach(function(A){return t(w,A)}),Ln&&nc(w,R),M}function m(w,b,x,P){var M=Mf(x);if(typeof M!="function")throw Error(Ue(150));if(x=M.call(x),x==null)throw Error(Ue(151));for(var E=M=null,I=b,R=b=0,O=null,T=x.next();I!==null&&!T.done;R++,T=x.next()){I.index>R?(O=I,I=null):O=I.sibling;var A=h(w,I,T.value,P);if(A===null){I===null&&(I=O);break}e&&I&&A.alternate===null&&t(w,I),b=s(A,b,R),E===null?M=A:E.sibling=A,E=A,I=O}if(T.done)return n(w,I),Ln&&nc(w,R),M;if(I===null){for(;!T.done;R++,T=x.next())T=p(w,T.value,P),T!==null&&(b=s(T,b,R),E===null?M=T:E.sibling=T,E=T);return Ln&&nc(w,R),M}for(I=r(w,I);!T.done;R++,T=x.next())T=y(I,w,R,T.value,P),T!==null&&(e&&T.alternate!==null&&I.delete(T.key===null?R:T.key),b=s(T,b,R),E===null?M=T:E.sibling=T,E=T);return e&&I.forEach(function(z){return t(w,z)}),Ln&&nc(w,R),M}function C(w,b,x,P){if(typeof x=="object"&&x!==null&&x.type===Ru&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Ym:e:{for(var M=x.key,E=b;E!==null;){if(E.key===M){if(M=x.type,M===Ru){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&&__(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===Ru?(b=hc(x.props.children,w.mode,P,x.key),b.return=w,w=b):(P=Gg(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 $u: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=$w(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(ep(x))return v(w,b,x,P);if(Mf(x))return m(w,b,x,P);ig(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=_w(x,w.mode,P),b.return=w,w=b),i(w)):n(w,b)}return C}var md=vL(!0),yL=vL(!1),Oh={},$i=Da(Oh),qp=Da(Oh),Yp=Da(Oh);function cc(e){if(e===Oh)throw Error(Ue(174));return e}function gP(e,t){switch(xn(Yp,t),xn(qp,e),xn($i,Oh),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:UC(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=UC(t,e)}Mn($i),xn($i,t)}function gd(){Mn($i),Mn(qp),Mn(Yp)}function bL(e){cc(Yp.current);var t=cc($i.current),n=UC(t,e.type);t!==n&&(xn(qp,e),xn($i,n))}function vP(e){qp.current===e&&(Mn($i),Mn(qp))}var jn=Da(0);function Iv(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 Pw=[];function yP(){for(var e=0;e<Pw.length;e++)Pw[e]._workInProgressVersionPrimary=null;Pw.length=0}var zg=Il.ReactCurrentDispatcher,Ew=Il.ReactCurrentBatchConfig,Pc=0,Vn=null,pr=null,Cr=null,Mv=!1,bp=!1,Qp=0,$G=0;function zr(){throw Error(Ue(321))}function bP(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 wP(e,t,n,r,o,s){if(Pc=s,Vn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,zg.current=e===null||e.memoizedState===null?AG:LG,e=n(r,o),bp){s=0;do{if(bp=!1,Qp=0,25<=s)throw Error(Ue(301));s+=1,Cr=pr=null,t.updateQueue=null,zg.current=FG,e=n(r,o)}while(bp)}if(zg.current=Tv,t=pr!==null&&pr.next!==null,Pc=0,Cr=pr=Vn=null,Mv=!1,t)throw Error(Ue(300));return e}function CP(){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?Vn.memoizedState=Cr=e:Cr=Cr.next=e,Cr}function Ds(){if(pr===null){var e=Vn.alternate;e=e!==null?e.memoizedState:null}else e=pr.next;var t=Cr===null?Vn.memoizedState:Cr.next;if(t!==null)Cr=t,pr=e;else{if(e===null)throw Error(Ue(310));pr=e,e={memoizedState:pr.memoizedState,baseState:pr.baseState,baseQueue:pr.baseQueue,queue:pr.queue,next:null},Cr===null?Vn.memoizedState=Cr=e:Cr=Cr.next=e}return Cr}function Xp(e,t){return typeof t=="function"?t(e):t}function kw(e){var t=Ds(),n=t.queue;if(n===null)throw Error(Ue(311));n.lastRenderedReducer=e;var r=pr,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,Vn.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,Vn.lanes|=s,Ec|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Iw(e){var t=Ds(),n=t.queue;if(n===null)throw Error(Ue(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 wL(){}function CL(e,t){var n=Vn,r=Ds(),o=t(),s=!di(r.memoizedState,o);if(s&&(r.memoizedState=o,Po=!0),r=r.queue,xP(PL.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Cr!==null&&Cr.memoizedState.tag&1){if(n.flags|=2048,Zp(9,SL.bind(null,n,r,o,t),void 0,null),Sr===null)throw Error(Ue(349));Pc&30||xL(n,t,o)}return o}function xL(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Vn.updateQueue,t===null?(t={lastEffect:null,stores:null},Vn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function SL(e,t,n,r){t.value=n,t.getSnapshot=r,EL(t)&&kL(e)}function PL(e,t,n){return n(function(){EL(t)&&kL(e)})}function EL(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!di(e,n)}catch(r){return!0}}function kL(e){var t=bl(e,1);t!==null&&li(t,e,1,-1)}function $_(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:Xp,lastRenderedState:e},t.queue=e,e=e.dispatch=DG.bind(null,Vn,e),[t.memoizedState,e]}function Zp(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Vn.updateQueue,t===null?(t={lastEffect:null,stores:null},Vn.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 IL(){return Ds().memoizedState}function Vg(e,t,n,r){var o=Si();Vn.flags|=e,o.memoizedState=Zp(1|t,n,void 0,r===void 0?null:r)}function Dy(e,t,n,r){var o=Ds();r=r===void 0?null:r;var s=void 0;if(pr!==null){var i=pr.memoizedState;if(s=i.destroy,r!==null&&bP(r,i.deps)){o.memoizedState=Zp(t,n,s,r);return}}Vn.flags|=e,o.memoizedState=Zp(1|t,n,s,r)}function R_(e,t){return Vg(8390656,8,e,t)}function xP(e,t){return Dy(2048,8,e,t)}function ML(e,t){return Dy(4,2,e,t)}function TL(e,t){return Dy(4,4,e,t)}function _L(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 $L(e,t,n){return n=n!=null?n.concat([e]):null,Dy(4,4,_L.bind(null,t,e),n)}function SP(){}function RL(e,t){var n=Ds();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&bP(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function OL(e,t){var n=Ds();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&bP(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function DL(e,t,n){return Pc&21?(di(n,t)||(n=FA(),Vn.lanes|=n,Ec|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Po=!0),e.memoizedState=n)}function RG(e,t){var n=fn;fn=n!==0&&4>n?n:4,e(!0);var r=Ew.transition;Ew.transition={};try{e(!1),t()}finally{fn=n,Ew.transition=r}}function AL(){return Ds().memoizedState}function OG(e,t,n){var r=ya(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},LL(e))FL(t,n);else if(n=pL(e,t,n,r),n!==null){var o=co();li(n,e,r,o),NL(n,t,r)}}function DG(e,t,n){var r=ya(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(LL(e))FL(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,hP(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch(c){}finally{}n=pL(e,t,o,r),n!==null&&(o=co(),li(n,e,r,o),NL(n,t,r))}}function LL(e){var t=e.alternate;return e===Vn||t!==null&&t===Vn}function FL(e,t){bp=Mv=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function NL(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eP(e,n)}}var Tv={readContext:Os,useCallback:zr,useContext:zr,useEffect:zr,useImperativeHandle:zr,useInsertionEffect:zr,useLayoutEffect:zr,useMemo:zr,useReducer:zr,useRef:zr,useState:zr,useDebugValue:zr,useDeferredValue:zr,useTransition:zr,useMutableSource:zr,useSyncExternalStore:zr,useId:zr,unstable_isNewReconciler:!1},AG={readContext:Os,useCallback:function(e,t){return Si().memoizedState=[e,t===void 0?null:t],e},useContext:Os,useEffect:R_,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Vg(4194308,4,_L.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vg(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vg(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=OG.bind(null,Vn,e),[r.memoizedState,e]},useRef:function(e){var t=Si();return e={current:e},t.memoizedState=e},useState:$_,useDebugValue:SP,useDeferredValue:function(e){return Si().memoizedState=e},useTransition:function(){var e=$_(!1),t=e[0];return e=RG.bind(null,e[1]),Si().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Vn,o=Si();if(Ln){if(n===void 0)throw Error(Ue(407));n=n()}else{if(n=t(),Sr===null)throw Error(Ue(349));Pc&30||xL(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,R_(PL.bind(null,r,s,e),[e]),r.flags|=2048,Zp(9,SL.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Si(),t=Sr.identifierPrefix;if(Ln){var n=dl,r=ul;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},LG={readContext:Os,useCallback:RL,useContext:Os,useEffect:xP,useImperativeHandle:$L,useInsertionEffect:ML,useLayoutEffect:TL,useMemo:OL,useReducer:kw,useRef:IL,useState:function(){return kw(Xp)},useDebugValue:SP,useDeferredValue:function(e){var t=Ds();return DL(t,pr.memoizedState,e)},useTransition:function(){var e=kw(Xp)[0],t=Ds().memoizedState;return[e,t]},useMutableSource:wL,useSyncExternalStore:CL,useId:AL,unstable_isNewReconciler:!1},FG={readContext:Os,useCallback:RL,useContext:Os,useEffect:xP,useImperativeHandle:$L,useInsertionEffect:ML,useLayoutEffect:TL,useMemo:OL,useReducer:Iw,useRef:IL,useState:function(){return Iw(Xp)},useDebugValue:SP,useDeferredValue:function(e){var t=Ds();return pr===null?t.memoizedState=e:DL(t,pr.memoizedState,e)},useTransition:function(){var e=Iw(Xp)[0],t=Ds().memoizedState;return[e,t]},useMutableSource:wL,useSyncExternalStore:CL,useId:AL,unstable_isNewReconciler:!1};function vd(e,t){try{var n="",r=t;do n+=dW(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 Mw(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function px(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var NG=typeof WeakMap=="function"?WeakMap:Map;function BL(e,t,n){n=hl(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$v||($v=!0,Sx=r),px(e,t)},n}function jL(e,t,n){n=hl(-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(){px(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){px(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 O_(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new NG;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=ZG.bind(null,e,t,n),t.then(e,e))}function D_(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 A_(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=hl(-1,1),t.tag=2,ga(n,t,1))),n.lanes|=1),e)}var BG=Il.ReactCurrentOwner,Po=!1;function so(e,t,n,r){t.child=e===null?yL(t,null,n,r):md(t,e.child,n,r)}function L_(e,t,n,r,o){n=n.render;var s=t.ref;return ed(t,o),r=wP(e,t,n,r,s,o),n=CP(),e!==null&&!Po?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,wl(e,t,o)):(Ln&&n&&aP(t),t.flags|=1,so(e,t,r,o),t.child)}function F_(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!$P(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,zL(e,t,s,r,o)):(e=Gg(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:Up,n(i,r)&&e.ref===t.ref)return wl(e,t,o)}return t.flags|=1,e=ba(s,r),e.ref=t.ref,e.return=t,t.child=e}function zL(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(Up(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,wl(e,t,o)}return hx(e,t,n,r,o)}function VL(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,jo),jo|=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,jo),jo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,xn(Vu,jo),jo|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,xn(Vu,jo),jo|=r;return so(e,t,o,n),t.child}function HL(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function hx(e,t,n,r,o){var s=ko(n)?xc:Zr.current;return s=pd(t,s),ed(t,o),n=wP(e,t,n,r,s,o),r=CP(),e!==null&&!Po?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,wl(e,t,o)):(Ln&&r&&aP(t),t.flags|=1,so(e,t,n,o),t.child)}function N_(e,t,n,r,o){if(ko(n)){var s=!0;Cv(t)}else s=!1;if(ed(t,o),t.stateNode===null)Hg(e,t),gL(t,n,r),fx(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=pd(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)&&T_(t,i,r,c),Zl=!1;var h=t.memoizedState;i.state=h,kv(t,r,i,o),a=t.memoizedState,l!==r||h!==a||Eo.current||Zl?(typeof f=="function"&&(dx(t,n,f,r),a=t.memoizedState),(l=Zl||M_(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,hL(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=pd(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)&&T_(t,i,r,a),Zl=!1,h=t.memoizedState,i.state=h,kv(t,r,i,o);var v=t.memoizedState;l!==p||h!==v||Eo.current||Zl?(typeof y=="function"&&(dx(t,n,y,r),v=t.memoizedState),(c=Zl||M_(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 mx(e,t,n,r,s,o)}function mx(e,t,n,r,o,s){HL(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&S_(t,n,!1),wl(e,t,s);r=t.stateNode,BG.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=md(t,e.child,null,s),t.child=md(t,null,l,s)):so(e,t,l,s),t.memoizedState=r.state,o&&S_(t,n,!0),t.child}function UL(e){var t=e.stateNode;t.pendingContext?x_(e,t.pendingContext,t.pendingContext!==t.context):t.context&&x_(e,t.context,!1),gP(e,t.containerInfo)}function B_(e,t,n,r,o){return hd(),uP(o),t.flags|=256,so(e,t,n,r),t.child}var gx={dehydrated:null,treeContext:null,retryLane:0};function vx(e){return{baseLanes:e,cachePool:null,transitions:null}}function WL(e,t,n){var r=t.pendingProps,o=jn.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(jn,o&1),e===null)return cx(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=Fy(i,r,0,null),e=hc(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=vx(n),t.memoizedState=gx,e):PP(t,i));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return jG(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=hc(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?vx(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=gx,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 PP(e,t){return t=Fy({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function lg(e,t,n,r){return r!==null&&uP(r),md(t,e.child,null,n),e=PP(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function jG(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=Mw(Error(Ue(422))),lg(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Fy({mode:"visible",children:r.children},o,0,null),s=hc(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&md(t,e.child,null,i),t.child.memoizedState=vx(i),t.memoizedState=gx,s);if(!(t.mode&1))return lg(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(Ue(419)),r=Mw(s,r,void 0),lg(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,bl(e,o),li(r,e,o,-1))}return _P(),r=Mw(Error(Ue(421))),lg(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=JG.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,qo=ma(o.nextSibling),Yo=t,Ln=!0,ei=null,e!==null&&(ks[Is++]=ul,ks[Is++]=dl,ks[Is++]=Sc,ul=e.id,dl=e.overflow,Sc=t),t=PP(t,r.children),t.flags|=4096,t)}function j_(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ux(e.return,t,n)}function Tw(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 GL(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(so(e,t,r.children,n),r=jn.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&j_(e,n,t);else if(e.tag===19)j_(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(xn(jn,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&&Iv(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Tw(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&&Iv(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Tw(t,!0,n,null,s);break;case"together":Tw(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hg(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function wl(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(Ue(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 zG(e,t,n){switch(t.tag){case 3:UL(t),hd();break;case 5:bL(t);break;case 1:ko(t.type)&&Cv(t);break;case 4:gP(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;xn(Pv,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(xn(jn,jn.current&1),t.flags|=128,null):n&t.child.childLanes?WL(e,t,n):(xn(jn,jn.current&1),e=wl(e,t,n),e!==null?e.sibling:null);xn(jn,jn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return GL(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),xn(jn,jn.current),r)break;return null;case 22:case 23:return t.lanes=0,VL(e,t,n)}return wl(e,t,n)}var KL,yx,qL,YL;KL=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}};yx=function(){};qL=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,cc($i.current);var s=null;switch(n){case"input":o=jC(e,o),r=jC(e,r),s=[];break;case"select":o=Hn({},o,{value:void 0}),r=Hn({},r,{value:void 0}),s=[];break;case"textarea":o=HC(e,o),r=HC(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=bv)}WC(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"&&(Fp.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"&&(Fp.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)}};YL=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 Vr(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 VG(e,t,n){var r=t.pendingProps;switch(cP(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vr(t),null;case 1:return ko(t.type)&&wv(),Vr(t),null;case 3:return r=t.stateNode,gd(),Mn(Eo),Mn(Zr),yP(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(sg(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ei!==null&&(kx(ei),ei=null))),yx(e,t),Vr(t),null;case 5:vP(t);var o=cc(Yp.current);if(n=t.type,e!==null&&t.stateNode!=null)qL(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Ue(166));return Vr(t),null}if(e=cc($i.current),sg(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Mi]=t,r[Kp]=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<np.length;o++)kn(np[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":YT(r,s),kn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},kn("invalid",r);break;case"textarea":XT(r,s),kn("invalid",r)}WC(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&&og(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&og(r.textContent,l,e),o=["children",""+l]):Fp.hasOwnProperty(i)&&l!=null&&i==="onScroll"&&kn("scroll",r)}switch(n){case"input":Qm(r),QT(r,s,!0);break;case"textarea":Qm(r),ZT(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=bv)}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=xA(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[Kp]=r,KL(e,t,!1,!1),t.stateNode=e;e:{switch(i=GC(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<np.length;o++)kn(np[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":YT(e,r),o=jC(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":XT(e,r),o=HC(e,r),kn("invalid",e);break;default:o=r}WC(n,o),l=o;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?EA(e,a):s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&SA(e,a)):s==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Np(e,a):typeof a=="number"&&Np(e,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Fp.hasOwnProperty(s)?a!=null&&s==="onScroll"&&kn("scroll",e):a!=null&&qS(e,s,a,i))}switch(n){case"input":Qm(e),QT(e,r,!1);break;case"textarea":Qm(e),ZT(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?Qu(e,!!r.multiple,s,!1):r.defaultValue!=null&&Qu(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=bv)}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 Vr(t),null;case 6:if(e&&t.stateNode!=null)YL(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Ue(166));if(n=cc(Yp.current),cc($i.current),sg(t)){if(r=t.stateNode,n=t.memoizedProps,r[Mi]=t,(s=r.nodeValue!==n)&&(e=Yo,e!==null))switch(e.tag){case 3:og(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&og(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 Vr(t),null;case 13:if(Mn(jn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ln&&qo!==null&&t.mode&1&&!(t.flags&128))fL(),hd(),t.flags|=98560,s=!1;else if(s=sg(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(Ue(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(Ue(317));s[Mi]=t}else hd(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Vr(t),s=!1}else ei!==null&&(kx(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||jn.current&1?mr===0&&(mr=3):_P())),t.updateQueue!==null&&(t.flags|=4),Vr(t),null);case 4:return gd(),yx(e,t),e===null&&Wp(t.stateNode.containerInfo),Vr(t),null;case 10:return pP(t.type._context),Vr(t),null;case 17:return ko(t.type)&&wv(),Vr(t),null;case 19:if(Mn(jn),s=t.memoizedState,s===null)return Vr(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)Df(s,!1);else{if(mr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Iv(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(jn,jn.current&1|2),t.child}e=e.sibling}s.tail!==null&&nr()>yd&&(t.flags|=128,r=!0,Df(s,!1),t.lanes=4194304)}else{if(!r)if(e=Iv(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 Vr(t),null}else 2*nr()-s.renderingStartTime>yd&&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=nr(),t.sibling=null,n=jn.current,xn(jn,r?n&1|2:n&1),t):(Vr(t),null);case 22:case 23:return TP(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?jo&1073741824&&(Vr(t),t.subtreeFlags&6&&(t.flags|=8192)):Vr(t),null;case 24:return null;case 25:return null}throw Error(Ue(156,t.tag))}function HG(e,t){switch(cP(t),t.tag){case 1:return ko(t.type)&&wv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gd(),Mn(Eo),Mn(Zr),yP(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vP(t),null;case 13:if(Mn(jn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ue(340));hd()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Mn(jn),null;case 4:return gd(),null;case 10:return pP(t.type._context),null;case 22:case 23:return TP(),null;case 24:return null;default:return null}}var ag=!1,Gr=!1,UG=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 bx(e,t,n){try{n()}catch(r){Kn(e,t,r)}}var z_=!1;function WG(e,t){if(nx=gv,e=JA(),lP(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(rx={focusedElem:e,selectionRange:n},gv=!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(Ue(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=z_,z_=!1,v}function wp(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&bx(t,n,s)}o=o.next}while(o!==r)}}function Ay(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 wx(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 QL(e){var t=e.alternate;t!==null&&(e.alternate=null,QL(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mi],delete t[Kp],delete t[ix],delete t[IG],delete t[MG])),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 XL(e){return e.tag===5||e.tag===3||e.tag===4}function V_(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||XL(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 Cx(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=bv));else if(r!==4&&(e=e.child,e!==null))for(Cx(e,t,n),e=e.sibling;e!==null;)Cx(e,t,n),e=e.sibling}function xx(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(xx(e,t,n),e=e.sibling;e!==null;)xx(e,t,n),e=e.sibling}var Rr=null,Js=!1;function Vl(e,t,n){for(n=n.child;n!==null;)ZL(e,t,n),n=n.sibling}function ZL(e,t,n){if(_i&&typeof _i.onCommitFiberUnmount=="function")try{_i.onCommitFiberUnmount(Iy,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?xw(e.parentNode,n):e.nodeType===1&&xw(e,n),Vp(e)):xw(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)&&bx(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 H_(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new UG),t.forEach(function(r){var o=eK.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(Ue(160));ZL(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;)JL(t,e),t=t.sibling}function JL(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{wp(3,e,e.return),Ay(3,e)}catch(m){Kn(e,e.return,m)}try{wp(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{Np(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&&wA(o,s),GC(l,i);var c=GC(l,s);for(i=0;i<a.length;i+=2){var f=a[i],p=a[i+1];f==="style"?EA(o,p):f==="dangerouslySetInnerHTML"?SA(o,p):f==="children"?Np(o,p):qS(o,f,p,c)}switch(l){case"input":zC(o,s);break;case"textarea":CA(o,s);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var y=s.value;y!=null?Qu(o,!!s.multiple,y,!1):h!==!!s.multiple&&(s.defaultValue!=null?Qu(o,!!s.multiple,s.defaultValue,!0):Qu(o,!!s.multiple,s.multiple?[]:"",!1))}o[Kp]=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(Ue(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{Vp(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||(IP=nr())),r&4&&H_(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:wp(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){W_(p);continue}}y!==null?(y.return=h,at=y):W_(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=PA("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&&H_(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(XL(n)){var r=n;break e}n=n.return}throw Error(Ue(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Np(o,""),r.flags&=-33);var s=V_(e);xx(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,l=V_(e);Cx(e,l,i);break;default:throw Error(Ue(161))}}catch(a){Kn(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function GG(e,t,n){at=e,eF(e)}function eF(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||ag;if(!i){var l=o.alternate,a=l!==null&&l.memoizedState!==null||Gr;l=ag;var c=Gr;if(ag=i,(Gr=a)&&!c)for(at=o;at!==null;)i=at,a=i.child,i.tag===22&&i.memoizedState!==null?G_(o):a!==null?(a.return=i,at=a):G_(o);for(;s!==null;)at=s,eF(s),s=s.sibling;at=o,ag=l,Gr=c}U_(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,at=s):U_(e)}}function U_(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||Ay(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&&I_(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}I_(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&&Vp(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Ue(163))}Gr||t.flags&512&&wx(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 W_(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 G_(e){for(;at!==null;){var t=at;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ay(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{wx(t)}catch(a){Kn(t,s,a)}break;case 5:var i=t.return;try{wx(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 KG=Math.ceil,_v=Il.ReactCurrentDispatcher,EP=Il.ReactCurrentOwner,_s=Il.ReactCurrentBatchConfig,Xt=0,Sr=null,ur=null,Lr=0,jo=0,Vu=Da(0),mr=0,Jp=null,Ec=0,Ly=0,kP=0,Cp=null,wo=null,IP=0,yd=1/0,sl=null,$v=!1,Sx=null,va=null,cg=!1,ia=null,Rv=0,xp=0,Px=null,Ug=-1,Wg=0;function co(){return Xt&6?nr():Ug!==-1?Ug:Ug=nr()}function ya(e){return e.mode&1?Xt&2&&Lr!==0?Lr&-Lr:_G.transition!==null?(Wg===0&&(Wg=FA()),Wg):(e=fn,e!==0||(e=window.event,e=e===void 0?16:UA(e.type)),e):1}function li(e,t,n,r){if(50<xp)throw xp=0,Px=null,Error(Ue(185));_h(e,n,r),(!(Xt&2)||e!==Sr)&&(e===Sr&&(!(Xt&2)&&(Ly|=n),mr===4&&ra(e,Lr)),Io(e,r),n===1&&Xt===0&&!(t.mode&1)&&(yd=nr()+500,Ry&&Aa()))}function Io(e,t){var n=e.callbackNode;_W(e,t);var r=mv(e,e===Sr?Lr:0);if(r===0)n!==null&&t_(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&t_(n),t===1)e.tag===0?TG(K_.bind(null,e)):cL(K_.bind(null,e)),EG(function(){!(Xt&6)&&Aa()}),n=null;else{switch(NA(r)){case 1:n=JS;break;case 4:n=AA;break;case 16:n=hv;break;case 536870912:n=LA;break;default:n=hv}n=aF(n,tF.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function tF(e,t){if(Ug=-1,Wg=0,Xt&6)throw Error(Ue(327));var n=e.callbackNode;if(td()&&e.callbackNode!==n)return null;var r=mv(e,e===Sr?Lr:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ov(e,r);else{t=r;var o=Xt;Xt|=2;var s=rF();(Sr!==e||Lr!==t)&&(sl=null,yd=nr()+500,pc(e,t));do try{QG();break}catch(l){nF(e,l)}while(1);fP(),_v.current=s,Xt=o,ur!==null?t=0:(Sr=null,Lr=0,t=mr)}if(t!==0){if(t===2&&(o=XC(e),o!==0&&(r=o,t=Ex(e,o))),t===1)throw n=Jp,pc(e,0),ra(e,r),Io(e,nr()),n;if(t===6)ra(e,r);else{if(o=e.current.alternate,!(r&30)&&!qG(o)&&(t=Ov(e,r),t===2&&(s=XC(e),s!==0&&(r=s,t=Ex(e,s))),t===1))throw n=Jp,pc(e,0),ra(e,r),Io(e,nr()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(Ue(345));case 2:rc(e,wo,sl);break;case 3:if(ra(e,r),(r&130023424)===r&&(t=IP+500-nr(),10<t)){if(mv(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){co(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=sx(rc.bind(null,e,wo,sl),t);break}rc(e,wo,sl);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=nr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*KG(r/1960))-r,10<r){e.timeoutHandle=sx(rc.bind(null,e,wo,sl),r);break}rc(e,wo,sl);break;case 5:rc(e,wo,sl);break;default:throw Error(Ue(329))}}}return Io(e,nr()),e.callbackNode===n?tF.bind(null,e):null}function Ex(e,t){var n=Cp;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),e=Ov(e,t),e!==2&&(t=wo,wo=n,t!==null&&kx(t)),e}function kx(e){wo===null?wo=e:wo.push.apply(wo,e)}function qG(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&=~kP,t&=~Ly,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 K_(e){if(Xt&6)throw Error(Ue(327));td();var t=mv(e,0);if(!(t&1))return Io(e,nr()),null;var n=Ov(e,t);if(e.tag!==0&&n===2){var r=XC(e);r!==0&&(t=r,n=Ex(e,r))}if(n===1)throw n=Jp,pc(e,0),ra(e,t),Io(e,nr()),n;if(n===6)throw Error(Ue(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,rc(e,wo,sl),Io(e,nr()),null}function MP(e,t){var n=Xt;Xt|=1;try{return e(t)}finally{Xt=n,Xt===0&&(yd=nr()+500,Ry&&Aa())}}function kc(e){ia!==null&&ia.tag===0&&!(Xt&6)&&td();var t=Xt;Xt|=1;var n=_s.transition,r=fn;try{if(_s.transition=null,fn=1,e)return e()}finally{fn=r,_s.transition=n,Xt=t,!(Xt&6)&&Aa()}}function TP(){jo=Vu.current,Mn(Vu)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,PG(n)),ur!==null)for(n=ur.return;n!==null;){var r=n;switch(cP(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&wv();break;case 3:gd(),Mn(Eo),Mn(Zr),yP();break;case 5:vP(r);break;case 4:gd();break;case 13:Mn(jn);break;case 19:Mn(jn);break;case 10:pP(r.type._context);break;case 22:case 23:TP()}n=n.return}if(Sr=e,ur=e=ba(e.current,null),Lr=jo=t,mr=0,Jp=null,kP=Ly=Ec=0,wo=Cp=null,ac!==null){for(t=0;t<ac.length;t++)if(n=ac[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}ac=null}return e}function nF(e,t){do{var n=ur;try{if(fP(),zg.current=Tv,Mv){for(var r=Vn.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Mv=!1}if(Pc=0,Cr=pr=Vn=null,bp=!1,Qp=0,EP.current=null,n===null||n.return===null){mr=1,Jp=t,ur=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=D_(i);if(y!==null){y.flags&=-257,A_(y,i,l,s,t),y.mode&1&&O_(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)){O_(s,c,t),_P();break e}a=Error(Ue(426))}}else if(Ln&&l.mode&1){var C=D_(i);if(C!==null){!(C.flags&65536)&&(C.flags|=256),A_(C,i,l,s,t),uP(vd(a,l));break e}}s=a=vd(a,l),mr!==4&&(mr=2),Cp===null?Cp=[s]:Cp.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var w=BL(s,a,t);k_(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=jL(s,l,t);k_(s,P);break e}}s=s.return}while(s!==null)}sF(n)}catch(M){t=M,ur===n&&n!==null&&(ur=n=n.return);continue}break}while(1)}function rF(){var e=_v.current;return _v.current=Tv,e===null?Tv:e}function _P(){(mr===0||mr===3||mr===2)&&(mr=4),Sr===null||!(Ec&268435455)&&!(Ly&268435455)||ra(Sr,Lr)}function Ov(e,t){var n=Xt;Xt|=2;var r=rF();(Sr!==e||Lr!==t)&&(sl=null,pc(e,t));do try{YG();break}catch(o){nF(e,o)}while(1);if(fP(),Xt=n,_v.current=r,ur!==null)throw Error(Ue(261));return Sr=null,Lr=0,mr}function YG(){for(;ur!==null;)oF(ur)}function QG(){for(;ur!==null&&!CW();)oF(ur)}function oF(e){var t=lF(e.alternate,e,jo);e.memoizedProps=e.pendingProps,t===null?sF(e):ur=t,EP.current=null}function sF(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=HG(n,t),n!==null){n.flags&=32767,ur=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{mr=6,ur=null;return}}else if(n=VG(n,t,jo),n!==null){ur=n;return}if(t=t.sibling,t!==null){ur=t;return}ur=t=e}while(t!==null);mr===0&&(mr=5)}function rc(e,t,n){var r=fn,o=_s.transition;try{_s.transition=null,fn=1,XG(e,t,n,r)}finally{_s.transition=o,fn=r}return null}function XG(e,t,n,r){do td();while(ia!==null);if(Xt&6)throw Error(Ue(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(Ue(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if($W(e,s),e===Sr&&(ur=Sr=null,Lr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||cg||(cg=!0,aF(hv,function(){return td(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=_s.transition,_s.transition=null;var i=fn;fn=1;var l=Xt;Xt|=4,EP.current=null,WG(e,n),JL(n,e),vG(rx),gv=!!nx,rx=nx=null,e.current=n,GG(n),xW(),Xt=l,fn=i,_s.transition=s}else e.current=n;if(cg&&(cg=!1,ia=e,Rv=o),s=e.pendingLanes,s===0&&(va=null),EW(n.stateNode),Io(e,nr()),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($v)throw $v=!1,e=Sx,Sx=null,e;return Rv&1&&e.tag!==0&&td(),s=e.pendingLanes,s&1?e===Px?xp++:(xp=0,Px=e):xp=0,Aa(),null}function td(){if(ia!==null){var e=NA(Rv),t=_s.transition,n=fn;try{if(_s.transition=null,fn=16>e?16:e,ia===null)var r=!1;else{if(e=ia,ia=null,Rv=0,Xt&6)throw Error(Ue(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:wp(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(QL(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:wp(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:Ay(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(),_i&&typeof _i.onPostCommitFiberRoot=="function")try{_i.onPostCommitFiberRoot(Iy,e)}catch(M){}r=!0}return r}finally{fn=n,_s.transition=t}}return!1}function q_(e,t,n){t=vd(n,t),t=BL(e,t,1),e=ga(e,t,1),t=co(),e!==null&&(_h(e,1,t),Io(e,t))}function Kn(e,t,n){if(e.tag===3)q_(e,e,n);else for(;t!==null;){if(t.tag===3){q_(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=vd(n,e),e=jL(t,e,1),t=ga(t,e,1),e=co(),t!==null&&(_h(t,1,e),Io(t,e));break}}t=t.return}}function ZG(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=co(),e.pingedLanes|=e.suspendedLanes&n,Sr===e&&(Lr&n)===n&&(mr===4||mr===3&&(Lr&130023424)===Lr&&500>nr()-IP?pc(e,0):kP|=n),Io(e,t)}function iF(e,t){t===0&&(e.mode&1?(t=Jm,Jm<<=1,!(Jm&130023424)&&(Jm=4194304)):t=1);var n=co();e=bl(e,t),e!==null&&(_h(e,t,n),Io(e,n))}function JG(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),iF(e,n)}function eK(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(Ue(314))}r!==null&&r.delete(t),iF(e,n)}var lF;lF=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,zG(e,t,n);Po=!!(e.flags&131072)}else Po=!1,Ln&&t.flags&1048576&&uL(t,Sv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hg(e,t),e=t.pendingProps;var o=pd(t,Zr.current);ed(t,n),o=wP(null,t,r,e,o,n);var s=CP();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,Cv(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,mP(t),o.updater=Oy,t.stateNode=o,o._reactInternals=t,fx(t,r,e,n),t=mx(null,t,r,!0,s,n)):(t.tag=0,Ln&&s&&aP(t),so(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hg(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=nK(r),e=Xs(r,e),o){case 0:t=hx(null,t,r,e,n);break e;case 1:t=N_(null,t,r,e,n);break e;case 11:t=L_(null,t,r,e,n);break e;case 14:t=F_(null,t,r,Xs(r.type,e),n);break e}throw Error(Ue(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xs(r,o),hx(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xs(r,o),N_(e,t,r,o,n);case 3:e:{if(UL(t),e===null)throw Error(Ue(387));r=t.pendingProps,s=t.memoizedState,o=s.element,hL(e,t),kv(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=vd(Error(Ue(423)),t),t=B_(e,t,r,n,o);break e}else if(r!==o){o=vd(Error(Ue(424)),t),t=B_(e,t,r,n,o);break e}else for(qo=ma(t.stateNode.containerInfo.firstChild),Yo=t,Ln=!0,ei=null,n=yL(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(hd(),r===o){t=wl(e,t,n);break e}so(e,t,r,n)}t=t.child}return t;case 5:return bL(t),e===null&&cx(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,ox(r,o)?i=null:s!==null&&ox(r,s)&&(t.flags|=32),HL(e,t),so(e,t,i,n),t.child;case 6:return e===null&&cx(t),null;case 13:return WL(e,t,n);case 4:return gP(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=md(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),L_(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(Pv,r._currentValue),r._currentValue=i,s!==null)if(di(s.value,i)){if(s.children===o.children&&!Eo.current){t=wl(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=hl(-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),ux(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(Ue(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),ux(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,ed(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),F_(e,t,r,o,n);case 15:return zL(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xs(r,o),Hg(e,t),t.tag=1,ko(r)?(e=!0,Cv(t)):e=!1,ed(t,n),gL(t,r,o),fx(t,r,o,n),mx(null,t,r,!0,e,n);case 19:return GL(e,t,n);case 22:return VL(e,t,n)}throw Error(Ue(156,t.tag))};function aF(e,t){return DA(e,t)}function tK(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 Ts(e,t,n,r){return new tK(e,t,n,r)}function $P(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nK(e){if(typeof e=="function")return $P(e)?1:0;if(e!=null){if(e=e.$$typeof,e===QS)return 11;if(e===XS)return 14}return 2}function ba(e,t){var n=e.alternate;return n===null?(n=Ts(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 Gg(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")$P(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Ru:return hc(n.children,o,s,t);case YS:i=8,o|=8;break;case LC:return e=Ts(12,n,t,o|2),e.elementType=LC,e.lanes=s,e;case FC:return e=Ts(13,n,t,o),e.elementType=FC,e.lanes=s,e;case NC:return e=Ts(19,n,t,o),e.elementType=NC,e.lanes=s,e;case vA:return Fy(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case mA:i=10;break e;case gA:i=9;break e;case QS:i=11;break e;case XS:i=14;break e;case Xl:i=16,r=null;break e}throw Error(Ue(130,e==null?e:typeof e,""))}return t=Ts(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function hc(e,t,n,r){return e=Ts(7,e,r,t),e.lanes=n,e}function Fy(e,t,n,r){return e=Ts(22,e,r,t),e.elementType=vA,e.lanes=n,e.stateNode={isHidden:!1},e}function _w(e,t,n){return e=Ts(6,e,null,t),e.lanes=n,e}function $w(e,t,n){return t=Ts(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function rK(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=dw(0),this.expirationTimes=dw(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dw(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function RP(e,t,n,r,o,s,i,l,a){return e=new rK(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ts(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},mP(s),e}function oK(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$u,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function cF(e){if(!e)return ka;e=e._reactInternals;e:{if(Bc(e)!==e||e.tag!==1)throw Error(Ue(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(Ue(171))}if(e.tag===1){var n=e.type;if(ko(n))return aL(e,n,t)}return t}function uF(e,t,n,r,o,s,i,l,a){return e=RP(n,r,!0,e,o,s,i,l,a),e.context=cF(null),n=e.current,r=co(),o=ya(n),s=hl(r,o),s.callback=t!=null?t:null,ga(n,s,o),e.current.lanes=o,_h(e,o,r),Io(e,r),e}function Ny(e,t,n,r){var o=t.current,s=co(),i=ya(o);return n=cF(n),t.context===null?t.context=n:t.pendingContext=n,t=hl(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),jg(e,o,i)),i}function Dv(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 Y_(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function OP(e,t){Y_(e,t),(e=e.alternate)&&Y_(e,t)}function sK(){return null}var dF=typeof reportError=="function"?reportError:function(e){console.error(e)};function DP(e){this._internalRoot=e}By.prototype.render=DP.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Ue(409));Ny(e,t,null,null)};By.prototype.unmount=DP.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;kc(function(){Ny(null,e,null,null)}),t[yl]=null}};function By(e){this._internalRoot=e}By.prototype.unstable_scheduleHydration=function(e){if(e){var t=zA();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&&HA(e)}};function AP(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function jy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Q_(){}function iK(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var c=Dv(i);s.call(c)}}var i=uF(t,r,e,0,null,!1,!1,"",Q_);return e._reactRootContainer=i,e[yl]=i.current,Wp(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=Dv(a);l.call(c)}}var a=RP(e,0,!1,null,null,!1,!1,"",Q_);return e._reactRootContainer=a,e[yl]=a.current,Wp(e.nodeType===8?e.parentNode:e),kc(function(){Ny(t,a,n,r)}),a}function zy(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=Dv(i);l.call(a)}}Ny(t,i,e,o)}else i=iK(n,t,e,o,r);return Dv(i)}BA=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=tp(t.pendingLanes);n!==0&&(eP(t,n|1),Io(t,nr()),!(Xt&6)&&(yd=nr()+500,Aa()))}break;case 13:kc(function(){var r=bl(e,1);if(r!==null){var o=co();li(r,e,1,o)}}),OP(e,1)}};tP=function(e){if(e.tag===13){var t=bl(e,134217728);if(t!==null){var n=co();li(t,e,134217728,n)}OP(e,134217728)}};jA=function(e){if(e.tag===13){var t=ya(e),n=bl(e,t);if(n!==null){var r=co();li(n,e,t,r)}OP(e,t)}};zA=function(){return fn};VA=function(e,t){var n=fn;try{return fn=e,t()}finally{fn=n}};qC=function(e,t,n){switch(t){case"input":if(zC(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=$y(r);if(!o)throw Error(Ue(90));bA(r),zC(r,o)}}}break;case"textarea":CA(e,n);break;case"select":t=n.value,t!=null&&Qu(e,!!n.multiple,t,!1)}};MA=MP;TA=kc;var lK={usingClientEntryPoint:!1,Events:[Rh,Lu,$y,kA,IA,MP]},Af={findFiberByHostInstance:lc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},aK={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:Il.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=RA(e),e===null?null:e.stateNode},findFiberByHostInstance:Af.findFiberByHostInstance||sK,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 ug=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ug.isDisabled&&ug.supportsFiber)try{Iy=ug.inject(aK),_i=ug}catch(e){}}ss.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lK;ss.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!AP(t))throw Error(Ue(200));return oK(e,t,null,n)};ss.createRoot=function(e,t){if(!AP(e))throw Error(Ue(299));var n=!1,r="",o=dF;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=RP(e,1,!1,null,null,n,!1,r,o),e[yl]=t.current,Wp(e.nodeType===8?e.parentNode:e),new DP(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(Ue(188)):(e=Object.keys(e).join(","),Error(Ue(268,e)));return e=RA(t),e=e===null?null:e.stateNode,e};ss.flushSync=function(e){return kc(e)};ss.hydrate=function(e,t,n){if(!jy(t))throw Error(Ue(200));return zy(null,e,t,!0,n)};ss.hydrateRoot=function(e,t,n){if(!AP(e))throw Error(Ue(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=dF;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=uF(t,null,e,1,n!=null?n:null,o,!1,s,i),e[yl]=t.current,Wp(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 By(t)};ss.render=function(e,t,n){if(!jy(t))throw Error(Ue(200));return zy(null,e,t,!1,n)};ss.unmountComponentAtNode=function(e){if(!jy(e))throw Error(Ue(40));return e._reactRootContainer?(kc(function(){zy(null,null,e,!1,function(){e._reactRootContainer=null,e[yl]=null})}),!0):!1};ss.unstable_batchedUpdates=MP;ss.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!jy(n))throw Error(Ue(200));if(e==null||e._reactInternals===void 0)throw Error(Ue(38));return zy(e,t,n,!1,r)};ss.version="18.2.0-next-9e3b772b8-20220608";function fF(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(fF)}catch(e){console.error(e)}}fF(),uA.exports=ss;var zd=uA.exports;const dg=pi(zd);var pF,X_=zd;pF=X_.createRoot,X_.hydrateRoot;const cK="modulepreload",uK=function(e){return"/"+e},Z_={},dK=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=uK(s),s in Z_)return;Z_[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":cK,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 tA;if(!((tA=window.crypto)!=null&&tA.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 dK(()=>import("./sha512-c9d3d113.js").then(i=>i.s),[])).default.arrayBuffer;return s(r)})}};window.crypto||(window.crypto={subtle:e}),crypto.subtle||(crypto.subtle=e)}/**
|
|
33
|
-
* @remix-run/router v1.14.2
|
|
34
|
-
*
|
|
35
|
-
* Copyright (c) Remix Software Inc.
|
|
36
|
-
*
|
|
37
|
-
* This source code is licensed under the MIT license found in the
|
|
38
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
39
|
-
*
|
|
40
|
-
* @license MIT
|
|
41
|
-
*/function eh(){return eh=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},eh.apply(this,arguments)}var la;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(la||(la={}));const J_="popstate";function fK(e){e===void 0&&(e={});function t(o,s){let{pathname:i="/",search:l="",hash:a=""}=jc(o.location.hash.substr(1));return!i.startsWith("/")&&!i.startsWith(".")&&(i="/"+i),Ix("",{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:Av(s))}function r(o,s){Vy(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(s)+")")}return hK(t,n,r,e)}function Xn(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function Vy(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function pK(){return Math.random().toString(36).substr(2,8)}function e$(e,t){return{usr:e.state,key:e.key,idx:t}}function Ix(e,t,n,r){return n===void 0&&(n=null),eh({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?jc(t):t,{state:n,key:t&&t.key||r||pK()})}function Av(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 jc(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 hK(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(eh({},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=Ix(m.location,C,w);n&&n(b,C),c=f()+1;let x=e$(b,c),P=m.createHref(b);try{i.pushState(x,"",P)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;o.location.assign(P)}s&&a&&a({action:l,location:m.location,delta:1})}function y(C,w){l=la.Replace;let b=Ix(m.location,C,w);n&&n(b,C),c=f();let x=e$(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:Av(C);return Xn(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(J_,p),a=C,()=>{o.removeEventListener(J_,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 t$;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(t$||(t$={}));function mK(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?jc(t):t,o=bd(r.pathname||"/",n);if(o==null)return null;let s=hF(e);gK(s);let i=null;for(let l=0;i==null&&l<s.length;++l)i=EK(s[l],IK(o));return i}function hF(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("/")&&(Xn(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&&(Xn(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),hF(s.children,t,f,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:SK(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 mF(s.path))o(s,i,a)}),t}function mF(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=mF(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 gK(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:PK(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const vK=/^:[\w-]+$/,yK=3,bK=2,wK=1,CK=10,xK=-2,n$=e=>e==="*";function SK(e,t){let n=e.split("/"),r=n.length;return n.some(n$)&&(r+=xK),t&&(r+=bK),n.filter(o=>!n$(o)).reduce((o,s)=>o+(vK.test(s)?yK:s===""?wK:CK),r)}function PK(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function EK(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=Mx({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:RK(wa([o,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(o=wa([o,f.pathnameBase]))}return s}function Mx(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=kK(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],i=s.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((c,f,p)=>{let{paramName:h,isOptional:y}=f;if(h==="*"){let m=l[p]||"";i=s.slice(0,s.length-m.length).replace(/(.)\/+$/,"$1")}const v=l[p];return y&&!v?c[h]=void 0:c[h]=MK(v||"",h),c},{}),pathname:s,pathnameBase:i,pattern:e}}function kK(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Vy(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function IK(e){try{return decodeURI(e)}catch(t){return Vy(!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 MK(e,t){try{return decodeURIComponent(e)}catch(n){return Vy(!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 bd(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 TK(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?jc(e):e;return{pathname:n?n.startsWith("/")?n:_K(n,t):t,search:OK(r),hash:DK(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 Rw(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 $K(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function gF(e,t){let n=$K(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function vF(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=jc(e):(o=eh({},e),Xn(!o.pathname||!o.pathname.includes("?"),Rw("?","pathname","search",o)),Xn(!o.pathname||!o.pathname.includes("#"),Rw("#","pathname","hash",o)),Xn(!o.search||!o.search.includes("#"),Rw("#","search","hash",o)));let s=e===""||o.pathname==="",i=s?"/":o.pathname,l;if(i==null)l=n;else{let p=t.length-1;if(!r&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),p-=1;o.pathname=h.join("/")}l=p>=0?t[p]:"/"}let a=TK(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,"/"),RK=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),OK=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,DK=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function AK(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const yF=["post","put","patch","delete"];new Set(yF);const LK=["get",...yF];new Set(LK);/**
|
|
42
|
-
* React Router v6.21.3
|
|
43
|
-
*
|
|
44
|
-
* Copyright (c) Remix Software Inc.
|
|
45
|
-
*
|
|
46
|
-
* This source code is licensed under the MIT license found in the
|
|
47
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
48
|
-
*
|
|
49
|
-
* @license MIT
|
|
50
|
-
*/function th(){return th=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},th.apply(this,arguments)}const Hy=u.createContext(null),bF=u.createContext(null),La=u.createContext(null),Uy=u.createContext(null),zc=u.createContext({outlet:null,matches:[],isDataRoute:!1}),wF=u.createContext(null);function FK(e,t){let{relative:n}=t===void 0?{}:t;Dh()||Xn(!1);let{basename:r,navigator:o}=u.useContext(La),{hash:s,pathname:i,search:l}=Wy(e,{relative:n}),a=i;return r!=="/"&&(a=i==="/"?r:wa([r,i])),o.createHref({pathname:a,search:l,hash:s})}function Dh(){return u.useContext(Uy)!=null}function Vd(){return Dh()||Xn(!1),u.useContext(Uy).location}function CF(e){u.useContext(La).static||u.useLayoutEffect(e)}function xF(){let{isDataRoute:e}=u.useContext(zc);return e?QK():NK()}function NK(){Dh()||Xn(!1);let e=u.useContext(Hy),{basename:t,future:n,navigator:r}=u.useContext(La),{matches:o}=u.useContext(zc),{pathname:s}=Vd(),i=JSON.stringify(gF(o,n.v7_relativeSplatPath)),l=u.useRef(!1);return CF(()=>{l.current=!0}),u.useCallback(function(c,f){if(f===void 0&&(f={}),!l.current)return;if(typeof c=="number"){r.go(c);return}let p=vF(c,JSON.parse(i),s,f.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:wa([t,p.pathname])),(f.replace?r.replace:r.push)(p,f.state,f)},[t,r,i,s,e])}function Wy(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=u.useContext(La),{matches:o}=u.useContext(zc),{pathname:s}=Vd(),i=JSON.stringify(gF(o,r.v7_relativeSplatPath));return u.useMemo(()=>vF(e,JSON.parse(i),s,n==="path"),[e,i,s,n])}function BK(e,t){return jK(e,t)}function jK(e,t,n,r){Dh()||Xn(!1);let{navigator:o}=u.useContext(La),{matches:s}=u.useContext(zc),i=s[s.length-1],l=i?i.params:{};i&&i.pathname;let a=i?i.pathnameBase:"/";i&&i.route;let c=Vd(),f;if(t){var p;let C=typeof t=="string"?jc(t):t;a==="/"||(p=C.pathname)!=null&&p.startsWith(a)||Xn(!1),f=C}else f=c;let h=f.pathname||"/",y=a==="/"?h:h.slice(a.length)||"/",v=mK(e,{pathname:y}),m=WK(v&&v.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:wa([a,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?a:wa([a,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),s,n,r);return t&&m?u.createElement(Uy.Provider,{value:{location:th({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:la.Pop}},m):m}function zK(){let e=YK(),t=AK(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},s=null;return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),n?u.createElement("pre",{style:o},n):null,s)}const VK=u.createElement(zK,null);class HK extends u.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?u.createElement(zc.Provider,{value:this.props.routeContext},u.createElement(wF.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function UK(e){let{routeContext:t,match:n,children:r}=e,o=u.useContext(Hy);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement(zc.Provider,{value:t},r)}function WK(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if((s=n)!=null&&s.errors)e=n.matches;else return null}let i=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let f=i.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id]));f>=0||Xn(!1),i=i.slice(0,Math.min(i.length,f+1))}let a=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<i.length;f++){let p=i[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(c=f),p.route.id){let{loaderData:h,errors:y}=n,v=p.route.loader&&h[p.route.id]===void 0&&(!y||y[p.route.id]===void 0);if(p.route.lazy||v){a=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((f,p,h)=>{let y,v=!1,m=null,C=null;n&&(y=l&&p.route.id?l[p.route.id]:void 0,m=p.route.errorElement||VK,a&&(c<0&&h===0?(XK("route-fallback",!1),v=!0,C=null):c===h&&(v=!0,C=p.route.hydrateFallbackElement||null)));let w=t.concat(i.slice(0,h+1)),b=()=>{let x;return y?x=m:v?x=C:p.route.Component?x=u.createElement(p.route.Component,null):p.route.element?x=p.route.element:x=f,u.createElement(UK,{match:p,routeContext:{outlet:f,matches:w,isDataRoute:n!=null},children:x})};return n&&(p.route.ErrorBoundary||p.route.errorElement||h===0)?u.createElement(HK,{location:n.location,revalidation:n.revalidation,component:m,error:y,children:b(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):b()},null)}var SF=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(SF||{}),Lv=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Lv||{});function GK(e){let t=u.useContext(Hy);return t||Xn(!1),t}function KK(e){let t=u.useContext(bF);return t||Xn(!1),t}function qK(e){let t=u.useContext(zc);return t||Xn(!1),t}function PF(e){let t=qK(),n=t.matches[t.matches.length-1];return n.route.id||Xn(!1),n.route.id}function YK(){var e;let t=u.useContext(wF),n=KK(Lv.UseRouteError),r=PF(Lv.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function QK(){let{router:e}=GK(SF.UseNavigateStable),t=PF(Lv.UseNavigateStable),n=u.useRef(!1);return CF(()=>{n.current=!0}),u.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,th({fromRouteId:t},s)))},[e,t])}const r$={};function XK(e,t,n){!t&&!r$[e]&&(r$[e]=!0)}function Tx(e){Xn(!1)}function ZK(e){let{basename:t="/",children:n=null,location:r,navigationType:o=la.Pop,navigator:s,static:i=!1,future:l}=e;Dh()&&Xn(!1);let a=t.replace(/^\/*/,"/"),c=u.useMemo(()=>({basename:a,navigator:s,static:i,future:th({v7_relativeSplatPath:!1},l)}),[a,l,s,i]);typeof r=="string"&&(r=jc(r));let{pathname:f="/",search:p="",hash:h="",state:y=null,key:v="default"}=r,m=u.useMemo(()=>{let C=bd(f,a);return C==null?null:{location:{pathname:C,search:p,hash:h,state:y,key:v},navigationType:o}},[a,f,p,h,y,v,o]);return m==null?null:u.createElement(La.Provider,{value:c},u.createElement(Uy.Provider,{children:n,value:m}))}function JK(e){let{children:t,location:n}=e;return BK(_x(t),n)}new Promise(()=>{});function _x(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,_x(r.props.children,s));return}r.type!==Tx&&Xn(!1),!r.props.index||!r.props.children||Xn(!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=_x(r.props.children,s)),n.push(i)}),n}/**
|
|
51
|
-
* React Router DOM v6.21.3
|
|
52
|
-
*
|
|
53
|
-
* Copyright (c) Remix Software Inc.
|
|
54
|
-
*
|
|
55
|
-
* This source code is licensed under the MIT license found in the
|
|
56
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
57
|
-
*
|
|
58
|
-
* @license MIT
|
|
59
|
-
*/function Fv(){return Fv=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},Fv.apply(this,arguments)}function EF(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 eq(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function tq(e,t){return e.button===0&&(!t||t==="_self")&&!eq(e)}const nq=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],rq=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],oq=u.createContext({isTransitioning:!1}),sq="startTransition",o$=Lp[sq];function iq(e){let{basename:t,children:n,future:r,window:o}=e,s=u.useRef();s.current==null&&(s.current=fK({window:o,v5Compat:!0}));let i=s.current,[l,a]=u.useState({action:i.action,location:i.location}),{v7_startTransition:c}=r||{},f=u.useCallback(p=>{c&&o$?o$(()=>a(p)):a(p)},[a,c]);return u.useLayoutEffect(()=>i.listen(f),[i,f]),u.createElement(ZK,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:i,future:r})}const lq=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",aq=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,LP=u.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:i,state:l,target:a,to:c,preventScrollReset:f,unstable_viewTransition:p}=t,h=EF(t,nq),{basename:y}=u.useContext(La),v,m=!1;if(typeof c=="string"&&aq.test(c)&&(v=c,lq))try{let x=new URL(window.location.href),P=c.startsWith("//")?new URL(x.protocol+c):new URL(c),M=bd(P.pathname,y);P.origin===x.origin&&M!=null?c=M+P.search+P.hash:m=!0}catch(x){}let C=FK(c,{relative:o}),w=dq(c,{replace:i,state:l,target:a,preventScrollReset:f,relative:o,unstable_viewTransition:p});function b(x){r&&r(x),x.defaultPrevented||w(x)}return u.createElement("a",Fv({},h,{href:v||C,onClick:m||s?r:b,ref:n,target:a}))}),cq=u.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:s="",end:i=!1,style:l,to:a,unstable_viewTransition:c,children:f}=t,p=EF(t,rq),h=Wy(a,{relative:p.relative}),y=Vd(),v=u.useContext(bF),{navigator:m,basename:C}=u.useContext(La),w=v!=null&&fq(h)&&c===!0,b=m.encodeLocation?m.encodeLocation(h).pathname:h.pathname,x=y.pathname,P=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;o||(x=x.toLowerCase(),P=P?P.toLowerCase():null,b=b.toLowerCase()),P&&C&&(P=bd(P,C)||P);const M=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let E=x===b||!i&&x.startsWith(b)&&x.charAt(M)==="/",I=P!=null&&(P===b||!i&&P.startsWith(b)&&P.charAt(b.length)==="/"),R={isActive:E,isPending:I,isTransitioning:w},O=E?r:void 0,T;typeof s=="function"?T=s(R):T=[s,E?"active":null,I?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let A=typeof l=="function"?l(R):l;return u.createElement(LP,Fv({},p,{"aria-current":O,className:T,ref:n,style:A,to:a,unstable_viewTransition:c}),typeof f=="function"?f(R):f)});var $x;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})($x||($x={}));var s$;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(s$||(s$={}));function uq(e){let t=u.useContext(Hy);return t||Xn(!1),t}function dq(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:i,unstable_viewTransition:l}=t===void 0?{}:t,a=xF(),c=Vd(),f=Wy(e,{relative:i});return u.useCallback(p=>{if(tq(p,n)){p.preventDefault();let h=r!==void 0?r:Av(c)===Av(f);a(e,{replace:h,state:o,preventScrollReset:s,relative:i,unstable_viewTransition:l})}},[c,a,f,r,o,n,e,s,i,l])}function fq(e,t){t===void 0&&(t={});let n=u.useContext(oq);n==null&&Xn(!1);let{basename:r}=uq($x.useViewTransitionState),o=Wy(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=bd(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=bd(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Mx(o.pathname,i)!=null||Mx(o.pathname,s)!=null}const pq={black:"#000",white:"#fff"},nh=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"},cu=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"},uu=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"},du=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"},fu=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"},pu=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 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."}const Ic="$$material";function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S.apply(this,arguments)}const xq=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"}));function ae(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 kF(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Sq=/^((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)-.*))$/,Pq=kF(function(e){return Sq.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Eq(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 kq(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 Iq=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(kq(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Eq(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-",Nv="-moz-",tn="-webkit-",IF="comm",FP="rule",NP="decl",Mq="@import",MF="@keyframes",Tq="@layer",_q=Math.abs,Gy=String.fromCharCode,$q=Object.assign;function Rq(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 TF(e){return e.trim()}function Oq(e,t){return(e=t.exec(e))?e[0]:e}function nn(e,t,n){return e.replace(t,n)}function Rx(e,t){return e.indexOf(t)}function Dr(e,t){return e.charCodeAt(t)|0}function rh(e,t,n){return e.slice(t,n)}function Ei(e){return e.length}function BP(e){return e.length}function fg(e,t){return t.push(e),e}function Dq(e,t){return e.map(t).join("")}var Ky=1,wd=1,_F=0,$o=0,cr=0,Hd="";function qy(e,t,n,r,o,s,i){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Ky,column:wd,length:i,return:""}}function Ff(e,t){return $q(qy("",null,null,"",null,null,0),e,{length:-e.length},t)}function Aq(){return cr}function Lq(){return cr=$o>0?Dr(Hd,--$o):0,wd--,cr===10&&(wd=1,Ky--),cr}function Qo(){return cr=$o<_F?Dr(Hd,$o++):0,wd++,cr===10&&(wd=1,Ky++),cr}function Ri(){return Dr(Hd,$o)}function Kg(){return $o}function Ah(e,t){return rh(Hd,e,t)}function oh(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 $F(e){return Ky=wd=1,_F=Ei(Hd=e),$o=0,[]}function RF(e){return Hd="",e}function qg(e){return TF(Ah($o-1,Ox(e===91?e+2:e===40?e+1:e)))}function Fq(e){for(;(cr=Ri())&&cr<33;)Qo();return oh(e)>2||oh(cr)>3?"":" "}function Nq(e,t){for(;--t&&Qo()&&!(cr<48||cr>102||cr>57&&cr<65||cr>70&&cr<97););return Ah(e,Kg()+(t<6&&Ri()==32&&Qo()==32))}function Ox(e){for(;Qo();)switch(cr){case e:return $o;case 34:case 39:e!==34&&e!==39&&Ox(cr);break;case 40:e===41&&Ox(e);break;case 92:Qo();break}return $o}function Bq(e,t){for(;Qo()&&e+cr!==47+10;)if(e+cr===42+42&&Ri()===47)break;return"/*"+Ah(t,$o-1)+"*"+Gy(e===47?e:Qo())}function jq(e){for(;!oh(Ri());)Qo();return Ah(e,$o)}function zq(e){return RF(Yg("",null,null,null,[""],e=$F(e),0,[0],e))}function Yg(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,I=x;C;)switch(v=b,b=Qo()){case 40:if(v!=108&&Dr(I,p-1)==58){Rx(I+=nn(qg(b),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:I+=qg(b);break;case 9:case 10:case 13:case 32:I+=Fq(v);break;case 92:I+=Nq(Kg()-1,7);continue;case 47:switch(Ri()){case 42:case 47:fg(Vq(Bq(Qo(),Kg()),t,n),a);break;default:I+="/"}break;case 123*m:l[c++]=Ei(I)*w;case 125*m:case 59:case 0:switch(b){case 0:case 125:C=0;case 59+f:w==-1&&(I=nn(I,/\f/g,"")),y>0&&Ei(I)-p&&fg(y>32?l$(I+";",r,n,p-1):l$(nn(I," ","")+";",r,n,p-2),a);break;case 59:I+=";";default:if(fg(E=i$(I,t,n,c,f,o,l,x,P=[],M=[],p),s),b===123)if(f===0)Yg(I,t,E,E,P,s,p,l,M);else switch(h===99&&Dr(I,3)===110?100:h){case 100:case 108:case 109:case 115:Yg(e,E,E,r&&fg(i$(e,E,E,0,0,o,l,x,o,P=[],p),M),o,M,p,l,r?P:M);break;default:Yg(I,E,E,E,[""],M,0,l,M)}}c=f=y=0,m=w=1,x=I="",p=i;break;case 58:p=1+Ei(I),y=v;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&Lq()==125)continue}switch(I+=Gy(b),b*m){case 38:w=f>0?1:(I+="\f",-1);break;case 44:l[c++]=(Ei(I)-1)*w,w=1;break;case 64:Ri()===45&&(I+=qg(Qo())),h=Ri(),f=p=Ei(x=I+=jq(Kg())),b++;break;case 45:v===45&&Ei(I)==2&&(m=0)}}return s}function i$(e,t,n,r,o,s,i,l,a,c,f){for(var p=o-1,h=o===0?s:[""],y=BP(h),v=0,m=0,C=0;v<r;++v)for(var w=0,b=rh(e,p+1,p=_q(m=i[v])),x=e;w<y;++w)(x=TF(m>0?h[w]+" "+b:nn(b,/&\f/g,h[w])))&&(a[C++]=x);return qy(e,t,n,o===0?FP:l,a,c,f)}function Vq(e,t,n){return qy(e,t,n,IF,Gy(Aq()),rh(e,2,-2),0)}function l$(e,t,n,r){return qy(e,t,n,NP,rh(e,0,r),rh(e,r+1,-1),r)}function nd(e,t){for(var n="",r=BP(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Hq(e,t,n,r){switch(e.type){case Tq:if(e.children.length)break;case Mq:case NP:return e.return=e.return||e.value;case IF:return"";case MF:return e.return=e.value+"{"+nd(e.children,r)+"}";case FP:e.value=e.props.join(",")}return Ei(n=nd(e.children,r))?e.return=e.value+"{"+n+"}":""}function Uq(e){var t=BP(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 Wq(e){return function(t){t.root||(t=t.return)&&e(t)}}var Gq=function(t,n,r){for(var o=0,s=0;o=s,s=Ri(),o===38&&s===12&&(n[r]=1),!oh(s);)Qo();return Ah(t,$o)},Kq=function(t,n){var r=-1,o=44;do switch(oh(o)){case 0:o===38&&Ri()===12&&(n[r]=1),t[r]+=Gq($o-1,n,r);break;case 2:t[r]+=qg(o);break;case 4:if(o===44){t[++r]=Ri()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Gy(o)}while(o=Qo());return t},qq=function(t,n){return RF(Kq($F(t),n))},a$=new WeakMap,Yq=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&&!a$.get(r))&&!o){a$.set(t,!0);for(var s=[],i=qq(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]}}},Qq=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function OF(e,t){switch(Rq(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+Nv+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"+Nv+(Dr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Rx(e,"stretch")?OF(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-(~Rx(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 Xq=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case NP:t.return=OF(t.value,t.length);break;case MF:return nd([Ff(t,{value:nn(t.value,"@","@"+tn)})],o);case FP:if(t.length)return Dq(t.props,function(s){switch(Oq(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return nd([Ff(t,{props:[nn(s,/:(read-\w+)/,":"+Nv+"$1")]})],o);case"::placeholder":return nd([Ff(t,{props:[nn(s,/:(plac\w+)/,":"+tn+"input-$1")]}),Ff(t,{props:[nn(s,/:(plac\w+)/,":"+Nv+"$1")]}),Ff(t,{props:[nn(s,/:(plac\w+)/,Hr+"input-$1")]})],o)}return""})}},Zq=[Xq],Jq=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||Zq,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=[Yq,Qq];{var f,p=[Hq,Wq(function(m){f.insert(m)})],h=Uq(c.concat(o,p)),y=function(C){return nd(zq(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 Iq({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},DF={exports:{}},hn={};/** @license React v16.13.1
|
|
60
|
-
* react-is.production.min.js
|
|
61
|
-
*
|
|
62
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
63
|
-
*
|
|
64
|
-
* This source code is licensed under the MIT license found in the
|
|
65
|
-
* LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/var kr=typeof Symbol=="function"&&Symbol.for,jP=kr?Symbol.for("react.element"):60103,zP=kr?Symbol.for("react.portal"):60106,Yy=kr?Symbol.for("react.fragment"):60107,Qy=kr?Symbol.for("react.strict_mode"):60108,Xy=kr?Symbol.for("react.profiler"):60114,Zy=kr?Symbol.for("react.provider"):60109,Jy=kr?Symbol.for("react.context"):60110,VP=kr?Symbol.for("react.async_mode"):60111,e1=kr?Symbol.for("react.concurrent_mode"):60111,t1=kr?Symbol.for("react.forward_ref"):60112,n1=kr?Symbol.for("react.suspense"):60113,eY=kr?Symbol.for("react.suspense_list"):60120,r1=kr?Symbol.for("react.memo"):60115,o1=kr?Symbol.for("react.lazy"):60116,tY=kr?Symbol.for("react.block"):60121,nY=kr?Symbol.for("react.fundamental"):60117,rY=kr?Symbol.for("react.responder"):60118,oY=kr?Symbol.for("react.scope"):60119;function ls(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case jP:switch(e=e.type,e){case VP:case e1:case Yy:case Xy:case Qy:case n1:return e;default:switch(e=e&&e.$$typeof,e){case Jy:case t1:case o1:case r1:case Zy:return e;default:return t}}case zP:return t}}}function AF(e){return ls(e)===e1}hn.AsyncMode=VP;hn.ConcurrentMode=e1;hn.ContextConsumer=Jy;hn.ContextProvider=Zy;hn.Element=jP;hn.ForwardRef=t1;hn.Fragment=Yy;hn.Lazy=o1;hn.Memo=r1;hn.Portal=zP;hn.Profiler=Xy;hn.StrictMode=Qy;hn.Suspense=n1;hn.isAsyncMode=function(e){return AF(e)||ls(e)===VP};hn.isConcurrentMode=AF;hn.isContextConsumer=function(e){return ls(e)===Jy};hn.isContextProvider=function(e){return ls(e)===Zy};hn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===jP};hn.isForwardRef=function(e){return ls(e)===t1};hn.isFragment=function(e){return ls(e)===Yy};hn.isLazy=function(e){return ls(e)===o1};hn.isMemo=function(e){return ls(e)===r1};hn.isPortal=function(e){return ls(e)===zP};hn.isProfiler=function(e){return ls(e)===Xy};hn.isStrictMode=function(e){return ls(e)===Qy};hn.isSuspense=function(e){return ls(e)===n1};hn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Yy||e===e1||e===Xy||e===Qy||e===n1||e===eY||typeof e=="object"&&e!==null&&(e.$$typeof===o1||e.$$typeof===r1||e.$$typeof===Zy||e.$$typeof===Jy||e.$$typeof===t1||e.$$typeof===nY||e.$$typeof===rY||e.$$typeof===oY||e.$$typeof===tY)};hn.typeOf=ls;DF.exports=hn;var sY=DF.exports,LF=sY,iY={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},lY={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},FF={};FF[LF.ForwardRef]=iY;FF[LF.Memo]=lY;var aY=!0;function cY(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var NF=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||aY===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},BF=function(t,n,r){NF(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 uY(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 dY={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},fY=/[A-Z]|^ms/g,pY=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jF=function(t){return t.charCodeAt(1)===45},c$=function(t){return t!=null&&typeof t!="boolean"},Ow=kF(function(e){return jF(e)?e:e.replace(fY,"-$&").toLowerCase()}),u$=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(pY,function(r,o,s){return ki={name:o,styles:s,next:ki},o})}return dY[t]!==1&&!jF(t)&&typeof n=="number"&&n!==0?n+"px":n};function sh(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 hY(e,t,n)}case"function":{if(e!==void 0){var s=ki,i=n(e);return ki=s,sh(e,t,i)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function hY(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=sh(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]+"}":c$(i)&&(r+=Ow(s)+":"+u$(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++)c$(i[l])&&(r+=Ow(s)+":"+u$(s,i[l])+";");else{var a=sh(e,t,i);switch(s){case"animation":case"animationName":{r+=Ow(s)+":"+a+";";break}default:r+=s+"{"+a+"}"}}}return r}var d$=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ki,HP=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+=sh(r,n,i)):s+=i[0];for(var l=1;l<t.length;l++)s+=sh(r,n,t[l]),o&&(s+=i[l]);d$.lastIndex=0;for(var a="",c;(c=d$.exec(s))!==null;)a+="-"+c[1];var f=uY(s)+a;return{name:f,styles:s,next:ki}},mY=function(t){return t()},zF=Lp["useInsertionEffect"]?Lp["useInsertionEffect"]:!1,gY=zF||mY,f$=zF||u.useLayoutEffect,VF=u.createContext(typeof HTMLElement!="undefined"?Jq({key:"css"}):null);VF.Provider;var HF=function(t){return u.forwardRef(function(n,r){var o=u.useContext(VF);return t(n,o,r)})},s1=u.createContext({}),vY=HF(function(e,t){var n=e.styles,r=HP([n],void 0,u.useContext(s1)),o=u.useRef();return f$(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]),f$(function(){var s=o.current,i=s[0],l=s[1];if(l){s[1]=!1;return}if(r.next!==void 0&&BF(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 HP(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_"}}},yY=Pq,bY=function(t){return t!=="theme"},p$=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?yY:bY},h$=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},wY=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return NF(n,r,o),gY(function(){return BF(n,r,o)}),null},CY=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=h$(t,n,r),a=l||p$(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=HF(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(s1)}typeof m.className=="string"?x=cY(C.registered,P,m.className):m.className!=null&&(x=m.className+" ");var I=HP(p.concat(P),C.registered,M);x+=C.key+"-"+I.name,i!==void 0&&(x+=" "+i);var R=c&&l===void 0?p$(b):a,O={};for(var T in m)c&&T==="as"||R(T)&&(O[T]=m[T]);return O.className=x,O.ref=w,u.createElement(u.Fragment,null,u.createElement(wY,{cache:C,serialized:I,isStringTag:typeof b=="string"}),u.createElement(b,O))});return v.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=o,v.__emotion_styles=p,v.__emotion_forwardProp=l,Object.defineProperty(v,"toString",{value:function(){return"."+i}}),v.withComponent=function(m,C){return e(m,S({},n,C,{shouldForwardProp:h$(v,C,!0)})).apply(void 0,p)},v}},xY=["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"],Dx=CY.bind();xY.forEach(function(e){Dx[e]=Dx(e)});var UF={exports:{}},SY="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",PY=SY,EY=PY;function WF(){}function GF(){}GF.resetWarningCache=WF;var kY=function(){function e(r,o,s,i,l,a){if(a!==EY){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:GF,resetWarningCache:WF};return n.PropTypes=n,n};UF.exports=kY();var IY=UF.exports;const W=pi(IY);var Dw={exports:{}},Nf={};/**
|
|
67
|
-
* @license React
|
|
68
|
-
* react-jsx-runtime.production.min.js
|
|
69
|
-
*
|
|
70
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
71
|
-
*
|
|
72
|
-
* This source code is licensed under the MIT license found in the
|
|
73
|
-
* LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/var m$;function MY(){if(m$)return Nf;m$=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 g$;function Je(){return g$||(g$=1,Dw.exports=MY()),Dw.exports}var D=Je();function TY(e){return e==null||Object.keys(e).length===0}function _Y(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(TY(o)?n:o):t;return D.jsx(vY,{styles:r})}/**
|
|
75
|
-
* @mui/styled-engine v5.15.6
|
|
76
|
-
*
|
|
77
|
-
* @license MIT
|
|
78
|
-
* This source code is licensed under the MIT license found in the
|
|
79
|
-
* LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/function KF(e,t){return Dx(e,t)}const $Y=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function RY(e,t){return()=>null}function ll(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function qF(e){if(!ll(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=qF(e[n])}),t}function Yr(e,t,n={clone:!0}){const r=n.clone?S({},e):e;return ll(e)&&ll(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(ll(t[o])&&o in e&&ll(e[o])?r[o]=Yr(e[o],t[o],n):n.clone?r[o]=ll(t[o])?qF(t[o]):t[o]:r[o]=t[o])}),r}var gn={};/**
|
|
81
|
-
* @license React
|
|
82
|
-
* react-is.production.min.js
|
|
83
|
-
*
|
|
84
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
85
|
-
*
|
|
86
|
-
* This source code is licensed under the MIT license found in the
|
|
87
|
-
* LICENSE file in the root directory of this source tree.
|
|
88
|
-
*/var UP=Symbol.for("react.element"),WP=Symbol.for("react.portal"),i1=Symbol.for("react.fragment"),l1=Symbol.for("react.strict_mode"),a1=Symbol.for("react.profiler"),c1=Symbol.for("react.provider"),u1=Symbol.for("react.context"),OY=Symbol.for("react.server_context"),d1=Symbol.for("react.forward_ref"),f1=Symbol.for("react.suspense"),p1=Symbol.for("react.suspense_list"),h1=Symbol.for("react.memo"),m1=Symbol.for("react.lazy"),DY=Symbol.for("react.offscreen"),YF;YF=Symbol.for("react.module.reference");function Bs(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case UP:switch(e=e.type,e){case i1:case a1:case l1:case f1:case p1:return e;default:switch(e=e&&e.$$typeof,e){case OY:case u1:case d1:case m1:case h1:case c1:return e;default:return t}}case WP:return t}}}gn.ContextConsumer=u1;gn.ContextProvider=c1;gn.Element=UP;gn.ForwardRef=d1;gn.Fragment=i1;gn.Lazy=m1;gn.Memo=h1;gn.Portal=WP;gn.Profiler=a1;gn.StrictMode=l1;gn.Suspense=f1;gn.SuspenseList=p1;gn.isAsyncMode=function(){return!1};gn.isConcurrentMode=function(){return!1};gn.isContextConsumer=function(e){return Bs(e)===u1};gn.isContextProvider=function(e){return Bs(e)===c1};gn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===UP};gn.isForwardRef=function(e){return Bs(e)===d1};gn.isFragment=function(e){return Bs(e)===i1};gn.isLazy=function(e){return Bs(e)===m1};gn.isMemo=function(e){return Bs(e)===h1};gn.isPortal=function(e){return Bs(e)===WP};gn.isProfiler=function(e){return Bs(e)===a1};gn.isStrictMode=function(e){return Bs(e)===l1};gn.isSuspense=function(e){return Bs(e)===f1};gn.isSuspenseList=function(e){return Bs(e)===p1};gn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===i1||e===a1||e===l1||e===f1||e===p1||e===DY||typeof e=="object"&&e!==null&&(e.$$typeof===m1||e.$$typeof===h1||e.$$typeof===c1||e.$$typeof===u1||e.$$typeof===d1||e.$$typeof===YF||e.getModuleId!==void 0)};gn.typeOf=Bs;const AY=W.oneOfType([W.func,W.object]),QF=AY;function Pe(e){if(typeof e!="string")throw new Error(Ia(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ax(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Fa(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 LY(e,t){return()=>null}function Sp(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 FY(e,t){return()=>null}function ih(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const NY=typeof window!="undefined"?u.useLayoutEffect:u.useEffect,Lt=NY;let v$=0;function BY(e){const[t,n]=u.useState(e),r=e||t;return u.useEffect(()=>{t==null&&(v$+=1,n(`mui-${v$}`))},[t]),r}const y$=Lp["useId".toString()];function Yt(e){if(y$!==void 0){const t=y$();return e!=null?e:t}return BY(e)}function jY(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 qe(e){const t=u.useRef(e);return Lt(()=>{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=>{ih(n,t)})},e)}let g1=!0,Lx=!1,b$;const zY={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 VY(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&zY[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function HY(e){e.metaKey||e.altKey||e.ctrlKey||(g1=!0)}function Aw(){g1=!1}function UY(){this.visibilityState==="hidden"&&Lx&&(g1=!0)}function WY(e){e.addEventListener("keydown",HY,!0),e.addEventListener("mousedown",Aw,!0),e.addEventListener("pointerdown",Aw,!0),e.addEventListener("touchstart",Aw,!0),e.addEventListener("visibilitychange",UY,!0)}function GY(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return g1||VY(t)}function v1(){const e=u.useCallback(o=>{o!=null&&WY(o.ownerDocument)},[]),t=u.useRef(!1);function n(){return t.current?(Lx=!0,window.clearTimeout(b$),b$=window.setTimeout(()=>{Lx=!1},100),t.current=!1,!0):!1}function r(o){return GY(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function XF(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let hu;function ZF(){if(hu)return hu;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),hu="reverse",e.scrollLeft>0?hu="default":(e.scrollLeft=1,e.scrollLeft===0&&(hu="negative")),document.body.removeChild(e),hu}function KY(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 qY=e=>{const t=u.useRef({});return u.useEffect(()=>{t.current=e}),t.current},GP=qY;function KP(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]=KP(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 w$=e=>e,YY=()=>{let e=w$;return{configure(t){e=t},generate(t){return e(t)},reset(){e=w$}}},QY=YY(),qP=QY,JF={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ge(e,t,n="Mui"){const r=JF[t];return r?`${n}-${r}`:`${qP.generate(e)}-${t}`}function We(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ge(e,o,n)}),r}function XY(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const ZY=["values","unit","step"],JY=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 eQ(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ae(e,ZY),s=JY(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 tQ={borderRadius:4},nQ=tQ;function Pp(e,t){return t?Yr(e,t,{clone:!1}):e}const YP={xs:0,sm:600,md:900,lg:1200,xl:1536},C$={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${YP[e]}px)`};function Ro(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||C$;return t.reduce((i,l,a)=>(i[s.up(s.keys[a])]=n(t[a]),i),{})}if(typeof t=="object"){const s=r.breakpoints||C$;return Object.keys(t).reduce((i,l)=>{if(Object.keys(s.values||YP).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 e4(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const s=e.up(o);return r[s]={},r},{}))||{}}function t4(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function rQ(e,...t){const n=e4(e),r=[n,...t].reduce((o,s)=>Yr(o,s),{});return t4(Object.keys(n),r)}function oQ(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 mc({values:e,breakpoints:t,base:n}){const r=n||oQ(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 Cd(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 Bv(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Cd(e,n)||r,t&&(o=t(o,r,e)),o}function ir(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=Cd(a,r)||{};return Ro(i,l,p=>{let h=Bv(c,o,p);return p===h&&typeof p=="string"&&(h=Bv(c,o,`${t}${p==="default"?"":Pe(p)}`,p)),n===!1?h:{[n]:h}})};return s.propTypes={},s.filterProps=[t],s}function sQ(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const iQ={m:"margin",p:"padding"},lQ={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},x$={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},aQ=sQ(e=>{if(e.length>2)if(x$[e])e=x$[e];else return[e];const[t,n]=e.split(""),r=iQ[t],o=lQ[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"],XP=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...QP,...XP];function Lh(e,t,n,r){var o;const s=(o=Cd(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 ZP(e){return Lh(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 cQ(e,t){return n=>e.reduce((r,o)=>(r[o]=Mc(t,n),r),{})}function uQ(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=aQ(n),s=cQ(o,r),i=e[n];return Ro(e,i,s)}function n4(e,t){const n=ZP(e.theme);return Object.keys(e).map(r=>uQ(e,t,r,n)).reduce(Pp,{})}function Wn(e){return n4(e,QP)}Wn.propTypes={};Wn.filterProps=QP;function Gn(e){return n4(e,XP)}Gn.propTypes={};Gn.filterProps=XP;function dQ(e=8){if(e.mui)return e;const t=ZP({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 y1(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?Pp(o,t[s](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Ms(e){return typeof e!="number"?e:`${e}px solid`}function js(e,t){return ir({prop:e,themeKey:"borders",transform:t})}const fQ=js("border",Ms),pQ=js("borderTop",Ms),hQ=js("borderRight",Ms),mQ=js("borderBottom",Ms),gQ=js("borderLeft",Ms),vQ=js("borderColor"),yQ=js("borderTopColor"),bQ=js("borderRightColor"),wQ=js("borderBottomColor"),CQ=js("borderLeftColor"),xQ=js("outline",Ms),SQ=js("outlineColor"),b1=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Lh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Mc(t,r)});return Ro(e,e.borderRadius,n)}return null};b1.propTypes={};b1.filterProps=["borderRadius"];y1(fQ,pQ,hQ,mQ,gQ,vQ,yQ,bQ,wQ,CQ,b1,xQ,SQ);const w1=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Lh(e.theme,"spacing",8),n=r=>({gap:Mc(t,r)});return Ro(e,e.gap,n)}return null};w1.propTypes={};w1.filterProps=["gap"];const C1=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Lh(e.theme,"spacing",8),n=r=>({columnGap:Mc(t,r)});return Ro(e,e.columnGap,n)}return null};C1.propTypes={};C1.filterProps=["columnGap"];const x1=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Lh(e.theme,"spacing",8),n=r=>({rowGap:Mc(t,r)});return Ro(e,e.rowGap,n)}return null};x1.propTypes={};x1.filterProps=["rowGap"];const PQ=ir({prop:"gridColumn"}),EQ=ir({prop:"gridRow"}),kQ=ir({prop:"gridAutoFlow"}),IQ=ir({prop:"gridAutoColumns"}),MQ=ir({prop:"gridAutoRows"}),TQ=ir({prop:"gridTemplateColumns"}),_Q=ir({prop:"gridTemplateRows"}),$Q=ir({prop:"gridTemplateAreas"}),RQ=ir({prop:"gridArea"});y1(w1,C1,x1,PQ,EQ,kQ,IQ,MQ,TQ,_Q,$Q,RQ);function rd(e,t){return t==="grey"?t:e}const OQ=ir({prop:"color",themeKey:"palette",transform:rd}),DQ=ir({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:rd}),AQ=ir({prop:"backgroundColor",themeKey:"palette",transform:rd});y1(OQ,DQ,AQ);function Wo(e){return e<=1&&e!==0?`${e*100}%`:e}const LQ=ir({prop:"width",transform:Wo}),JP=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])||YP[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};JP.filterProps=["maxWidth"];const FQ=ir({prop:"minWidth",transform:Wo}),NQ=ir({prop:"height",transform:Wo}),BQ=ir({prop:"maxHeight",transform:Wo}),jQ=ir({prop:"minHeight",transform:Wo});ir({prop:"size",cssProperty:"width",transform:Wo});ir({prop:"size",cssProperty:"height",transform:Wo});const zQ=ir({prop:"boxSizing"});y1(LQ,JP,FQ,NQ,BQ,jQ,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:b1},color:{themeKey:"palette",transform:rd},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:rd},backgroundColor:{themeKey:"palette",transform:rd},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:w1},rowGap:{style:x1},columnGap:{style:C1},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:JP},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"}},S1=VQ;function HQ(...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 UQ(e,t){return typeof e=="function"?e(t):e}function WQ(){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=Cd(o,c)||{};return p?p(i):Ro(i,r,v=>{let m=Bv(h,f,v);return v===m&&typeof v=="string"&&(m=Bv(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:S1;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=e4(s.breakpoints),p=Object.keys(f);let h=f;return Object.keys(c).forEach(y=>{const v=UQ(c[y],s);if(v!=null)if(typeof v=="object")if(i[y])h=Pp(h,e(y,v,s,i));else{const m=Ro({theme:s},v,C=>({[y]:C}));HQ(m,v)?h[y]=t({sx:v,theme:s}):h=Pp(h,m)}else h=Pp(h,e(y,v,s,i))}),t4(p,h)}return Array.isArray(o)?o.map(l):l(o)}return t}const r4=WQ();r4.filterProps=["sx"];const P1=r4,GQ=["breakpoints","palette","spacing","shape"];function E1(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={}}=e,i=ae(e,GQ),l=eQ(n),a=dQ(o);let c=Yr({breakpoints:l,direction:"ltr",components:{},palette:S({mode:"light"},r),spacing:a,shape:S({},nQ,s)},i);return c=t.reduce((f,p)=>Yr(f,p),c),c.unstable_sxConfig=S({},S1,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(p){return P1({sx:p,theme:this})},c}function KQ(e){return Object.keys(e).length===0}function k1(e=null){const t=u.useContext(s1);return!t||KQ(t)?e:t}const qQ=E1();function Ud(e=qQ){return k1(e)}function YQ({styles:e,themeId:t,defaultTheme:n={}}){const r=Ud(n),o=typeof e=="function"?e(t&&r[t]||r):e;return D.jsx(_Y,{styles:o})}const QQ=["sx"],XQ=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:S1;return Object.keys(e).forEach(s=>{o[s]?r.systemProps[s]=e[s]:r.otherProps[s]=e[s]}),r};function I1(e){const{sx:t}=e,n=ae(e,QQ),{systemProps:r,otherProps:o}=XQ(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...i)=>{const l=t(...i);return ll(l)?S({},r,l):r}:s=S({},r,t),S({},o,{sx:s})}function o4(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=o4(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function be(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=o4(e))&&(r&&(r+=" "),r+=t);return r}const ZQ=["className","component"];function JQ(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,s=KF("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(P1);return u.forwardRef(function(a,c){const f=Ud(n),p=I1(a),{className:h,component:y="div"}=p,v=ae(p,ZQ);return D.jsx(s,S({as:y,ref:c,className:be(h,o?o(r):r),theme:t&&f[t]||f},v))})}const eX=["variant"];function S$(e){return e.length===0}function s4(e){const{variant:t}=e,n=ae(e,eX);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=S$(r)?e[o]:Pe(e[o]):r+=`${S$(r)?o:Pe(o)}${Pe(e[o].toString())}`}),r}const tX=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function nX(e){return Object.keys(e).length===0}function rX(e){return typeof e=="string"&&e.charCodeAt(0)>96}const oX=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,jv=e=>{let t=0;const n={};return e&&e.forEach(r=>{let o="";typeof r.props=="function"?(o=`callback${t}`,t+=1):o=s4(r.props),n[o]=r.style}),n},sX=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),jv(n)},zv=(e,t,n)=>{const{ownerState:r={}}=e,o=[];let s=0;return n&&n.forEach(i=>{let l=!0;if(typeof i.props=="function"){const a=S({},e,r);l=i.props(a)}else Object.keys(i.props).forEach(a=>{r[a]!==i.props[a]&&e[a]!==i.props[a]&&(l=!1)});l&&(typeof i.props=="function"?o.push(t[`callback${s}`]):o.push(t[s4(i.props)])),typeof i.props=="function"&&(s+=1)}),o},iX=(e,t,n,r)=>{var o;const s=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return zv(e,t,s)};function Ep(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const lX=E1(),aX=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Qg({defaultTheme:e,theme:t,themeId:n}){return nX(t)?e:t[n]||t}function cX(e){return e?(t,n)=>n[e]:null}const P$=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(S({},t,{theme:Qg(S({},t,{defaultTheme:n,themeId:r}))}));let s;if(o&&o.variants&&(s=o.variants,delete o.variants),s){const i=zv(t,jv(s),s);return[o,...i]}return o};function i4(e={}){const{themeId:t,defaultTheme:n=lX,rootShouldForwardProp:r=Ep,slotShouldForwardProp:o=Ep}=e,s=i=>P1(S({},i,{theme:Qg(S({},i,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(i,l={})=>{$Y(i,P=>P.filter(M=>!(M!=null&&M.__mui_systemSx)));const{name:a,slot:c,skipVariantsResolver:f,skipSx:p,overridesResolver:h=cX(aX(c))}=l,y=ae(l,tX),v=f!==void 0?f:c&&c!=="Root"&&c!=="root"||!1,m=p||!1;let C,w=Ep;c==="Root"||c==="root"?w=r:c?w=o:rX(i)&&(w=void 0);const b=KF(i,S({shouldForwardProp:w,label:C},y)),x=(P,...M)=>{const E=M?M.map(T=>{if(typeof T=="function"&&T.__emotion_real!==T)return A=>P$({styledArg:T,props:A,defaultTheme:n,themeId:t});if(ll(T)){let A=T,z;return T&&T.variants&&(z=T.variants,delete A.variants,A=N=>{let _=T;return zv(N,jv(z),z).forEach(F=>{_=Yr(_,F)}),_}),A}return T}):[];let I=P;if(ll(P)){let T;P&&P.variants&&(T=P.variants,delete I.variants,I=A=>{let z=P;return zv(A,jv(T),T).forEach(_=>{z=Yr(z,_)}),z})}else typeof P=="function"&&P.__emotion_real!==P&&(I=T=>P$({styledArg:P,props:T,defaultTheme:n,themeId:t}));a&&h&&E.push(T=>{const A=Qg(S({},T,{defaultTheme:n,themeId:t})),z=oX(a,A);if(z){const N={};return Object.entries(z).forEach(([_,$])=>{N[_]=typeof $=="function"?$(S({},T,{theme:A})):$}),h(T,N)}return null}),a&&!v&&E.push(T=>{const A=Qg(S({},T,{defaultTheme:n,themeId:t}));return iX(T,sX(a,A),A,a)}),m||E.push(s);const R=E.length-M.length;if(Array.isArray(P)&&R>0){const T=new Array(R).fill("");I=[...P,...T],I.raw=[...P.raw,...T]}const O=b(I,...E);return i.muiName&&(O.muiName=i.muiName),O};return b.withConfig&&(x.withConfig=b.withConfig),x}}const uX=i4(),Ir=uX;function l4(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:KP(t.components[n].defaultProps,r)}function a4({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ud(n);return r&&(o=o[r]||o),l4({theme:o,name:t,props:e})}function e2(e,t=0,n=1){return XY(e,t,n)}function dX(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 Tc(e){if(e.type)return e;if(e.charAt(0)==="#")return Tc(dX(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 M1(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 fX(e){e=Tc(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])),M1({type:l,values:a})}function E$(e){e=Tc(e);let t=e.type==="hsl"||e.type==="hsla"?Tc(fX(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 pX(e,t){const n=E$(e),r=E$(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function lt(e,t){return e=Tc(e),t=e2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,M1(e)}function _c(e,t){if(e=Tc(e),t=e2(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 M1(e)}function $c(e,t){if(e=Tc(e),t=e2(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 M1(e)}const hX=u.createContext(null),c4=hX;function u4(){return u.useContext(c4)}const mX=typeof Symbol=="function"&&Symbol.for,gX=mX?Symbol.for("mui.nested"):"__THEME_NESTED__";function vX(e,t){return typeof t=="function"?t(e):S({},e,t)}function yX(e){const{children:t,theme:n}=e,r=u4(),o=u.useMemo(()=>{const s=r===null?n:vX(r,n);return s!=null&&(s[gX]=r!==null),s},[n,r]);return D.jsx(c4.Provider,{value:o,children:t})}const k$={};function I$(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 bX(e){const{children:t,theme:n,themeId:r}=e,o=k1(k$),s=u4()||k$,i=I$(r,o,n),l=I$(r,s,n,!0);return D.jsx(yX,{theme:l,children:D.jsx(s1.Provider,{value:i,children:t})})}const wX=["component","direction","spacing","divider","children","className","useFlexGap"],CX=E1(),xX=Ir("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function SX(e){return a4({props:e,name:"MuiStack",defaultTheme:CX})}function PX(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 EX=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],kX=({ownerState:e,theme:t})=>{let n=S({display:"flex",flexDirection:"column"},Ro({theme:t},mc({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=ZP(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=mc({values:e.direction,base:o}),i=mc({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${EX(c?s[c]:e.direction)}`]:Mc(r,a)}}))}return n=rQ(t.breakpoints,n),n};function IX(e={}){const{createStyledComponent:t=xX,useThemeProps:n=SX,componentName:r="MuiStack"}=e,o=()=>Te({root:["root"]},a=>Ge(r,a),{}),s=t(kX);return u.forwardRef(function(a,c){const f=n(a),p=I1(f),{component:h="div",direction:y="column",spacing:v=0,divider:m,children:C,className:w,useFlexGap:b=!1}=p,x=ae(p,wX),P={direction:y,spacing:v,useFlexGap:b},M=o();return D.jsx(s,S({as:h,ownerState:P,ref:c,className:be(M.root,w)},x,{children:m?PX(C,m):C}))})}function MX(e,t){return S({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const TX=["mode","contrastThreshold","tonalOffset"],M$={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:nh.white,default:nh.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}},Lw={text:{primary:nh.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:nh.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 T$(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=_c(e.main,s)))}function _X(e="light"){return e==="dark"?{main:du[200],light:du[50],dark:du[400]}:{main:du[700],light:du[400],dark:du[800]}}function $X(e="light"){return e==="dark"?{main:uu[200],light:uu[50],dark:uu[400]}:{main:uu[500],light:uu[300],dark:uu[700]}}function RX(e="light"){return e==="dark"?{main:cu[500],light:cu[300],dark:cu[700]}:{main:cu[700],light:cu[400],dark:cu[800]}}function OX(e="light"){return e==="dark"?{main:fu[400],light:fu[300],dark:fu[700]}:{main:fu[700],light:fu[500],dark:fu[900]}}function DX(e="light"){return e==="dark"?{main:pu[400],light:pu[300],dark:pu[700]}:{main:pu[800],light:pu[500],dark:pu[900]}}function AX(e="light"){return e==="dark"?{main:Lf[400],light:Lf[300],dark:Lf[700]}:{main:"#ed6c02",light:Lf[500],dark:Lf[900]}}function LX(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ae(e,TX),s=e.primary||_X(t),i=e.secondary||$X(t),l=e.error||RX(t),a=e.info||OX(t),c=e.success||DX(t),f=e.warning||AX(t);function p(m){return pX(m,Lw.text.primary)>=n?Lw.text.primary:M$.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 T$(m,"light",b,r),T$(m,"dark",x,r),m.contrastText||(m.contrastText=p(m.main)),m},y={dark:Lw,light:M$};return Yr(S({common:S({},nh),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 FX=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function NX(e){return Math.round(e*1e5)/1e5}const _$={textTransform:"uppercase"},$$='"Roboto", "Helvetica", "Arial", sans-serif';function BX(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=$$,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:c=16,allVariants:f,pxToRem:p}=n,h=ae(n,FX),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===$$?{letterSpacing:`${NX(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 jX=.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,${jX})`,`${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 HX=["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)],UX=HX,WX=["duration","easing","delay"],GX={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)"},d4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function R$(e){return`${Math.round(e)}ms`}function KX(e){if(!e)return 0;const t=e/36;return Math.round((4+15*bs(t,.25)+t/5)*10)}function qX(e){const t=S({},GX,e.easing),n=S({},d4,e.duration);return S({getAutoHeightDuration:KX,create:(o=["all"],s={})=>{const{duration:i=n.standard,easing:l=t.easeInOut,delay:a=0}=s;return ae(s,WX),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof i=="string"?i:R$(i)} ${l} ${typeof a=="string"?a:R$(a)}`).join(",")}},e,{easing:t,duration:n})}const YX={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},QX=YX,XX=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function t2(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:s={}}=e,i=ae(e,XX);if(e.vars)throw new Error(Ia(18));const l=LX(r),a=E1(e);let c=Yr(a,{mixins:MX(a.breakpoints,n),palette:l,shadows:UX.slice(),typography:BX(l,s),transitions:qX(o),zIndex:S({},QX),applyDarkStyles(f){return this.vars?{[this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)")]:f}:this.palette.mode==="dark"?f:{}}});return c=Yr(c,i),c=t.reduce((f,p)=>Yr(f,p),c),c.unstable_sxConfig=S({},S1,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(p){return P1({sx:p,theme:this})},c}function ZX(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function JX(e){return parseFloat(e)}const eZ=t2(),T1=eZ;function vn(){const e=Ud(T1);return e[Ic]||e}function He({props:e,name:t}){return a4({props:e,name:t,defaultTheme:T1,themeId:Ic})}const Jr=e=>Ep(e)&&e!=="classes",tZ=Ep,nZ=i4({themeId:Ic,defaultTheme:T1,rootShouldForwardProp:Jr}),oe=nZ,rZ=["theme"];function oZ(e){let{theme:t}=e,n=ae(e,rZ);const r=t[Ic];return D.jsx(bX,S({},n,{themeId:r?Ic:void 0,theme:r||t}))}const sZ=e=>{let t;return e<1?t=5.11916*bs(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},O$=sZ;function iZ(e){return Ge("MuiSvgIcon",e)}We("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const lZ=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],aZ=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Pe(t)}`,`fontSize${Pe(n)}`]};return Te(o,iZ,r)},cZ=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]}}),f4=u.forwardRef(function(t,n){const r=He({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=ae(r,lZ),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=aZ(m);return D.jsxs(cZ,S({as:l,className:be(w.root,s),focusable:"false",color:c,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n},C,y,v&&o.props,{ownerState:m,children:[v?o.props.children:o,p?D.jsx("title",{children:p}):null]}))});f4.muiName="SvgIcon";const D$=f4;function bt(e,t){function n(r,o){return D.jsx(D$,S({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=D$.muiName,u.memo(u.forwardRef(n))}const uZ={configure:e=>{qP.configure(e)}},dZ=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Pe,createChainedFunction:Ax,createSvgIcon:bt,debounce:Fa,deprecatedPropType:LY,isMuiElement:Sp,ownerDocument:pn,ownerWindow:Jo,requirePropFactory:FY,setRef:ih,unstable_ClassNameGenerator:uZ,unstable_useEnhancedEffect:Lt,unstable_useId:Yt,unsupportedProp:jY,useControlled:Qr,useEventCallback:qe,useForkRef:kt,useIsFocusVisible:v1},Symbol.toStringTag,{value:"Module"}));function Fx(e,t){return Fx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Fx(e,t)}function _1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fx(e,t)}function fZ(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function pZ(e,t){e.classList?e.classList.add(t):fZ(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function A$(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function hZ(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=A$(e.className,t):e.setAttribute("class",A$(e.className&&e.className.baseVal||"",t))}const L$={disabled:!1},Vv=Ko.createContext(null);var p4=function(t){return t.scrollTop},rp="unmounted",oc="exited",sc="entering",Eu="entered",Nx="exiting",Ml=function(e){_1(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=oc,s.appearStatus=sc):a=Eu:r.unmountOnExit||r.mountOnEnter?a=rp:a=oc,s.state={status:a},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===rp?{status:oc}: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!==sc&&i!==Eu&&(s=sc):(i===sc||i===Eu)&&(s=Nx)}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===sc){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:dg.findDOMNode(this);i&&p4(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===oc&&this.setState({status:rp})},n.performEnter=function(o){var s=this,i=this.props.enter,l=this.context?this.context.isMounting:o,a=this.props.nodeRef?[l]:[dg.findDOMNode(this),l],c=a[0],f=a[1],p=this.getTimeouts(),h=l?p.appear:p.enter;if(!o&&!i||L$.disabled){this.safeSetState({status:Eu},function(){s.props.onEntered(c)});return}this.props.onEnter(c,f),this.safeSetState({status:sc},function(){s.props.onEntering(c,f),s.onTransitionEnd(h,function(){s.safeSetState({status:Eu},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:dg.findDOMNode(this);if(!s||L$.disabled){this.safeSetState({status:oc},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Nx},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:oc},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:dg.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===rp)return null;var s=this.props,i=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var l=ae(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ko.createElement(Vv.Provider,{value:null},typeof i=="function"?i(o,l):Ko.cloneElement(Ko.Children.only(i),l))},t}(Ko.Component);Ml.contextType=Vv;Ml.propTypes={};function mu(){}Ml.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:mu,onEntering:mu,onEntered:mu,onExit:mu,onExiting:mu,onExited:mu};Ml.UNMOUNTED=rp;Ml.EXITED=oc;Ml.ENTERING=sc;Ml.ENTERED=Eu;Ml.EXITING=Nx;const Fh=Ml;var mZ=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return pZ(t,r)})},Fw=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return hZ(t,r)})},n2=function(e){_1(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&&p4(o),l&&(this.appliedClasses[s][i]=l,mZ(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&&Fw(o,l),a&&Fw(o,a),c&&Fw(o,c)},n.render=function(){var o=this.props;o.classNames;var s=ae(o,["classNames"]);return Ko.createElement(Fh,S({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Ko.Component);n2.defaultProps={classNames:""};n2.propTypes={};const gZ=n2;function Bx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r2(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 vZ(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 uc(e,t,n){return n[t]!=null?n[t]:e.props[t]}function yZ(e,t){return r2(e.children,function(n){return u.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:uc(n,"appear",e),enter:uc(n,"enter",e),exit:uc(n,"exit",e)})})}function bZ(e,t,n){var r=r2(e.children),o=vZ(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:uc(i,"exit",e),enter:uc(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:uc(i,"exit",e),enter:uc(i,"enter",e)}))}}),o}var wZ=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},CZ={component:"div",childFactory:function(t){return t}},o2=function(e){_1(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=s.handleExited.bind(Bx(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?yZ(o,l):bZ(o,i,l),firstRender:!1}},n.handleExited=function(o,s){var i=r2(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=ae(o,["component","childFactory"]),a=this.state.contextValue,c=wZ(this.state.children).map(i);return delete l.appear,delete l.enter,delete l.exit,s===null?Ko.createElement(Vv.Provider,{value:a},c):Ko.createElement(Vv.Provider,{value:a},Ko.createElement(s,l,c))},t}(Ko.Component);o2.propTypes={};o2.defaultProps=CZ;const s2=o2,i2=e=>e.scrollTop;function Ta(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 xZ(e){return Ge("MuiCollapse",e)}We("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const SZ=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],PZ=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Te(r,xZ,n)},EZ=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"})),kZ=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%"})),IZ=oe("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>S({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),h4=u.forwardRef(function(t,n){const r=He({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=d4.standard,TransitionComponent:P=Fh}=r,M=ae(r,SZ),E=S({},r,{orientation:w,collapsedSize:l}),I=PZ(E),R=vn(),O=u.useRef(),T=u.useRef(null),A=u.useRef(),z=typeof l=="number"?`${l}px`:l,N=w==="horizontal",_=N?"width":"height";u.useEffect(()=>()=>{clearTimeout(O.current)},[]);const $=u.useRef(null),F=kt(n,$),V=te=>se=>{if(te){const Z=$.current;se===void 0?te(Z):te(Z,se)}},L=()=>T.current?T.current[N?"clientWidth":"clientHeight"]:0,B=V((te,se)=>{T.current&&N&&(T.current.style.position="absolute"),te.style[_]=z,p&&p(te,se)}),H=V((te,se)=>{const Z=L();T.current&&N&&(T.current.style.position="");const{duration:pe,easing:ne}=Ta({style:b,timeout:x,easing:c},{mode:"enter"});if(x==="auto"){const re=R.transitions.getAutoHeightDuration(Z);te.style.transitionDuration=`${re}ms`,A.current=re}else te.style.transitionDuration=typeof pe=="string"?pe:`${pe}ms`;te.style[_]=`${Z}px`,te.style.transitionTimingFunction=ne,y&&y(te,se)}),K=V((te,se)=>{te.style[_]="auto",h&&h(te,se)}),Y=V(te=>{te.style[_]=`${L()}px`,v&&v(te)}),J=V(m),Q=V(te=>{const se=L(),{duration:Z,easing:pe}=Ta({style:b,timeout:x,easing:c},{mode:"exit"});if(x==="auto"){const ne=R.transitions.getAutoHeightDuration(se);te.style.transitionDuration=`${ne}ms`,A.current=ne}else te.style.transitionDuration=typeof Z=="string"?Z:`${Z}ms`;te.style[_]=z,te.style.transitionTimingFunction=pe,C&&C(te)}),X=te=>{x==="auto"&&(O.current=setTimeout(te,A.current||0)),o&&o($.current,te)};return D.jsx(P,S({in:f,onEnter:B,onEntered:K,onEntering:H,onExit:Y,onExited:J,onExiting:Q,addEndListener:X,nodeRef:$,timeout:x==="auto"?null:x},M,{children:(te,se)=>D.jsx(EZ,S({as:a,className:be(I.root,i,{entered:I.entered,exited:!f&&z==="0px"&&I.hidden}[te]),style:S({[N?"minWidth":"minHeight"]:z},b),ownerState:S({},E,{state:te}),ref:F},se,{children:D.jsx(kZ,{ownerState:S({},E,{state:te}),className:I.wrapper,ref:T,children:D.jsx(IZ,{ownerState:S({},E,{state:te}),className:I.wrapperInner,children:s})})}))}))});h4.muiSupportAuto=!0;const Hv=h4;function MZ(e){return Ge("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 TZ=["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,MZ,o)},$Z=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",O$(t.elevation))}, ${lt("#fff",O$(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),RZ=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiPaper"}),{className:o,component:s="div",elevation:i=1,square:l=!1,variant:a="elevation"}=r,c=ae(r,TZ),f=S({},r,{component:s,elevation:i,square:l,variant:a}),p=_Z(f);return D.jsx($Z,S({as:s,ownerState:f,className:be(p.root,o),ref:n},c))}),zs=RZ;function Rc(e){return typeof e=="string"}function op(e,t,n){return e===void 0||Rc(e)?t:S({},t,{ownerState:S({},t.ownerState,n)})}const OZ={disableDefaultClasses:!1},DZ=u.createContext(OZ);function AZ(e){const{disableDefaultClasses:t}=u.useContext(DZ);return n=>t?"":e(n)}function m4(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 $1(e,t,n){return typeof e=="function"?e(t,n):e}function F$(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 LZ(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const y=be(n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),v=S({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=S({},n,o,r);return y.length>0&&(m.className=y),Object.keys(v).length>0&&(m.style=v),{props:m,internalRef:void 0}}const i=m4(S({},o,r)),l=F$(r),a=F$(o),c=t(i),f=be(c==null?void 0:c.className,n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),p=S({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=S({},c,n,a,l);return f.length>0&&(h.className=f),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:c.ref}}const FZ=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Kt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:s=!1}=e,i=ae(e,FZ),l=s?{}:$1(r,o),{props:a,internalRef:c}=LZ(S({},i,{externalSlotProps:l})),f=kt(c,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return op(n,S({},a,{ref:f}),o)}function NZ(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:i,in:l,onExited:a,timeout:c}=e,[f,p]=u.useState(!1),h=be(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:i,height:i,top:-(i/2)+s,left:-(i/2)+o},v=be(n.child,f&&n.childLeaving,r&&n.childPulsate);return!l&&!f&&p(!0),u.useEffect(()=>{if(!l&&a!=null){const m=setTimeout(a,c);return()=>{clearTimeout(m)}}},[a,l,c]),D.jsx("span",{className:h,style:y,children:D.jsx("span",{className:v})})}const BZ=We("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ps=BZ,jZ=["center","classes","className"];let R1=e=>e,N$,B$,j$,z$;const jx=550,zZ=80,VZ=Ui(N$||(N$=R1`
|
|
89
|
-
0% {
|
|
90
|
-
transform: scale(0);
|
|
91
|
-
opacity: 0.1;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
100% {
|
|
95
|
-
transform: scale(1);
|
|
96
|
-
opacity: 0.3;
|
|
97
|
-
}
|
|
98
|
-
`)),HZ=Ui(B$||(B$=R1`
|
|
99
|
-
0% {
|
|
100
|
-
opacity: 1;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
100% {
|
|
104
|
-
opacity: 0;
|
|
105
|
-
}
|
|
106
|
-
`)),UZ=Ui(j$||(j$=R1`
|
|
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
|
-
`)),WZ=oe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),GZ=oe(NZ,{name:"MuiTouchRipple",slot:"Ripple"})(z$||(z$=R1`
|
|
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,VZ,jx,({theme:e})=>e.transitions.easing.easeInOut,Ps.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ps.child,Ps.childLeaving,HZ,jx,({theme:e})=>e.transitions.easing.easeInOut,Ps.childPulsate,UZ,({theme:e})=>e.transitions.easing.easeInOut),KZ=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:i}=r,l=ae(r,jZ),[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:I,rippleSize:R,cb:O}=P;c(T=>[...T,D.jsx(GZ,{classes:{ripple:be(s.ripple,Ps.ripple),rippleVisible:be(s.rippleVisible,Ps.rippleVisible),ripplePulsate:be(s.ripplePulsate,Ps.ripplePulsate),child:be(s.child,Ps.child),childLeaving:be(s.childLeaving,Ps.childLeaving),childPulsate:be(s.childPulsate,Ps.childPulsate)},timeout:jx,pulsate:M,rippleX:E,rippleY:I,rippleSize:R},f.current)]),f.current+=1,p.current=O},[s]),w=u.useCallback((P={},M={},E=()=>{})=>{const{pulsate:I=!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 T=O?null:m.current,A=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let z,N,_;if(R||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)z=Math.round(A.width/2),N=Math.round(A.height/2);else{const{clientX:$,clientY:F}=P.touches&&P.touches.length>0?P.touches[0]:P;z=Math.round($-A.left),N=Math.round(F-A.top)}if(R)_=Math.sqrt((2*bs(A.width,2)+bs(A.height,2))/3),_%2===0&&(_+=1);else{const $=Math.max(Math.abs((T?T.clientWidth:0)-z),z)*2+2,F=Math.max(Math.abs((T?T.clientHeight:0)-N),N)*2+2;_=Math.sqrt(bs($,2)+bs(F,2))}P!=null&&P.touches?v.current===null&&(v.current=()=>{C({pulsate:I,rippleX:z,rippleY:N,rippleSize:_,cb:E})},y.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},zZ)):C({pulsate:I,rippleX:z,rippleY:N,rippleSize:_,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(WZ,S({className:be(Ps.root,s.root,i),ref:m},l,{children:D.jsx(s2,{component:null,exit:!0,children:a})}))}),qZ=KZ;function YZ(e){return Ge("MuiButtonBase",e)}const QZ=We("MuiButtonBase",["root","disabled","focusVisible"]),XZ=QZ,ZZ=["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"],JZ=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Te({root:["root",t&&"disabled",n&&"focusVisible"]},YZ,o);return n&&r&&(i.root+=` ${r}`),i},eJ=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"},[`&.${XZ.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),tJ=u.forwardRef(function(t,n){const r=He({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:I,onMouseUp:R,onTouchEnd:O,onTouchMove:T,onTouchStart:A,tabIndex:z=0,TouchRippleProps:N,touchRippleRef:_,type:$}=r,F=ae(r,ZZ),V=u.useRef(null),L=u.useRef(null),B=kt(L,_),{isFocusVisibleRef:H,onFocus:K,onBlur:Y,ref:J}=v1(),[Q,X]=u.useState(!1);c&&Q&&X(!1),u.useImperativeHandle(o,()=>({focusVisible:()=>{X(!0),V.current.focus()}}),[]);const[te,se]=u.useState(!1);u.useEffect(()=>{se(!0)},[]);const Z=te&&!f&&!c;u.useEffect(()=>{Q&&h&&!f&&te&&L.current.pulsate()},[f,h,Q,te]);function pe(Fe,mt,Zt=p){return qe(Pt=>(mt&&mt(Pt),!Zt&&L.current&&L.current[Fe](Pt),!0))}const ne=pe("start",E),re=pe("stop",C),me=pe("stop",w),ce=pe("stop",R),xe=pe("stop",Fe=>{Q&&Fe.preventDefault(),I&&I(Fe)}),ke=pe("start",A),fe=pe("stop",O),Ie=pe("stop",T),ve=pe("stop",Fe=>{Y(Fe),H.current===!1&&X(!1),v&&v(Fe)},!1),Re=qe(Fe=>{V.current||(V.current=Fe.currentTarget),K(Fe),H.current===!0&&(X(!0),x&&x(Fe)),b&&b(Fe)}),ie=()=>{const Fe=V.current;return a&&a!=="button"&&!(Fe.tagName==="A"&&Fe.href)},ue=u.useRef(!1),we=qe(Fe=>{h&&!ue.current&&Q&&L.current&&Fe.key===" "&&(ue.current=!0,L.current.stop(Fe,()=>{L.current.start(Fe)})),Fe.target===Fe.currentTarget&&ie()&&Fe.key===" "&&Fe.preventDefault(),P&&P(Fe),Fe.target===Fe.currentTarget&&ie()&&Fe.key==="Enter"&&!c&&(Fe.preventDefault(),m&&m(Fe))}),Se=qe(Fe=>{h&&Fe.key===" "&&L.current&&Q&&!Fe.defaultPrevented&&(ue.current=!1,L.current.stop(Fe,()=>{L.current.pulsate(Fe)})),M&&M(Fe),m&&Fe.target===Fe.currentTarget&&ie()&&Fe.key===" "&&!Fe.defaultPrevented&&m(Fe)});let Me=a;Me==="button"&&(F.href||F.to)&&(Me=y);const Oe={};Me==="button"?(Oe.type=$===void 0?"button":$,Oe.disabled=c):(!F.href&&!F.to&&(Oe.role="button"),c&&(Oe["aria-disabled"]=c));const Ne=kt(n,J,V),Ke=S({},r,{centerRipple:s,component:a,disabled:c,disableRipple:f,disableTouchRipple:p,focusRipple:h,tabIndex:z,focusVisible:Q}),Ye=JZ(Ke);return D.jsxs(eJ,S({as:Me,className:be(Ye.root,l),ownerState:Ke,onBlur:ve,onClick:m,onContextMenu:re,onFocus:Re,onKeyDown:we,onKeyUp:Se,onMouseDown:ne,onMouseLeave:xe,onMouseUp:ce,onDragLeave:me,onTouchEnd:fe,onTouchMove:Ie,onTouchStart:ke,ref:Ne,tabIndex:c?-1:z,type:$},Oe,F,{children:[i,Z?D.jsx(qZ,S({ref:B,center:s},N)):null]}))}),fi=tJ;function nJ(e){return Ge("MuiAlert",e)}const rJ=We("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),V$=rJ;function oJ(e){return Ge("MuiIconButton",e)}const sJ=We("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),iJ=sJ,lJ=["edge","children","className","color","disabled","disableFocusRipple","size"],aJ=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,oJ,t)},cJ=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)},{[`&.${iJ.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),uJ=u.forwardRef(function(t,n){const r=He({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=ae(r,lJ),h=S({},r,{edge:o,color:l,disabled:a,disableFocusRipple:c,size:f}),y=aJ(h);return D.jsx(cJ,S({className:be(y.root,i),centerRipple:!0,focusRipple:!c,disabled:a,ref:n,ownerState:h},p,{children:s}))}),xr=uJ,dJ=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"),fJ=bt(D.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),pJ=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"),hJ=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"),g4=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"),mJ=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],gJ=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,nJ,o)},vJ=oe(zs,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Pe(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?_c:$c,r=e.palette.mode==="light"?$c:_c,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),[`& .${V$.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}`,[`& .${V$.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)}))}),yJ=oe("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),bJ=oe("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),H$=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}),U$={success:D.jsx(dJ,{fontSize:"inherit"}),warning:D.jsx(fJ,{fontSize:"inherit"}),error:D.jsx(pJ,{fontSize:"inherit"}),info:D.jsx(hJ,{fontSize:"inherit"})},wJ=u.forwardRef(function(t,n){var r,o,s,i,l,a;const c=He({props:t,name:"MuiAlert"}),{action:f,children:p,className:h,closeText:y="Close",color:v,components:m={},componentsProps:C={},icon:w,iconMapping:b=U$,onClose:x,role:P="alert",severity:M="success",slotProps:E={},slots:I={},variant:R="standard"}=c,O=ae(c,mJ),T=S({},c,{color:v,severity:M,variant:R}),A=gJ(T),z=(r=(o=I.closeButton)!=null?o:m.CloseButton)!=null?r:xr,N=(s=(i=I.closeIcon)!=null?i:m.CloseIcon)!=null?s:g4,_=(l=E.closeButton)!=null?l:C.closeButton,$=(a=E.closeIcon)!=null?a:C.closeIcon;return D.jsxs(vJ,S({role:P,elevation:0,ownerState:T,className:be(A.root,h),ref:n},O,{children:[w!==!1?D.jsx(yJ,{ownerState:T,className:A.icon,children:w||b[M]||U$[M]}):null,D.jsx(bJ,{ownerState:T,className:A.message,children:p}),f!=null?D.jsx(H$,{ownerState:T,className:A.action,children:f}):null,f==null&&x?D.jsx(H$,{ownerState:T,className:A.action,children:D.jsx(z,S({size:"small","aria-label":y,title:y,color:"inherit",onClick:x},_,{children:D.jsx(N,S({fontSize:"small"},$))}))}):null]}))}),Er=wJ;function CJ(e){return Ge("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 xJ=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],SJ=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,CJ,i)},PJ=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})),W$={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},EJ={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},kJ=e=>EJ[e]||e,IJ=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiTypography"}),o=kJ(r.color),s=I1(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=W$}=s,v=ae(s,xJ),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]||W$[h])||"span",w=SJ(m);return D.jsx(PJ,S({as:C,ref:n,ownerState:m,className:be(w.root,l)},v))}),qn=IJ;function MJ(e){return Ge("MuiAppBar",e)}We("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const TJ=["className","color","enableColorOnDark","position"],_J=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Pe(t)}`,`position${Pe(n)}`]};return Te(o,MJ,r)},pg=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,$J=oe(zs,{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:pg(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:pg(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:pg(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:pg(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"}))}),RJ=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiAppBar"}),{className:o,color:s="primary",enableColorOnDark:i=!1,position:l="fixed"}=r,a=ae(r,TJ),c=S({},r,{color:s,position:l,enableColorOnDark:i}),f=_J(c);return D.jsx($J,S({square:!0,component:"header",ownerState:c,elevation:4,className:be(f.root,o,l==="fixed"&&"mui-fixed"),ref:n},a))}),OJ=RJ;function DJ(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,s=GP({badgeContent:t,max:r});let i=n;n===!1&&t===0&&!o&&(i=!0);const{badgeContent:l,max:a=r}=i?s:e,c=l&&Number(l)>a?`${a}+`:l;return{badgeContent:l,invisible:i,max:a,displayValue:c}}const v4="base";function AJ(e){return`${v4}--${e}`}function LJ(e,t){return`${v4}-${e}-${t}`}function y4(e,t){const n=JF[t];return n?AJ(n):LJ(e,t)}function FJ(e,t){const n={};return t.forEach(r=>{n[r]=y4(e,r)}),n}function G$(e){return e.substring(2).toLowerCase()}function NJ(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function b4(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=qe(v=>{const m=c.current;c.current=!1;const C=pn(l.current);if(!a.current||!l.current||"clientX"in v&&NJ(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=G$(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=G$(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 BJ=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function jJ(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 zJ(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 VJ(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||zJ(e))}function HJ(e){const t=[],n=[];return Array.from(e.querySelectorAll(BJ)).forEach((r,o)=>{const s=jJ(r);s===-1||!VJ(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 UJ(){return!0}function l2(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=HJ,isEnabled:i=UJ,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=I=>{C.current=I,!(r||!i()||I.key!=="Tab")&&x.activeElement===v.current&&I.shiftKey&&(a.current=!0,f.current&&f.current.focus())},M=()=>{const I=v.current;if(I===null)return;if(!x.hasFocus()||!i()||a.current){a.current=!1;return}if(I.contains(x.activeElement)||r&&x.activeElement!==c.current&&x.activeElement!==f.current)return;if(x.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!y.current)return;let R=[];if((x.activeElement===c.current||x.activeElement===f.current)&&(R=s(v.current)),R.length>0){var O,T;const A=!!((O=C.current)!=null&&O.shiftKey&&((T=C.current)==null?void 0:T.key)==="Tab"),z=R[0],N=R[R.length-1];typeof z!="string"&&typeof N!="string"&&(A?N.focus():z.focus())}else I.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",To="left",a2="auto",Nh=[Mo,As,Ls,To],xd="start",lh="end",WJ="clippingParents",w4="viewport",Bf="popper",GJ="reference",K$=Nh.reduce(function(e,t){return e.concat([t+"-"+xd,t+"-"+lh])},[]),C4=[].concat(Nh,[a2]).reduce(function(e,t){return e.concat([t,t+"-"+xd,t+"-"+lh])},[]),KJ="beforeRead",qJ="read",YJ="afterRead",QJ="beforeMain",XJ="main",ZJ="afterMain",JJ="beforeWrite",eee="write",tee="afterWrite",nee=[KJ,qJ,YJ,QJ,XJ,ZJ,JJ,eee,tee];function ji(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 c2(e){if(typeof ShadowRoot=="undefined")return!1;var t=es(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ree(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)||!ji(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 oee(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)||!ji(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(a){o.removeAttribute(a)}))})}}const see={name:"applyStyles",enabled:!0,phase:"write",fn:ree,effect:oee,requires:["computeStyles"]};function Oi(e){return e.split("-")[0]}var gc=Math.max,Uv=Math.min,Sd=Math.round;function zx(){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 x4(){return!/^((?!chrome|android).)*safari/i.test(zx())}function Pd(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&&Sd(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Sd(r.height)/e.offsetHeight||1);var i=Oc(e)?es(e):window,l=i.visualViewport,a=!x4()&&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 u2(e){var t=Pd(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 S4(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&c2(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Cl(e){return es(e).getComputedStyle(e)}function iee(e){return["table","td","th"].indexOf(ji(e))>=0}function Na(e){return((Oc(e)?e.ownerDocument:e.document)||window.document).documentElement}function O1(e){return ji(e)==="html"?e:e.assignedSlot||e.parentNode||(c2(e)?e.host:null)||Na(e)}function q$(e){return!$s(e)||Cl(e).position==="fixed"?null:e.offsetParent}function lee(e){var t=/firefox/i.test(zx()),n=/Trident/i.test(zx());if(n&&$s(e)){var r=Cl(e);if(r.position==="fixed")return null}var o=O1(e);for(c2(o)&&(o=o.host);$s(o)&&["html","body"].indexOf(ji(o))<0;){var s=Cl(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 Bh(e){for(var t=es(e),n=q$(e);n&&iee(n)&&Cl(n).position==="static";)n=q$(n);return n&&(ji(n)==="html"||ji(n)==="body"&&Cl(n).position==="static")?t:n||lee(e)||t}function d2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function kp(e,t,n){return gc(e,Uv(t,n))}function aee(e,t,n){var r=kp(e,t,n);return r>n?n:r}function P4(){return{top:0,right:0,bottom:0,left:0}}function E4(e){return Object.assign({},P4(),e)}function k4(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var cee=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,E4(typeof t!="number"?t:k4(t,Nh))};function uee(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=d2(l),c=[To,Ls].indexOf(l)>=0,f=c?"height":"width";if(!(!s||!i)){var p=cee(o.padding,n),h=u2(s),y=a==="y"?Mo:To,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=Bh(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,I=kp(P,E,M),R=a;n.modifiersData[r]=(t={},t[R]=I,t.centerOffset=I-E,t)}}function dee(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)||S4(t.elements.popper,o)&&(t.elements.arrow=o))}const fee={name:"arrow",enabled:!0,phase:"main",fn:uee,effect:dee,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ed(e){return e.split("-")[1]}var pee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hee(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Sd(n*o)/o||0,y:Sd(r*o)/o||0}}function Y$(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=To,P=Mo,M=window;if(c){var E=Bh(n),I="clientHeight",R="clientWidth";if(E===es(n)&&(E=Na(n),Cl(E).position!=="static"&&l==="absolute"&&(I="scrollHeight",R="scrollWidth")),E=E,o===Mo||(o===To||o===Ls)&&s===lh){P=As;var O=p&&E===M&&M.visualViewport?M.visualViewport.height:E[I];m-=O-r.height,m*=a?1:-1}if(o===To||(o===Mo||o===As)&&s===lh){x=Ls;var T=p&&E===M&&M.visualViewport?M.visualViewport.width:E[R];y-=T-r.width,y*=a?1:-1}}var A=Object.assign({position:l},c&&pee),z=f===!0?hee({x:y,y:m},es(n)):{x:y,y:m};if(y=z.x,m=z.y,a){var N;return Object.assign({},A,(N={},N[P]=b?"0":"",N[x]=w?"0":"",N.transform=(M.devicePixelRatio||1)<=1?"translate("+y+"px, "+m+"px)":"translate3d("+y+"px, "+m+"px, 0)",N))}return Object.assign({},A,(t={},t[P]=b?m+"px":"",t[x]=w?y+"px":"",t.transform="",t))}function mee(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:Ed(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,Y$(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,Y$(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 gee={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mee,data:{}};var hg={passive:!0};function vee(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,hg)}),l&&a.addEventListener("resize",n.update,hg),function(){s&&c.forEach(function(f){f.removeEventListener("scroll",n.update,hg)}),l&&a.removeEventListener("resize",n.update,hg)}}const yee={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vee,data:{}};var bee={left:"right",right:"left",bottom:"top",top:"bottom"};function Xg(e){return e.replace(/left|right|bottom|top/g,function(t){return bee[t]})}var wee={start:"end",end:"start"};function Q$(e){return e.replace(/start|end/g,function(t){return wee[t]})}function f2(e){var t=es(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function p2(e){return Pd(Na(e)).left+f2(e).scrollLeft}function Cee(e,t){var n=es(e),r=Na(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,l=0,a=0;if(o){s=o.width,i=o.height;var c=x4();(c||!c&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:s,height:i,x:l+p2(e),y:a}}function xee(e){var t,n=Na(e),r=f2(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=gc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=gc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+p2(e),a=-r.scrollTop;return Cl(o||n).direction==="rtl"&&(l+=gc(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:l,y:a}}function h2(e){var t=Cl(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function I4(e){return["html","body","#document"].indexOf(ji(e))>=0?e.ownerDocument.body:$s(e)&&h2(e)?e:I4(O1(e))}function Ip(e,t){var n;t===void 0&&(t=[]);var r=I4(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=es(r),i=o?[s].concat(s.visualViewport||[],h2(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(Ip(O1(i)))}function Vx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function See(e,t){var n=Pd(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 X$(e,t,n){return t===w4?Vx(Cee(e,n)):Oc(t)?See(t,n):Vx(xee(Na(e)))}function Pee(e){var t=Ip(O1(e)),n=["absolute","fixed"].indexOf(Cl(e).position)>=0,r=n&&$s(e)?Bh(e):e;return Oc(r)?t.filter(function(o){return Oc(o)&&S4(o,r)&&ji(o)!=="body"}):[]}function Eee(e,t,n,r){var o=t==="clippingParents"?Pee(e):[].concat(t),s=[].concat(o,[n]),i=s[0],l=s.reduce(function(a,c){var f=X$(e,c,r);return a.top=gc(f.top,a.top),a.right=Uv(f.right,a.right),a.bottom=Uv(f.bottom,a.bottom),a.left=gc(f.left,a.left),a},X$(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 M4(e){var t=e.reference,n=e.element,r=e.placement,o=r?Oi(r):null,s=r?Ed(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 To:a={x:t.x-n.width,y:l};break;default:a={x:t.x,y:t.y}}var c=o?d2(o):null;if(c!=null){var f=c==="y"?"height":"width";switch(s){case xd:a[c]=a[c]-(t[f]/2-n[f]/2);break;case lh:a[c]=a[c]+(t[f]/2-n[f]/2);break}}return a}function ah(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?WJ:l,c=n.rootBoundary,f=c===void 0?w4: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=E4(typeof C!="number"?C:k4(C,Nh)),b=h===Bf?GJ:Bf,x=e.rects.popper,P=e.elements[v?b:h],M=Eee(Oc(P)?P:P.contextElement||Na(e.elements.popper),a,f,i),E=Pd(e.elements.reference),I=M4({reference:E,element:x,strategy:"absolute",placement:o}),R=Vx(Object.assign({},x,I)),O=h===Bf?R:E,T={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},A=e.modifiersData.offset;if(h===Bf&&A){var z=A[o];Object.keys(T).forEach(function(N){var _=[Ls,As].indexOf(N)>=0?1:-1,$=[Mo,As].indexOf(N)>=0?"y":"x";T[N]+=z[$]*_})}return T}function kee(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?C4:a,f=Ed(r),p=f?l?K$:K$.filter(function(v){return Ed(v)===f}):Nh,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]=ah(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 Iee(e){if(Oi(e)===a2)return[];var t=Xg(e);return[Q$(e),t,Q$(t)]}function Mee(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?[Xg(C)]:Iee(C)),P=[C].concat(x).reduce(function(Q,X){return Q.concat(Oi(X)===a2?kee(t,{placement:X,boundary:f,rootBoundary:p,padding:c,flipVariations:v,allowedAutoPlacements:m}):X)},[]),M=t.rects.reference,E=t.rects.popper,I=new Map,R=!0,O=P[0],T=0;T<P.length;T++){var A=P[T],z=Oi(A),N=Ed(A)===xd,_=[Mo,As].indexOf(z)>=0,$=_?"width":"height",F=ah(t,{placement:A,boundary:f,rootBoundary:p,altBoundary:h,padding:c}),V=_?N?Ls:To:N?As:Mo;M[$]>E[$]&&(V=Xg(V));var L=Xg(V),B=[];if(s&&B.push(F[z]<=0),l&&B.push(F[V]<=0,F[L]<=0),B.every(function(Q){return Q})){O=A,R=!1;break}I.set(A,B)}if(R)for(var H=v?3:1,K=function(X){var te=P.find(function(se){var Z=I.get(se);if(Z)return Z.slice(0,X).every(function(pe){return pe})});if(te)return O=te,"break"},Y=H;Y>0;Y--){var J=K(Y);if(J==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const Tee={name:"flip",enabled:!0,phase:"main",fn:Mee,requiresIfExists:["offset"],data:{_skip:!1}};function Z$(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 J$(e){return[Mo,Ls,As,To].some(function(t){return e[t]>=0})}function _ee(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=ah(t,{elementContext:"reference"}),l=ah(t,{altBoundary:!0}),a=Z$(i,r),c=Z$(l,o,s),f=J$(a),p=J$(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 $ee={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:_ee};function Ree(e,t,n){var r=Oi(e),o=[To,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,[To,Ls].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}function Oee(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=C4.reduce(function(f,p){return f[p]=Ree(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 Dee={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Oee};function Aee(e){var t=e.state,n=e.name;t.modifiersData[n]=M4({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Lee={name:"popperOffsets",enabled:!0,phase:"read",fn:Aee,data:{}};function Fee(e){return e==="x"?"y":"x"}function Nee(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=ah(t,{boundary:a,rootBoundary:c,padding:p,altBoundary:f}),w=Oi(t.placement),b=Ed(t.placement),x=!b,P=d2(w),M=Fee(P),E=t.modifiersData.popperOffsets,I=t.rects.reference,R=t.rects.popper,O=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,T=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(E){if(s){var N,_=P==="y"?Mo:To,$=P==="y"?As:Ls,F=P==="y"?"height":"width",V=E[P],L=V+C[_],B=V-C[$],H=y?-R[F]/2:0,K=b===xd?I[F]:R[F],Y=b===xd?-R[F]:-I[F],J=t.elements.arrow,Q=y&&J?u2(J):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:P4(),te=X[_],se=X[$],Z=kp(0,I[F],Q[F]),pe=x?I[F]/2-H-Z-te-T.mainAxis:K-Z-te-T.mainAxis,ne=x?-I[F]/2+H+Z+se+T.mainAxis:Y+Z+se+T.mainAxis,re=t.elements.arrow&&Bh(t.elements.arrow),me=re?P==="y"?re.clientTop||0:re.clientLeft||0:0,ce=(N=A==null?void 0:A[P])!=null?N:0,xe=V+pe-ce-me,ke=V+ne-ce,fe=kp(y?Uv(L,xe):L,V,y?gc(B,ke):B);E[P]=fe,z[P]=fe-V}if(l){var Ie,ve=P==="x"?Mo:To,Re=P==="x"?As:Ls,ie=E[M],ue=M==="y"?"height":"width",we=ie+C[ve],Se=ie-C[Re],Me=[Mo,To].indexOf(w)!==-1,Oe=(Ie=A==null?void 0:A[M])!=null?Ie:0,Ne=Me?we:ie-I[ue]-R[ue]-Oe+T.altAxis,Ke=Me?ie+I[ue]+R[ue]-Oe-T.altAxis:Se,Ye=y&&Me?aee(Ne,ie,Ke):kp(y?Ne:we,ie,y?Ke:Se);E[M]=Ye,z[M]=Ye-ie}t.modifiersData[r]=z}}const Bee={name:"preventOverflow",enabled:!0,phase:"main",fn:Nee,requiresIfExists:["offset"]};function jee(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function zee(e){return e===es(e)||!$s(e)?f2(e):jee(e)}function Vee(e){var t=e.getBoundingClientRect(),n=Sd(t.width)/e.offsetWidth||1,r=Sd(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Hee(e,t,n){n===void 0&&(n=!1);var r=$s(t),o=$s(t)&&Vee(t),s=Na(t),i=Pd(e,o,n),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((ji(t)!=="body"||h2(s))&&(l=zee(t)),$s(t)?(a=Pd(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):s&&(a.x=p2(s))),{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function Uee(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 Wee(e){var t=Uee(e);return nee.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Gee(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Kee(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 eR={placement:"bottom",modifiers:[],strategy:"absolute"};function tR(){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 qee(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?eR:o;return function(l,a,c){c===void 0&&(c=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},eR,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)?Ip(l):l.contextElement?Ip(l.contextElement):[],popper:Ip(a)};var x=Wee(Kee([].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(tR(b,x)){f.rects={reference:Hee(b,Bh(x),f.options.strategy==="fixed"),popper:u2(x)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(T){return f.modifiersData[T.name]=Object.assign({},T.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,I=M.options,R=I===void 0?{}:I,O=M.name;typeof E=="function"&&(f=E({state:f,options:R,name:O,instance:y})||f)}}}},update:Gee(function(){return new Promise(function(C){y.forceUpdate(),C(f)})}),destroy:function(){m(),h=!0}};if(!tR(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 Yee=[yee,Lee,gee,see,Dee,Tee,Bee,fee,$ee],Qee=qee({defaultModifiers:Yee});function Xee(e){return typeof e=="function"?e():e}const T4=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(Lt(()=>{s||l(Xee(o)||document.body)},[o,s]),Lt(()=>{if(i&&!s)return ih(n,i),()=>{ih(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&&zd.createPortal(r,i)})}),_4="Popper";function Zee(e){return y4(_4,e)}FJ(_4,["root"]);const Jee=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],ete=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function tte(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 Hx(e){return typeof e=="function"?e():e}function nte(e){return e.nodeType!==void 0}const rte=()=>Te({root:["root"]},AZ(Zee)),ote={},ste=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=ae(t,Jee),w=u.useRef(null),b=kt(w,n),x=u.useRef(null),P=kt(x,h),M=u.useRef(P);Lt(()=>{M.current=P},[P]),u.useImperativeHandle(h,()=>x.current,[]);const E=tte(f,i),[I,R]=u.useState(E),[O,T]=u.useState(Hx(o));u.useEffect(()=>{x.current&&x.current.forceUpdate()}),u.useEffect(()=>{o&&T(Hx(o))},[o]),Lt(()=>{if(!O||!c)return;const $=L=>{R(L.placement)};let F=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:L})=>{$(L)}}];a!=null&&(F=F.concat(a)),p&&p.modifiers!=null&&(F=F.concat(p.modifiers));const V=Qee(O,w.current,S({placement:E},p,{modifiers:F}));return M.current(V),()=>{V.destroy(),M.current(null)}},[O,l,a,c,p,E]);const A={placement:I};m!==null&&(A.TransitionProps=m);const z=rte(),N=(r=v.root)!=null?r:"div",_=Kt({elementType:N,externalSlotProps:y.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:b},ownerState:t,className:z.root});return D.jsx(N,S({},_,{children:typeof s=="function"?s(A):s}))}),ite=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=ote,popperRef:y,style:v,transition:m=!1,slotProps:C={},slots:w={}}=t,b=ae(t,ete),[x,P]=u.useState(!0),M=()=>{P(!1)},E=()=>{P(!0)};if(!a&&!f&&(!m||x))return null;let I;if(s)I=s;else if(r){const T=Hx(r);I=T&&nte(T)?pn(T).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(T4,{disablePortal:l,container:I,children:D.jsx(ste,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 lte(e){const t=pn(e);return t.body===e?Jo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Mp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function nR(e){return parseInt(Jo(e).getComputedStyle(e).paddingRight,10)||0}function ate(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function rR(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,i=>{const l=s.indexOf(i)===-1,a=!ate(i);l&&a&&Mp(i,o)})}function Nw(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function cte(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(lte(r)){const i=XF(pn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${nR(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=`${nR(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 ute(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class dte{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Mp(t.modalRef,!1);const o=ute(n);rR(n,t.mount,t.modalRef,o,!0);const s=Nw(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=Nw(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=cte(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Nw(this.containers,i=>i.modals.indexOf(t)!==-1),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&Mp(t.modalRef,n),rR(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=s.modals[s.modals.length-1];i.modalRef&&Mp(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function fte(e){return typeof e=="function"?e():e}function pte(e){return e?e.props.hasOwnProperty("in"):!1}const hte=new dte;function mte(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=hte,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=pte(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)},I=qe(()=>{const F=fte(t)||P().body;o.add(M(),F),v.current&&E()}),R=u.useCallback(()=>o.isTopModal(M()),[o]),O=qe(F=>{y.current=F,F&&(f&&R()?E():v.current&&Mp(v.current,x))}),T=u.useCallback(()=>{o.remove(M(),x)},[x,o]);u.useEffect(()=>()=>{T()},[T]),u.useEffect(()=>{f?I():(!b||!s)&&T()},[f,T,b,s,I]);const A=F=>V=>{var L;(L=F.onKeyDown)==null||L.call(F,V),!(V.key!=="Escape"||V.which===229||!R())&&(n||(V.stopPropagation(),c&&c(V,"escapeKeyDown")))},z=F=>V=>{var L;(L=F.onClick)==null||L.call(F,V),V.target===V.currentTarget&&c&&c(V,"backdropClick")};return{getRootProps:(F={})=>{const V=m4(e);delete V.onTransitionEnter,delete V.onTransitionExited;const L=S({},V,F);return S({role:"presentation"},L,{onKeyDown:A(L),ref:m})},getBackdropProps:(F={})=>{const V=F;return S({"aria-hidden":!0},V,{onClick:z(V),open:f})},getTransitionProps:()=>{const F=()=>{w(!1),i&&i()},V=()=>{w(!0),l&&l(),s&&T()};return{onEnter:Ax(F,a==null?void 0:a.props.onEnter),onExited:Ax(V,a==null?void 0:a.props.onExited)}},rootRef:m,portalRef:O,isTopModal:R,exited:C,hasTransition:b}}const gte=["onChange","maxRows","minRows","style","value"];function mg(e){return parseInt(e,10)||0}const vte={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function oR(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const yte=u.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:s=1,style:i,value:l}=t,a=ae(t,gte),{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 I=h.current;I.style.width=E.width,I.value=P.value||t.placeholder||"x",I.value.slice(-1)===`
|
|
162
|
-
`&&(I.value+=" ");const R=E.boxSizing,O=mg(E.paddingBottom)+mg(E.paddingTop),T=mg(E.borderBottomWidth)+mg(E.borderTopWidth),A=I.scrollHeight;I.value="x";const z=I.scrollHeight;let N=A;s&&(N=Math.max(Number(s)*z,N)),o&&(N=Math.min(Number(o)*z,N)),N=Math.max(N,z);const _=N+(R==="border-box"?O+T:0),$=Math.abs(N-A)<=1;return{outerHeightStyle:_,overflow:$}},[o,s,t.placeholder]),w=(P,M)=>{const{outerHeightStyle:E,overflow:I}=M;return y.current<20&&(E>0&&Math.abs((P.outerHeightStyle||0)-E)>1||P.overflow!==I)?(y.current+=1,{overflow:I,outerHeightStyle:E}):P},b=u.useCallback(()=>{const P=C();oR(P)||m(M=>w(M,P))},[C]);Lt(()=>{const P=()=>{const A=C();oR(A)||zd.flushSync(()=>{m(z=>w(z,A))})},M=()=>{y.current=0,P()};let E;const I=Fa(M),R=f.current,O=Jo(R);O.addEventListener("resize",I);let T;return typeof ResizeObserver!="undefined"&&(T=new ResizeObserver(M),T.observe(R)),()=>{I.clear(),cancelAnimationFrame(E),O.removeEventListener("resize",I),T&&T.disconnect()}},[C]),Lt(()=>{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({},vte.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function sR(e){return typeof e.normalize!="undefined"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function $4(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=sR(f));const p=f?l.filter(h=>{let y=(s||c)(h);return n&&(y=y.toLowerCase()),t&&(y=sR(y)),o==="start"?y.indexOf(f)===0:y.indexOf(f)>-1}):l;return typeof r=="number"?p.slice(0,r):p}}function Bw(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const bte=$4(),iR=5,wte=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function Cte(e){const{unstable_isActiveElementInListbox:t=wte,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=bte,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:I=!e.freeSolo,id:R,includeInputInList:O=!1,inputValue:T,isOptionEqualToValue:A=(_e,Ce)=>_e===Ce,multiple:z=!1,onChange:N,onClose:_,onHighlightChange:$,onInputChange:F,onOpen:V,open:L,openOnFocus:B=!1,options:H,readOnly:K=!1,selectOnFocus:Y=!e.freeSolo,value:J}=e,Q=Yt(R);let X=M;X=_e=>{const Ce=M(_e);return typeof Ce!="string"?String(Ce):Ce};const te=u.useRef(!1),se=u.useRef(!0),Z=u.useRef(null),pe=u.useRef(null),[ne,re]=u.useState(null),[me,ce]=u.useState(-1),xe=o?0:-1,ke=u.useRef(xe),[fe,Ie]=Qr({controlled:J,default:f,name:c}),[ve,Re]=Qr({controlled:T,default:"",name:c,state:"inputValue"}),[ie,ue]=u.useState(!1),we=u.useCallback((_e,Ce)=>{if(!(z?fe.length<Ce.length:Ce!==null)&&!l)return;let ft;if(z)ft="";else if(Ce==null)ft="";else{const Wt=X(Ce);ft=typeof Wt=="string"?Wt:""}ve!==ft&&(Re(ft),F&&F(_e,ft,"reset"))},[X,ve,z,F,Re,l,fe]),[Se,Me]=Qr({controlled:L,default:!1,name:c,state:"open"}),[Oe,Ne]=u.useState(!0),Ke=!z&&fe!=null&&ve===X(fe),Ye=Se&&!K,Fe=Ye?C(H.filter(_e=>!(w&&(z?fe:[fe]).some(Ce=>Ce!==null&&A(_e,Ce)))),{inputValue:Ke&&Oe?"":ve,getOptionLabel:X}):[],mt=GP({filteredOptions:Fe,value:fe,inputValue:ve});u.useEffect(()=>{const _e=fe!==mt.value;ie&&!_e||b&&!_e||we(null,fe)},[fe,we,ie,mt.value,b]);const Zt=Se&&Fe.length>0&&!K,Pt=qe(_e=>{_e===-1?Z.current.focus():ne.querySelector(`[data-tag-index="${_e}"]`).focus()});u.useEffect(()=>{z&&me>fe.length-1&&(ce(-1),Pt(-1))},[fe,z,me,Pt]);function Ve(_e,Ce){if(!pe.current||_e<0||_e>=Fe.length)return-1;let Qe=_e;for(;;){const ft=pe.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)%Fe.length:Qe=(Qe-1+Fe.length)%Fe.length,Qe===_e)return-1}}const ht=qe(({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:Fe[Ce],Qe),!pe.current)return;const ft=pe.current.querySelector(`[role="option"].${n}-focused`);ft&&(ft.classList.remove(`${n}-focused`),ft.classList.remove(`${n}-focusVisible`));let Wt=pe.current;if(pe.current.getAttribute("role")!=="listbox"&&(Wt=pe.current.parentElement.querySelector('[role="listbox"]')),!Wt)return;if(Ce===-1){Wt.scrollTop=0;return}const $n=pe.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,Zn=Nn.offsetTop+Nn.offsetHeight;Zn>St?Wt.scrollTop=Zn-Wt.clientHeight:Nn.offsetTop-Nn.offsetHeight*(E?1.3:0)<Wt.scrollTop&&(Wt.scrollTop=Nn.offsetTop-Nn.offsetHeight*(E?1.3:0))}}),Be=qe(({event:_e,diff:Ce,direction:Qe="next",reason:ft="auto"})=>{if(!Ye)return;const $n=Ve((()=>{const Nn=Fe.length-1;if(Ce==="reset")return xe;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(ht({index:$n,reason:ft,event:_e}),r&&Ce!=="reset")if($n===-1)Z.current.value=ve;else{const Nn=X(Fe[$n]);Z.current.value=Nn,Nn.toLowerCase().indexOf(ve.toLowerCase())===0&&ve.length>0&&Z.current.setSelectionRange(ve.length,Nn.length)}}),Xe=()=>{const _e=(Ce,Qe)=>{const ft=Ce?X(Ce):"",Wt=Qe?X(Qe):"";return ft===Wt};if(ke.current!==-1&&mt.filteredOptions&&mt.filteredOptions.length!==Fe.length&&mt.inputValue===ve&&(z?fe.length===mt.value.length&&mt.value.every((Ce,Qe)=>X(fe[Qe])===X(Ce)):_e(mt.value,fe))){const Ce=mt.filteredOptions[ke.current];if(Ce&&Fe.some(ft=>X(ft)===X(Ce)))return!0}return!1},vt=u.useCallback(()=>{if(!Ye||Xe())return;const _e=z?fe[0]:fe;if(Fe.length===0||_e==null){Be({diff:"reset"});return}if(pe.current){if(_e!=null){const Ce=Fe[ke.current];if(z&&Ce&&Bw(fe,ft=>A(Ce,ft))!==-1)return;const Qe=Bw(Fe,ft=>A(ft,_e));Qe===-1?Be({diff:"reset"}):ht({index:Qe});return}if(ke.current>=Fe.length-1){ht({index:Fe.length-1});return}ht({index:ke.current})}},[Fe.length,z?!1:fe,w,Be,ht,Ye,ve,z]),wt=qe(_e=>{ih(pe,_e),_e&&vt()});u.useEffect(()=>{vt()},[vt]);const _t=_e=>{Se||(Me(!0),Ne(!0),V&&V(_e))},qt=(_e,Ce)=>{Se&&(Me(!1),_&&_(_e,Ce))},Qt=(_e,Ce,Qe,ft)=>{if(z){if(fe.length===Ce.length&&fe.every((Wt,$n)=>Wt===Ce[$n]))return}else if(fe===Ce)return;N&&N(_e,Ce,Qe,ft),Ie(Ce)},Pn=u.useRef(!1),bn=(_e,Ce,Qe="selectOption",ft="options")=>{let Wt=Qe,$n=Ce;if(z){$n=Array.isArray(fe)?fe.slice():[];const Nn=Bw($n,St=>A(Ce,St));Nn===-1?$n.push(Ce):ft!=="freeSolo"&&($n.splice(Nn,1),Wt="removeOption")}we(_e,$n),Qt(_e,$n,Wt,{option:Ce}),!h&&(!_e||!_e.ctrlKey&&!_e.metaKey)&&qt(_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===fe.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(!z)return;ve===""&&qt(_e,"toggleInput");let Qe=me;me===-1?ve===""&&Ce==="previous"&&(Qe=fe.length-1):(Qe+=Ce==="next"?1:-1,Qe<0&&(Qe=0),Qe===fe.length&&(Qe=-1)),Qe=gt(Qe,Ce),ce(Qe),Pt(Qe)},vr=_e=>{te.current=!0,Re(""),F&&F(_e,"","clear"),Qt(_e,z?[]:null,"clear")},lr=_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":Ye&&I&&(Ce.preventDefault(),Be({diff:"start",direction:"next",reason:"keyboard",event:Ce}));break;case"End":Ye&&I&&(Ce.preventDefault(),Be({diff:"end",direction:"previous",reason:"keyboard",event:Ce}));break;case"PageUp":Ce.preventDefault(),Be({diff:-iR,direction:"previous",reason:"keyboard",event:Ce}),_t(Ce);break;case"PageDown":Ce.preventDefault(),Be({diff:iR,direction:"next",reason:"keyboard",event:Ce}),_t(Ce);break;case"ArrowDown":Ce.preventDefault(),Be({diff:1,direction:"next",reason:"keyboard",event:Ce}),_t(Ce);break;case"ArrowUp":Ce.preventDefault(),Be({diff:-1,direction:"previous",reason:"keyboard",event:Ce}),_t(Ce);break;case"ArrowLeft":Rt(Ce,"previous");break;case"ArrowRight":Rt(Ce,"next");break;case"Enter":if(ke.current!==-1&&Ye){const Qe=Fe[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&&ve!==""&&Ke===!1&&(z&&Ce.preventDefault(),bn(Ce,ve,"createOption","freeSolo"));break;case"Escape":Ye?(Ce.preventDefault(),Ce.stopPropagation(),qt(Ce,"escape")):a&&(ve!==""||z&&fe.length>0)&&(Ce.preventDefault(),Ce.stopPropagation(),vr(Ce));break;case"Backspace":if(z&&!K&&ve===""&&fe.length>0){const Qe=me===-1?fe.length-1:me,ft=fe.slice();ft.splice(Qe,1),Qt(Ce,ft,"removeOption",{option:fe[Qe]})}break;case"Delete":if(z&&!K&&ve===""&&fe.length>0&&me!==-1){const Qe=me,ft=fe.slice();ft.splice(Qe,1),Qt(Ce,ft,"removeOption",{option:fe[Qe]})}break}},Rl=_e=>{ue(!0),B&&!te.current&&_t(_e)},cs=_e=>{if(t(pe)){Z.current.focus();return}ue(!1),se.current=!0,te.current=!1,s&&ke.current!==-1&&Ye?bn(_e,Fe[ke.current],"blur"):s&&b&&ve!==""?bn(_e,ve,"blur","freeSolo"):l&&we(_e,fe),qt(_e,"blur")},_n=_e=>{const Ce=_e.target.value;ve!==Ce&&(Re(Ce),Ne(!1),F&&F(_e,Ce,"input")),Ce===""?!p&&!z&&Qt(_e,null,"clear"):_t(_e)},an=_e=>{const Ce=Number(_e.currentTarget.getAttribute("data-option-index"));ke.current!==Ce&&ht({event:_e,index:Ce,reason:"mouse"})},yr=_e=>{ht({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,Fe[Ce],"selectOption"),Pn.current=!1},us=_e=>Ce=>{const Qe=fe.slice();Qe.splice(_e,1),Qt(Ce,Qe,"removeOption",{option:fe[_e]})},ar=_e=>{Se?qt(_e,"toggleInput"):_t(_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&&(ve===""||!Se)&&ar(_e)};let Nr=b&&ve.length>0;Nr=Nr||(z?fe.length>0:fe!==null);let Hs=Fe;return E&&(Hs=Fe.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&&ie&&cs(),{getRootProps:(_e={})=>S({"aria-owns":Zt?`${Q}-listbox`:null},_e,{onKeyDown:lr(_e),onMouseDown:Oo,onClick:gi}),getInputLabelProps:()=>({id:`${Q}-label`,htmlFor:Q}),getInputProps:()=>({id:Q,value:ve,onBlur:cs,onFocus:Rl,onChange:_n,onMouseDown:Mr,"aria-activedescendant":Ye?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Zt?`${Q}-listbox`:void 0,"aria-expanded":Zt,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:y}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:vr}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:ar}),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:wt,onMouseDown:_e=>{_e.preventDefault()}}),getOptionProps:({index:_e,option:Ce})=>{var Qe;const ft=(z?fe:[fe]).some($n=>$n!=null&&A(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:ve,value:fe,dirty:Nr,expanded:Ye&&ne,popupOpen:Ye,focused:ie||me!==-1,anchorEl:ne,setAnchorEl:re,focusedTag:me,groupedOptions:Hs}}const xte=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Ste=oe(ite,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Pte=u.forwardRef(function(t,n){var r;const o=k1(),s=He({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=ae(s,xte),E=(r=x==null?void 0:x.root)!=null?r:a==null?void 0:a.Root,I=S({anchorEl:i,container:f,disablePortal:p,keepMounted:h,modifiers:y,open:v,placement:m,popperOptions:C,popperRef:w,transition:b},M);return D.jsx(Ste,S({as:l,direction:o==null?void 0:o.direction,slots:{root:E},slotProps:P!=null?P:c},I,{ref:n}))}),Ba=Pte;function Ete(e){return Ge("MuiListSubheader",e)}We("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const kte=["className","color","component","disableGutters","disableSticky","inset"],Ite=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,Ete,t)},Mte=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})),R4=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiListSubheader"}),{className:o,color:s="default",component:i="li",disableGutters:l=!1,disableSticky:a=!1,inset:c=!1}=r,f=ae(r,kte),p=S({},r,{color:s,component:i,disableGutters:l,disableSticky:a,inset:c}),h=Ite(p);return D.jsx(Mte,S({as:i,className:be(h.root,o),ref:n,ownerState:p},f))});R4.muiSkipListHighlight=!0;const Tte=R4,_te=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 $te(e){return Ge("MuiChip",e)}const Rte=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=Rte,Ote=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Dte=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,$te,t)},Ate=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}}})),Lte=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 lR(e){return e.key==="Backspace"||e.key==="Delete"}const Fte=u.forwardRef(function(t,n){const r=He({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=ae(r,Ote),E=u.useRef(null),I=kt(E,n),R=B=>{B.stopPropagation(),v&&v(B)},O=B=>{B.currentTarget===B.target&&lR(B)&&B.preventDefault(),m&&m(B)},T=B=>{B.currentTarget===B.target&&(v&&lR(B)?v(B):B.key==="Escape"&&E.current&&E.current.blur()),C&&C(B)},A=i!==!1&&y?!0:i,z=A||v?fi:a||"div",N=S({},r,{component:z,disabled:f,size:w,color:l,iconColor:u.isValidElement(p)&&p.props.color||l,onDelete:!!v,clickable:A,variant:b}),_=Dte(N),$=z===fi?S({component:a||"div",focusVisibleClassName:_.focusVisible},v&&{disableRipple:!0}):{};let F=null;v&&(F=c&&u.isValidElement(c)?u.cloneElement(c,{className:be(c.props.className,_.deleteIcon),onClick:R}):D.jsx(_te,{className:be(_.deleteIcon),onClick:R}));let V=null;o&&u.isValidElement(o)&&(V=u.cloneElement(o,{className:be(_.avatar,o.props.className)}));let L=null;return p&&u.isValidElement(p)&&(L=u.cloneElement(p,{className:be(_.icon,p.props.className)})),D.jsxs(Ate,S({as:z,className:be(_.root,s),disabled:A&&f?!0:void 0,onClick:y,onKeyDown:O,onKeyUp:T,ref:I,tabIndex:P&&f?-1:x,ownerState:N},$,M,{children:[V||L,D.jsx(Lte,{className:be(_.label),ownerState:N,children:h}),F]}))}),jh=Fte;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 Nte=u.createContext(void 0),D1=Nte;function Tl(){return u.useContext(D1)}function Bte(e){return D.jsx(YQ,S({},e,{defaultTheme:T1,themeId:Ic}))}function aR(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Wv(e,t=!1){return e&&(aR(e.value)&&e.value!==""||t&&aR(e.defaultValue)&&e.defaultValue!=="")}function jte(e){return e.startAdornment}function zte(e){return Ge("MuiInputBase",e)}const Vte=We("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ho=Vte,Hte=["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"],A1=(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]},L1=(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]},Ute=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,zte,t)},F1=oe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:A1})(({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%"})),N1=oe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:L1})(({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"})}),Wte=D.jsx(Bte,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Gte=u.forwardRef(function(t,n){var r;const o=He({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:I,onBlur:R,onChange:O,onClick:T,onFocus:A,onKeyDown:z,onKeyUp:N,placeholder:_,readOnly:$,renderSuffix:F,rows:V,slotProps:L={},slots:B={},startAdornment:H,type:K="text",value:Y}=o,J=ae(o,Hte),Q=b.value!=null?b.value:Y,{current:X}=u.useRef(Q!=null),te=u.useRef(),se=u.useCallback(Ye=>{},[]),Z=kt(te,x,b.ref,se),[pe,ne]=u.useState(!1),re=Tl(),me=Vc({props:o,muiFormControl:re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});me.focused=re?re.focused:pe,u.useEffect(()=>{!re&&h&&pe&&(ne(!1),R&&R())},[re,h,pe,R]);const ce=re&&re.onFilled,xe=re&&re.onEmpty,ke=u.useCallback(Ye=>{Wv(Ye)?ce&&ce():xe&&xe()},[ce,xe]);Lt(()=>{X&&ke({value:Q})},[Q,ke,X]);const fe=Ye=>{if(me.disabled){Ye.stopPropagation();return}A&&A(Ye),b.onFocus&&b.onFocus(Ye),re&&re.onFocus?re.onFocus(Ye):ne(!0)},Ie=Ye=>{R&&R(Ye),b.onBlur&&b.onBlur(Ye),re&&re.onBlur?re.onBlur(Ye):ne(!1)},ve=(Ye,...Fe)=>{if(!X){const mt=Ye.target||te.current;if(mt==null)throw new Error(Ia(1));ke({value:mt.value})}b.onChange&&b.onChange(Ye,...Fe),O&&O(Ye,...Fe)};u.useEffect(()=>{ke(te.current)},[]);const Re=Ye=>{te.current&&Ye.currentTarget===Ye.target&&te.current.focus(),T&&T(Ye)};let ie=w,ue=b;E&&ie==="input"&&(V?ue=S({type:void 0,minRows:V,maxRows:V},ue):ue=S({type:void 0,maxRows:P,minRows:M},ue),ie=yte);const we=Ye=>{ke(Ye.animationName==="mui-auto-fill-cancel"?te.current:{value:"x"})};u.useEffect(()=>{re&&re.setAdornedStart(!!H)},[re,H]);const Se=S({},o,{color:me.color||"primary",disabled:me.disabled,endAdornment:v,error:me.error,focused:me.focused,formControl:re,fullWidth:m,hiddenLabel:me.hiddenLabel,multiline:E,size:me.size,startAdornment:H,type:K}),Me=Ute(Se),Oe=B.root||c.Root||F1,Ne=L.root||f.root||{},Ke=B.input||c.Input||N1;return ue=S({},ue,(r=L.input)!=null?r:f.input),D.jsxs(u.Fragment,{children:[!y&&Wte,D.jsxs(Oe,S({},Ne,!Rc(Oe)&&{ownerState:S({},Se,Ne.ownerState)},{ref:n,onClick:Re},J,{className:be(Me.root,Ne.className,a,$&&"MuiInputBase-readOnly"),children:[H,D.jsx(D1.Provider,{value:null,children:D.jsx(Ke,S({ownerState:Se,"aria-invalid":me.error,"aria-describedby":s,autoComplete:i,autoFocus:l,defaultValue:p,disabled:me.disabled,id:C,onAnimationStart:we,name:I,placeholder:_,readOnly:$,required:me.required,rows:V,value:Q,onKeyDown:z,onKeyUp:N,type:K},ue,!Rc(Ke)&&{as:ie,ownerState:S({},Se,ue.ownerState)},{ref:Z,className:be(Me.input,ue.className,$&&"MuiInputBase-readOnly"),onBlur:Ie,onChange:ve,onFocus:fe}))}),v,F?F(S({},me,{startAdornment:H})):null]}))]})}),Wd=Gte;function Kte(e){return Ge("MuiInput",e)}const qte=S({},Ho,We("MuiInput",["root","underline","input"])),oa=qte;function Yte(e){return Ge("MuiOutlinedInput",e)}const Qte=S({},Ho,We("MuiOutlinedInput",["root","notchedOutline","input"])),Pi=Qte;function Xte(e){return Ge("MuiFilledInput",e)}const Zte=S({},Ho,We("MuiFilledInput",["root","underline","input"])),Uo=Zte,O4=bt(D.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Jte(e){return Ge("MuiAutocomplete",e)}const ene=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"]),jt=ene;var cR,uR;const tne=["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"],nne=["ref"],rne=["key"],one=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,Jte,t)},sne=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[{[`& .${jt.tag}`]:t.tag},{[`& .${jt.tag}`]:t[`tagSize${Pe(l)}`]},{[`& .${jt.inputRoot}`]:t.inputRoot},{[`& .${jt.input}`]:t.input},{[`& .${jt.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,s&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>S({[`&.${jt.focused} .${jt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${jt.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${jt.tag}`]:S({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${jt.inputRoot}`]:{flexWrap:"wrap",[`.${jt.hasPopupIcon}&, .${jt.hasClearIcon}&`]:{paddingRight:26+4},[`.${jt.hasPopupIcon}.${jt.hasClearIcon}&`]:{paddingRight:52+4},[`& .${jt.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,[`.${jt.hasPopupIcon}&, .${jt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${jt.hasPopupIcon}.${jt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${jt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${jt.endAdornment}`]:{right:9}},[`& .${Pi.root}.${Ho.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${jt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Uo.root}`]:{paddingTop:19,paddingLeft:8,[`.${jt.hasPopupIcon}&, .${jt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${jt.hasPopupIcon}.${jt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Uo.input}`]:{padding:"7px 4px"},[`& .${jt.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,[`& .${jt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Uo.root}.${Ho.hiddenLabel}.${Ho.sizeSmall}`]:{[`& .${jt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${jt.input}`]:S({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),ine=oe("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),lne=oe(xr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),ane=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)"})),cne=oe(Ba,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${jt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>S({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),une=oe(zs,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>S({},e.typography.body1,{overflow:"auto"})),dne=oe("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),fne=oe("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),pne=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",[`& .${jt.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${jt.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${jt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${jt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${jt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),hne=oe(Tte,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),mne=oe("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${jt.option}`]:{paddingLeft:24}}),gne=u.forwardRef(function(t,n){var r,o,s,i;const l=He({props:t,name:"MuiAutocomplete"}),{autoComplete:a=!1,autoHighlight:c=!1,autoSelect:f=!1,blurOnSelect:p=!1,ChipProps:h,className:y,clearIcon:v=cR||(cR=D.jsx(g4,{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:I=!1,disabledItemsFocusable:R=!1,disableListWrap:O=!1,disablePortal:T=!1,filterSelectedOptions:A=!1,forcePopupIcon:z="auto",freeSolo:N=!1,fullWidth:_=!1,getLimitTagsText:$=Ce=>`+${Ce}`,getOptionLabel:F,groupBy:V,handleHomeEndKeys:L=!l.freeSolo,includeInputInList:B=!1,limitTags:H=-1,ListboxComponent:K="ul",ListboxProps:Y,loading:J=!1,loadingText:Q="Loading…",multiple:X=!1,noOptionsText:te="No options",openOnFocus:se=!1,openText:Z="Open",PaperComponent:pe=zs,PopperComponent:ne=Ba,popupIcon:re=uR||(uR=D.jsx(O4,{})),readOnly:me=!1,renderGroup:ce,renderInput:xe,renderOption:ke,renderTags:fe,selectOnFocus:Ie=!l.freeSolo,size:ve="medium",slotProps:Re={}}=l,ie=ae(l,tne),{getRootProps:ue,getInputProps:we,getInputLabelProps:Se,getPopupIndicatorProps:Me,getClearProps:Oe,getTagProps:Ne,getListboxProps:Ke,getOptionProps:Ye,value:Fe,dirty:mt,expanded:Zt,id:Pt,popupOpen:Ve,focused:ht,focusedTag:Be,anchorEl:Xe,setAnchorEl:vt,inputValue:wt,groupedOptions:_t}=Cte(S({},l,{componentName:"Autocomplete"})),qt=!M&&!I&&mt&&!me,Qt=(!N||z===!0)&&z!==!1,{onMouseDown:Pn}=we(),{ref:bn}=Y!=null?Y:{},gt=Ke(),{ref:Rt}=gt,vr=ae(gt,nne),lr=kt(Rt,bn),cs=F||(Ce=>{var Qe;return(Qe=Ce.label)!=null?Qe:Ce}),_n=S({},l,{disablePortal:T,expanded:Zt,focused:ht,fullWidth:_,getOptionLabel:cs,hasClearIcon:qt,hasPopupIcon:Qt,inputFocused:Be===-1,popupOpen:Ve,size:ve}),an=one(_n);let yr;if(X&&Fe.length>0){const Ce=Qe=>S({className:an.tag,disabled:I},Ne(Qe));fe?yr=fe(Fe,Ce,_n):yr=Fe.map((Qe,ft)=>D.jsx(jh,S({label:cs(Qe),size:ve},Ce({index:ft}),h)))}if(H>-1&&Array.isArray(yr)){const Ce=yr.length-H;!ht&&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(hne,{className:an.groupLabel,ownerState:_n,component:"div",children:Ce.group}),D.jsx(mne,{className:an.groupUl,ownerState:_n,children:Ce.children})]},Ce.key)),Oo=ke||((Ce,Qe)=>{const{key:ft}=Ce,Wt=ae(Ce,rne);return D.jsx("li",S({},Wt,{children:cs(Qe)}),ft)}),gi=(Ce,Qe)=>{const ft=Ye({option:Ce,index:Qe});return Oo(S({},ft,{className:an.option}),Ce,{selected:ft["aria-selected"],index:Qe,inputValue:wt},_n)},Mr=(r=Re.clearIndicator)!=null?r:x.clearIndicator,Nr=(o=Re.paper)!=null?o:x.paper,Hs=(s=Re.popper)!=null?s:x.popper,_e=(i=Re.popupIndicator)!=null?i:x.popupIndicator;return D.jsxs(u.Fragment,{children:[D.jsx(sne,S({ref:n,className:be(an.root,y),ownerState:_n},ue(ie),{children:xe({id:Pt,disabled:I,fullWidth:!0,size:ve==="small"?"small":void 0,InputLabelProps:Se(),InputProps:S({ref:vt,className:an.inputRoot,startAdornment:yr,onClick:Ce=>{Ce.target===Ce.currentTarget&&Pn(Ce)}},(qt||Qt)&&{endAdornment:D.jsxs(ine,{className:an.endAdornment,ownerState:_n,children:[qt?D.jsx(lne,S({},Oe(),{"aria-label":w,title:w,ownerState:_n},Mr,{className:be(an.clearIndicator,Mr==null?void 0:Mr.className),children:v})):null,Qt?D.jsx(ane,S({},Me(),{disabled:I,"aria-label":Ve?b:Z,title:Ve?b:Z,ownerState:_n},_e,{className:be(an.popupIndicator,_e==null?void 0:_e.className),children:re})):null]})}),inputProps:S({className:an.input,disabled:I,readOnly:me},we())})})),Xe?D.jsx(cne,S({as:ne,disablePortal:T,style:{width:Xe?Xe.clientWidth:null},ownerState:_n,role:"presentation",anchorEl:Xe,open:Ve},Hs,{className:be(an.popper,Hs==null?void 0:Hs.className),children:D.jsxs(une,S({ownerState:_n,as:pe},Nr,{className:be(an.paper,Nr==null?void 0:Nr.className),children:[J&&_t.length===0?D.jsx(dne,{className:an.loading,ownerState:_n,children:Q}):null,_t.length===0&&!N&&!J?D.jsx(fne,{className:an.noOptions,ownerState:_n,role:"presentation",onMouseDown:Ce=>{Ce.preventDefault()},children:te}):null,_t.length>0?D.jsx(pne,S({as:K,className:an.listbox,ownerState:_n},vr,Y,{ref:lr,children:_t.map((Ce,Qe)=>V?us({key:Ce.key,group:Ce.group,children:Ce.options.map((ft,Wt)=>gi(ft,Ce.index+Wt))}):gi(Ce,Qe))})):null]}))})):null]})}),zh=gne,vne=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],yne={entering:{opacity:1},entered:{opacity:1}},bne=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=Fh}=t,x=ae(t,vne),P=u.useRef(null),M=kt(P,l.ref,n),E=_=>$=>{if(_){const F=P.current;$===void 0?_(F):_(F,$)}},I=E(h),R=E((_,$)=>{i2(_);const F=Ta({style:C,timeout:w,easing:a},{mode:"enter"});_.style.webkitTransition=r.transitions.create("opacity",F),_.style.transition=r.transitions.create("opacity",F),f&&f(_,$)}),O=E(p),T=E(m),A=E(_=>{const $=Ta({style:C,timeout:w,easing:a},{mode:"exit"});_.style.webkitTransition=r.transitions.create("opacity",$),_.style.transition=r.transitions.create("opacity",$),y&&y(_)}),z=E(v),N=_=>{s&&s(P.current,_)};return D.jsx(b,S({appear:i,in:c,nodeRef:P,onEnter:R,onEntered:O,onEntering:I,onExit:A,onExited:z,onExiting:T,addEndListener:N,timeout:w},x,{children:(_,$)=>u.cloneElement(l,S({style:S({opacity:0,visibility:_==="exited"&&!c?"hidden":void 0},yne[_],C,l.props.style),ref:M},$))}))}),Gd=bne;function wne(e){return Ge("MuiBackdrop",e)}We("MuiBackdrop",["root","invisible"]);const Cne=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],xne=e=>{const{classes:t,invisible:n}=e;return Te({root:["root",n&&"invisible"]},wne,t)},Sne=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"})),Pne=u.forwardRef(function(t,n){var r,o,s;const i=He({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=ae(i,Cne),x=S({},i,{component:c,invisible:h}),P=xne(x),M=(r=v.root)!=null?r:p.root;return D.jsx(C,S({in:y,timeout:w},b,{children:D.jsx(Sne,S({"aria-hidden":!0},M,{as:(o=(s=m.root)!=null?s:f.Root)!=null?o:c,className:be(P.root,a,M==null?void 0:M.className),ownerState:S({},x,M==null?void 0:M.ownerState),classes:P,ref:n,children:l}))}))}),D4=Pne;function Ene(e){return Ge("MuiBadge",e)}const kne=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"]),Hl=kne,Ine=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],jw=10,zw=4,Mne=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,Ene,i)},Tne=oe("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),_ne=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})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:jw*2,lineHeight:1,padding:"0 6px",height:jw*2,borderRadius:jw,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:zw,height:zw*2,minWidth:zw*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Hl.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Hl.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Hl.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Hl.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Hl.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Hl.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Hl.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Hl.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),$ne=u.forwardRef(function(t,n){var r,o,s,i,l,a;const c=He({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:I=!1,variant:R="standard"}=c,O=ae(c,Ine),{badgeContent:T,invisible:A,max:z,displayValue:N}=DJ({max:x,invisible:b,badgeContent:P,showZero:I}),_=GP({anchorOrigin:f,color:w,overlap:C,variant:R,badgeContent:P}),$=A||T==null&&R!=="dot",{color:F=w,overlap:V=C,anchorOrigin:L=f,variant:B=R}=$?_:c,H=B!=="dot"?N:void 0,K=S({},c,{badgeContent:T,invisible:$,max:z,displayValue:H,showZero:I,anchorOrigin:L,color:F,overlap:V,variant:B}),Y=Mne(K),J=(r=(o=M==null?void 0:M.root)!=null?o:y.Root)!=null?r:Tne,Q=(s=(i=M==null?void 0:M.badge)!=null?i:y.Badge)!=null?s:_ne,X=(l=E==null?void 0:E.root)!=null?l:v.root,te=(a=E==null?void 0:E.badge)!=null?a:v.badge,se=Kt({elementType:J,externalSlotProps:X,externalForwardedProps:O,additionalProps:{ref:n,as:h},ownerState:K,className:be(X==null?void 0:X.className,Y.root,p)}),Z=Kt({elementType:Q,externalSlotProps:te,ownerState:K,className:be(Y.badge,te==null?void 0:te.className)});return D.jsxs(J,S({},se,{children:[m,D.jsx(Q,S({},Z,{children:H}))]}))}),A4=$ne,Rne=We("MuiBox",["root"]),One=Rne,Dne=t2(),Ane=JQ({themeId:Ic,defaultTheme:Dne,defaultClassName:One.root,generateClassName:qP.generate}),ze=Ane;function Lne(e){return Ge("MuiButton",e)}const Fne=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"]),gg=Fne,Nne=u.createContext({}),L4=Nne,Bne=u.createContext(void 0),jne=Bne,zne=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Vne=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,Lne,i);return S({},i,a)},F4=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}}),Hne=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]}),[`&.${gg.focusVisible}`]:S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${gg.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"},[`&.${gg.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${gg.disabled}`]:{boxShadow:"none"}}),Une=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},F4(e))),Wne=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},F4(e))),Gne=u.forwardRef(function(t,n){const r=u.useContext(L4),o=u.useContext(jne),s=KP(r,t),i=He({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=ae(i,zne),E=S({},i,{color:a,component:c,disabled:p,disableElevation:h,disableFocusRipple:y,fullWidth:C,size:w,type:x,variant:P}),I=Vne(E),R=b&&D.jsx(Une,{className:I.startIcon,ownerState:E,children:b}),O=v&&D.jsx(Wne,{className:I.endIcon,ownerState:E,children:v}),T=o||"";return D.jsxs(Hne,S({ownerState:E,className:be(r.className,I.root,f,T),component:c,disabled:p,focusRipple:!y,focusVisibleClassName:be(I.focusVisible,m),ref:n,type:x},M,{classes:I,children:[R,l,O]}))}),Yn=Gne;function Kne(e){return Ge("MuiCard",e)}We("MuiCard",["root"]);const qne=["className","raised"],Yne=e=>{const{classes:t}=e;return Te({root:["root"]},Kne,t)},Qne=oe(zs,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Xne=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiCard"}),{className:o,raised:s=!1}=r,i=ae(r,qne),l=S({},r,{raised:s}),a=Yne(l);return D.jsx(Qne,S({className:be(a.root,o),elevation:s?8:void 0,ref:n,ownerState:l},i))}),B1=Xne;function Zne(e){return Ge("MuiCardContent",e)}We("MuiCardContent",["root"]);const Jne=["className","component"],ere=e=>{const{classes:t}=e;return Te({root:["root"]},Zne,t)},tre=oe("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),nre=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiCardContent"}),{className:o,component:s="div"}=r,i=ae(r,Jne),l=S({},r,{component:s}),a=ere(l);return D.jsx(tre,S({as:s,className:be(a.root,o),ownerState:l,ref:n},i))}),j1=nre;function rre(e){return Ge("PrivateSwitchBase",e)}We("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const ore=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],sre=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,rre,t)},ire=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})),lre=oe("input",{shouldForwardProp:Jr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),are=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:I}=t,R=ae(t,ore),[O,T]=Qr({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),A=Tl(),z=B=>{b&&b(B),A&&A.onFocus&&A.onFocus(B)},N=B=>{C&&C(B),A&&A.onBlur&&A.onBlur(B)},_=B=>{if(B.nativeEvent.defaultPrevented)return;const H=B.target.checked;T(H),w&&w(B,H)};let $=a;A&&typeof $=="undefined"&&($=A.disabled);const F=E==="checkbox"||E==="radio",V=S({},t,{checked:O,disabled:$,disableFocusRipple:c,edge:f}),L=sre(V);return D.jsxs(ire,S({component:"span",className:be(L.root,i),centerRipple:!0,focusRipple:!c,disabled:$,tabIndex:null,role:void 0,onFocus:z,onBlur:N,ownerState:V,ref:n},R,{children:[D.jsx(lre,S({autoFocus:r,checked:o,defaultChecked:l,className:L.input,disabled:$,id:F?h:void 0,name:m,onChange:_,readOnly:x,ref:v,required:P,ownerState:V,tabIndex:M,type:E},E==="checkbox"&&I===void 0?{}:{value:I},y)),O?s:p]}))}),N4=are,cre=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"),ure=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"),dre=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 fre(e){return Ge("MuiCheckbox",e)}const pre=We("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Vw=pre,hre=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],mre=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,fre,t);return S({},t,i)},gre=oe(N4,{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"&&{[`&.${Vw.checked}, &.${Vw.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Vw.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),vre=D.jsx(ure,{}),yre=D.jsx(cre,{}),bre=D.jsx(dre,{}),wre=u.forwardRef(function(t,n){var r,o;const s=He({props:t,name:"MuiCheckbox"}),{checkedIcon:i=vre,color:l="primary",icon:a=yre,indeterminate:c=!1,indeterminateIcon:f=bre,inputProps:p,size:h="medium",className:y}=s,v=ae(s,hre),m=c?f:a,C=c?f:i,w=S({},s,{color:l,indeterminate:c,size:h}),b=mre(w);return D.jsx(gre,S({type:"checkbox",inputProps:S({"data-indeterminate":c},p),icon:u.cloneElement(m,{fontSize:(r=m.props.fontSize)!=null?r:h}),checkedIcon:u.cloneElement(C,{fontSize:(o=C.props.fontSize)!=null?o:h}),ownerState:w,ref:n,className:be(b.root,y)},v,{classes:b}))}),B4=wre;function Cre(e){return Ge("MuiCircularProgress",e)}We("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const xre=["className","color","disableShrink","size","style","thickness","value","variant"];let z1=e=>e,dR,fR,pR,hR;const Ul=44,Sre=Ui(dR||(dR=z1`
|
|
163
|
-
0% {
|
|
164
|
-
transform: rotate(0deg);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
100% {
|
|
168
|
-
transform: rotate(360deg);
|
|
169
|
-
}
|
|
170
|
-
`)),Pre=Ui(fR||(fR=z1`
|
|
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
|
-
`)),Ere=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,Cre,t)},kre=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(pR||(pR=z1`
|
|
186
|
-
animation: ${0} 1.4s linear infinite;
|
|
187
|
-
`),Sre)),Ire=oe("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Mre=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(hR||(hR=z1`
|
|
188
|
-
animation: ${0} 1.4s ease-in-out infinite;
|
|
189
|
-
`),Pre)),Tre=u.forwardRef(function(t,n){const r=He({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=ae(r,xre),y=S({},r,{color:s,disableShrink:i,size:l,thickness:c,value:f,variant:p}),v=Ere(y),m={},C={},w={};if(p==="determinate"){const b=2*Math.PI*((Ul-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(kre,S({className:be(v.root,o),style:S({width:l,height:l},C,a),ownerState:y,ref:n,role:"progressbar"},w,h,{children:D.jsx(Ire,{className:v.svg,ownerState:y,viewBox:`${Ul/2} ${Ul/2} ${Ul} ${Ul}`,children:D.jsx(Mre,{className:v.circle,style:m,ownerState:y,cx:Ul,cy:Ul,r:(Ul-c)/2,fill:"none",strokeWidth:c})})}))}),zi=Tre;function _re(e){return Ge("MuiModal",e)}We("MuiModal",["root","hidden","backdrop"]);const $re=["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"],Rre=e=>{const{open:t,exited:n,classes:r}=e;return Te({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},_re,r)},Ore=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"})),Dre=oe(D4,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Are=u.forwardRef(function(t,n){var r,o,s,i,l,a;const c=He({name:"MuiModal",props:t}),{BackdropComponent:f=Dre,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:I=!1,disableScrollLock:R=!1,hideBackdrop:O=!1,keepMounted:T=!1,onBackdropClick:A,open:z,slotProps:N,slots:_}=c,$=ae(c,$re),F=S({},c,{closeAfterTransition:y,disableAutoFocus:x,disableEnforceFocus:P,disableEscapeKeyDown:M,disablePortal:E,disableRestoreFocus:I,disableScrollLock:R,hideBackdrop:O,keepMounted:T}),{getRootProps:V,getBackdropProps:L,getTransitionProps:B,portalRef:H,isTopModal:K,exited:Y,hasTransition:J}=mte(S({},F,{rootRef:n})),Q=S({},F,{exited:Y}),X=Rre(Q),te={};if(v.props.tabIndex===void 0&&(te.tabIndex="-1"),J){const{onEnter:ce,onExited:xe}=B();te.onEnter=ce,te.onExited=xe}const se=(r=(o=_==null?void 0:_.root)!=null?o:w.Root)!=null?r:Ore,Z=(s=(i=_==null?void 0:_.backdrop)!=null?i:w.Backdrop)!=null?s:f,pe=(l=N==null?void 0:N.root)!=null?l:b.root,ne=(a=N==null?void 0:N.backdrop)!=null?a:b.backdrop,re=Kt({elementType:se,externalSlotProps:pe,externalForwardedProps:$,getSlotProps:V,additionalProps:{ref:n,as:C},ownerState:Q,className:be(h,pe==null?void 0:pe.className,X==null?void 0:X.root,!Q.open&&Q.exited&&(X==null?void 0:X.hidden))}),me=Kt({elementType:Z,externalSlotProps:ne,additionalProps:p,getSlotProps:ce=>L(S({},ce,{onClick:xe=>{A&&A(xe),ce!=null&&ce.onClick&&ce.onClick(xe)}})),className:be(ne==null?void 0:ne.className,p==null?void 0:p.className,X==null?void 0:X.backdrop),ownerState:Q});return!T&&!z&&(!J||Y)?null:D.jsx(T4,{ref:H,container:m,disablePortal:E,children:D.jsxs(se,S({},re,{children:[!O&&f?D.jsx(Z,S({},me)):null,D.jsx(l2,{disableEnforceFocus:P,disableAutoFocus:x,disableRestoreFocus:I,isEnabled:K,open:z,children:u.cloneElement(v,te)})]}))})}),V1=Are;function Lre(e){return Ge("MuiDialog",e)}const Fre=We("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Tp=Fre,Nre=u.createContext({}),j4=Nre,Bre=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],jre=oe(D4,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),zre=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,Lre,t)},Vre=oe(V1,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Hre=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"}})),Ure=oe(zs,{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)`,[`&.${Tp.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}`,[`&.${Tp.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,[`&.${Tp.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Wre=u.forwardRef(function(t,n){const r=He({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=zs,PaperProps:P={},scroll:M="paper",TransitionComponent:E=Gd,transitionDuration:I=s,TransitionProps:R}=r,O=ae(r,Bre),T=S({},r,{disableEscapeKeyDown:h,fullScreen:y,fullWidth:v,maxWidth:m,scroll:M}),A=zre(T),z=u.useRef(),N=V=>{z.current=V.target===V.currentTarget},_=V=>{z.current&&(z.current=null,C&&C(V),w&&w(V,"backdropClick"))},$=Yt(l),F=u.useMemo(()=>({titleId:$}),[$]);return D.jsx(Vre,S({className:be(A.root,p),closeAfterTransition:!0,components:{Backdrop:jre},componentsProps:{backdrop:S({transitionDuration:I,as:a},c)},disableEscapeKeyDown:h,onClose:w,open:b,ref:n,onClick:_,ownerState:T},O,{children:D.jsx(E,S({appear:!0,in:b,timeout:I,role:"presentation"},R,{children:D.jsx(Hre,{className:be(A.container),onMouseDown:N,ownerState:T,children:D.jsx(Ure,S({as:x,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":$},P,{className:be(A.paper,P.className),ownerState:T,children:D.jsx(j4.Provider,{value:F,children:f})}))})}))}))}),z4=Wre;function Gre(e){return Ge("MuiDialogActions",e)}We("MuiDialogActions",["root","spacing"]);const Kre=["className","disableSpacing"],qre=e=>{const{classes:t,disableSpacing:n}=e;return Te({root:["root",!n&&"spacing"]},Gre,t)},Yre=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}})),Qre=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1}=r,i=ae(r,Kre),l=S({},r,{disableSpacing:s}),a=qre(l);return D.jsx(Yre,S({className:be(a.root,o),ownerState:l,ref:n},i))}),Xre=Qre;function Zre(e){return Ge("MuiDialogContent",e)}We("MuiDialogContent",["root","dividers"]);function Jre(e){return Ge("MuiDialogTitle",e)}const eoe=We("MuiDialogTitle",["root"]),toe=eoe,noe=["className","dividers"],roe=e=>{const{classes:t,dividers:n}=e;return Te({root:["root",n&&"dividers"]},Zre,t)},ooe=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}`}:{[`.${toe.root} + &`]:{paddingTop:0}})),soe=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1}=r,i=ae(r,noe),l=S({},r,{dividers:s}),a=roe(l);return D.jsx(ooe,S({className:be(a.root,o),ownerState:l,ref:n},i))}),V4=soe,ioe=["className","id"],loe=e=>{const{classes:t}=e;return Te({root:["root"]},Jre,t)},aoe=oe(qn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),coe=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiDialogTitle"}),{className:o,id:s}=r,i=ae(r,ioe),l=r,a=loe(l),{titleId:c=s}=u.useContext(j4);return D.jsx(aoe,S({component:"h2",className:be(a.root,o),ownerState:l,ref:n,variant:"h6",id:s!=null?s:c},i))}),uoe=coe;function doe(e){return Ge("MuiDivider",e)}const foe=We("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),mR=foe,poe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],hoe=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"]},doe,r)},moe=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%"}})),goe=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)`})),H4=u.forwardRef(function(t,n){const r=He({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=ae(r,poe),m=S({},r,{absolute:o,component:l,flexItem:a,light:c,orientation:f,role:p,textAlign:h,variant:y}),C=hoe(m);return D.jsx(moe,S({as:l,className:be(C.root,i),role:p,ref:n,ownerState:m},v,{children:s?D.jsx(goe,{className:C.wrapper,ownerState:m,children:s}):null}))});H4.muiSkipListHighlight=!0;const ch=H4,voe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function yoe(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 boe(e){return typeof e=="function"?e():e}function vg(e,t,n){const r=boe(n),o=yoe(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const woe=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=Fh}=t,E=ae(t,voe),I=u.useRef(null),R=kt(a.ref,I,n),O=L=>B=>{L&&(B===void 0?L(I.current):L(I.current,B))},T=O((L,B)=>{vg(f,L,c),i2(L),y&&y(L,B)}),A=O((L,B)=>{const H=Ta({timeout:P,style:x,easing:p},{mode:"enter"});L.style.webkitTransition=r.transitions.create("-webkit-transform",S({},H)),L.style.transition=r.transitions.create("transform",S({},H)),L.style.webkitTransform="none",L.style.transform="none",m&&m(L,B)}),z=O(v),N=O(b),_=O(L=>{const B=Ta({timeout:P,style:x,easing:p},{mode:"exit"});L.style.webkitTransition=r.transitions.create("-webkit-transform",B),L.style.transition=r.transitions.create("transform",B),vg(f,L,c),C&&C(L)}),$=O(L=>{L.style.webkitTransition="",L.style.transition="",w&&w(L)}),F=L=>{i&&i(I.current,L)},V=u.useCallback(()=>{I.current&&vg(f,I.current,c)},[f,c]);return u.useEffect(()=>{if(h||f==="down"||f==="right")return;const L=Fa(()=>{I.current&&vg(f,I.current,c)}),B=Jo(I.current);return B.addEventListener("resize",L),()=>{L.clear(),B.removeEventListener("resize",L)}},[f,h,c]),u.useEffect(()=>{h||V()},[h,V]),D.jsx(M,S({nodeRef:I,onEnter:T,onEntered:z,onEntering:A,onExit:_,onExited:$,onExiting:N,addEndListener:F,appear:l,in:h,timeout:P},E,{children:(L,B)=>u.cloneElement(a,S({ref:R,style:S({visibility:L==="exited"&&!h?"hidden":void 0},x,a.props.style)},B))}))}),Coe=woe;function xoe(e){return Ge("MuiDrawer",e)}We("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Soe=["BackdropProps"],Poe=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],U4=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},Eoe=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,xoe,t)},koe=oe(V1,{name:"MuiDrawer",slot:"Root",overridesResolver:U4})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),gR=oe("div",{shouldForwardProp:Jr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:U4})({flex:"0 0 auto"}),Ioe=oe(zs,{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}`})),W4={left:"right",right:"left",top:"down",bottom:"up"};function Moe(e){return["left","right"].indexOf(e)!==-1}function Toe(e,t){return e.direction==="rtl"&&Moe(t)?W4[t]:t}const _oe=u.forwardRef(function(t,n){const r=He({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=Coe,transitionDuration:b=s,variant:x="temporary"}=r,P=ae(r.ModalProps,Soe),M=ae(r,Poe),E=u.useRef(!1);u.useEffect(()=>{E.current=!0},[]);const I=Toe(o,i),O=S({},r,{anchor:i,elevation:f,open:v,variant:x},M),T=Eoe(O),A=D.jsx(Ioe,S({elevation:x==="temporary"?f:0,square:!0},m,{className:be(T.paper,m.className),ownerState:O,children:a}));if(x==="permanent")return D.jsx(gR,S({className:be(T.root,T.docked,c),ownerState:O,ref:n},M,{children:A}));const z=D.jsx(w,S({in:v,direction:W4[I],timeout:b,appear:E.current},C,{children:A}));return x==="persistent"?D.jsx(gR,S({className:be(T.root,T.docked,c),ownerState:O,ref:n},M,{children:z})):D.jsx(koe,S({BackdropProps:S({},l,h,{transitionDuration:b}),className:be(T.root,T.modal,c),open:v,ownerState:O,onClose:y,hideBackdrop:p,ref:n},M,P,{children:z}))}),$oe=_oe,Roe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Ooe=e=>{const{classes:t,disableUnderline:n}=e,o=Te({root:["root",!n&&"underline"],input:["input"]},Xte,t);return S({},t,o)},Doe=oe(F1,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...A1(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}))}),Aoe=oe(N1,{name:"MuiFilledInput",slot:"Input",overridesResolver:L1})(({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})),G4=u.forwardRef(function(t,n){var r,o,s,i;const l=He({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=ae(l,Roe),w=S({},l,{fullWidth:f,inputComponent:p,multiline:h,type:m}),b=Ooe(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:Doe,E=(s=(i=v.input)!=null?i:a.Input)!=null?s:Aoe;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}))});G4.muiName="Input";const K4=G4;function Loe(e){return Ge("MuiFormControl",e)}We("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Foe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Noe=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Pe(n)}`,r&&"fullWidth"]};return Te(o,Loe,t)},Boe=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%"})),joe=u.forwardRef(function(t,n){const r=He({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=ae(r,Foe),b=S({},r,{color:i,component:l,disabled:a,error:c,fullWidth:p,hiddenLabel:h,margin:y,required:v,size:m,variant:C}),x=Noe(b),[P,M]=u.useState(()=>{let N=!1;return o&&u.Children.forEach(o,_=>{if(!Sp(_,["Input","Select"]))return;const $=Sp(_,["Select"])?_.props.input:_;$&&jte($.props)&&(N=!0)}),N}),[E,I]=u.useState(()=>{let N=!1;return o&&u.Children.forEach(o,_=>{Sp(_,["Input","Select"])&&(Wv(_.props,!0)||Wv(_.props.inputProps,!0))&&(N=!0)}),N}),[R,O]=u.useState(!1);a&&R&&O(!1);const T=f!==void 0&&!a?f:R;let A;const z=u.useMemo(()=>({adornedStart:P,setAdornedStart:M,color:i,disabled:a,error:c,filled:E,focused:T,fullWidth:p,hiddenLabel:h,size:m,onBlur:()=>{O(!1)},onEmpty:()=>{I(!1)},onFilled:()=>{I(!0)},onFocus:()=>{O(!0)},registerEffect:A,required:v,variant:C}),[P,i,a,c,E,T,p,h,A,v,m,C]);return D.jsx(D1.Provider,{value:z,children:D.jsx(Boe,S({as:l,ownerState:b,className:be(x.root,s),ref:n},w,{children:o}))})}),q4=joe,zoe=IX({createStyledComponent:oe("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>He({props:e,name:"MuiStack"})}),Voe=zoe;function Hoe(e){return Ge("MuiFormControlLabel",e)}const Uoe=We("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),sp=Uoe,Woe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Goe=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,Hoe,t)},Koe=oe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${sp.label}`]:t.label},t.root,t[`labelPlacement${Pe(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${sp.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${sp.label}`]:{[`&.${sp.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),qoe=oe("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${sp.error}`]:{color:(e.vars||e).palette.error.main}})),Yoe=u.forwardRef(function(t,n){var r,o;const s=He({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=ae(s,Woe),C=Tl(),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=Goe(M),I=(o=v.typography)!=null?o:l.typography;let R=p;return R!=null&&R.type!==qn&&!f&&(R=D.jsx(qn,S({component:"span"},I,{className:be(E.label,I==null?void 0:I.className),children:R}))),D.jsxs(Koe,S({className:be(E.root,i),ownerState:M,ref:n},m,{children:[u.cloneElement(a,x),b?D.jsxs(Voe,{display:"block",children:[R,D.jsxs(qoe,{ownerState:M,"aria-hidden":!0,className:E.asterisk,children:[" ","*"]})]}):R]}))}),Y4=Yoe;function Qoe(e){return Ge("MuiFormHelperText",e)}const Xoe=We("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),vR=Xoe;var yR;const Zoe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Joe=e=>{const{classes:t,contained:n,size:r,disabled:o,error:s,filled:i,focused:l,required:a}=e,c={root:["root",o&&"disabled",s&&"error",r&&`size${Pe(r)}`,n&&"contained",l&&"focused",i&&"filled",a&&"required"]};return Te(c,Qoe,t)},ese=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,[`&.${vR.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${vR.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),tse=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:i="p"}=r,l=ae(r,Zoe),a=Tl(),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=Joe(f);return D.jsx(ese,S({as:i,ownerState:f,className:be(p.root,s),ref:n},l,{children:o===" "?yR||(yR=D.jsx("span",{className:"notranslate",children:""})):o}))}),Kd=tse;function nse(e){return Ge("MuiFormLabel",e)}const rse=We("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),_p=rse,ose=["children","className","color","component","disabled","error","filled","focused","required"],sse=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,nse,t)},ise=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}})),lse=oe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${_p.error}`]:{color:(e.vars||e).palette.error.main}})),ase=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiFormLabel"}),{children:o,className:s,component:i="label"}=r,l=ae(r,ose),a=Tl(),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=sse(f);return D.jsxs(ise,S({as:i,ownerState:f,className:be(p.root,s),ref:n},l,{children:[o,c.required&&D.jsxs(lse,{ownerState:f,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}))}),Q4=ase,cse=u.createContext(),bR=cse;function use(e){return Ge("MuiGrid",e)}const dse=[0,1,2,3,4,5,6,7,8,9,10],fse=["column-reverse","column","row-reverse","row"],pse=["nowrap","wrap-reverse","wrap"],jf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],uh=We("MuiGrid",["root","container","item","zeroMinWidth",...dse.map(e=>`spacing-xs-${e}`),...fse.map(e=>`direction-xs-${e}`),...pse.map(e=>`wrap-xs-${e}`),...jf.map(e=>`grid-xs-${e}`),...jf.map(e=>`grid-sm-${e}`),...jf.map(e=>`grid-md-${e}`),...jf.map(e=>`grid-lg-${e}`),...jf.map(e=>`grid-xl-${e}`)]),hse=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function od(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function mse({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=mc({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} + ${od(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 gse({theme:e,ownerState:t}){const n=mc({values:t.direction,breakpoints:e.breakpoints.values});return Ro({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${uh.item}`]={maxWidth:"none"}),o})}function X4({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 vse({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const s=mc({values:r,breakpoints:e.breakpoints.values});let i;typeof s=="object"&&(i=X4({breakpoints:e.breakpoints.values,values:s})),o=Ro({theme:e},s,(l,a)=>{var c;const f=e.spacing(l);return f!=="0px"?{marginTop:`-${od(f)}`,[`& > .${uh.item}`]:{paddingTop:od(f)}}:(c=i)!=null&&c.includes(a)?{}:{marginTop:0,[`& > .${uh.item}`]:{paddingTop:0}}})}return o}function yse({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const s=mc({values:r,breakpoints:e.breakpoints.values});let i;typeof s=="object"&&(i=X4({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% + ${od(f)})`,marginLeft:`-${od(f)}`,[`& > .${uh.item}`]:{paddingLeft:od(f)}}:(c=i)!=null&&c.includes(a)?{}:{width:"100%",marginLeft:0,[`& > .${uh.item}`]:{paddingLeft:0}}})}return o}function bse(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 wse=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=bse(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}),gse,vse,yse,mse);function Cse(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 xse=e=>{const{classes:t,container:n,direction:r,item:o,spacing:s,wrap:i,zeroMinWidth:l,breakpoints:a}=e;let c=[];n&&(c=Cse(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,use,t)},Sse=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiGrid"}),{breakpoints:o}=vn(),s=I1(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=ae(s,hse),b=y||v,x=a||v,P=u.useContext(bR),M=f?l||12:P,E={},I=S({},w);o.keys.forEach(T=>{w[T]!=null&&(E[T]=w[T],delete I[T])});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=xse(R);return D.jsx(bR.Provider,{value:M,children:D.jsx(wse,S({ownerState:R,className:be(O.root,i),as:c,ref:n},I))})}),oi=Sse,Pse=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ux(e){return`scale(${e}, ${bs(e,2)})`}const Ese={entering:{opacity:1,transform:Ux(1)},entered:{opacity:1,transform:"none"}},Hw=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Z4=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=Fh}=t,w=ae(t,Pse),b=u.useRef(),x=u.useRef(),P=vn(),M=u.useRef(null),E=kt(M,s.ref,n),I=$=>F=>{if($){const V=M.current;F===void 0?$(V):$(V,F)}},R=I(f),O=I(($,F)=>{i2($);const{duration:V,delay:L,easing:B}=Ta({style:v,timeout:m,easing:i},{mode:"enter"});let H;m==="auto"?(H=P.transitions.getAutoHeightDuration($.clientHeight),x.current=H):H=V,$.style.transition=[P.transitions.create("opacity",{duration:H,delay:L}),P.transitions.create("transform",{duration:Hw?H:H*.666,delay:L,easing:B})].join(","),a&&a($,F)}),T=I(c),A=I(y),z=I($=>{const{duration:F,delay:V,easing:L}=Ta({style:v,timeout:m,easing:i},{mode:"exit"});let B;m==="auto"?(B=P.transitions.getAutoHeightDuration($.clientHeight),x.current=B):B=F,$.style.transition=[P.transitions.create("opacity",{duration:B,delay:V}),P.transitions.create("transform",{duration:Hw?B:B*.666,delay:Hw?V:V||B*.333,easing:L})].join(","),$.style.opacity=0,$.style.transform=Ux(.75),p&&p($)}),N=I(h),_=$=>{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:T,onEntering:R,onExit:z,onExited:N,onExiting:A,addEndListener:_,timeout:m==="auto"?null:m},w,{children:($,F)=>u.cloneElement(s,S({style:S({opacity:0,transform:Ux(.75),visibility:$==="exited"&&!l?"hidden":void 0},Ese[$],v,s.props.style),ref:E},F))}))});Z4.muiSupportAuto=!0;const dh=Z4;function kse(e,t,n,r,o){const[s,i]=u.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Lt(()=>{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 J4=Lp["useSyncExternalStore"];function Ise(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 J4(a,l,i)}function H1(e,t={}){const n=k1(),r=typeof window!="undefined"&&typeof window.matchMedia!="undefined",{defaultMatches:o=!1,matchMedia:s=r?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:l=!1}=l4({name:"MuiUseMediaQuery",props:t,theme:n});let a=typeof e=="function"?e(n):e;return a=a.replace(/^@media( ?)/m,""),(J4!==void 0?Ise:kse)(a,o,s,i,l)}const Mse=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Tse=e=>{const{classes:t,disableUnderline:n}=e,o=Te({root:["root",!n&&"underline"],input:["input"]},Kte,t);return S({},t,o)},_se=oe(F1,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...A1(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"}})}),$se=oe(N1,{name:"MuiInput",slot:"Input",overridesResolver:L1})({}),eN=u.forwardRef(function(t,n){var r,o,s,i;const l=He({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=ae(l,Mse),b=Tse(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:_se,I=(s=(i=m.input)!=null?i:c.Input)!=null?s:$se;return D.jsx(Wd,S({slots:{root:E,input:I},slotProps:M,fullWidth:p,inputComponent:h,multiline:y,ref:n,type:C},w,{classes:b}))});eN.muiName="Input";const tN=eN;function Rse(e){return Ge("MuiInputAdornment",e)}const Ose=We("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),wR=Ose;var CR;const Dse=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Ase=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Pe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Lse=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,Rse,t)},Fse=oe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Ase})(({theme:e,ownerState:t})=>S({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${wR.positionStart}&:not(.${wR.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Nse=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiInputAdornment"}),{children:o,className:s,component:i="div",disablePointerEvents:l=!1,disableTypography:a=!1,position:c,variant:f}=r,p=ae(r,Dse),h=Tl()||{};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=Lse(v);return D.jsx(D1.Provider,{value:null,children:D.jsx(Fse,S({as:i,ownerState:v,className:be(m.root,s),ref:n},p,{children:typeof o=="string"&&!a?D.jsx(qn,{color:"text.secondary",children:o}):D.jsxs(u.Fragment,{children:[c==="start"?CR||(CR=D.jsx("span",{className:"notranslate",children:""})):null,o]})}))})}),xl=Nse;function Bse(e){return Ge("MuiInputLabel",e)}We("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const jse=["disableAnimation","margin","shrink","variant","className"],zse=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,Bse,t);return S({},t,c)},Vse=oe(Q4,{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)"}))),Hse=u.forwardRef(function(t,n){const r=He({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:s,className:i}=r,l=ae(r,jse),a=Tl();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=zse(p);return D.jsx(Vse,S({"data-shrink":c,ownerState:p,ref:n,className:be(h.root,i)},l,{classes:h}))}),nN=Hse;function Use(e){return Ge("MuiLinearProgress",e)}We("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Wse=["className","color","value","valueBuffer","variant"];let qd=e=>e,xR,SR,PR,ER,kR,IR;const Wx=4,Gse=Ui(xR||(xR=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
|
-
`)),Kse=Ui(SR||(SR=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
|
-
`)),qse=Ui(PR||(PR=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
|
-
`)),Yse=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,Use,t)},m2=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?$c(e.palette[t].main,.62):_c(e.palette[t].main,.5),Qse=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:m2(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)"})),Xse=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=m2(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(ER||(ER=qd`
|
|
235
|
-
animation: ${0} 3s infinite linear;
|
|
236
|
-
`),qse)),Zse=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 .${Wx}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${Wx}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Ma(kR||(kR=qd`
|
|
237
|
-
width: auto;
|
|
238
|
-
animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
239
|
-
`),Gse)),Jse=oe("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Pe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>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:m2(t,e.color),transition:`transform .${Wx}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Ma(IR||(IR=qd`
|
|
240
|
-
width: auto;
|
|
241
|
-
animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
242
|
-
`),Kse)),eie=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiLinearProgress"}),{className:o,color:s="primary",value:i,valueBuffer:l,variant:a="indeterminate"}=r,c=ae(r,Wse),f=S({},r,{color:s,variant:a}),p=Yse(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(Qse,S({className:be(p.root,o),ownerState:f,role:"progressbar"},y,{ref:n},c,{children:[a==="buffer"?D.jsx(Xse,{className:p.dashed,ownerState:f}):null,D.jsx(Zse,{className:p.bar1,ownerState:f,style:v.bar1}),a==="determinate"?null:D.jsx(Jse,{className:p.bar2,ownerState:f,style:v.bar2})]}))}),Gv=eie;function tie(e){return Ge("MuiLink",e)}const nie=We("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),rie=nie,rN={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},oie=e=>rN[e]||e,sie=({theme:e,ownerState:t})=>{const n=oie(t.color),r=Cd(e,`palette.${n}`,!1)||t.color,o=Cd(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:lt(r,.4)},iie=sie,lie=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],aie=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,tie,t)},cie=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:iie({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"},[`&.${rie.focusVisible}`]:{outline:"auto"}})),uie=u.forwardRef(function(t,n){const r=He({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=ae(r,lie),{isFocusVisibleRef:v,onBlur:m,onFocus:C,ref:w}=v1(),[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)},I=S({},r,{color:s,component:i,focusVisible:b,underline:f,variant:p}),R=aie(I);return D.jsx(cie,S({color:s,className:be(R.root,o),classes:c,component:i,onBlur:M,onFocus:E,ref:P,ownerState:I,variant:p,sx:[...Object.keys(rN).includes(s)?[]:[{color:s}],...Array.isArray(h)?h:[h]]},y))}),ts=uie,die=u.createContext({}),ai=die;function fie(e){return Ge("MuiList",e)}We("MuiList",["root","padding","dense","subheader"]);const pie=["children","className","component","dense","disablePadding","subheader"],hie=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Te({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},fie,t)},mie=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})),gie=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiList"}),{children:o,className:s,component:i="ul",dense:l=!1,disablePadding:a=!1,subheader:c}=r,f=ae(r,pie),p=u.useMemo(()=>({dense:l}),[l]),h=S({},r,{component:i,dense:l,disablePadding:a}),y=hie(h);return D.jsx(ai.Provider,{value:p,children:D.jsxs(mie,S({as:i,className:be(y.root,s),ref:n,ownerState:h},f,{children:[c,o]}))})}),Vh=gie;function vie(e){return Ge("MuiListItem",e)}const yie=We("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),ku=yie;function bie(e){return Ge("MuiListItemButton",e)}const wie=We("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Iu=wie,Cie=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],xie=(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]},Sie=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"]},bie,n);return S({},n,c)},Pie=oe(fi,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:xie})(({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"}},[`&.${Iu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Iu.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)}},[`&.${Iu.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)}},[`&.${Iu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Iu.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})),Eie=u.forwardRef(function(t,n){const r=He({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=ae(r,Cie),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);Lt(()=>{s&&w.current&&w.current.focus()},[s]);const b=S({},r,{alignItems:o,dense:C.dense,disableGutters:c,divider:f,selected:h}),x=Sie(b),P=kt(w,n);return D.jsx(ai.Provider,{value:C,children:D.jsx(Pie,S({ref:P,href:v.href||v.to,component:(v.href||v.to)&&i==="div"?"button":i,focusVisibleClassName:be(x.focusVisible,p),ownerState:b,className:be(x.root,y)},v,{classes:x,children:l}))})}),kie=Eie;function Iie(e){return Ge("MuiListItemSecondaryAction",e)}We("MuiListItemSecondaryAction",["root","disableGutters"]);const Mie=["className"],Tie=e=>{const{disableGutters:t,classes:n}=e;return Te({root:["root",t&&"disableGutters"]},Iie,n)},_ie=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})),oN=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,s=ae(r,Mie),i=u.useContext(ai),l=S({},r,{disableGutters:i.disableGutters}),a=Tie(l);return D.jsx(_ie,S({className:be(a.root,o),ownerState:l,ref:n},s))});oN.muiName="ListItemSecondaryAction";const $ie=oN,Rie=["className"],Oie=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Die=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},Aie=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"]},vie,r)},Lie=oe("div",{name:"MuiListItem",slot:"Root",overridesResolver:Die})(({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&&{[`& > .${Iu.root}`]:{paddingRight:48}},{[`&.${ku.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ku.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ku.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ku.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ku.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Fie=oe("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Nie=u.forwardRef(function(t,n){const r=He({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:I={}}=r,R=ae(r.ContainerProps,Rie),O=ae(r,Oie),T=u.useContext(ai),A=u.useMemo(()=>({dense:v||T.dense||!1,alignItems:o,disableGutters:C}),[o,T.dense,v,C]),z=u.useRef(null);Lt(()=>{s&&z.current&&z.current.focus()},[s]);const N=u.Children.toArray(l),_=N.length&&Sp(N[N.length-1],["ListItemSecondaryAction"]),$=S({},r,{alignItems:o,autoFocus:s,button:i,dense:A.dense,disabled:m,disableGutters:C,disablePadding:w,divider:b,hasSecondaryAction:_,selected:M}),F=Aie($),V=kt(z,n),L=I.root||f.Root||Lie,B=E.root||p.root||{},H=S({className:be(F.root,B.className,a),disabled:m},O);let K=c||"li";return i&&(H.component=c||"div",H.focusVisibleClassName=be(ku.focusVisible,x),K=fi),_?(K=!H.component&&!c?"div":K,h==="li"&&(K==="li"?K="div":H.component==="li"&&(H.component="div")),D.jsx(ai.Provider,{value:A,children:D.jsxs(Fie,S({as:h,className:be(F.container,y),ref:V,ownerState:$},R,{children:[D.jsx(L,S({},B,!Rc(L)&&{as:K,ownerState:S({},$,B.ownerState)},H,{children:N})),N.pop()]}))})):D.jsx(ai.Provider,{value:A,children:D.jsxs(L,S({},B,{as:K,ref:V},!Rc(L)&&{ownerState:S({},$,B.ownerState)},H,{children:[N,P&&D.jsx($ie,{children:P})]}))})}),g2=Nie;function Bie(e){return Ge("MuiListItemIcon",e)}const jie=We("MuiListItemIcon",["root","alignItemsFlexStart"]),MR=jie,zie=["className"],Vie=e=>{const{alignItems:t,classes:n}=e;return Te({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Bie,n)},Hie=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})),Uie=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiListItemIcon"}),{className:o}=r,s=ae(r,zie),i=u.useContext(ai),l=S({},r,{alignItems:i.alignItems}),a=Vie(l);return D.jsx(Hie,S({className:be(a.root,o),ownerState:l,ref:n},s))}),ml=Uie;function Wie(e){return Ge("MuiListItemText",e)}const Gie=We("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Kv=Gie,Kie=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],qie=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"]},Wie,t)},Yie=oe("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Kv.primary}`]:t.primary},{[`& .${Kv.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})),Qie=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiListItemText"}),{children:o,className:s,disableTypography:i=!1,inset:l=!1,primary:a,primaryTypographyProps:c,secondary:f,secondaryTypographyProps:p}=r,h=ae(r,Kie),{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=qie(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(Yie,S({className:be(w.root,s),ownerState:C,ref:n},h,{children:[v,m]}))}),Di=Qie,Xie=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Uw(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function TR(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function sN(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 zf(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")||!sN(l,s)||a)l=o(e,l,n);else return l.focus(),!0}return!1}const Zie=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=ae(t,Xie),y=u.useRef(null),v=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Lt(()=>{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=`${XF(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(),zf(P,E,c,a,Uw);else if(M==="ArrowUp")x.preventDefault(),zf(P,E,c,a,TR);else if(M==="Home")x.preventDefault(),zf(P,null,c,a,Uw);else if(M==="End")x.preventDefault(),zf(P,null,c,a,TR);else if(M.length===1){const I=v.current,R=M.toLowerCase(),O=performance.now();I.keys.length>0&&(O-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&R!==I.keys[0]&&(I.repeating=!1)),I.lastTime=O,I.keys.push(R);const T=E&&!I.repeating&&sN(E,I);I.previousKeyMatched&&(T||zf(P,E,!1,a,Uw,I))?x.preventDefault():I.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(Vh,S({role:"menu",ref:C,className:l,onKeyDown:m,tabIndex:o?0:-1},h,{children:b}))}),Yd=Zie;function Jie(e){return Ge("MuiPopover",e)}We("MuiPopover",["root","paper"]);const ele=["onEntering"],tle=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],nle=["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 $R(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function RR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ww(e){return typeof e=="function"?e():e}const rle=e=>{const{classes:t}=e;return Te({root:["root"],paper:["paper"]},Jie,t)},ole=oe(V1,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),iN=oe(zs,{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}),sle=u.forwardRef(function(t,n){var r,o,s;const i=He({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=dh,transitionDuration:I="auto",TransitionProps:{onEntering:R}={},disableScrollLock:O=!1}=i,T=ae(i.TransitionProps,ele),A=ae(i,tle),z=(r=P==null?void 0:P.paper)!=null?r:b,N=u.useRef(),_=kt(N,z.ref),$=S({},i,{anchorOrigin:c,anchorReference:p,elevation:m,marginThreshold:C,externalPaperSlotProps:z,transformOrigin:M,TransitionComponent:E,transitionDuration:I,TransitionProps:T}),F=rle($),V=u.useCallback(()=>{if(p==="anchorPosition")return f;const ce=Ww(a),ke=(ce&&ce.nodeType===1?ce:pn(N.current).body).getBoundingClientRect();return{top:ke.top+_R(ke,c.vertical),left:ke.left+$R(ke,c.horizontal)}},[a,c.horizontal,c.vertical,f,p]),L=u.useCallback(ce=>({vertical:_R(ce,M.vertical),horizontal:$R(ce,M.horizontal)}),[M.horizontal,M.vertical]),B=u.useCallback(ce=>{const xe={width:ce.offsetWidth,height:ce.offsetHeight},ke=L(xe);if(p==="none")return{top:null,left:null,transformOrigin:RR(ke)};const fe=V();let Ie=fe.top-ke.vertical,ve=fe.left-ke.horizontal;const Re=Ie+xe.height,ie=ve+xe.width,ue=Jo(Ww(a)),we=ue.innerHeight-C,Se=ue.innerWidth-C;if(C!==null&&Ie<C){const Me=Ie-C;Ie-=Me,ke.vertical+=Me}else if(C!==null&&Re>we){const Me=Re-we;Ie-=Me,ke.vertical+=Me}if(C!==null&&ve<C){const Me=ve-C;ve-=Me,ke.horizontal+=Me}else if(ie>Se){const Me=ie-Se;ve-=Me,ke.horizontal+=Me}return{top:`${Math.round(Ie)}px`,left:`${Math.round(ve)}px`,transformOrigin:RR(ke)}},[a,p,V,L,C]),[H,K]=u.useState(w),Y=u.useCallback(()=>{const ce=N.current;if(!ce)return;const xe=B(ce);xe.top!==null&&(ce.style.top=xe.top),xe.left!==null&&(ce.style.left=xe.left),ce.style.transformOrigin=xe.transformOrigin,K(!0)},[B]);u.useEffect(()=>(O&&window.addEventListener("scroll",Y),()=>window.removeEventListener("scroll",Y)),[a,O,Y]);const J=(ce,xe)=>{R&&R(ce,xe),Y()},Q=()=>{K(!1)};u.useEffect(()=>{w&&Y()}),u.useImperativeHandle(l,()=>w?{updatePosition:()=>{Y()}}:null,[w,Y]),u.useEffect(()=>{if(!w)return;const ce=Fa(()=>{Y()}),xe=Jo(a);return xe.addEventListener("resize",ce),()=>{ce.clear(),xe.removeEventListener("resize",ce)}},[a,w,Y]);let X=I;I==="auto"&&!E.muiSupportAuto&&(X=void 0);const te=v||(a?pn(Ww(a)).body:void 0),se=(o=x==null?void 0:x.root)!=null?o:ole,Z=(s=x==null?void 0:x.paper)!=null?s:iN,pe=Kt({elementType:Z,externalSlotProps:S({},z,{style:H?z.style:S({},z.style,{opacity:0})}),additionalProps:{elevation:m,ref:_},ownerState:$,className:be(F.paper,z==null?void 0:z.className)}),ne=Kt({elementType:se,externalSlotProps:(P==null?void 0:P.root)||{},externalForwardedProps:A,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:te,open:w},ownerState:$,className:be(F.root,y)}),{slotProps:re}=ne,me=ae(ne,nle);return D.jsx(se,S({},me,!Rc(se)&&{slotProps:re,disableScrollLock:O},{children:D.jsx(E,S({appear:!0,in:w,onEntering:J,onExited:Q,timeout:X},T,{children:D.jsx(Z,S({},pe,{children:h}))}))}))}),ile=sle;function lle(e){return Ge("MuiMenu",e)}We("MuiMenu",["root","paper","list"]);const ale=["onEntering"],cle=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],ule={vertical:"top",horizontal:"right"},dle={vertical:"top",horizontal:"left"},fle=e=>{const{classes:t}=e;return Te({root:["root"],paper:["paper"],list:["list"]},lle,t)},ple=oe(ile,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hle=oe(iN,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),mle=oe(Yd,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),gle=u.forwardRef(function(t,n){var r,o;const s=He({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=ae(s.TransitionProps,ale),M=ae(s,cle),E=vn(),I=E.direction==="rtl",R=S({},s,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:f,onEntering:C,PaperProps:y,transitionDuration:m,TransitionProps:P,variant:w}),O=fle(R),T=i&&!c&&h,A=u.useRef(null),z=(B,H)=>{A.current&&A.current.adjustStyleForScrollbar(B,E),C&&C(B,H)},N=B=>{B.key==="Tab"&&(B.preventDefault(),p&&p(B,"tabKeyDown"))};let _=-1;u.Children.map(l,(B,H)=>{u.isValidElement(B)&&(B.props.disabled||(w==="selectedMenu"&&B.props.selected||_===-1)&&(_=H))});const $=(r=b.paper)!=null?r:hle,F=(o=x.paper)!=null?o:y,V=Kt({elementType:b.root,externalSlotProps:x.root,ownerState:R,className:[O.root,a]}),L=Kt({elementType:$,externalSlotProps:F,ownerState:R,className:O.paper});return D.jsx(ple,S({onClose:p,anchorOrigin:{vertical:"bottom",horizontal:I?"right":"left"},transformOrigin:I?ule:dle,slots:{paper:$,root:b.root},slotProps:{root:V,paper:L},open:h,ref:n,transitionDuration:m,TransitionProps:S({onEntering:z},P),ownerState:R},M,{classes:v,children:D.jsx(mle,S({onKeyDown:N,actions:A,autoFocus:i&&(_===-1||c),autoFocusItem:T,variant:w},f,{className:be(O.list,f.className),children:l}))}))}),lN=gle;function vle(e){return Ge("MuiMenuItem",e)}const yle=We("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Vf=yle,ble=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],wle=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Cle=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"]},vle,i);return S({},i,a)},xle=oe(fi,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:wle})(({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"}},[`&.${Vf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Vf.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)}},[`&.${Vf.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)}},[`&.${Vf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Vf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${mR.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${mR.inset}`]:{marginLeft:52},[`& .${Kv.root}`]:{marginTop:0,marginBottom:0},[`& .${Kv.inset}`]:{paddingLeft:36},[`& .${MR.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&S({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${MR.root} svg`]:{fontSize:"1.25rem"}}))),Sle=u.forwardRef(function(t,n){const r=He({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=ae(r,ble),v=u.useContext(ai),m=u.useMemo(()=>({dense:i||v.dense||!1,disableGutters:a}),[v.dense,i,a]),C=u.useRef(null);Lt(()=>{o&&C.current&&C.current.focus()},[o]);const w=S({},r,{dense:m.dense,divider:l,disableGutters:a}),b=Cle(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(xle,S({ref:x,role:f,tabIndex:P,component:s,focusVisibleClassName:be(b.focusVisible,c),className:be(b.root,h)},y,{ownerState:w,classes:b}))})}),Pr=Sle;function Ple(e){return Ge("MuiNativeSelect",e)}const Ele=We("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),v2=Ele,kle=["className","disabled","error","IconComponent","inputRef","variant"],Ile=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:i}=e,l={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Pe(n)}`,s&&"iconOpen",r&&"disabled"]};return Te(l,Ple,t)},aN=({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"},[`&.${v2.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}}),Mle=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,{[`&.${v2.multiple}`]:t.multiple}]}})(aN),cN=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${v2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Tle=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]}})(cN),_le=u.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:i,inputRef:l,variant:a="standard"}=t,c=ae(t,kle),f=S({},t,{disabled:o,variant:a,error:s}),p=Ile(f);return D.jsxs(u.Fragment,{children:[D.jsx(Mle,S({ownerState:f,className:be(p.select,r),disabled:o,ref:l||n},c)),t.multiple?null:D.jsx(Tle,{as:i,ownerState:f,className:p.icon})]})}),$le=_le;var OR;const Rle=["children","classes","className","label","notched"],Ole=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%"}),Dle=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 Ale(e){const{className:t,label:n,notched:r}=e,o=ae(e,Rle),s=n!=null&&n!=="",i=S({},e,{notched:r,withLabel:s});return D.jsx(Ole,S({"aria-hidden":!0,className:t,ownerState:i},o,{children:D.jsx(Dle,{ownerState:i,children:s?D.jsx("span",{children:n}):OR||(OR=D.jsx("span",{className:"notranslate",children:""}))})}))}const Lle=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Fle=e=>{const{classes:t}=e,r=Te({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Yte,t);return S({},t,r)},Nle=oe(F1,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:A1})(({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"}))}),Ble=oe(Ale,{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}}),jle=oe(N1,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:L1})(({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})),uN=u.forwardRef(function(t,n){var r,o,s,i,l;const a=He({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=ae(a,Lle),b=Fle(a),x=Tl(),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:Nle,I=(s=(i=m.input)!=null?i:c.Input)!=null?s:jle;return D.jsx(Wd,S({slots:{root:E,input:I},renderSuffix:R=>D.jsx(Ble,{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})}))});uN.muiName="Input";const dN=uN,zle=bt(D.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Vle=bt(D.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function Hle(e){return Ge("MuiSelect",e)}const Ule=We("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Hf=Ule;var DR;const Wle=["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"],Gle=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}]}})(aN,{[`&.${Hf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Kle=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]}})(cN),qle=oe("input",{shouldForwardProp:e=>tZ(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 AR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Yle(e){return e==null||typeof e=="string"&&!e.trim()}const Qle=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,Hle,t)},Xle=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:I,onFocus:R,onOpen:O,open:T,readOnly:A,renderValue:z,SelectDisplayProps:N={},tabIndex:_,value:$,variant:F="standard"}=t,V=ae(t,Wle),[L,B]=Qr({controlled:$,default:p,name:"Select"}),[H,K]=Qr({controlled:T,default:f,name:"Select"}),Y=u.useRef(null),J=u.useRef(null),[Q,X]=u.useState(null),{current:te}=u.useRef(T!=null),[se,Z]=u.useState(),pe=kt(n,C),ne=u.useCallback(Ve=>{J.current=Ve,Ve&&X(Ve)},[]),re=Q==null?void 0:Q.parentNode;u.useImperativeHandle(pe,()=>({focus:()=>{J.current.focus()},node:Y.current,value:L}),[L]),u.useEffect(()=>{f&&H&&Q&&!te&&(Z(l?null:re.clientWidth),J.current.focus())},[Q,l]),u.useEffect(()=>{i&&J.current.focus()},[i]),u.useEffect(()=>{if(!w)return;const Ve=pn(J.current).getElementById(w);if(Ve){const ht=()=>{getSelection().isCollapsed&&J.current.focus()};return Ve.addEventListener("click",ht),()=>{Ve.removeEventListener("click",ht)}}},[w]);const me=(Ve,ht)=>{Ve?O&&O(ht):I&&I(ht),te||(Z(l?null:re.clientWidth),K(Ve))},ce=Ve=>{Ve.button===0&&(Ve.preventDefault(),J.current.focus(),me(!0,Ve))},xe=Ve=>{me(!1,Ve)},ke=u.Children.toArray(a),fe=Ve=>{const ht=ke.find(Be=>Be.props.value===Ve.target.value);ht!==void 0&&(B(ht.props.value),E&&E(Ve,ht))},Ie=Ve=>ht=>{let Be;if(ht.currentTarget.hasAttribute("tabindex")){if(x){Be=Array.isArray(L)?L.slice():[];const Xe=L.indexOf(Ve.props.value);Xe===-1?Be.push(Ve.props.value):Be.splice(Xe,1)}else Be=Ve.props.value;if(Ve.props.onClick&&Ve.props.onClick(ht),L!==Be&&(B(Be),E)){const Xe=ht.nativeEvent||ht,vt=new Xe.constructor(Xe.type,Xe);Object.defineProperty(vt,"target",{writable:!0,value:{value:Be,name:P}}),E(vt,Ve)}x||me(!1,ht)}},ve=Ve=>{A||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ve.key)!==-1&&(Ve.preventDefault(),me(!0,Ve))},Re=Q!==null&&H,ie=Ve=>{!Re&&M&&(Object.defineProperty(Ve,"target",{writable:!0,value:{value:L,name:P}}),M(Ve))};delete V["aria-invalid"];let ue,we;const Se=[];let Me=!1;(Wv({value:L})||y)&&(z?ue=z(L):Me=!0);const Oe=ke.map(Ve=>{if(!u.isValidElement(Ve))return null;let ht;if(x){if(!Array.isArray(L))throw new Error(Ia(2));ht=L.some(Be=>AR(Be,Ve.props.value)),ht&&Me&&Se.push(Ve.props.children)}else ht=AR(L,Ve.props.value),ht&&Me&&(we=Ve.props.children);return u.cloneElement(Ve,{"aria-selected":ht?"true":"false",onClick:Ie(Ve),onKeyUp:Be=>{Be.key===" "&&Be.preventDefault(),Ve.props.onKeyUp&&Ve.props.onKeyUp(Be)},role:"option",selected:ht,value:void 0,"data-value":Ve.props.value})});Me&&(x?Se.length===0?ue=null:ue=Se.reduce((Ve,ht,Be)=>(Ve.push(ht),Be<Se.length-1&&Ve.push(", "),Ve),[]):ue=we);let Ne=se;!l&&te&&Q&&(Ne=re.clientWidth);let Ke;typeof _!="undefined"?Ke=_:Ke=h?null:0;const Ye=N.id||(P?`mui-component-select-${P}`:void 0),Fe=S({},t,{variant:F,value:L,open:Re,error:v}),mt=Qle(Fe),Zt=S({},b.PaperProps,(r=b.slotProps)==null?void 0:r.paper),Pt=Yt();return D.jsxs(u.Fragment,{children:[D.jsx(Gle,S({ref:ne,tabIndex:Ke,role:"combobox","aria-controls":Pt,"aria-disabled":h?"true":void 0,"aria-expanded":Re?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[w,Ye].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:ve,onMouseDown:h||A?null:ce,onBlur:ie,onFocus:R},N,{ownerState:Fe,className:be(N.className,mt.select,c),id:Ye,children:Yle(ue)?DR||(DR=D.jsx("span",{className:"notranslate",children:""})):ue})),D.jsx(qle,S({"aria-invalid":v,value:Array.isArray(L)?L.join(","):L,name:P,ref:Y,"aria-hidden":!0,onChange:fe,tabIndex:-1,disabled:h,className:mt.nativeInput,autoFocus:i,ownerState:Fe},V)),D.jsx(Kle,{as:m,className:mt.icon,ownerState:Fe}),D.jsx(lN,S({id:`menu-${P||""}`,anchorEl:re,open:Re,onClose:xe,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:Ne},Zt!=null?Zt.style:null)})}),children:Oe}))]})}),Zle=Xle,Jle=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],eae=["root"],tae=e=>{const{classes:t}=e;return t},y2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Jr(e)&&e!=="variant",slot:"Root"},nae=oe(tN,y2)(""),rae=oe(dN,y2)(""),oae=oe(K4,y2)(""),fN=u.forwardRef(function(t,n){const r=He({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:i={},className:l,defaultOpen:a=!1,displayEmpty:c=!1,IconComponent:f=O4,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:I,variant:R="outlined"}=r,O=ae(r,Jle),T=b?$le:Zle,A=Tl(),z=Vc({props:r,muiFormControl:A,states:["variant","error"]}),N=z.variant||R,_=S({},r,{variant:N,classes:i}),$=tae(_),F=ae($,eae),V=h||{standard:D.jsx(nae,{ownerState:_}),outlined:D.jsx(rae,{label:v,ownerState:_}),filled:D.jsx(oae,{ownerState:_})}[N],L=kt(n,V.ref);return D.jsx(u.Fragment,{children:u.cloneElement(V,S({inputComponent:T,inputProps:S({children:s,error:z.error,IconComponent:f,variant:N,type:void 0,multiple:w},b?{id:p}:{autoWidth:o,defaultOpen:a,displayEmpty:c,labelId:m,MenuProps:C,onClose:x,onOpen:P,open:M,renderValue:E,SelectDisplayProps:S({id:p},I)},y,{classes:y?Yr(F,y.classes):F},h?h.props.inputProps:{})},w&&b&&N==="outlined"?{notched:!0}:{},{ref:L,className:be(V.props.className,l,$.root)},!h&&{variant:N},O))})});fN.muiName="Select";const b2=fN;function sae(e){return Ge("MuiSkeleton",e)}We("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const iae=["animation","className","component","height","style","variant","width"];let qv=e=>e,LR,FR,NR,BR;const lae=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"]},sae,t)},aae=Ui(LR||(LR=qv`
|
|
243
|
-
0% {
|
|
244
|
-
opacity: 1;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
50% {
|
|
248
|
-
opacity: 0.4;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
100% {
|
|
252
|
-
opacity: 1;
|
|
253
|
-
}
|
|
254
|
-
`)),cae=Ui(FR||(FR=qv`
|
|
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
|
-
`)),uae=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=ZX(e.shape.borderRadius)||"px",r=JX(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(NR||(NR=qv`
|
|
268
|
-
animation: ${0} 2s ease-in-out 0.5s infinite;
|
|
269
|
-
`),aae),({ownerState:e,theme:t})=>e.animation==="wave"&&Ma(BR||(BR=qv`
|
|
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
|
-
`),cae,(t.vars||t).palette.action.hover)),dae=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:s,component:i="span",height:l,style:a,variant:c="text",width:f}=r,p=ae(r,iae),h=S({},r,{animation:o,component:i,variant:c,hasChildren:!!p.children}),y=lae(h);return D.jsx(uae,S({as:i,ref:n,className:be(y.root,s),ownerState:h},p,{style:S({width:f,height:l},a)}))}),fae=dae;function pae(e){return Ge("MuiTooltip",e)}const hae=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),aa=hae,mae=["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 gae(e){return Math.round(e*1e5)/1e5}const vae=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,pae,t)},yae=oe(Ba,{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"}})})),bae=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:`${gae(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"})})),wae=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 yg=!1,Gw=null,Uf={x:0,y:0};function bg(e,t){return n=>{t&&t(n),e(n)}}const Cae=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=He({props:t,name:"MuiTooltip"}),{arrow:I=!1,children:R,components:O={},componentsProps:T={},describeChild:A=!1,disableFocusListener:z=!1,disableHoverListener:N=!1,disableInteractive:_=!1,disableTouchListener:$=!1,enterDelay:F=100,enterNextDelay:V=0,enterTouchDelay:L=700,followCursor:B=!1,id:H,leaveDelay:K=0,leaveTouchDelay:Y=1500,onClose:J,onOpen:Q,open:X,placement:te="bottom",PopperComponent:se,PopperProps:Z={},slotProps:pe={},slots:ne={},title:re,TransitionComponent:me=dh,TransitionProps:ce}=E,xe=ae(E,mae),ke=u.isValidElement(R)?R:D.jsx("span",{children:R}),fe=vn(),Ie=fe.direction==="rtl",[ve,Re]=u.useState(),[ie,ue]=u.useState(null),we=u.useRef(!1),Se=_||B,Me=u.useRef(),Oe=u.useRef(),Ne=u.useRef(),Ke=u.useRef(),[Ye,Fe]=Qr({controlled:X,default:!1,name:"Tooltip",state:"open"});let mt=Ye;const Zt=Yt(H),Pt=u.useRef(),Ve=u.useCallback(()=>{Pt.current!==void 0&&(document.body.style.WebkitUserSelect=Pt.current,Pt.current=void 0),clearTimeout(Ke.current)},[]);u.useEffect(()=>()=>{clearTimeout(Me.current),clearTimeout(Oe.current),clearTimeout(Ne.current),Ve()},[Ve]);const ht=St=>{clearTimeout(Gw),yg=!0,Fe(!0),Q&&!mt&&Q(St)},Be=qe(St=>{clearTimeout(Gw),Gw=setTimeout(()=>{yg=!1},800+K),Fe(!1),J&&mt&&J(St),clearTimeout(Me.current),Me.current=setTimeout(()=>{we.current=!1},fe.transitions.duration.shortest)}),Xe=St=>{we.current&&St.type!=="touchstart"||(ve&&ve.removeAttribute("title"),clearTimeout(Oe.current),clearTimeout(Ne.current),F||yg&&V?Oe.current=setTimeout(()=>{ht(St)},yg?V:F):ht(St))},vt=St=>{clearTimeout(Oe.current),clearTimeout(Ne.current),Ne.current=setTimeout(()=>{Be(St)},K)},{isFocusVisibleRef:wt,onBlur:_t,onFocus:qt,ref:Qt}=v1(),[,Pn]=u.useState(!1),bn=St=>{_t(St),wt.current===!1&&(Pn(!1),vt(St))},gt=St=>{ve||Re(St.currentTarget),qt(St),wt.current===!0&&(Pn(!0),Xe(St))},Rt=St=>{we.current=!0;const Zn=ke.props;Zn.onTouchStart&&Zn.onTouchStart(St)},vr=Xe,lr=vt,Rl=St=>{Rt(St),clearTimeout(Ne.current),clearTimeout(Me.current),Ve(),Pt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ke.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Pt.current,Xe(St)},L)},cs=St=>{ke.props.onTouchEnd&&ke.props.onTouchEnd(St),Ve(),clearTimeout(Ne.current),Ne.current=setTimeout(()=>{Be(St)},Y)};u.useEffect(()=>{if(!mt)return;function St(Zn){(Zn.key==="Escape"||Zn.key==="Esc")&&Be(Zn)}return document.addEventListener("keydown",St),()=>{document.removeEventListener("keydown",St)}},[Be,mt]);const _n=kt(ke.ref,Qt,Re,n);!re&&re!==0&&(mt=!1);const an=u.useRef(),yr=St=>{const Zn=ke.props;Zn.onMouseMove&&Zn.onMouseMove(St),Uf={x:St.clientX,y:St.clientY},an.current&&an.current.update()},ho={},us=typeof re=="string";A?(ho.title=!mt&&us&&!N?re:null,ho["aria-describedby"]=mt?Zt:null):(ho["aria-label"]=us?re:null,ho["aria-labelledby"]=mt&&!us?Zt:null);const ar=S({},ho,xe,ke.props,{className:be(xe.className,ke.props.className),onTouchStart:Rt,ref:_n},B?{onMouseMove:yr}:{}),Oo={};$||(ar.onTouchStart=Rl,ar.onTouchEnd=cs),N||(ar.onMouseOver=bg(vr,ar.onMouseOver),ar.onMouseLeave=bg(lr,ar.onMouseLeave),Se||(Oo.onMouseOver=vr,Oo.onMouseLeave=lr)),z||(ar.onFocus=bg(gt,ar.onFocus),ar.onBlur=bg(bn,ar.onBlur),Se||(Oo.onFocus=gt,Oo.onBlur=bn));const gi=u.useMemo(()=>{var St;let Zn=[{name:"arrow",enabled:!!ie,options:{element:ie,padding:4}}];return(St=Z.popperOptions)!=null&&St.modifiers&&(Zn=Zn.concat(Z.popperOptions.modifiers)),S({},Z.popperOptions,{modifiers:Zn})},[ie,Z]),Mr=S({},E,{isRtl:Ie,arrow:I,disableInteractive:Se,placement:te,PopperComponentProp:se,touch:we.current}),Nr=vae(Mr),Hs=(r=(o=ne.popper)!=null?o:O.Popper)!=null?r:yae,_e=(s=(i=(l=ne.transition)!=null?l:O.Transition)!=null?i:me)!=null?s:dh,Ce=(a=(c=ne.tooltip)!=null?c:O.Tooltip)!=null?a:bae,Qe=(f=(p=ne.arrow)!=null?p:O.Arrow)!=null?f:wae,ft=op(Hs,S({},Z,(h=pe.popper)!=null?h:T.popper,{className:be(Nr.popper,Z==null?void 0:Z.className,(y=(v=pe.popper)!=null?v:T.popper)==null?void 0:y.className)}),Mr),Wt=op(_e,S({},ce,(m=pe.transition)!=null?m:T.transition),Mr),$n=op(Ce,S({},(C=pe.tooltip)!=null?C:T.tooltip,{className:be(Nr.tooltip,(w=(b=pe.tooltip)!=null?b:T.tooltip)==null?void 0:w.className)}),Mr),Nn=op(Qe,S({},(x=pe.arrow)!=null?x:T.arrow,{className:be(Nr.arrow,(P=(M=pe.arrow)!=null?M:T.arrow)==null?void 0:P.className)}),Mr);return D.jsxs(u.Fragment,{children:[u.cloneElement(ke,ar),D.jsx(Hs,S({as:se!=null?se:Ba,placement:te,anchorEl:B?{getBoundingClientRect:()=>({top:Uf.y,left:Uf.x,right:Uf.x,bottom:Uf.y,width:0,height:0})}:ve,popperRef:an,open:ve?mt:!1,id:Zt,transition:!0},Oo,ft,{popperOptions:gi,children:({TransitionProps:St})=>D.jsx(_e,S({timeout:fe.transitions.duration.shorter},St,Wt,{children:D.jsxs(Ce,S({},$n,{children:[re,I?D.jsx(Qe,S({},Nn,{ref:ue})):null]}))}))}))]})}),_l=Cae;function xae(e){return Ge("MuiSwitch",e)}const Sae=We("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Ur=Sae,Pae=["className","color","edge","size","sx"],Eae=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,xae,t);return S({},t,a)},kae=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)"}}})),Iae=oe(N4,{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):_c(e.palette[t.color].main,.55)}`}},[`&.${Ur.checked} + .${Ur.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),Mae=oe("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),Tae=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%"})),_ae=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiSwitch"}),{className:o,color:s="primary",edge:i=!1,size:l="medium",sx:a}=r,c=ae(r,Pae),f=S({},r,{color:s,edge:i,size:l}),p=Eae(f),h=D.jsx(Tae,{className:p.thumb,ownerState:f});return D.jsxs(kae,{className:be(p.root,o),sx:a,ownerState:f,children:[D.jsx(Iae,S({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:f},c,{classes:S({},p,{root:p.switchBase})})),D.jsx(Mae,{className:p.track,ownerState:f})]})}),pN=_ae;function $ae(e){return Ge("MuiTab",e)}const Rae=We("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Ja=Rae,Oae=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Dae=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,$ae,t)},Aae=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,[`& > .${Ja.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,[`&.${Ja.selected}`]:{opacity:1},[`&.${Ja.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Ja.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Ja.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Ja.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Ja.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)})),Lae=u.forwardRef(function(t,n){const r=He({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=ae(r,Oae),M=S({},r,{disabled:s,disableFocusRipple:i,selected:m,icon:!!a,iconPosition:c,label:!!p,fullWidth:l,textColor:w,wrapped:x}),E=Dae(M),I=a&&p&&u.isValidElement(a)?u.cloneElement(a,{className:be(E.iconWrapper,a.props.className)}):a,R=T=>{!m&&h&&h(T,b),y&&y(T)},O=T=>{C&&!m&&h&&h(T,b),v&&v(T)};return D.jsxs(Aae,S({focusRipple:!i,className:be(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:[I,p]}):D.jsxs(u.Fragment,{children:[p,I]}),f]}))}),Yv=Lae,Fae=u.createContext(),Nae=Fae,Bae=u.createContext(),jae=Bae;function zae(e){return Ge("MuiTableCell",e)}const Vae=We("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Hae=Vae,Uae=["align","className","component","padding","scope","size","sortDirection","variant"],Wae=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,zae,t)},Gae=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):_c(lt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Hae.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})),Kae=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiTableCell"}),{align:o="inherit",className:s,component:i,padding:l,scope:a,size:c,sortDirection:f,variant:p}=r,h=ae(r,Uae),y=u.useContext(Nae),v=u.useContext(jae),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=Wae(x);let M=null;return f&&(M=f==="asc"?"ascending":"descending"),D.jsx(Gae,S({as:C,ref:n,className:be(P.root,s),"aria-sort":M,scope:w,ownerState:x},h))}),Gx=Kae;function qae(e){return Ge("MuiToolbar",e)}We("MuiToolbar",["root","gutters","regular","dense"]);const Yae=["className","component","disableGutters","variant"],Qae=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Te({root:["root",!n&&"gutters",r]},qae,t)},Xae=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),Zae=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiToolbar"}),{className:o,component:s="div",disableGutters:i=!1,variant:l="regular"}=r,a=ae(r,Yae),c=S({},r,{component:s,disableGutters:i,variant:l}),f=Qae(c);return D.jsx(Xae,S({as:s,className:be(f.root,o),ref:n,ownerState:c},a))}),hN=Zae,mN=bt(D.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),gN=bt(D.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Jae=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],ece=u.forwardRef(function(t,n){var r,o,s,i,l,a,c,f;const{backIconButtonProps:p,count:h,disabled:y=!1,getItemAriaLabel:v,nextIconButtonProps:m,onPageChange:C,page:w,rowsPerPage:b,showFirstButton:x,showLastButton:P,slots:M={},slotProps:E={}}=t,I=ae(t,Jae),R=vn(),O=pe=>{C(pe,0)},T=pe=>{C(pe,w-1)},A=pe=>{C(pe,w+1)},z=pe=>{C(pe,Math.max(0,Math.ceil(h/b)-1))},N=(r=M.firstButton)!=null?r:xr,_=(o=M.lastButton)!=null?o:xr,$=(s=M.nextButton)!=null?s:xr,F=(i=M.previousButton)!=null?i:xr,V=(l=M.firstButtonIcon)!=null?l:zle,L=(a=M.lastButtonIcon)!=null?a:Vle,B=(c=M.nextButtonIcon)!=null?c:gN,H=(f=M.previousButtonIcon)!=null?f:mN,K=R.direction==="rtl"?_:N,Y=R.direction==="rtl"?$:F,J=R.direction==="rtl"?F:$,Q=R.direction==="rtl"?N:_,X=R.direction==="rtl"?E.lastButton:E.firstButton,te=R.direction==="rtl"?E.nextButton:E.previousButton,se=R.direction==="rtl"?E.previousButton:E.nextButton,Z=R.direction==="rtl"?E.firstButton:E.lastButton;return D.jsxs("div",S({ref:n},I,{children:[x&&D.jsx(K,S({onClick:O,disabled:y||w===0,"aria-label":v("first",w),title:v("first",w)},X,{children:R.direction==="rtl"?D.jsx(L,S({},E.lastButtonIcon)):D.jsx(V,S({},E.firstButtonIcon))})),D.jsx(Y,S({onClick:T,disabled:y||w===0,color:"inherit","aria-label":v("previous",w),title:v("previous",w)},te!=null?te:p,{children:R.direction==="rtl"?D.jsx(B,S({},E.nextButtonIcon)):D.jsx(H,S({},E.previousButtonIcon))})),D.jsx(J,S({onClick:A,disabled:y||(h!==-1?w>=Math.ceil(h/b)-1:!1),color:"inherit","aria-label":v("next",w),title:v("next",w)},se!=null?se:m,{children:R.direction==="rtl"?D.jsx(H,S({},E.previousButtonIcon)):D.jsx(B,S({},E.nextButtonIcon))})),P&&D.jsx(Q,S({onClick:z,disabled:y||w>=Math.ceil(h/b)-1,"aria-label":v("last",w),title:v("last",w)},Z,{children:R.direction==="rtl"?D.jsx(V,S({},E.firstButtonIcon)):D.jsx(L,S({},E.lastButtonIcon))}))]}))}),tce=ece;function nce(e){return Ge("MuiTablePagination",e)}const rce=We("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),vc=rce;var jR;const oce=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],sce=oe(Gx,{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}})),ice=oe(hN,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>S({[`& .${vc.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},[`& .${vc.actions}`]:{flexShrink:0,marginLeft:20}})),lce=oe("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),ace=oe("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>S({},e.typography.body2,{flexShrink:0})),cce=oe(b2,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>S({[`& .${vc.selectIcon}`]:t.selectIcon,[`& .${vc.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${vc.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),uce=oe(Pr,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),dce=oe("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>S({},e.typography.body2,{flexShrink:0}));function fce({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function pce(e){return`Go to ${e} page`}const hce=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"]},nce,t)},mce=u.forwardRef(function(t,n){var r;const o=He({props:t,name:"MuiTablePagination"}),{ActionsComponent:s=tce,backIconButtonProps:i,className:l,colSpan:a,component:c=Gx,count:f,disabled:p=!1,getItemAriaLabel:h=pce,labelDisplayedRows:y=fce,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:I=!1,slotProps:R={},slots:O={}}=o,T=ae(o,oce),A=o,z=hce(A),N=(r=R==null?void 0:R.select)!=null?r:M,_=N.native?"option":uce;let $;(c===Gx||c==="td")&&($=a||1e3);const F=Yt(N.id),V=Yt(N.labelId),L=()=>f===-1?(b+1)*x:x===-1?f:Math.min(f,(b+1)*x);return D.jsx(sce,S({colSpan:$,ref:n,as:c,ownerState:A,className:be(z.root,l)},T,{children:D.jsxs(ice,{className:z.toolbar,children:[D.jsx(lce,{className:z.spacer}),P.length>1&&D.jsx(ace,{className:z.selectLabel,id:V,children:v}),P.length>1&&D.jsx(cce,S({variant:"standard"},!N.variant&&{input:jR||(jR=D.jsx(Wd,{}))},{value:x,onChange:w,id:F,labelId:V},N,{classes:S({},N.classes,{root:be(z.input,z.selectRoot,(N.classes||{}).root),select:be(z.select,(N.classes||{}).select),icon:be(z.selectIcon,(N.classes||{}).icon)}),disabled:p,children:P.map(B=>u.createElement(_,S({},!Rc(_)&&{ownerState:A},{className:z.menuItem,key:B.label?B.label:B,value:B.value?B.value:B}),B.label?B.label:B))})),D.jsx(dce,{className:z.displayedRows,children:y({from:f===0?0:b*x+1,to:L(),count:f===-1?-1:f,page:b})}),D.jsx(s,{className:z.actions,backIconButtonProps:i,count:f,nextIconButtonProps:m,onPageChange:C,page:b,rowsPerPage:x,showFirstButton:E,showLastButton:I,slotProps:R.actions,slots:O.actions,getItemAriaLabel:h,disabled:p})]})}))}),gce=mce;function vce(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function yce(e,t,n,r={},o=()=>{}){const{ease:s=vce,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 bce=["onChange"],wce={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Cce(e){const{onChange:t}=e,n=ae(e,bce),r=u.useRef(),o=u.useRef(null),s=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Lt(()=>{const i=Fa(()=>{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:wce,ref:o},n))}function xce(e){return Ge("MuiTabScrollButton",e)}const Sce=We("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Pce=Sce,Ece=["className","slots","slotProps","direction","orientation","disabled"],kce=e=>{const{classes:t,orientation:n,disabled:r}=e;return Te({root:["root",n,r&&"disabled"]},xce,t)},Ice=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,[`&.${Pce.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Mce=u.forwardRef(function(t,n){var r,o;const s=He({props:t,name:"MuiTabScrollButton"}),{className:i,slots:l={},slotProps:a={},direction:c}=s,f=ae(s,Ece),h=vn().direction==="rtl",y=S({isRtl:h},s),v=kce(y),m=(r=l.StartScrollButtonIcon)!=null?r:mN,C=(o=l.EndScrollButtonIcon)!=null?o:gN,w=Kt({elementType:m,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:y}),b=Kt({elementType:C,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:y});return D.jsx(Ice,S({component:"div",className:be(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))}))}),Tce=Mce;function _ce(e){return Ge("MuiTabs",e)}const $ce=We("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Zg=$ce,Rce=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],zR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,VR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,wg=(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}}},Oce=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"]},_ce,a)},Dce=oe("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Zg.scrollButtons}`]:t.scrollButtons},{[`& .${Zg.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&&{[`& .${Zg.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Ace=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"})),Lce=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"})),Fce=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})),Nce=oe(Cce)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),HR={},Bce=u.forwardRef(function(t,n){const r=He({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=Tce,scrollButtons:b="auto",selectionFollowsFocus:x,slots:P={},slotProps:M={},TabIndicatorProps:E={},TabScrollButtonProps:I={},textColor:R="primary",value:O,variant:T="standard",visibleScrollbar:A=!1}=r,z=ae(r,Rce),N=T==="scrollable",_=C==="vertical",$=_?"scrollTop":"scrollLeft",F=_?"top":"left",V=_?"bottom":"right",L=_?"clientHeight":"clientWidth",B=_?"height":"width",H=S({},r,{component:h,allowScrollButtonsMobile:y,indicatorColor:v,orientation:C,vertical:_,scrollButtons:b,textColor:R,variant:T,visibleScrollbar:A,fixed:!N,hideScrollbar:N&&!A,scrollableX:N&&!_,scrollableY:N&&_,centered:c&&!N,scrollButtonsHideMobile:!y}),K=Oce(H),Y=Kt({elementType:P.StartScrollButtonIcon,externalSlotProps:M.startScrollButtonIcon,ownerState:H}),J=Kt({elementType:P.EndScrollButtonIcon,externalSlotProps:M.endScrollButtonIcon,ownerState:H}),[Q,X]=u.useState(!1),[te,se]=u.useState(HR),[Z,pe]=u.useState(!1),[ne,re]=u.useState(!1),[me,ce]=u.useState(!1),[xe,ke]=u.useState({overflow:"hidden",scrollbarWidth:0}),fe=new Map,Ie=u.useRef(null),ve=u.useRef(null),Re=()=>{const Be=Ie.current;let Xe;if(Be){const wt=Be.getBoundingClientRect();Xe={clientWidth:Be.clientWidth,scrollLeft:Be.scrollLeft,scrollTop:Be.scrollTop,scrollLeftNormalized:KY(Be,o.direction),scrollWidth:Be.scrollWidth,top:wt.top,bottom:wt.bottom,left:wt.left,right:wt.right}}let vt;if(Be&&O!==!1){const wt=ve.current.children;if(wt.length>0){const _t=wt[fe.get(O)];vt=_t?_t.getBoundingClientRect():null}}return{tabsMeta:Xe,tabMeta:vt}},ie=qe(()=>{const{tabsMeta:Be,tabMeta:Xe}=Re();let vt=0,wt;if(_)wt="top",Xe&&Be&&(vt=Xe.top-Be.top+Be.scrollTop);else if(wt=s?"right":"left",Xe&&Be){const qt=s?Be.scrollLeftNormalized+Be.clientWidth-Be.scrollWidth:Be.scrollLeft;vt=(s?-1:1)*(Xe[wt]-Be[wt]+qt)}const _t={[wt]:vt,[B]:Xe?Xe[B]:0};if(isNaN(te[wt])||isNaN(te[B]))se(_t);else{const qt=Math.abs(te[wt]-_t[wt]),Qt=Math.abs(te[B]-_t[B]);(qt>=1||Qt>=1)&&se(_t)}}),ue=(Be,{animation:Xe=!0}={})=>{Xe?yce($,Ie.current,Be,{duration:o.transitions.duration.standard}):Ie.current[$]=Be},we=Be=>{let Xe=Ie.current[$];_?Xe+=Be:(Xe+=Be*(s?-1:1),Xe*=s&&ZF()==="reverse"?-1:1),ue(Xe)},Se=()=>{const Be=Ie.current[L];let Xe=0;const vt=Array.from(ve.current.children);for(let wt=0;wt<vt.length;wt+=1){const _t=vt[wt];if(Xe+_t[L]>Be){wt===0&&(Xe=Be);break}Xe+=_t[L]}return Xe},Me=()=>{we(-1*Se())},Oe=()=>{we(Se())},Ne=u.useCallback(Be=>{ke({overflow:null,scrollbarWidth:Be})},[]),Ke=()=>{const Be={};Be.scrollbarSizeListener=N?D.jsx(Nce,{onChange:Ne,className:be(K.scrollableX,K.hideScrollbar)}):null;const vt=N&&(b==="auto"&&(Z||ne)||b===!0);return Be.scrollButtonStart=vt?D.jsx(w,S({slots:{StartScrollButtonIcon:P.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Y},orientation:C,direction:s?"right":"left",onClick:Me,disabled:!Z},I,{className:be(K.scrollButtons,I.className)})):null,Be.scrollButtonEnd=vt?D.jsx(w,S({slots:{EndScrollButtonIcon:P.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:J},orientation:C,direction:s?"left":"right",onClick:Oe,disabled:!ne},I,{className:be(K.scrollButtons,I.className)})):null,Be},Ye=qe(Be=>{const{tabsMeta:Xe,tabMeta:vt}=Re();if(!(!vt||!Xe)){if(vt[F]<Xe[F]){const wt=Xe[$]+(vt[F]-Xe[F]);ue(wt,{animation:Be})}else if(vt[V]>Xe[V]){const wt=Xe[$]+(vt[V]-Xe[V]);ue(wt,{animation:Be})}}}),Fe=qe(()=>{N&&b!==!1&&ce(!me)});u.useEffect(()=>{const Be=Fa(()=>{Ie.current&&ie()});let Xe;const vt=qt=>{qt.forEach(Qt=>{Qt.removedNodes.forEach(Pn=>{var bn;(bn=Xe)==null||bn.unobserve(Pn)}),Qt.addedNodes.forEach(Pn=>{var bn;(bn=Xe)==null||bn.observe(Pn)})}),Be(),Fe()},wt=Jo(Ie.current);wt.addEventListener("resize",Be);let _t;return typeof ResizeObserver!="undefined"&&(Xe=new ResizeObserver(Be),Array.from(ve.current.children).forEach(qt=>{Xe.observe(qt)})),typeof MutationObserver!="undefined"&&(_t=new MutationObserver(vt),_t.observe(ve.current,{childList:!0})),()=>{var qt,Qt;Be.clear(),wt.removeEventListener("resize",Be),(qt=_t)==null||qt.disconnect(),(Qt=Xe)==null||Qt.disconnect()}},[ie,Fe]),u.useEffect(()=>{const Be=Array.from(ve.current.children),Xe=Be.length;if(typeof IntersectionObserver!="undefined"&&Xe>0&&N&&b!==!1){const vt=Be[0],wt=Be[Xe-1],_t={root:Ie.current,threshold:.99},qt=gt=>{pe(!gt[0].isIntersecting)},Qt=new IntersectionObserver(qt,_t);Qt.observe(vt);const Pn=gt=>{re(!gt[0].isIntersecting)},bn=new IntersectionObserver(Pn,_t);return bn.observe(wt),()=>{Qt.disconnect(),bn.disconnect()}}},[N,b,me,f==null?void 0:f.length]),u.useEffect(()=>{X(!0)},[]),u.useEffect(()=>{ie()}),u.useEffect(()=>{Ye(HR!==te)},[Ye,te]),u.useImperativeHandle(a,()=>({updateIndicator:ie,updateScrollButtons:Fe}),[ie,Fe]);const mt=D.jsx(Fce,S({},E,{className:be(K.indicator,E.className),ownerState:H,style:S({},te,E.style)}));let Zt=0;const Pt=u.Children.map(f,Be=>{if(!u.isValidElement(Be))return null;const Xe=Be.props.value===void 0?Zt:Be.props.value;fe.set(Xe,Zt);const vt=Xe===O;return Zt+=1,u.cloneElement(Be,S({fullWidth:T==="fullWidth",indicator:vt&&!Q&&mt,selected:vt,selectionFollowsFocus:x,onChange:m,textColor:R,value:Xe},Zt===1&&O===!1&&!Be.props.tabIndex?{tabIndex:0}:{}))}),Ve=Be=>{const Xe=ve.current,vt=pn(Xe).activeElement;if(vt.getAttribute("role")!=="tab")return;let _t=C==="horizontal"?"ArrowLeft":"ArrowUp",qt=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&s&&(_t="ArrowRight",qt="ArrowLeft"),Be.key){case _t:Be.preventDefault(),wg(Xe,vt,VR);break;case qt:Be.preventDefault(),wg(Xe,vt,zR);break;case"Home":Be.preventDefault(),wg(Xe,null,zR);break;case"End":Be.preventDefault(),wg(Xe,null,VR);break}},ht=Ke();return D.jsxs(Dce,S({className:be(K.root,p),ownerState:H,ref:n,as:h},z,{children:[ht.scrollButtonStart,ht.scrollbarSizeListener,D.jsxs(Ace,{className:K.scroller,ownerState:H,style:{overflow:xe.overflow,[_?`margin${s?"Left":"Right"}`:"marginBottom"]:A?void 0:-xe.scrollbarWidth},ref:Ie,children:[D.jsx(Lce,{"aria-label":i,"aria-labelledby":l,"aria-orientation":C==="vertical"?"vertical":null,className:K.flexContainer,ownerState:H,onKeyDown:Ve,ref:ve,role:"tablist",children:Pt}),Q&&mt]}),ht.scrollButtonEnd]}))}),w2=Bce;function jce(e){return Ge("MuiTextField",e)}We("MuiTextField",["root"]);const zce=["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"],Vce={standard:tN,filled:K4,outlined:dN},Hce=e=>{const{classes:t}=e;return Te({root:["root"]},jce,t)},Uce=oe(q4,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Wce=u.forwardRef(function(t,n){const r=He({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:I=!1,name:R,onBlur:O,onChange:T,onFocus:A,placeholder:z,required:N=!1,rows:_,select:$=!1,SelectProps:F,type:V,value:L,variant:B="outlined"}=r,H=ae(r,zce),K=S({},r,{autoFocus:s,color:a,disabled:f,error:p,fullWidth:y,multiline:I,required:N,select:$,variant:B}),Y=Hce(K),J={};B==="outlined"&&(C&&typeof C.shrink!="undefined"&&(J.notched=C.shrink),J.label=P),$&&((!F||!F.native)&&(J.id=void 0),J["aria-describedby"]=void 0);const Q=Yt(m),X=v&&Q?`${Q}-helper-text`:void 0,te=P&&Q?`${Q}-label`:void 0,se=Vce[B],Z=D.jsx(se,S({"aria-describedby":X,autoComplete:o,autoFocus:s,defaultValue:c,fullWidth:y,multiline:I,name:R,rows:_,maxRows:M,minRows:E,type:V,value:L,id:Q,inputRef:x,onBlur:O,onChange:T,onFocus:A,placeholder:z,inputProps:w},J,b));return D.jsxs(Uce,S({className:be(Y.root,l),disabled:f,error:p,fullWidth:y,ref:n,required:N,color:a,variant:B,ownerState:K},H,{children:[P!=null&&P!==""&&D.jsx(nN,S({htmlFor:Q,id:te},C,{children:P})),$?D.jsx(b2,S({"aria-describedby":X,id:Q,labelId:te,value:L,input:Z},F,{children:i})):Z,v&&D.jsx(Kd,S({id:X},h,{children:v}))]}))}),ja=Wce;var C2={},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,Kw={};const Gce=zS(dZ);var UR;function tt(){return UR||(UR=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Gce}(Kw)),Kw}var Kce=et;Object.defineProperty(C2,"__esModule",{value:!0});var yN=C2.default=void 0,qce=Kce(tt()),Yce=Je();yN=C2.default=(0,qce.default)((0,Yce.jsx)("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree");var x2={},Qce=et;Object.defineProperty(x2,"__esModule",{value:!0});var bN=x2.default=void 0,Xce=Qce(tt()),Zce=Je();bN=x2.default=(0,Xce.default)((0,Zce.jsx)("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11"}),"Extension");var S2={},Jce=et;Object.defineProperty(S2,"__esModule",{value:!0});var wN=S2.default=void 0,eue=Jce(tt()),tue=Je();wN=S2.default=(0,eue.default)((0,tue.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"History");var P2={},nue=et;Object.defineProperty(P2,"__esModule",{value:!0});var U1=P2.default=void 0,rue=nue(tt()),oue=Je();U1=P2.default=(0,rue.default)((0,oue.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");var E2={},sue=et;Object.defineProperty(E2,"__esModule",{value:!0});var k2=E2.default=void 0,iue=sue(tt()),lue=Je();k2=E2.default=(0,iue.default)((0,lue.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout");var I2={},aue=et;Object.defineProperty(I2,"__esModule",{value:!0});var CN=I2.default=void 0,cue=aue(tt()),WR=Je();CN=I2.default=(0,cue.default)([(0,WR.jsx)("circle",{cx:"10",cy:"8",r:"4"},"0"),(0,WR.jsx)("path",{d:"M10.67 13.02c-.22-.01-.44-.02-.67-.02-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.79-1.13-1.26-2.51-1.26-4 0-1.07.25-2.07.67-2.98M20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L18 11h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49c.32.27.68.48 1.08.63L16 21h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63M17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},"1")],"ManageAccounts");var M2={},uue=et;Object.defineProperty(M2,"__esModule",{value:!0});var xN=M2.default=void 0,due=uue(tt()),fue=Je();xN=M2.default=(0,due.default)((0,fue.jsx)("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h3l-1 1v2h12v-2l-1-1h3c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 13H4V5h16z"}),"Monitor");var T2={},pue=et;Object.defineProperty(T2,"__esModule",{value:!0});var Qv=T2.default=void 0,hue=pue(tt()),mue=Je();Qv=T2.default=(0,hue.default)((0,mue.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public");var _2={},gue=et;Object.defineProperty(_2,"__esModule",{value:!0});var $2=_2.default=void 0,vue=gue(tt()),yue=Je();$2=_2.default=(0,vue.default)((0,yue.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var R2={},bue=et;Object.defineProperty(R2,"__esModule",{value:!0});var SN=R2.default=void 0,wue=bue(tt()),Cue=Je();SN=R2.default=(0,wue.default)((0,Cue.jsx)("path",{d:"m12.87 15.07-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2zm-2.62 7 1.62-4.33L19.12 17z"}),"Translate");var O2={},xue=et;Object.defineProperty(O2,"__esModule",{value:!0});var PN=O2.default=void 0,Sue=xue(tt()),Pue=Je();PN=O2.default=(0,Sue.default)((0,Pue.jsx)("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code");var Xv={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
|
-
*/Xv.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,I=128,R=256,O=512,T=30,A="...",z=800,N=16,_=1,$=2,F=3,V=1/0,L=9007199254740991,B=17976931348623157e292,H=0/0,K=4294967295,Y=K-1,J=K>>>1,Q=[["ary",I],["bind",C],["bindKey",w],["curry",x],["curryRight",P],["flip",O],["partial",M],["partialRight",E],["rearg",R]],X="[object Arguments]",te="[object Array]",se="[object AsyncFunction]",Z="[object Boolean]",pe="[object Date]",ne="[object DOMException]",re="[object Error]",me="[object Function]",ce="[object GeneratorFunction]",xe="[object Map]",ke="[object Number]",fe="[object Null]",Ie="[object Object]",ve="[object Promise]",Re="[object Proxy]",ie="[object RegExp]",ue="[object Set]",we="[object String]",Se="[object Symbol]",Me="[object Undefined]",Oe="[object WeakMap]",Ne="[object WeakSet]",Ke="[object ArrayBuffer]",Ye="[object DataView]",Fe="[object Float32Array]",mt="[object Float64Array]",Zt="[object Int8Array]",Pt="[object Int16Array]",Ve="[object Int32Array]",ht="[object Uint8Array]",Be="[object Uint8ClampedArray]",Xe="[object Uint16Array]",vt="[object Uint32Array]",wt=/\b__p \+= '';/g,_t=/\b(__p \+=) '' \+/g,qt=/(__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,lr=/<%=([\s\S]+?)%>/g,Rl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cs=/^\w*$/,_n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,an=/[\\^$.*+?()[\]{}|]/g,yr=RegExp(an.source),ho=/^\s+/,us=/\s/,ar=/\{(?:\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,Zn=/($^)/,Rj=/['\n\r\u2028\u2029\\]/g,im="\\ud800-\\udfff",Oj="\\u0300-\\u036f",Dj="\\ufe20-\\ufe2f",Aj="\\u20d0-\\u20ff",gI=Oj+Dj+Aj,vI="\\u2700-\\u27bf",yI="a-z\\xdf-\\xf6\\xf8-\\xff",Lj="\\xac\\xb1\\xd7\\xf7",Fj="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Nj="\\u2000-\\u206f",Bj=" \\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",bI="A-Z\\xc0-\\xd6\\xd8-\\xde",wI="\\ufe0e\\ufe0f",CI=Lj+Fj+Nj+Bj,q0="['’]",jj="["+im+"]",xI="["+CI+"]",lm="["+gI+"]",SI="\\d+",zj="["+vI+"]",PI="["+yI+"]",EI="[^"+im+CI+SI+vI+yI+bI+"]",Y0="\\ud83c[\\udffb-\\udfff]",Vj="(?:"+lm+"|"+Y0+")",kI="[^"+im+"]",Q0="(?:\\ud83c[\\udde6-\\uddff]){2}",X0="[\\ud800-\\udbff][\\udc00-\\udfff]",qc="["+bI+"]",II="\\u200d",MI="(?:"+PI+"|"+EI+")",Hj="(?:"+qc+"|"+EI+")",TI="(?:"+q0+"(?:d|ll|m|re|s|t|ve))?",_I="(?:"+q0+"(?:D|LL|M|RE|S|T|VE))?",$I=Vj+"?",RI="["+wI+"]?",Uj="(?:"+II+"(?:"+[kI,Q0,X0].join("|")+")"+RI+$I+")*",Wj="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Gj="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",OI=RI+$I+Uj,Kj="(?:"+[zj,Q0,X0].join("|")+")"+OI,qj="(?:"+[kI+lm+"?",lm,Q0,X0,jj].join("|")+")",Yj=RegExp(q0,"g"),Qj=RegExp(lm,"g"),Z0=RegExp(Y0+"(?="+Y0+")|"+qj+OI,"g"),Xj=RegExp([qc+"?"+PI+"+"+TI+"(?="+[xI,qc,"$"].join("|")+")",Hj+"+"+_I+"(?="+[xI,qc+MI,"$"].join("|")+")",qc+"?"+MI+"+"+TI,qc+"+"+_I,Gj,Wj,SI,Kj].join("|"),"g"),Zj=RegExp("["+II+im+gI+wI+"]"),Jj=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ez=["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"],tz=-1,En={};En[Fe]=En[mt]=En[Zt]=En[Pt]=En[Ve]=En[ht]=En[Be]=En[Xe]=En[vt]=!0,En[X]=En[te]=En[Ke]=En[Z]=En[Ye]=En[pe]=En[re]=En[me]=En[xe]=En[ke]=En[Ie]=En[ie]=En[ue]=En[we]=En[Oe]=!1;var wn={};wn[X]=wn[te]=wn[Ke]=wn[Ye]=wn[Z]=wn[pe]=wn[Fe]=wn[mt]=wn[Zt]=wn[Pt]=wn[Ve]=wn[xe]=wn[ke]=wn[Ie]=wn[ie]=wn[ue]=wn[we]=wn[Se]=wn[ht]=wn[Be]=wn[Xe]=wn[vt]=!0,wn[re]=wn[me]=wn[Oe]=!1;var nz={À:"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"},rz={"&":"&","<":"<",">":">",'"':""","'":"'"},oz={"&":"&","<":"<",">":">",""":'"',"'":"'"},sz={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},iz=parseFloat,lz=parseInt,DI=typeof ln=="object"&&ln&&ln.Object===Object&&ln,az=typeof self=="object"&&self&&self.Object===Object&&self,Tr=DI||az||Function("return this")(),J0=t&&!t.nodeType&&t,Ua=J0&&!0&&e&&!e.nodeType&&e,AI=Ua&&Ua.exports===J0,eb=AI&&DI.process,ds=function(){try{var he=Ua&&Ua.require&&Ua.require("util").types;return he||eb&&eb.binding&&eb.binding("util")}catch($e){}}(),LI=ds&&ds.isArrayBuffer,FI=ds&&ds.isDate,NI=ds&&ds.isMap,BI=ds&&ds.isRegExp,jI=ds&&ds.isSet,zI=ds&&ds.isTypedArray;function Do(he,$e,Ee){switch(Ee.length){case 0:return he.call($e);case 1:return he.call($e,Ee[0]);case 2:return he.call($e,Ee[0],Ee[1]);case 3:return he.call($e,Ee[0],Ee[1],Ee[2])}return he.apply($e,Ee)}function cz(he,$e,Ee,it){for(var It=-1,en=he==null?0:he.length;++It<en;){var dr=he[It];$e(it,dr,Ee(dr),he)}return it}function fs(he,$e){for(var Ee=-1,it=he==null?0:he.length;++Ee<it&&$e(he[Ee],Ee,he)!==!1;);return he}function uz(he,$e){for(var Ee=he==null?0:he.length;Ee--&&$e(he[Ee],Ee,he)!==!1;);return he}function VI(he,$e){for(var Ee=-1,it=he==null?0:he.length;++Ee<it;)if(!$e(he[Ee],Ee,he))return!1;return!0}function Ol(he,$e){for(var Ee=-1,it=he==null?0:he.length,It=0,en=[];++Ee<it;){var dr=he[Ee];$e(dr,Ee,he)&&(en[It++]=dr)}return en}function am(he,$e){var Ee=he==null?0:he.length;return!!Ee&&Yc(he,$e,0)>-1}function tb(he,$e,Ee){for(var it=-1,It=he==null?0:he.length;++it<It;)if(Ee($e,he[it]))return!0;return!1}function Rn(he,$e){for(var Ee=-1,it=he==null?0:he.length,It=Array(it);++Ee<it;)It[Ee]=$e(he[Ee],Ee,he);return It}function Dl(he,$e){for(var Ee=-1,it=$e.length,It=he.length;++Ee<it;)he[It+Ee]=$e[Ee];return he}function nb(he,$e,Ee,it){var It=-1,en=he==null?0:he.length;for(it&&en&&(Ee=he[++It]);++It<en;)Ee=$e(Ee,he[It],It,he);return Ee}function dz(he,$e,Ee,it){var It=he==null?0:he.length;for(it&&It&&(Ee=he[--It]);It--;)Ee=$e(Ee,he[It],It,he);return Ee}function rb(he,$e){for(var Ee=-1,it=he==null?0:he.length;++Ee<it;)if($e(he[Ee],Ee,he))return!0;return!1}var fz=ob("length");function pz(he){return he.split("")}function hz(he){return he.match(Mr)||[]}function HI(he,$e,Ee){var it;return Ee(he,function(It,en,dr){if($e(It,en,dr))return it=en,!1}),it}function cm(he,$e,Ee,it){for(var It=he.length,en=Ee+(it?1:-1);it?en--:++en<It;)if($e(he[en],en,he))return en;return-1}function Yc(he,$e,Ee){return $e===$e?kz(he,$e,Ee):cm(he,UI,Ee)}function mz(he,$e,Ee,it){for(var It=Ee-1,en=he.length;++It<en;)if(it(he[It],$e))return It;return-1}function UI(he){return he!==he}function WI(he,$e){var Ee=he==null?0:he.length;return Ee?ib(he,$e)/Ee:H}function ob(he){return function($e){return $e==null?n:$e[he]}}function sb(he){return function($e){return he==null?n:he[$e]}}function GI(he,$e,Ee,it,It){return It(he,function(en,dr,yn){Ee=it?(it=!1,en):$e(Ee,en,dr,yn)}),Ee}function gz(he,$e){var Ee=he.length;for(he.sort($e);Ee--;)he[Ee]=he[Ee].value;return he}function ib(he,$e){for(var Ee,it=-1,It=he.length;++it<It;){var en=$e(he[it]);en!==n&&(Ee=Ee===n?en:Ee+en)}return Ee}function lb(he,$e){for(var Ee=-1,it=Array(he);++Ee<he;)it[Ee]=$e(Ee);return it}function vz(he,$e){return Rn($e,function(Ee){return[Ee,he[Ee]]})}function KI(he){return he&&he.slice(0,XI(he)+1).replace(ho,"")}function Ao(he){return function($e){return he($e)}}function ab(he,$e){return Rn($e,function(Ee){return he[Ee]})}function pf(he,$e){return he.has($e)}function qI(he,$e){for(var Ee=-1,it=he.length;++Ee<it&&Yc($e,he[Ee],0)>-1;);return Ee}function YI(he,$e){for(var Ee=he.length;Ee--&&Yc($e,he[Ee],0)>-1;);return Ee}function yz(he,$e){for(var Ee=he.length,it=0;Ee--;)he[Ee]===$e&&++it;return it}var bz=sb(nz),wz=sb(rz);function Cz(he){return"\\"+sz[he]}function xz(he,$e){return he==null?n:he[$e]}function Qc(he){return Zj.test(he)}function Sz(he){return Jj.test(he)}function Pz(he){for(var $e,Ee=[];!($e=he.next()).done;)Ee.push($e.value);return Ee}function cb(he){var $e=-1,Ee=Array(he.size);return he.forEach(function(it,It){Ee[++$e]=[It,it]}),Ee}function QI(he,$e){return function(Ee){return he($e(Ee))}}function Al(he,$e){for(var Ee=-1,it=he.length,It=0,en=[];++Ee<it;){var dr=he[Ee];(dr===$e||dr===f)&&(he[Ee]=f,en[It++]=Ee)}return en}function um(he){var $e=-1,Ee=Array(he.size);return he.forEach(function(it){Ee[++$e]=it}),Ee}function Ez(he){var $e=-1,Ee=Array(he.size);return he.forEach(function(it){Ee[++$e]=[it,it]}),Ee}function kz(he,$e,Ee){for(var it=Ee-1,It=he.length;++it<It;)if(he[it]===$e)return it;return-1}function Iz(he,$e,Ee){for(var it=Ee+1;it--;)if(he[it]===$e)return it;return it}function Xc(he){return Qc(he)?Tz(he):fz(he)}function Us(he){return Qc(he)?_z(he):pz(he)}function XI(he){for(var $e=he.length;$e--&&us.test(he.charAt($e)););return $e}var Mz=sb(oz);function Tz(he){for(var $e=Z0.lastIndex=0;Z0.test(he);)++$e;return $e}function _z(he){return he.match(Z0)||[]}function $z(he){return he.match(Xj)||[]}var Rz=function he($e){$e=$e==null?Tr:Zc.defaults(Tr.Object(),$e,Zc.pick(Tr,ez));var Ee=$e.Array,it=$e.Date,It=$e.Error,en=$e.Function,dr=$e.Math,yn=$e.Object,ub=$e.RegExp,Oz=$e.String,ps=$e.TypeError,dm=Ee.prototype,Dz=en.prototype,Jc=yn.prototype,fm=$e["__core-js_shared__"],pm=Dz.toString,cn=Jc.hasOwnProperty,Az=0,ZI=function(){var d=/[^.]+$/.exec(fm&&fm.keys&&fm.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}(),hm=Jc.toString,Lz=pm.call(yn),Fz=Tr._,Nz=ub("^"+pm.call(cn).replace(an,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mm=AI?$e.Buffer:n,Ll=$e.Symbol,gm=$e.Uint8Array,JI=mm?mm.allocUnsafe:n,vm=QI(yn.getPrototypeOf,yn),eM=yn.create,tM=Jc.propertyIsEnumerable,ym=dm.splice,nM=Ll?Ll.isConcatSpreadable:n,hf=Ll?Ll.iterator:n,Wa=Ll?Ll.toStringTag:n,bm=function(){try{var d=Qa(yn,"defineProperty");return d({},"",{}),d}catch(g){}}(),Bz=$e.clearTimeout!==Tr.clearTimeout&&$e.clearTimeout,jz=it&&it.now!==Tr.Date.now&&it.now,zz=$e.setTimeout!==Tr.setTimeout&&$e.setTimeout,wm=dr.ceil,Cm=dr.floor,db=yn.getOwnPropertySymbols,Vz=mm?mm.isBuffer:n,rM=$e.isFinite,Hz=dm.join,Uz=QI(yn.keys,yn),fr=dr.max,Br=dr.min,Wz=it.now,Gz=$e.parseInt,oM=dr.random,Kz=dm.reverse,fb=Qa($e,"DataView"),mf=Qa($e,"Map"),pb=Qa($e,"Promise"),eu=Qa($e,"Set"),gf=Qa($e,"WeakMap"),vf=Qa(yn,"create"),xm=gf&&new gf,tu={},qz=Xa(fb),Yz=Xa(mf),Qz=Xa(pb),Xz=Xa(eu),Zz=Xa(gf),Sm=Ll?Ll.prototype:n,yf=Sm?Sm.valueOf:n,sM=Sm?Sm.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 iT(d)}return new hs(d)}var nu=function(){function d(){}return function(g){if(!Bn(g))return{};if(eM)return eM(g);d.prototype=g;var k=new d;return d.prototype=n,k}}();function Pm(){}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:lr,variable:"",imports:{_:G}},G.prototype=Pm.prototype,G.prototype.constructor=G,hs.prototype=nu(Pm.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 Jz(){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 eV(){if(this.__filtered__){var d=new Ht(this);d.__dir__=-1,d.__filtered__=!0}else d=this.clone(),d.__dir__*=-1;return d}function tV(){var d=this.__wrapped__.value(),g=this.__dir__,k=Mt(d),j=g<0,U=k?d.length:0,q=pH(0,U,this.__views__),ee=q.start,le=q.end,ge=le-ee,De=j?le:ee-1,Le=this.__iteratees__,je=Le.length,nt=0,pt=Br(ge,this.__takeCount__);if(!k||!j&&U==ge&&pt==ge)return TM(d,this.__actions__);var Ct=[];e:for(;ge--&&nt<pt;){De+=g;for(var Dt=-1,xt=d[De];++Dt<je;){var Bt=Le[Dt],Gt=Bt.iteratee,No=Bt.type,ro=Gt(xt);if(No==$)xt=ro;else if(!ro){if(No==_)continue e;break e}}Ct[nt++]=xt}return Ct}Ht.prototype=nu(Pm.prototype),Ht.prototype.constructor=Ht;function Ga(d){var g=-1,k=d==null?0:d.length;for(this.clear();++g<k;){var j=d[g];this.set(j[0],j[1])}}function nV(){this.__data__=vf?vf(null):{},this.size=0}function rV(d){var g=this.has(d)&&delete this.__data__[d];return this.size-=g?1:0,g}function oV(d){var g=this.__data__;if(vf){var k=g[d];return k===a?n:k}return cn.call(g,d)?g[d]:n}function sV(d){var g=this.__data__;return vf?g[d]!==n:cn.call(g,d)}function iV(d,g){var k=this.__data__;return this.size+=this.has(d)?0:1,k[d]=vf&&g===n?a:g,this}Ga.prototype.clear=nV,Ga.prototype.delete=rV,Ga.prototype.get=oV,Ga.prototype.has=sV,Ga.prototype.set=iV;function Ki(d){var g=-1,k=d==null?0:d.length;for(this.clear();++g<k;){var j=d[g];this.set(j[0],j[1])}}function lV(){this.__data__=[],this.size=0}function aV(d){var g=this.__data__,k=Em(g,d);if(k<0)return!1;var j=g.length-1;return k==j?g.pop():ym.call(g,k,1),--this.size,!0}function cV(d){var g=this.__data__,k=Em(g,d);return k<0?n:g[k][1]}function uV(d){return Em(this.__data__,d)>-1}function dV(d,g){var k=this.__data__,j=Em(k,d);return j<0?(++this.size,k.push([d,g])):k[j][1]=g,this}Ki.prototype.clear=lV,Ki.prototype.delete=aV,Ki.prototype.get=cV,Ki.prototype.has=uV,Ki.prototype.set=dV;function qi(d){var g=-1,k=d==null?0:d.length;for(this.clear();++g<k;){var j=d[g];this.set(j[0],j[1])}}function fV(){this.size=0,this.__data__={hash:new Ga,map:new(mf||Ki),string:new Ga}}function pV(d){var g=Fm(this,d).delete(d);return this.size-=g?1:0,g}function hV(d){return Fm(this,d).get(d)}function mV(d){return Fm(this,d).has(d)}function gV(d,g){var k=Fm(this,d),j=k.size;return k.set(d,g),this.size+=k.size==j?0:1,this}qi.prototype.clear=fV,qi.prototype.delete=pV,qi.prototype.get=hV,qi.prototype.has=mV,qi.prototype.set=gV;function Ka(d){var g=-1,k=d==null?0:d.length;for(this.__data__=new qi;++g<k;)this.add(d[g])}function vV(d){return this.__data__.set(d,a),this}function yV(d){return this.__data__.has(d)}Ka.prototype.add=Ka.prototype.push=vV,Ka.prototype.has=yV;function Ws(d){var g=this.__data__=new Ki(d);this.size=g.size}function bV(){this.__data__=new Ki,this.size=0}function wV(d){var g=this.__data__,k=g.delete(d);return this.size=g.size,k}function CV(d){return this.__data__.get(d)}function xV(d){return this.__data__.has(d)}function SV(d,g){var k=this.__data__;if(k instanceof Ki){var j=k.__data__;if(!mf||j.length<o-1)return j.push([d,g]),this.size=++k.size,this;k=this.__data__=new qi(j)}return k.set(d,g),this.size=k.size,this}Ws.prototype.clear=bV,Ws.prototype.delete=wV,Ws.prototype.get=CV,Ws.prototype.has=xV,Ws.prototype.set=SV;function iM(d,g){var k=Mt(d),j=!k&&Za(d),U=!k&&!j&&zl(d),q=!k&&!j&&!U&&iu(d),ee=k||j||U||q,le=ee?lb(d.length,Oz):[],ge=le.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,ge)))&&le.push(De);return le}function lM(d){var g=d.length;return g?d[Pb(0,g-1)]:n}function PV(d,g){return Nm(mo(d),qa(g,0,d.length))}function EV(d){return Nm(mo(d))}function hb(d,g,k){(k!==n&&!Gs(d[g],k)||k===n&&!(g in d))&&Yi(d,g,k)}function bf(d,g,k){var j=d[g];(!(cn.call(d,g)&&Gs(j,k))||k===n&&!(g in d))&&Yi(d,g,k)}function Em(d,g){for(var k=d.length;k--;)if(Gs(d[k][0],g))return k;return-1}function kV(d,g,k,j){return Fl(d,function(U,q,ee){g(j,U,k(U),ee)}),j}function aM(d,g){return d&&yi(g,br(g),d)}function IV(d,g){return d&&yi(g,vo(g),d)}function Yi(d,g,k){g=="__proto__"&&bm?bm(d,g,{configurable:!0,enumerable:!0,value:k,writable:!0}):d[g]=k}function mb(d,g){for(var k=-1,j=g.length,U=Ee(j),q=d==null;++k<j;)U[k]=q?n:Yb(d,g[k]);return U}function qa(d,g,k){return d===d&&(k!==n&&(d=d<=k?d:k),g!==n&&(d=d>=g?d:g)),d}function ms(d,g,k,j,U,q){var ee,le=g&p,ge=g&h,De=g&y;if(k&&(ee=U?k(d,j,U,q):k(d)),ee!==n)return ee;if(!Bn(d))return d;var Le=Mt(d);if(Le){if(ee=mH(d),!le)return mo(d,ee)}else{var je=jr(d),nt=je==me||je==ce;if(zl(d))return RM(d,le);if(je==Ie||je==X||nt&&!U){if(ee=ge||nt?{}:XM(d),!le)return ge?oH(d,IV(ee,d)):rH(d,aM(ee,d))}else{if(!wn[je])return U?d:{};ee=gH(d,je,le)}}q||(q=new Ws);var pt=q.get(d);if(pt)return pt;q.set(d,ee),kT(d)?d.forEach(function(xt){ee.add(ms(xt,g,k,xt,d,q))}):PT(d)&&d.forEach(function(xt,Bt){ee.set(Bt,ms(xt,g,k,Bt,d,q))});var Ct=De?ge?Ab:Db:ge?vo:br,Dt=Le?n:Ct(d);return fs(Dt||d,function(xt,Bt){Dt&&(Bt=xt,xt=d[Bt]),bf(ee,Bt,ms(xt,g,k,Bt,d,q))}),ee}function MV(d){var g=br(d);return function(k){return cM(k,d,g)}}function cM(d,g,k){var j=k.length;if(d==null)return!j;for(d=yn(d);j--;){var U=k[j],q=g[U],ee=d[U];if(ee===n&&!(U in d)||!q(ee))return!1}return!0}function uM(d,g,k){if(typeof d!="function")throw new ps(i);return kf(function(){d.apply(n,k)},g)}function wf(d,g,k,j){var U=-1,q=am,ee=!0,le=d.length,ge=[],De=g.length;if(!le)return ge;k&&(g=Rn(g,Ao(k))),j?(q=tb,ee=!1):g.length>=o&&(q=pf,ee=!1,g=new Ka(g));e:for(;++U<le;){var Le=d[U],je=k==null?Le:k(Le);if(Le=j||Le!==0?Le:0,ee&&je===je){for(var nt=De;nt--;)if(g[nt]===je)continue e;ge.push(Le)}else q(g,je,j)||ge.push(Le)}return ge}var Fl=FM(vi),dM=FM(vb,!0);function TV(d,g){var k=!0;return Fl(d,function(j,U,q){return k=!!g(j,U,q),k}),k}function km(d,g,k){for(var j=-1,U=d.length;++j<U;){var q=d[j],ee=g(q);if(ee!=null&&(le===n?ee===ee&&!Fo(ee):k(ee,le)))var le=ee,ge=q}return ge}function _V(d,g,k,j){var U=d.length;for(k=Ot(k),k<0&&(k=-k>U?0:U+k),j=j===n||j>U?U:Ot(j),j<0&&(j+=U),j=k>j?0:MT(j);k<j;)d[k++]=g;return d}function fM(d,g){var k=[];return Fl(d,function(j,U,q){g(j,U,q)&&k.push(j)}),k}function _r(d,g,k,j,U){var q=-1,ee=d.length;for(k||(k=yH),U||(U=[]);++q<ee;){var le=d[q];g>0&&k(le)?g>1?_r(le,g-1,k,j,U):Dl(U,le):j||(U[U.length]=le)}return U}var gb=NM(),pM=NM(!0);function vi(d,g){return d&&gb(d,g,br)}function vb(d,g){return d&&pM(d,g,br)}function Im(d,g){return Ol(g,function(k){return Ji(d[k])})}function Ya(d,g){g=Bl(g,d);for(var k=0,j=g.length;d!=null&&k<j;)d=d[bi(g[k++])];return k&&k==j?d:n}function hM(d,g,k){var j=g(d);return Mt(d)?j:Dl(j,k(d))}function to(d){return d==null?d===n?Me:fe:Wa&&Wa in yn(d)?fH(d):EH(d)}function yb(d,g){return d>g}function $V(d,g){return d!=null&&cn.call(d,g)}function RV(d,g){return d!=null&&g in yn(d)}function OV(d,g,k){return d>=Br(g,k)&&d<fr(g,k)}function bb(d,g,k){for(var j=k?tb:am,U=d[0].length,q=d.length,ee=q,le=Ee(q),ge=1/0,De=[];ee--;){var Le=d[ee];ee&&g&&(Le=Rn(Le,Ao(g))),ge=Br(Le.length,ge),le[ee]=!k&&(g||U>=120&&Le.length>=120)?new Ka(ee&&Le):n}Le=d[0];var je=-1,nt=le[0];e:for(;++je<U&&De.length<ge;){var pt=Le[je],Ct=g?g(pt):pt;if(pt=k||pt!==0?pt:0,!(nt?pf(nt,Ct):j(De,Ct,k))){for(ee=q;--ee;){var Dt=le[ee];if(!(Dt?pf(Dt,Ct):j(d[ee],Ct,k)))continue e}nt&&nt.push(Ct),De.push(pt)}}return De}function DV(d,g,k,j){return vi(d,function(U,q,ee){g(j,k(U),q,ee)}),j}function Cf(d,g,k){g=Bl(g,d),d=tT(d,g);var j=d==null?d:d[bi(vs(g))];return j==null?n:Do(j,d,k)}function mM(d){return Un(d)&&to(d)==X}function AV(d){return Un(d)&&to(d)==Ke}function LV(d){return Un(d)&&to(d)==pe}function xf(d,g,k,j,U){return d===g?!0:d==null||g==null||!Un(d)&&!Un(g)?d!==d&&g!==g:FV(d,g,k,j,xf,U)}function FV(d,g,k,j,U,q){var ee=Mt(d),le=Mt(g),ge=ee?te:jr(d),De=le?te:jr(g);ge=ge==X?Ie:ge,De=De==X?Ie:De;var Le=ge==Ie,je=De==Ie,nt=ge==De;if(nt&&zl(d)){if(!zl(g))return!1;ee=!0,Le=!1}if(nt&&!Le)return q||(q=new Ws),ee||iu(d)?qM(d,g,k,j,U,q):uH(d,g,ge,k,j,U,q);if(!(k&v)){var pt=Le&&cn.call(d,"__wrapped__"),Ct=je&&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,k,j,q)}}return nt?(q||(q=new Ws),dH(d,g,k,j,U,q)):!1}function NV(d){return Un(d)&&jr(d)==xe}function wb(d,g,k,j){var U=k.length,q=U,ee=!j;if(d==null)return!q;for(d=yn(d);U--;){var le=k[U];if(ee&&le[2]?le[1]!==d[le[0]]:!(le[0]in d))return!1}for(;++U<q;){le=k[U];var ge=le[0],De=d[ge],Le=le[1];if(ee&&le[2]){if(De===n&&!(ge in d))return!1}else{var je=new Ws;if(j)var nt=j(De,Le,ge,d,g,je);if(!(nt===n?xf(Le,De,v|m,j,je):nt))return!1}}return!0}function gM(d){if(!Bn(d)||wH(d))return!1;var g=Ji(d)?Nz:Wt;return g.test(Xa(d))}function BV(d){return Un(d)&&to(d)==ie}function jV(d){return Un(d)&&jr(d)==ue}function zV(d){return Un(d)&&Um(d.length)&&!!En[to(d)]}function vM(d){return typeof d=="function"?d:d==null?yo:typeof d=="object"?Mt(d)?wM(d[0],d[1]):bM(d):BT(d)}function Cb(d){if(!Ef(d))return Uz(d);var g=[];for(var k in yn(d))cn.call(d,k)&&k!="constructor"&&g.push(k);return g}function VV(d){if(!Bn(d))return PH(d);var g=Ef(d),k=[];for(var j in d)j=="constructor"&&(g||!cn.call(d,j))||k.push(j);return k}function xb(d,g){return d<g}function yM(d,g){var k=-1,j=go(d)?Ee(d.length):[];return Fl(d,function(U,q,ee){j[++k]=g(U,q,ee)}),j}function bM(d){var g=Fb(d);return g.length==1&&g[0][2]?JM(g[0][0],g[0][1]):function(k){return k===d||wb(k,d,g)}}function wM(d,g){return Bb(d)&&ZM(g)?JM(bi(d),g):function(k){var j=Yb(k,d);return j===n&&j===g?Qb(k,d):xf(g,j,v|m)}}function Mm(d,g,k,j,U){d!==g&&gb(g,function(q,ee){if(U||(U=new Ws),Bn(q))HV(d,g,ee,k,Mm,j,U);else{var le=j?j(zb(d,ee),q,ee+"",d,g,U):n;le===n&&(le=q),hb(d,ee,le)}},vo)}function HV(d,g,k,j,U,q,ee){var le=zb(d,k),ge=zb(g,k),De=ee.get(ge);if(De){hb(d,k,De);return}var Le=q?q(le,ge,k+"",d,g,ee):n,je=Le===n;if(je){var nt=Mt(ge),pt=!nt&&zl(ge),Ct=!nt&&!pt&&iu(ge);Le=ge,nt||pt||Ct?Mt(le)?Le=le:Jn(le)?Le=mo(le):pt?(je=!1,Le=RM(ge,!0)):Ct?(je=!1,Le=OM(ge,!0)):Le=[]:If(ge)||Za(ge)?(Le=le,Za(le)?Le=TT(le):(!Bn(le)||Ji(le))&&(Le=XM(ge))):je=!1}je&&(ee.set(ge,Le),U(Le,ge,j,q,ee),ee.delete(ge)),hb(d,k,Le)}function CM(d,g){var k=d.length;if(k)return g+=g<0?k:0,Zi(g,k)?d[g]:n}function xM(d,g,k){g.length?g=Rn(g,function(q){return Mt(q)?function(ee){return Ya(ee,q.length===1?q[0]:q)}:q}):g=[yo];var j=-1;g=Rn(g,Ao(yt()));var U=yM(d,function(q,ee,le){var ge=Rn(g,function(De){return De(q)});return{criteria:ge,index:++j,value:q}});return gz(U,function(q,ee){return nH(q,ee,k)})}function UV(d,g){return SM(d,g,function(k,j){return Qb(d,j)})}function SM(d,g,k){for(var j=-1,U=g.length,q={};++j<U;){var ee=g[j],le=Ya(d,ee);k(le,ee)&&Sf(q,Bl(ee,d),le)}return q}function WV(d){return function(g){return Ya(g,d)}}function Sb(d,g,k,j){var U=j?mz:Yc,q=-1,ee=g.length,le=d;for(d===g&&(g=mo(g)),k&&(le=Rn(d,Ao(k)));++q<ee;)for(var ge=0,De=g[q],Le=k?k(De):De;(ge=U(le,Le,ge,j))>-1;)le!==d&&ym.call(le,ge,1),ym.call(d,ge,1);return d}function PM(d,g){for(var k=d?g.length:0,j=k-1;k--;){var U=g[k];if(k==j||U!==q){var q=U;Zi(U)?ym.call(d,U,1):Ib(d,U)}}return d}function Pb(d,g){return d+Cm(oM()*(g-d+1))}function GV(d,g,k,j){for(var U=-1,q=fr(wm((g-d)/(k||1)),0),ee=Ee(q);q--;)ee[j?q:++U]=d,d+=k;return ee}function Eb(d,g){var k="";if(!d||g<1||g>L)return k;do g%2&&(k+=d),g=Cm(g/2),g&&(d+=d);while(g);return k}function Nt(d,g){return Vb(eT(d,g,yo),d+"")}function KV(d){return lM(lu(d))}function qV(d,g){var k=lu(d);return Nm(k,qa(g,0,k.length))}function Sf(d,g,k,j){if(!Bn(d))return d;g=Bl(g,d);for(var U=-1,q=g.length,ee=q-1,le=d;le!=null&&++U<q;){var ge=bi(g[U]),De=k;if(ge==="__proto__"||ge==="constructor"||ge==="prototype")return d;if(U!=ee){var Le=le[ge];De=j?j(Le,ge,le):n,De===n&&(De=Bn(Le)?Le:Zi(g[U+1])?[]:{})}bf(le,ge,De),le=le[ge]}return d}var EM=xm?function(d,g){return xm.set(d,g),d}:yo,YV=bm?function(d,g){return bm(d,"toString",{configurable:!0,enumerable:!1,value:Zb(g),writable:!0})}:yo;function QV(d){return Nm(lu(d))}function gs(d,g,k){var j=-1,U=d.length;g<0&&(g=-g>U?0:U+g),k=k>U?U:k,k<0&&(k+=U),U=g>k?0:k-g>>>0,g>>>=0;for(var q=Ee(U);++j<U;)q[j]=d[j+g];return q}function XV(d,g){var k;return Fl(d,function(j,U,q){return k=g(j,U,q),!k}),!!k}function Tm(d,g,k){var j=0,U=d==null?j:d.length;if(typeof g=="number"&&g===g&&U<=J){for(;j<U;){var q=j+U>>>1,ee=d[q];ee!==null&&!Fo(ee)&&(k?ee<=g:ee<g)?j=q+1:U=q}return U}return kb(d,g,yo,k)}function kb(d,g,k,j){var U=0,q=d==null?0:d.length;if(q===0)return 0;g=k(g);for(var ee=g!==g,le=g===null,ge=Fo(g),De=g===n;U<q;){var Le=Cm((U+q)/2),je=k(d[Le]),nt=je!==n,pt=je===null,Ct=je===je,Dt=Fo(je);if(ee)var xt=j||Ct;else De?xt=Ct&&(j||nt):le?xt=Ct&&nt&&(j||!pt):ge?xt=Ct&&nt&&!pt&&(j||!Dt):pt||Dt?xt=!1:xt=j?je<=g:je<g;xt?U=Le+1:q=Le}return Br(q,Y)}function kM(d,g){for(var k=-1,j=d.length,U=0,q=[];++k<j;){var ee=d[k],le=g?g(ee):ee;if(!k||!Gs(le,ge)){var ge=le;q[U++]=ee===0?0:ee}}return q}function IM(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 sM?sM.call(d):"";var g=d+"";return g=="0"&&1/d==-V?"-0":g}function Nl(d,g,k){var j=-1,U=am,q=d.length,ee=!0,le=[],ge=le;if(k)ee=!1,U=tb;else if(q>=o){var De=g?null:aH(d);if(De)return um(De);ee=!1,U=pf,ge=new Ka}else ge=g?[]:le;e:for(;++j<q;){var Le=d[j],je=g?g(Le):Le;if(Le=k||Le!==0?Le:0,ee&&je===je){for(var nt=ge.length;nt--;)if(ge[nt]===je)continue e;g&&ge.push(je),le.push(Le)}else U(ge,je,k)||(ge!==le&&ge.push(je),le.push(Le))}return le}function Ib(d,g){return g=Bl(g,d),d=tT(d,g),d==null||delete d[bi(vs(g))]}function MM(d,g,k,j){return Sf(d,g,k(Ya(d,g)),j)}function _m(d,g,k,j){for(var U=d.length,q=j?U:-1;(j?q--:++q<U)&&g(d[q],q,d););return k?gs(d,j?0:q,j?q+1:U):gs(d,j?q+1:0,j?U:q)}function TM(d,g){var k=d;return k instanceof Ht&&(k=k.value()),nb(g,function(j,U){return U.func.apply(U.thisArg,Dl([j],U.args))},k)}function Mb(d,g,k){var j=d.length;if(j<2)return j?Nl(d[0]):[];for(var U=-1,q=Ee(j);++U<j;)for(var ee=d[U],le=-1;++le<j;)le!=U&&(q[U]=wf(q[U]||ee,d[le],g,k));return Nl(_r(q,1),g,k)}function _M(d,g,k){for(var j=-1,U=d.length,q=g.length,ee={};++j<U;){var le=j<q?g[j]:n;k(ee,d[j],le)}return ee}function Tb(d){return Jn(d)?d:[]}function _b(d){return typeof d=="function"?d:yo}function Bl(d,g){return Mt(d)?d:Bb(d,g)?[d]:sT(sn(d))}var ZV=Nt;function jl(d,g,k){var j=d.length;return k=k===n?j:k,!g&&k>=j?d:gs(d,g,k)}var $M=Bz||function(d){return Tr.clearTimeout(d)};function RM(d,g){if(g)return d.slice();var k=d.length,j=JI?JI(k):new d.constructor(k);return d.copy(j),j}function $b(d){var g=new d.constructor(d.byteLength);return new gm(g).set(new gm(d)),g}function JV(d,g){var k=g?$b(d.buffer):d.buffer;return new d.constructor(k,d.byteOffset,d.byteLength)}function eH(d){var g=new d.constructor(d.source,Ce.exec(d));return g.lastIndex=d.lastIndex,g}function tH(d){return yf?yn(yf.call(d)):{}}function OM(d,g){var k=g?$b(d.buffer):d.buffer;return new d.constructor(k,d.byteOffset,d.length)}function DM(d,g){if(d!==g){var k=d!==n,j=d===null,U=d===d,q=Fo(d),ee=g!==n,le=g===null,ge=g===g,De=Fo(g);if(!le&&!De&&!q&&d>g||q&&ee&&ge&&!le&&!De||j&&ee&&ge||!k&&ge||!U)return 1;if(!j&&!q&&!De&&d<g||De&&k&&U&&!j&&!q||le&&k&&U||!ee&&U||!ge)return-1}return 0}function nH(d,g,k){for(var j=-1,U=d.criteria,q=g.criteria,ee=U.length,le=k.length;++j<ee;){var ge=DM(U[j],q[j]);if(ge){if(j>=le)return ge;var De=k[j];return ge*(De=="desc"?-1:1)}}return d.index-g.index}function AM(d,g,k,j){for(var U=-1,q=d.length,ee=k.length,le=-1,ge=g.length,De=fr(q-ee,0),Le=Ee(ge+De),je=!j;++le<ge;)Le[le]=g[le];for(;++U<ee;)(je||U<q)&&(Le[k[U]]=d[U]);for(;De--;)Le[le++]=d[U++];return Le}function LM(d,g,k,j){for(var U=-1,q=d.length,ee=-1,le=k.length,ge=-1,De=g.length,Le=fr(q-le,0),je=Ee(Le+De),nt=!j;++U<Le;)je[U]=d[U];for(var pt=U;++ge<De;)je[pt+ge]=g[ge];for(;++ee<le;)(nt||U<q)&&(je[pt+k[ee]]=d[U++]);return je}function mo(d,g){var k=-1,j=d.length;for(g||(g=Ee(j));++k<j;)g[k]=d[k];return g}function yi(d,g,k,j){var U=!k;k||(k={});for(var q=-1,ee=g.length;++q<ee;){var le=g[q],ge=j?j(k[le],d[le],le,k,d):n;ge===n&&(ge=d[le]),U?Yi(k,le,ge):bf(k,le,ge)}return k}function rH(d,g){return yi(d,Nb(d),g)}function oH(d,g){return yi(d,YM(d),g)}function $m(d,g){return function(k,j){var U=Mt(k)?cz:kV,q=g?g():{};return U(k,d,yt(j,2),q)}}function ru(d){return Nt(function(g,k){var j=-1,U=k.length,q=U>1?k[U-1]:n,ee=U>2?k[2]:n;for(q=d.length>3&&typeof q=="function"?(U--,q):n,ee&&no(k[0],k[1],ee)&&(q=U<3?n:q,U=1),g=yn(g);++j<U;){var le=k[j];le&&d(g,le,j,q)}return g})}function FM(d,g){return function(k,j){if(k==null)return k;if(!go(k))return d(k,j);for(var U=k.length,q=g?U:-1,ee=yn(k);(g?q--:++q<U)&&j(ee[q],q,ee)!==!1;);return k}}function NM(d){return function(g,k,j){for(var U=-1,q=yn(g),ee=j(g),le=ee.length;le--;){var ge=ee[d?le:++U];if(k(q[ge],ge,q)===!1)break}return g}}function sH(d,g,k){var j=g&C,U=Pf(d);function q(){var ee=this&&this!==Tr&&this instanceof q?U:d;return ee.apply(j?k:this,arguments)}return q}function BM(d){return function(g){g=sn(g);var k=Qc(g)?Us(g):n,j=k?k[0]:g.charAt(0),U=k?jl(k,1).join(""):g.slice(1);return j[d]()+U}}function ou(d){return function(g){return nb(FT(LT(g).replace(Yj,"")),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 k=nu(d.prototype),j=d.apply(k,g);return Bn(j)?j:k}}function iH(d,g,k){var j=Pf(d);function U(){for(var q=arguments.length,ee=Ee(q),le=q,ge=su(U);le--;)ee[le]=arguments[le];var De=q<3&&ee[0]!==ge&&ee[q-1]!==ge?[]:Al(ee,ge);if(q-=De.length,q<k)return UM(d,g,Rm,U.placeholder,n,ee,De,n,n,k-q);var Le=this&&this!==Tr&&this instanceof U?j:d;return Do(Le,this,ee)}return U}function jM(d){return function(g,k,j){var U=yn(g);if(!go(g)){var q=yt(k,3);g=br(g),k=function(le){return q(U[le],le,U)}}var ee=d(g,k,j);return ee>-1?U[q?g[ee]:ee]:n}}function zM(d){return Xi(function(g){var k=g.length,j=k,U=hs.prototype.thru;for(d&&g.reverse();j--;){var q=g[j];if(typeof q!="function")throw new ps(i);if(U&&!ee&&Lm(q)=="wrapper")var ee=new hs([],!0)}for(j=ee?j:k;++j<k;){q=g[j];var le=Lm(q),ge=le=="wrapper"?Lb(q):n;ge&&jb(ge[0])&&ge[1]==(I|x|M|R)&&!ge[4].length&&ge[9]==1?ee=ee[Lm(ge[0])].apply(ee,ge[3]):ee=q.length==1&&jb(q)?ee[le]():ee.thru(q)}return function(){var De=arguments,Le=De[0];if(ee&&De.length==1&&Mt(Le))return ee.plant(Le).value();for(var je=0,nt=k?g[je].apply(this,De):Le;++je<k;)nt=g[je].call(this,nt);return nt}})}function Rm(d,g,k,j,U,q,ee,le,ge,De){var Le=g&I,je=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=su(xt),Bo=yz(Gt,ro);if(j&&(Gt=AM(Gt,j,U,pt)),q&&(Gt=LM(Gt,q,ee,pt)),Bt-=Bo,pt&&Bt<De){var er=Al(Gt,ro);return UM(d,g,Rm,xt.placeholder,k,Gt,er,le,ge,De-Bt)}var Ks=je?k:this,tl=nt?Ks[d]:d;return Bt=Gt.length,le?Gt=kH(Gt,le):Ct&&Bt>1&&Gt.reverse(),Le&&ge<Bt&&(Gt.length=ge),this&&this!==Tr&&this instanceof xt&&(tl=Dt||Pf(tl)),tl.apply(Ks,Gt)}return xt}function VM(d,g){return function(k,j){return DV(k,d,g(j),{})}}function Om(d,g){return function(k,j){var U;if(k===n&&j===n)return g;if(k!==n&&(U=k),j!==n){if(U===n)return j;typeof k=="string"||typeof j=="string"?(k=Lo(k),j=Lo(j)):(k=IM(k),j=IM(j)),U=d(k,j)}return U}}function Rb(d){return Xi(function(g){return g=Rn(g,Ao(yt())),Nt(function(k){var j=this;return d(g,function(U){return Do(U,j,k)})})})}function Dm(d,g){g=g===n?" ":Lo(g);var k=g.length;if(k<2)return k?Eb(g,d):g;var j=Eb(g,wm(d/Xc(g)));return Qc(g)?jl(Us(j),0,d).join(""):j.slice(0,d)}function lH(d,g,k,j){var U=g&C,q=Pf(d);function ee(){for(var le=-1,ge=arguments.length,De=-1,Le=j.length,je=Ee(Le+ge),nt=this&&this!==Tr&&this instanceof ee?q:d;++De<Le;)je[De]=j[De];for(;ge--;)je[De++]=arguments[++le];return Do(nt,U?k:this,je)}return ee}function HM(d){return function(g,k,j){return j&&typeof j!="number"&&no(g,k,j)&&(k=j=n),g=el(g),k===n?(k=g,g=0):k=el(k),j=j===n?g<k?1:-1:el(j),GV(g,k,j,d)}}function Am(d){return function(g,k){return typeof g=="string"&&typeof k=="string"||(g=ys(g),k=ys(k)),d(g,k)}}function UM(d,g,k,j,U,q,ee,le,ge,De){var Le=g&x,je=Le?ee:n,nt=Le?n:ee,pt=Le?q:n,Ct=Le?n:q;g|=Le?M:E,g&=~(Le?E:M),g&b||(g&=~(C|w));var Dt=[d,g,U,pt,je,Ct,nt,le,ge,De],xt=k.apply(n,Dt);return jb(d)&&nT(xt,Dt),xt.placeholder=j,rT(xt,d,g)}function Ob(d){var g=dr[d];return function(k,j){if(k=ys(k),j=j==null?0:Br(Ot(j),292),j&&rM(k)){var U=(sn(k)+"e").split("e"),q=g(U[0]+"e"+(+U[1]+j));return U=(sn(q)+"e").split("e"),+(U[0]+"e"+(+U[1]-j))}return g(k)}}var aH=eu&&1/um(new eu([,-0]))[1]==V?function(d){return new eu(d)}:tw;function WM(d){return function(g){var k=jr(g);return k==xe?cb(g):k==ue?Ez(g):vz(g,d(g))}}function Qi(d,g,k,j,U,q,ee,le){var ge=g&w;if(!ge&&typeof d!="function")throw new ps(i);var De=j?j.length:0;if(De||(g&=~(M|E),j=U=n),ee=ee===n?ee:fr(Ot(ee),0),le=le===n?le:Ot(le),De-=U?U.length:0,g&E){var Le=j,je=U;j=U=n}var nt=ge?n:Lb(d),pt=[d,g,k,j,U,Le,je,q,ee,le];if(nt&&SH(pt,nt),d=pt[0],g=pt[1],k=pt[2],j=pt[3],U=pt[4],le=pt[9]=pt[9]===n?ge?0:d.length:fr(pt[9]-De,0),!le&&g&(x|P)&&(g&=~(x|P)),!g||g==C)var Ct=sH(d,g,k);else g==x||g==P?Ct=iH(d,g,le):(g==M||g==(C|M))&&!U.length?Ct=lH(d,g,k,j):Ct=Rm.apply(n,pt);var Dt=nt?EM:nT;return rT(Dt(Ct,pt),d,g)}function GM(d,g,k,j){return d===n||Gs(d,Jc[k])&&!cn.call(j,k)?g:d}function KM(d,g,k,j,U,q){return Bn(d)&&Bn(g)&&(q.set(g,d),Mm(d,g,n,KM,q),q.delete(g)),d}function cH(d){return If(d)?n:d}function qM(d,g,k,j,U,q){var ee=k&v,le=d.length,ge=g.length;if(le!=ge&&!(ee&&ge>le))return!1;var De=q.get(d),Le=q.get(g);if(De&&Le)return De==g&&Le==d;var je=-1,nt=!0,pt=k&m?new Ka:n;for(q.set(d,g),q.set(g,d);++je<le;){var Ct=d[je],Dt=g[je];if(j)var xt=ee?j(Dt,Ct,je,g,d,q):j(Ct,Dt,je,d,g,q);if(xt!==n){if(xt)continue;nt=!1;break}if(pt){if(!rb(g,function(Bt,Gt){if(!pf(pt,Gt)&&(Ct===Bt||U(Ct,Bt,k,j,q)))return pt.push(Gt)})){nt=!1;break}}else if(!(Ct===Dt||U(Ct,Dt,k,j,q))){nt=!1;break}}return q.delete(d),q.delete(g),nt}function uH(d,g,k,j,U,q,ee){switch(k){case Ye:if(d.byteLength!=g.byteLength||d.byteOffset!=g.byteOffset)return!1;d=d.buffer,g=g.buffer;case Ke:return!(d.byteLength!=g.byteLength||!q(new gm(d),new gm(g)));case Z:case pe:case ke:return Gs(+d,+g);case re:return d.name==g.name&&d.message==g.message;case ie:case we:return d==g+"";case xe:var le=cb;case ue:var ge=j&v;if(le||(le=um),d.size!=g.size&&!ge)return!1;var De=ee.get(d);if(De)return De==g;j|=m,ee.set(d,g);var Le=qM(le(d),le(g),j,U,q,ee);return ee.delete(d),Le;case Se:if(yf)return yf.call(d)==yf.call(g)}return!1}function dH(d,g,k,j,U,q){var ee=k&v,le=Db(d),ge=le.length,De=Db(g),Le=De.length;if(ge!=Le&&!ee)return!1;for(var je=ge;je--;){var nt=le[je];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;++je<ge;){nt=le[je];var Bt=d[nt],Gt=g[nt];if(j)var No=ee?j(Gt,Bt,nt,g,d,q):j(Bt,Gt,nt,d,g,q);if(!(No===n?Bt===Gt||U(Bt,Gt,k,j,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 Vb(eT(d,n,cT),d+"")}function Db(d){return hM(d,br,Nb)}function Ab(d){return hM(d,vo,YM)}var Lb=xm?function(d){return xm.get(d)}:tw;function Lm(d){for(var g=d.name+"",k=tu[g],j=cn.call(tu,g)?k.length:0;j--;){var U=k[j],q=U.func;if(q==null||q==d)return U.name}return g}function su(d){var g=cn.call(G,"placeholder")?G:d;return g.placeholder}function yt(){var d=G.iteratee||Jb;return d=d===Jb?vM:d,arguments.length?d(arguments[0],arguments[1]):d}function Fm(d,g){var k=d.__data__;return bH(g)?k[typeof g=="string"?"string":"hash"]:k.map}function Fb(d){for(var g=br(d),k=g.length;k--;){var j=g[k],U=d[j];g[k]=[j,U,ZM(U)]}return g}function Qa(d,g){var k=xz(d,g);return gM(k)?k:n}function fH(d){var g=cn.call(d,Wa),k=d[Wa];try{d[Wa]=n;var j=!0}catch(q){}var U=hm.call(d);return j&&(g?d[Wa]=k:delete d[Wa]),U}var Nb=db?function(d){return d==null?[]:(d=yn(d),Ol(db(d),function(g){return tM.call(d,g)}))}:nw,YM=db?function(d){for(var g=[];d;)Dl(g,Nb(d)),d=vm(d);return g}:nw,jr=to;(fb&&jr(new fb(new ArrayBuffer(1)))!=Ye||mf&&jr(new mf)!=xe||pb&&jr(pb.resolve())!=ve||eu&&jr(new eu)!=ue||gf&&jr(new gf)!=Oe)&&(jr=function(d){var g=to(d),k=g==Ie?d.constructor:n,j=k?Xa(k):"";if(j)switch(j){case qz:return Ye;case Yz:return xe;case Qz:return ve;case Xz:return ue;case Zz:return Oe}return g});function pH(d,g,k){for(var j=-1,U=k.length;++j<U;){var q=k[j],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=fr(d,g-ee);break}}return{start:d,end:g}}function hH(d){var g=d.match(Oo);return g?g[1].split(gi):[]}function QM(d,g,k){g=Bl(g,d);for(var j=-1,U=g.length,q=!1;++j<U;){var ee=bi(g[j]);if(!(q=d!=null&&k(d,ee)))break;d=d[ee]}return q||++j!=U?q:(U=d==null?0:d.length,!!U&&Um(U)&&Zi(ee,U)&&(Mt(d)||Za(d)))}function mH(d){var g=d.length,k=new d.constructor(g);return g&&typeof d[0]=="string"&&cn.call(d,"index")&&(k.index=d.index,k.input=d.input),k}function XM(d){return typeof d.constructor=="function"&&!Ef(d)?nu(vm(d)):{}}function gH(d,g,k){var j=d.constructor;switch(g){case Ke:return $b(d);case Z:case pe:return new j(+d);case Ye:return JV(d,k);case Fe:case mt:case Zt:case Pt:case Ve:case ht:case Be:case Xe:case vt:return OM(d,k);case xe:return new j;case ke:case we:return new j(d);case ie:return eH(d);case ue:return new j;case Se:return tH(d)}}function vH(d,g){var k=g.length;if(!k)return d;var j=k-1;return g[j]=(k>1?"& ":"")+g[j],g=g.join(k>2?", ":" "),d.replace(ar,`{
|
|
301
|
-
/* [wrapped with `+g+`] */
|
|
302
|
-
`)}function yH(d){return Mt(d)||Za(d)||!!(nM&&d&&d[nM])}function Zi(d,g){var k=typeof d;return g=g==null?L:g,!!g&&(k=="number"||k!="symbol"&&Nn.test(d))&&d>-1&&d%1==0&&d<g}function no(d,g,k){if(!Bn(k))return!1;var j=typeof g;return(j=="number"?go(k)&&Zi(g,k.length):j=="string"&&g in k)?Gs(k[g],d):!1}function Bb(d,g){if(Mt(d))return!1;var k=typeof d;return k=="number"||k=="symbol"||k=="boolean"||d==null||Fo(d)?!0:cs.test(d)||!Rl.test(d)||g!=null&&d in yn(g)}function bH(d){var g=typeof d;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?d!=="__proto__":d===null}function jb(d){var g=Lm(d),k=G[g];if(typeof k!="function"||!(g in Ht.prototype))return!1;if(d===k)return!0;var j=Lb(k);return!!j&&d===j[0]}function wH(d){return!!ZI&&ZI in d}var CH=fm?Ji:rw;function Ef(d){var g=d&&d.constructor,k=typeof g=="function"&&g.prototype||Jc;return d===k}function ZM(d){return d===d&&!Bn(d)}function JM(d,g){return function(k){return k==null?!1:k[d]===g&&(g!==n||d in yn(k))}}function xH(d){var g=Vm(d,function(j){return k.size===c&&k.clear(),j}),k=g.cache;return g}function SH(d,g){var k=d[1],j=g[1],U=k|j,q=U<(C|w|I),ee=j==I&&k==x||j==I&&k==R&&d[7].length<=g[8]||j==(I|R)&&g[7].length<=g[8]&&k==x;if(!(q||ee))return d;j&C&&(d[2]=g[2],U|=k&C?0:b);var le=g[3];if(le){var ge=d[3];d[3]=ge?AM(ge,le,g[4]):le,d[4]=ge?Al(d[3],f):g[4]}return le=g[5],le&&(ge=d[5],d[5]=ge?LM(ge,le,g[6]):le,d[6]=ge?Al(d[5],f):g[6]),le=g[7],le&&(d[7]=le),j&I&&(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 PH(d){var g=[];if(d!=null)for(var k in yn(d))g.push(k);return g}function EH(d){return hm.call(d)}function eT(d,g,k){return g=fr(g===n?d.length-1:g,0),function(){for(var j=arguments,U=-1,q=fr(j.length-g,0),ee=Ee(q);++U<q;)ee[U]=j[g+U];U=-1;for(var le=Ee(g+1);++U<g;)le[U]=j[U];return le[g]=k(ee),Do(d,this,le)}}function tT(d,g){return g.length<2?d:Ya(d,gs(g,0,-1))}function kH(d,g){for(var k=d.length,j=Br(g.length,k),U=mo(d);j--;){var q=g[j];d[j]=Zi(q,k)?U[q]:n}return d}function zb(d,g){if(!(g==="constructor"&&typeof d[g]=="function")&&g!="__proto__")return d[g]}var nT=oT(EM),kf=zz||function(d,g){return Tr.setTimeout(d,g)},Vb=oT(YV);function rT(d,g,k){var j=g+"";return Vb(d,vH(j,IH(hH(j),k)))}function oT(d){var g=0,k=0;return function(){var j=Wz(),U=N-(j-k);if(k=j,U>0){if(++g>=z)return arguments[0]}else g=0;return d.apply(n,arguments)}}function Nm(d,g){var k=-1,j=d.length,U=j-1;for(g=g===n?j:g;++k<g;){var q=Pb(k,U),ee=d[q];d[q]=d[k],d[k]=ee}return d.length=g,d}var sT=xH(function(d){var g=[];return d.charCodeAt(0)===46&&g.push(""),d.replace(_n,function(k,j,U,q){g.push(U?q.replace(Hs,"$1"):j||k)}),g});function bi(d){if(typeof d=="string"||Fo(d))return d;var g=d+"";return g=="0"&&1/d==-V?"-0":g}function Xa(d){if(d!=null){try{return pm.call(d)}catch(g){}try{return d+""}catch(g){}}return""}function IH(d,g){return fs(Q,function(k){var j="_."+k[0];g&k[1]&&!am(d,j)&&d.push(j)}),d.sort()}function iT(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 MH(d,g,k){(k?no(d,g,k):g===n)?g=1:g=fr(Ot(g),0);var j=d==null?0:d.length;if(!j||g<1)return[];for(var U=0,q=0,ee=Ee(wm(j/g));U<j;)ee[q++]=gs(d,U,U+=g);return ee}function TH(d){for(var g=-1,k=d==null?0:d.length,j=0,U=[];++g<k;){var q=d[g];q&&(U[j++]=q)}return U}function _H(){var d=arguments.length;if(!d)return[];for(var g=Ee(d-1),k=arguments[0],j=d;j--;)g[j-1]=arguments[j];return Dl(Mt(k)?mo(k):[k],_r(g,1))}var $H=Nt(function(d,g){return Jn(d)?wf(d,_r(g,1,Jn,!0)):[]}),RH=Nt(function(d,g){var k=vs(g);return Jn(k)&&(k=n),Jn(d)?wf(d,_r(g,1,Jn,!0),yt(k,2)):[]}),OH=Nt(function(d,g){var k=vs(g);return Jn(k)&&(k=n),Jn(d)?wf(d,_r(g,1,Jn,!0),n,k):[]});function DH(d,g,k){var j=d==null?0:d.length;return j?(g=k||g===n?1:Ot(g),gs(d,g<0?0:g,j)):[]}function AH(d,g,k){var j=d==null?0:d.length;return j?(g=k||g===n?1:Ot(g),g=j-g,gs(d,0,g<0?0:g)):[]}function LH(d,g){return d&&d.length?_m(d,yt(g,3),!0,!0):[]}function FH(d,g){return d&&d.length?_m(d,yt(g,3),!0):[]}function NH(d,g,k,j){var U=d==null?0:d.length;return U?(k&&typeof k!="number"&&no(d,g,k)&&(k=0,j=U),_V(d,g,k,j)):[]}function lT(d,g,k){var j=d==null?0:d.length;if(!j)return-1;var U=k==null?0:Ot(k);return U<0&&(U=fr(j+U,0)),cm(d,yt(g,3),U)}function aT(d,g,k){var j=d==null?0:d.length;if(!j)return-1;var U=j-1;return k!==n&&(U=Ot(k),U=k<0?fr(j+U,0):Br(U,j-1)),cm(d,yt(g,3),U,!0)}function cT(d){var g=d==null?0:d.length;return g?_r(d,1):[]}function BH(d){var g=d==null?0:d.length;return g?_r(d,V):[]}function jH(d,g){var k=d==null?0:d.length;return k?(g=g===n?1:Ot(g),_r(d,g)):[]}function zH(d){for(var g=-1,k=d==null?0:d.length,j={};++g<k;){var U=d[g];j[U[0]]=U[1]}return j}function uT(d){return d&&d.length?d[0]:n}function VH(d,g,k){var j=d==null?0:d.length;if(!j)return-1;var U=k==null?0:Ot(k);return U<0&&(U=fr(j+U,0)),Yc(d,g,U)}function HH(d){var g=d==null?0:d.length;return g?gs(d,0,-1):[]}var UH=Nt(function(d){var g=Rn(d,Tb);return g.length&&g[0]===d[0]?bb(g):[]}),WH=Nt(function(d){var g=vs(d),k=Rn(d,Tb);return g===vs(k)?g=n:k.pop(),k.length&&k[0]===d[0]?bb(k,yt(g,2)):[]}),GH=Nt(function(d){var g=vs(d),k=Rn(d,Tb);return g=typeof g=="function"?g:n,g&&k.pop(),k.length&&k[0]===d[0]?bb(k,n,g):[]});function KH(d,g){return d==null?"":Hz.call(d,g)}function vs(d){var g=d==null?0:d.length;return g?d[g-1]:n}function qH(d,g,k){var j=d==null?0:d.length;if(!j)return-1;var U=j;return k!==n&&(U=Ot(k),U=U<0?fr(j+U,0):Br(U,j-1)),g===g?Iz(d,g,U):cm(d,UI,U,!0)}function YH(d,g){return d&&d.length?CM(d,Ot(g)):n}var QH=Nt(dT);function dT(d,g){return d&&d.length&&g&&g.length?Sb(d,g):d}function XH(d,g,k){return d&&d.length&&g&&g.length?Sb(d,g,yt(k,2)):d}function ZH(d,g,k){return d&&d.length&&g&&g.length?Sb(d,g,n,k):d}var JH=Xi(function(d,g){var k=d==null?0:d.length,j=mb(d,g);return PM(d,Rn(g,function(U){return Zi(U,k)?+U:U}).sort(DM)),j});function e9(d,g){var k=[];if(!(d&&d.length))return k;var j=-1,U=[],q=d.length;for(g=yt(g,3);++j<q;){var ee=d[j];g(ee,j,d)&&(k.push(ee),U.push(j))}return PM(d,U),k}function Hb(d){return d==null?d:Kz.call(d)}function t9(d,g,k){var j=d==null?0:d.length;return j?(k&&typeof k!="number"&&no(d,g,k)?(g=0,k=j):(g=g==null?0:Ot(g),k=k===n?j:Ot(k)),gs(d,g,k)):[]}function n9(d,g){return Tm(d,g)}function r9(d,g,k){return kb(d,g,yt(k,2))}function o9(d,g){var k=d==null?0:d.length;if(k){var j=Tm(d,g);if(j<k&&Gs(d[j],g))return j}return-1}function s9(d,g){return Tm(d,g,!0)}function i9(d,g,k){return kb(d,g,yt(k,2),!0)}function l9(d,g){var k=d==null?0:d.length;if(k){var j=Tm(d,g,!0)-1;if(Gs(d[j],g))return j}return-1}function a9(d){return d&&d.length?kM(d):[]}function c9(d,g){return d&&d.length?kM(d,yt(g,2)):[]}function u9(d){var g=d==null?0:d.length;return g?gs(d,1,g):[]}function d9(d,g,k){return d&&d.length?(g=k||g===n?1:Ot(g),gs(d,0,g<0?0:g)):[]}function f9(d,g,k){var j=d==null?0:d.length;return j?(g=k||g===n?1:Ot(g),g=j-g,gs(d,g<0?0:g,j)):[]}function p9(d,g){return d&&d.length?_m(d,yt(g,3),!1,!0):[]}function h9(d,g){return d&&d.length?_m(d,yt(g,3)):[]}var m9=Nt(function(d){return Nl(_r(d,1,Jn,!0))}),g9=Nt(function(d){var g=vs(d);return Jn(g)&&(g=n),Nl(_r(d,1,Jn,!0),yt(g,2))}),v9=Nt(function(d){var g=vs(d);return g=typeof g=="function"?g:n,Nl(_r(d,1,Jn,!0),n,g)});function y9(d){return d&&d.length?Nl(d):[]}function b9(d,g){return d&&d.length?Nl(d,yt(g,2)):[]}function w9(d,g){return g=typeof g=="function"?g:n,d&&d.length?Nl(d,n,g):[]}function Ub(d){if(!(d&&d.length))return[];var g=0;return d=Ol(d,function(k){if(Jn(k))return g=fr(k.length,g),!0}),lb(g,function(k){return Rn(d,ob(k))})}function fT(d,g){if(!(d&&d.length))return[];var k=Ub(d);return g==null?k:Rn(k,function(j){return Do(g,n,j)})}var C9=Nt(function(d,g){return Jn(d)?wf(d,g):[]}),x9=Nt(function(d){return Mb(Ol(d,Jn))}),S9=Nt(function(d){var g=vs(d);return Jn(g)&&(g=n),Mb(Ol(d,Jn),yt(g,2))}),P9=Nt(function(d){var g=vs(d);return g=typeof g=="function"?g:n,Mb(Ol(d,Jn),n,g)}),E9=Nt(Ub);function k9(d,g){return _M(d||[],g||[],bf)}function I9(d,g){return _M(d||[],g||[],Sf)}var M9=Nt(function(d){var g=d.length,k=g>1?d[g-1]:n;return k=typeof k=="function"?(d.pop(),k):n,fT(d,k)});function pT(d){var g=G(d);return g.__chain__=!0,g}function T9(d,g){return g(d),d}function Bm(d,g){return g(d)}var _9=Xi(function(d){var g=d.length,k=g?d[0]:0,j=this.__wrapped__,U=function(q){return mb(q,d)};return g>1||this.__actions__.length||!(j instanceof Ht)||!Zi(k)?this.thru(U):(j=j.slice(k,+k+(g?1:0)),j.__actions__.push({func:Bm,args:[U],thisArg:n}),new hs(j,this.__chain__).thru(function(q){return g&&!q.length&&q.push(n),q}))});function $9(){return pT(this)}function R9(){return new hs(this.value(),this.__chain__)}function O9(){this.__values__===n&&(this.__values__=IT(this.value()));var d=this.__index__>=this.__values__.length,g=d?n:this.__values__[this.__index__++];return{done:d,value:g}}function D9(){return this}function A9(d){for(var g,k=this;k instanceof Pm;){var j=iT(k);j.__index__=0,j.__values__=n,g?U.__wrapped__=j:g=j;var U=j;k=k.__wrapped__}return U.__wrapped__=d,g}function L9(){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:Bm,args:[Hb],thisArg:n}),new hs(g,this.__chain__)}return this.thru(Hb)}function F9(){return TM(this.__wrapped__,this.__actions__)}var N9=$m(function(d,g,k){cn.call(d,k)?++d[k]:Yi(d,k,1)});function B9(d,g,k){var j=Mt(d)?VI:TV;return k&&no(d,g,k)&&(g=n),j(d,yt(g,3))}function j9(d,g){var k=Mt(d)?Ol:fM;return k(d,yt(g,3))}var z9=jM(lT),V9=jM(aT);function H9(d,g){return _r(jm(d,g),1)}function U9(d,g){return _r(jm(d,g),V)}function W9(d,g,k){return k=k===n?1:Ot(k),_r(jm(d,g),k)}function hT(d,g){var k=Mt(d)?fs:Fl;return k(d,yt(g,3))}function mT(d,g){var k=Mt(d)?uz:dM;return k(d,yt(g,3))}var G9=$m(function(d,g,k){cn.call(d,k)?d[k].push(g):Yi(d,k,[g])});function K9(d,g,k,j){d=go(d)?d:lu(d),k=k&&!j?Ot(k):0;var U=d.length;return k<0&&(k=fr(U+k,0)),Wm(d)?k<=U&&d.indexOf(g,k)>-1:!!U&&Yc(d,g,k)>-1}var q9=Nt(function(d,g,k){var j=-1,U=typeof g=="function",q=go(d)?Ee(d.length):[];return Fl(d,function(ee){q[++j]=U?Do(g,ee,k):Cf(ee,g,k)}),q}),Y9=$m(function(d,g,k){Yi(d,k,g)});function jm(d,g){var k=Mt(d)?Rn:yM;return k(d,yt(g,3))}function Q9(d,g,k,j){return d==null?[]:(Mt(g)||(g=g==null?[]:[g]),k=j?n:k,Mt(k)||(k=k==null?[]:[k]),xM(d,g,k))}var X9=$m(function(d,g,k){d[k?0:1].push(g)},function(){return[[],[]]});function Z9(d,g,k){var j=Mt(d)?nb:GI,U=arguments.length<3;return j(d,yt(g,4),k,U,Fl)}function J9(d,g,k){var j=Mt(d)?dz:GI,U=arguments.length<3;return j(d,yt(g,4),k,U,dM)}function e8(d,g){var k=Mt(d)?Ol:fM;return k(d,Hm(yt(g,3)))}function t8(d){var g=Mt(d)?lM:KV;return g(d)}function n8(d,g,k){(k?no(d,g,k):g===n)?g=1:g=Ot(g);var j=Mt(d)?PV:qV;return j(d,g)}function r8(d){var g=Mt(d)?EV:QV;return g(d)}function o8(d){if(d==null)return 0;if(go(d))return Wm(d)?Xc(d):d.length;var g=jr(d);return g==xe||g==ue?d.size:Cb(d).length}function s8(d,g,k){var j=Mt(d)?rb:XV;return k&&no(d,g,k)&&(g=n),j(d,yt(g,3))}var i8=Nt(function(d,g){if(d==null)return[];var k=g.length;return k>1&&no(d,g[0],g[1])?g=[]:k>2&&no(g[0],g[1],g[2])&&(g=[g[0]]),xM(d,_r(g,1),[])}),zm=jz||function(){return Tr.Date.now()};function l8(d,g){if(typeof g!="function")throw new ps(i);return d=Ot(d),function(){if(--d<1)return g.apply(this,arguments)}}function gT(d,g,k){return g=k?n:g,g=d&&g==null?d.length:g,Qi(d,I,n,n,n,n,g)}function vT(d,g){var k;if(typeof g!="function")throw new ps(i);return d=Ot(d),function(){return--d>0&&(k=g.apply(this,arguments)),d<=1&&(g=n),k}}var Wb=Nt(function(d,g,k){var j=C;if(k.length){var U=Al(k,su(Wb));j|=M}return Qi(d,j,g,k,U)}),yT=Nt(function(d,g,k){var j=C|w;if(k.length){var U=Al(k,su(yT));j|=M}return Qi(g,j,d,k,U)});function bT(d,g,k){g=k?n:g;var j=Qi(d,x,n,n,n,n,n,g);return j.placeholder=bT.placeholder,j}function wT(d,g,k){g=k?n:g;var j=Qi(d,P,n,n,n,n,n,g);return j.placeholder=wT.placeholder,j}function CT(d,g,k){var j,U,q,ee,le,ge,De=0,Le=!1,je=!1,nt=!0;if(typeof d!="function")throw new ps(i);g=ys(g)||0,Bn(k)&&(Le=!!k.leading,je="maxWait"in k,q=je?fr(ys(k.maxWait)||0,g):q,nt="trailing"in k?!!k.trailing:nt);function pt(er){var Ks=j,tl=U;return j=U=n,De=er,ee=d.apply(tl,Ks),ee}function Ct(er){return De=er,le=kf(Bt,g),Le?pt(er):ee}function Dt(er){var Ks=er-ge,tl=er-De,jT=g-Ks;return je?Br(jT,q-tl):jT}function xt(er){var Ks=er-ge,tl=er-De;return ge===n||Ks>=g||Ks<0||je&&tl>=q}function Bt(){var er=zm();if(xt(er))return Gt(er);le=kf(Bt,Dt(er))}function Gt(er){return le=n,nt&&j?pt(er):(j=U=n,ee)}function No(){le!==n&&$M(le),De=0,j=ge=U=le=n}function ro(){return le===n?ee:Gt(zm())}function Bo(){var er=zm(),Ks=xt(er);if(j=arguments,U=this,ge=er,Ks){if(le===n)return Ct(ge);if(je)return $M(le),le=kf(Bt,g),pt(ge)}return le===n&&(le=kf(Bt,g)),ee}return Bo.cancel=No,Bo.flush=ro,Bo}var a8=Nt(function(d,g){return uM(d,1,g)}),c8=Nt(function(d,g,k){return uM(d,ys(g)||0,k)});function u8(d){return Qi(d,O)}function Vm(d,g){if(typeof d!="function"||g!=null&&typeof g!="function")throw new ps(i);var k=function(){var j=arguments,U=g?g.apply(this,j):j[0],q=k.cache;if(q.has(U))return q.get(U);var ee=d.apply(this,j);return k.cache=q.set(U,ee)||q,ee};return k.cache=new(Vm.Cache||qi),k}Vm.Cache=qi;function Hm(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 d8(d){return vT(2,d)}var f8=ZV(function(d,g){g=g.length==1&&Mt(g[0])?Rn(g[0],Ao(yt())):Rn(_r(g,1),Ao(yt()));var k=g.length;return Nt(function(j){for(var U=-1,q=Br(j.length,k);++U<q;)j[U]=g[U].call(this,j[U]);return Do(d,this,j)})}),Gb=Nt(function(d,g){var k=Al(g,su(Gb));return Qi(d,M,n,g,k)}),xT=Nt(function(d,g){var k=Al(g,su(xT));return Qi(d,E,n,g,k)}),p8=Xi(function(d,g){return Qi(d,R,n,n,n,g)});function h8(d,g){if(typeof d!="function")throw new ps(i);return g=g===n?g:Ot(g),Nt(d,g)}function m8(d,g){if(typeof d!="function")throw new ps(i);return g=g==null?0:fr(Ot(g),0),Nt(function(k){var j=k[g],U=jl(k,0,g);return j&&Dl(U,j),Do(d,this,U)})}function g8(d,g,k){var j=!0,U=!0;if(typeof d!="function")throw new ps(i);return Bn(k)&&(j="leading"in k?!!k.leading:j,U="trailing"in k?!!k.trailing:U),CT(d,g,{leading:j,maxWait:g,trailing:U})}function v8(d){return gT(d,1)}function y8(d,g){return Gb(_b(g),d)}function b8(){if(!arguments.length)return[];var d=arguments[0];return Mt(d)?d:[d]}function w8(d){return ms(d,y)}function C8(d,g){return g=typeof g=="function"?g:n,ms(d,y,g)}function x8(d){return ms(d,p|y)}function S8(d,g){return g=typeof g=="function"?g:n,ms(d,p|y,g)}function P8(d,g){return g==null||cM(d,g,br(g))}function Gs(d,g){return d===g||d!==d&&g!==g}var E8=Am(yb),k8=Am(function(d,g){return d>=g}),Za=mM(function(){return arguments}())?mM:function(d){return Un(d)&&cn.call(d,"callee")&&!tM.call(d,"callee")},Mt=Ee.isArray,I8=LI?Ao(LI):AV;function go(d){return d!=null&&Um(d.length)&&!Ji(d)}function Jn(d){return Un(d)&&go(d)}function M8(d){return d===!0||d===!1||Un(d)&&to(d)==Z}var zl=Vz||rw,T8=FI?Ao(FI):LV;function _8(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)||iu(d)||Za(d)))return!d.length;var g=jr(d);if(g==xe||g==ue)return!d.size;if(Ef(d))return!Cb(d).length;for(var k in d)if(cn.call(d,k))return!1;return!0}function R8(d,g){return xf(d,g)}function O8(d,g,k){k=typeof k=="function"?k:n;var j=k?k(d,g):n;return j===n?xf(d,g,n,k):!!j}function Kb(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 D8(d){return typeof d=="number"&&rM(d)}function Ji(d){if(!Bn(d))return!1;var g=to(d);return g==me||g==ce||g==se||g==Re}function ST(d){return typeof d=="number"&&d==Ot(d)}function Um(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=L}function Bn(d){var g=typeof d;return d!=null&&(g=="object"||g=="function")}function Un(d){return d!=null&&typeof d=="object"}var PT=NI?Ao(NI):NV;function A8(d,g){return d===g||wb(d,g,Fb(g))}function L8(d,g,k){return k=typeof k=="function"?k:n,wb(d,g,Fb(g),k)}function F8(d){return ET(d)&&d!=+d}function N8(d){if(CH(d))throw new It(s);return gM(d)}function B8(d){return d===null}function j8(d){return d==null}function ET(d){return typeof d=="number"||Un(d)&&to(d)==ke}function If(d){if(!Un(d)||to(d)!=Ie)return!1;var g=vm(d);if(g===null)return!0;var k=cn.call(g,"constructor")&&g.constructor;return typeof k=="function"&&k instanceof k&&pm.call(k)==Lz}var qb=BI?Ao(BI):BV;function z8(d){return ST(d)&&d>=-L&&d<=L}var kT=jI?Ao(jI):jV;function Wm(d){return typeof d=="string"||!Mt(d)&&Un(d)&&to(d)==we}function Fo(d){return typeof d=="symbol"||Un(d)&&to(d)==Se}var iu=zI?Ao(zI):zV;function V8(d){return d===n}function H8(d){return Un(d)&&jr(d)==Oe}function U8(d){return Un(d)&&to(d)==Ne}var W8=Am(xb),G8=Am(function(d,g){return d<=g});function IT(d){if(!d)return[];if(go(d))return Wm(d)?Us(d):mo(d);if(hf&&d[hf])return Pz(d[hf]());var g=jr(d),k=g==xe?cb:g==ue?um:lu;return k(d)}function el(d){if(!d)return d===0?d:0;if(d=ys(d),d===V||d===-V){var g=d<0?-1:1;return g*B}return d===d?d:0}function Ot(d){var g=el(d),k=g%1;return g===g?k?g-k:g:0}function MT(d){return d?qa(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=KI(d);var k=ft.test(d);return k||$n.test(d)?lz(d.slice(2),k?2:8):Qe.test(d)?H:+d}function TT(d){return yi(d,vo(d))}function K8(d){return d?qa(Ot(d),-L,L):d===0?d:0}function sn(d){return d==null?"":Lo(d)}var q8=ru(function(d,g){if(Ef(g)||go(g)){yi(g,br(g),d);return}for(var k in g)cn.call(g,k)&&bf(d,k,g[k])}),_T=ru(function(d,g){yi(g,vo(g),d)}),Gm=ru(function(d,g,k,j){yi(g,vo(g),d,j)}),Y8=ru(function(d,g,k,j){yi(g,br(g),d,j)}),Q8=Xi(mb);function X8(d,g){var k=nu(d);return g==null?k:aM(k,g)}var Z8=Nt(function(d,g){d=yn(d);var k=-1,j=g.length,U=j>2?g[2]:n;for(U&&no(g[0],g[1],U)&&(j=1);++k<j;)for(var q=g[k],ee=vo(q),le=-1,ge=ee.length;++le<ge;){var De=ee[le],Le=d[De];(Le===n||Gs(Le,Jc[De])&&!cn.call(d,De))&&(d[De]=q[De])}return d}),J8=Nt(function(d){return d.push(n,KM),Do($T,n,d)});function e7(d,g){return HI(d,yt(g,3),vi)}function t7(d,g){return HI(d,yt(g,3),vb)}function n7(d,g){return d==null?d:gb(d,yt(g,3),vo)}function r7(d,g){return d==null?d:pM(d,yt(g,3),vo)}function o7(d,g){return d&&vi(d,yt(g,3))}function s7(d,g){return d&&vb(d,yt(g,3))}function i7(d){return d==null?[]:Im(d,br(d))}function l7(d){return d==null?[]:Im(d,vo(d))}function Yb(d,g,k){var j=d==null?n:Ya(d,g);return j===n?k:j}function a7(d,g){return d!=null&&QM(d,g,$V)}function Qb(d,g){return d!=null&&QM(d,g,RV)}var c7=VM(function(d,g,k){g!=null&&typeof g.toString!="function"&&(g=hm.call(g)),d[g]=k},Zb(yo)),u7=VM(function(d,g,k){g!=null&&typeof g.toString!="function"&&(g=hm.call(g)),cn.call(d,g)?d[g].push(k):d[g]=[k]},yt),d7=Nt(Cf);function br(d){return go(d)?iM(d):Cb(d)}function vo(d){return go(d)?iM(d,!0):VV(d)}function f7(d,g){var k={};return g=yt(g,3),vi(d,function(j,U,q){Yi(k,g(j,U,q),j)}),k}function p7(d,g){var k={};return g=yt(g,3),vi(d,function(j,U,q){Yi(k,U,g(j,U,q))}),k}var h7=ru(function(d,g,k){Mm(d,g,k)}),$T=ru(function(d,g,k,j){Mm(d,g,k,j)}),m7=Xi(function(d,g){var k={};if(d==null)return k;var j=!1;g=Rn(g,function(q){return q=Bl(q,d),j||(j=q.length>1),q}),yi(d,Ab(d),k),j&&(k=ms(k,p|h|y,cH));for(var U=g.length;U--;)Ib(k,g[U]);return k});function g7(d,g){return RT(d,Hm(yt(g)))}var v7=Xi(function(d,g){return d==null?{}:UV(d,g)});function RT(d,g){if(d==null)return{};var k=Rn(Ab(d),function(j){return[j]});return g=yt(g),SM(d,k,function(j,U){return g(j,U[0])})}function y7(d,g,k){g=Bl(g,d);var j=-1,U=g.length;for(U||(U=1,d=n);++j<U;){var q=d==null?n:d[bi(g[j])];q===n&&(j=U,q=k),d=Ji(q)?q.call(d):q}return d}function b7(d,g,k){return d==null?d:Sf(d,g,k)}function w7(d,g,k,j){return j=typeof j=="function"?j:n,d==null?d:Sf(d,g,k,j)}var OT=WM(br),DT=WM(vo);function C7(d,g,k){var j=Mt(d),U=j||zl(d)||iu(d);if(g=yt(g,4),k==null){var q=d&&d.constructor;U?k=j?new q:[]:Bn(d)?k=Ji(q)?nu(vm(d)):{}:k={}}return(U?fs:vi)(d,function(ee,le,ge){return g(k,ee,le,ge)}),k}function x7(d,g){return d==null?!0:Ib(d,g)}function S7(d,g,k){return d==null?d:MM(d,g,_b(k))}function P7(d,g,k,j){return j=typeof j=="function"?j:n,d==null?d:MM(d,g,_b(k),j)}function lu(d){return d==null?[]:ab(d,br(d))}function E7(d){return d==null?[]:ab(d,vo(d))}function k7(d,g,k){return k===n&&(k=g,g=n),k!==n&&(k=ys(k),k=k===k?k:0),g!==n&&(g=ys(g),g=g===g?g:0),qa(ys(d),g,k)}function I7(d,g,k){return g=el(g),k===n?(k=g,g=0):k=el(k),d=ys(d),OV(d,g,k)}function M7(d,g,k){if(k&&typeof k!="boolean"&&no(d,g,k)&&(g=k=n),k===n&&(typeof g=="boolean"?(k=g,g=n):typeof d=="boolean"&&(k=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 j=d;d=g,g=j}if(k||d%1||g%1){var U=oM();return Br(d+U*(g-d+iz("1e-"+((U+"").length-1))),g)}return Pb(d,g)}var T7=ou(function(d,g,k){return g=g.toLowerCase(),d+(k?AT(g):g)});function AT(d){return Xb(sn(d).toLowerCase())}function LT(d){return d=sn(d),d&&d.replace(St,bz).replace(Qj,"")}function _7(d,g,k){d=sn(d),g=Lo(g);var j=d.length;k=k===n?j:qa(Ot(k),0,j);var U=k;return k-=g.length,k>=0&&d.slice(k,U)==g}function $7(d){return d=sn(d),d&>.test(d)?d.replace(Pn,wz):d}function R7(d){return d=sn(d),d&&yr.test(d)?d.replace(an,"\\$&"):d}var O7=ou(function(d,g,k){return d+(k?"-":"")+g.toLowerCase()}),D7=ou(function(d,g,k){return d+(k?" ":"")+g.toLowerCase()}),A7=BM("toLowerCase");function L7(d,g,k){d=sn(d),g=Ot(g);var j=g?Xc(d):0;if(!g||j>=g)return d;var U=(g-j)/2;return Dm(Cm(U),k)+d+Dm(wm(U),k)}function F7(d,g,k){d=sn(d),g=Ot(g);var j=g?Xc(d):0;return g&&j<g?d+Dm(g-j,k):d}function N7(d,g,k){d=sn(d),g=Ot(g);var j=g?Xc(d):0;return g&&j<g?Dm(g-j,k)+d:d}function B7(d,g,k){return k||g==null?g=0:g&&(g=+g),Gz(sn(d).replace(ho,""),g||0)}function j7(d,g,k){return(k?no(d,g,k):g===n)?g=1:g=Ot(g),Eb(sn(d),g)}function z7(){var d=arguments,g=sn(d[0]);return d.length<3?g:g.replace(d[1],d[2])}var V7=ou(function(d,g,k){return d+(k?"_":"")+g.toLowerCase()});function H7(d,g,k){return k&&typeof k!="number"&&no(d,g,k)&&(g=k=n),k=k===n?K:k>>>0,k?(d=sn(d),d&&(typeof g=="string"||g!=null&&!qb(g))&&(g=Lo(g),!g&&Qc(d))?jl(Us(d),0,k):d.split(g,k)):[]}var U7=ou(function(d,g,k){return d+(k?" ":"")+Xb(g)});function W7(d,g,k){return d=sn(d),k=k==null?0:qa(Ot(k),0,d.length),g=Lo(g),d.slice(k,k+g.length)==g}function G7(d,g,k){var j=G.templateSettings;k&&no(d,g,k)&&(g=n),d=sn(d),g=Gm({},g,j,GM);var U=Gm({},g.imports,j.imports,GM),q=br(U),ee=ab(U,q),le,ge,De=0,Le=g.interpolate||Zn,je="__p += '",nt=ub((g.escape||Zn).source+"|"+Le.source+"|"+(Le===lr?_e:Zn).source+"|"+(g.evaluate||Zn).source+"|$","g"),pt="//# sourceURL="+(cn.call(g,"sourceURL")?(g.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tz+"]")+`
|
|
303
|
-
`;d.replace(nt,function(xt,Bt,Gt,No,ro,Bo){return Gt||(Gt=No),je+=d.slice(De,Bo).replace(Rj,Cz),Bt&&(le=!0,je+=`' +
|
|
304
|
-
__e(`+Bt+`) +
|
|
305
|
-
'`),ro&&(ge=!0,je+=`';
|
|
306
|
-
`+ro+`;
|
|
307
|
-
__p += '`),Gt&&(je+=`' +
|
|
308
|
-
((__t = (`+Gt+`)) == null ? '' : __t) +
|
|
309
|
-
'`),De=Bo+xt.length,xt}),je+=`';
|
|
310
|
-
`;var Ct=cn.call(g,"variable")&&g.variable;if(!Ct)je=`with (obj) {
|
|
311
|
-
`+je+`
|
|
312
|
-
}
|
|
313
|
-
`;else if(Nr.test(Ct))throw new It(l);je=(ge?je.replace(wt,""):je).replace(_t,"$1").replace(qt,"$1;"),je="function("+(Ct||"obj")+`) {
|
|
314
|
-
`+(Ct?"":`obj || (obj = {});
|
|
315
|
-
`)+"var __t, __p = ''"+(le?", __e = _.escape":"")+(ge?`, __j = Array.prototype.join;
|
|
316
|
-
function print() { __p += __j.call(arguments, '') }
|
|
317
|
-
`:`;
|
|
318
|
-
`)+je+`return __p
|
|
319
|
-
}`;var Dt=NT(function(){return en(q,pt+"return "+je).apply(n,ee)});if(Dt.source=je,Kb(Dt))throw Dt;return Dt}function K7(d){return sn(d).toLowerCase()}function q7(d){return sn(d).toUpperCase()}function Y7(d,g,k){if(d=sn(d),d&&(k||g===n))return KI(d);if(!d||!(g=Lo(g)))return d;var j=Us(d),U=Us(g),q=qI(j,U),ee=YI(j,U)+1;return jl(j,q,ee).join("")}function Q7(d,g,k){if(d=sn(d),d&&(k||g===n))return d.slice(0,XI(d)+1);if(!d||!(g=Lo(g)))return d;var j=Us(d),U=YI(j,Us(g))+1;return jl(j,0,U).join("")}function X7(d,g,k){if(d=sn(d),d&&(k||g===n))return d.replace(ho,"");if(!d||!(g=Lo(g)))return d;var j=Us(d),U=qI(j,Us(g));return jl(j,U).join("")}function Z7(d,g){var k=T,j=A;if(Bn(g)){var U="separator"in g?g.separator:U;k="length"in g?Ot(g.length):k,j="omission"in g?Lo(g.omission):j}d=sn(d);var q=d.length;if(Qc(d)){var ee=Us(d);q=ee.length}if(k>=q)return d;var le=k-Xc(j);if(le<1)return j;var ge=ee?jl(ee,0,le).join(""):d.slice(0,le);if(U===n)return ge+j;if(ee&&(le+=ge.length-le),qb(U)){if(d.slice(le).search(U)){var De,Le=ge;for(U.global||(U=ub(U.source,sn(Ce.exec(U))+"g")),U.lastIndex=0;De=U.exec(Le);)var je=De.index;ge=ge.slice(0,je===n?le:je)}}else if(d.indexOf(Lo(U),le)!=le){var nt=ge.lastIndexOf(U);nt>-1&&(ge=ge.slice(0,nt))}return ge+j}function J7(d){return d=sn(d),d&&bn.test(d)?d.replace(Qt,Mz):d}var eU=ou(function(d,g,k){return d+(k?" ":"")+g.toUpperCase()}),Xb=BM("toUpperCase");function FT(d,g,k){return d=sn(d),g=k?n:g,g===n?Sz(d)?$z(d):hz(d):d.match(g)||[]}var NT=Nt(function(d,g){try{return Do(d,n,g)}catch(k){return Kb(k)?k:new It(k)}}),tU=Xi(function(d,g){return fs(g,function(k){k=bi(k),Yi(d,k,Wb(d[k],d))}),d});function nU(d){var g=d==null?0:d.length,k=yt();return d=g?Rn(d,function(j){if(typeof j[1]!="function")throw new ps(i);return[k(j[0]),j[1]]}):[],Nt(function(j){for(var U=-1;++U<g;){var q=d[U];if(Do(q[0],this,j))return Do(q[1],this,j)}})}function rU(d){return MV(ms(d,p))}function Zb(d){return function(){return d}}function oU(d,g){return d==null||d!==d?g:d}var sU=zM(),iU=zM(!0);function yo(d){return d}function Jb(d){return vM(typeof d=="function"?d:ms(d,p))}function lU(d){return bM(ms(d,p))}function aU(d,g){return wM(d,ms(g,p))}var cU=Nt(function(d,g){return function(k){return Cf(k,d,g)}}),uU=Nt(function(d,g){return function(k){return Cf(d,k,g)}});function ew(d,g,k){var j=br(g),U=Im(g,j);k==null&&!(Bn(g)&&(U.length||!j.length))&&(k=g,g=d,d=this,U=Im(g,br(g)));var q=!(Bn(k)&&"chain"in k)||!!k.chain,ee=Ji(d);return fs(U,function(le){var ge=g[le];d[le]=ge,ee&&(d.prototype[le]=function(){var De=this.__chain__;if(q||De){var Le=d(this.__wrapped__),je=Le.__actions__=mo(this.__actions__);return je.push({func:ge,args:arguments,thisArg:d}),Le.__chain__=De,Le}return ge.apply(d,Dl([this.value()],arguments))})}),d}function dU(){return Tr._===this&&(Tr._=Fz),this}function tw(){}function fU(d){return d=Ot(d),Nt(function(g){return CM(g,d)})}var pU=Rb(Rn),hU=Rb(VI),mU=Rb(rb);function BT(d){return Bb(d)?ob(bi(d)):WV(d)}function gU(d){return function(g){return d==null?n:Ya(d,g)}}var vU=HM(),yU=HM(!0);function nw(){return[]}function rw(){return!1}function bU(){return{}}function wU(){return""}function CU(){return!0}function xU(d,g){if(d=Ot(d),d<1||d>L)return[];var k=K,j=Br(d,K);g=yt(g),d-=K;for(var U=lb(j,g);++k<d;)g(k);return U}function SU(d){return Mt(d)?Rn(d,bi):Fo(d)?[d]:mo(sT(sn(d)))}function PU(d){var g=++Az;return sn(d)+g}var EU=Om(function(d,g){return d+g},0),kU=Ob("ceil"),IU=Om(function(d,g){return d/g},1),MU=Ob("floor");function TU(d){return d&&d.length?km(d,yo,yb):n}function _U(d,g){return d&&d.length?km(d,yt(g,2),yb):n}function $U(d){return WI(d,yo)}function RU(d,g){return WI(d,yt(g,2))}function OU(d){return d&&d.length?km(d,yo,xb):n}function DU(d,g){return d&&d.length?km(d,yt(g,2),xb):n}var AU=Om(function(d,g){return d*g},1),LU=Ob("round"),FU=Om(function(d,g){return d-g},0);function NU(d){return d&&d.length?ib(d,yo):0}function BU(d,g){return d&&d.length?ib(d,yt(g,2)):0}return G.after=l8,G.ary=gT,G.assign=q8,G.assignIn=_T,G.assignInWith=Gm,G.assignWith=Y8,G.at=Q8,G.before=vT,G.bind=Wb,G.bindAll=tU,G.bindKey=yT,G.castArray=b8,G.chain=pT,G.chunk=MH,G.compact=TH,G.concat=_H,G.cond=nU,G.conforms=rU,G.constant=Zb,G.countBy=N9,G.create=X8,G.curry=bT,G.curryRight=wT,G.debounce=CT,G.defaults=Z8,G.defaultsDeep=J8,G.defer=a8,G.delay=c8,G.difference=$H,G.differenceBy=RH,G.differenceWith=OH,G.drop=DH,G.dropRight=AH,G.dropRightWhile=LH,G.dropWhile=FH,G.fill=NH,G.filter=j9,G.flatMap=H9,G.flatMapDeep=U9,G.flatMapDepth=W9,G.flatten=cT,G.flattenDeep=BH,G.flattenDepth=jH,G.flip=u8,G.flow=sU,G.flowRight=iU,G.fromPairs=zH,G.functions=i7,G.functionsIn=l7,G.groupBy=G9,G.initial=HH,G.intersection=UH,G.intersectionBy=WH,G.intersectionWith=GH,G.invert=c7,G.invertBy=u7,G.invokeMap=q9,G.iteratee=Jb,G.keyBy=Y9,G.keys=br,G.keysIn=vo,G.map=jm,G.mapKeys=f7,G.mapValues=p7,G.matches=lU,G.matchesProperty=aU,G.memoize=Vm,G.merge=h7,G.mergeWith=$T,G.method=cU,G.methodOf=uU,G.mixin=ew,G.negate=Hm,G.nthArg=fU,G.omit=m7,G.omitBy=g7,G.once=d8,G.orderBy=Q9,G.over=pU,G.overArgs=f8,G.overEvery=hU,G.overSome=mU,G.partial=Gb,G.partialRight=xT,G.partition=X9,G.pick=v7,G.pickBy=RT,G.property=BT,G.propertyOf=gU,G.pull=QH,G.pullAll=dT,G.pullAllBy=XH,G.pullAllWith=ZH,G.pullAt=JH,G.range=vU,G.rangeRight=yU,G.rearg=p8,G.reject=e8,G.remove=e9,G.rest=h8,G.reverse=Hb,G.sampleSize=n8,G.set=b7,G.setWith=w7,G.shuffle=r8,G.slice=t9,G.sortBy=i8,G.sortedUniq=a9,G.sortedUniqBy=c9,G.split=H7,G.spread=m8,G.tail=u9,G.take=d9,G.takeRight=f9,G.takeRightWhile=p9,G.takeWhile=h9,G.tap=T9,G.throttle=g8,G.thru=Bm,G.toArray=IT,G.toPairs=OT,G.toPairsIn=DT,G.toPath=SU,G.toPlainObject=TT,G.transform=C7,G.unary=v8,G.union=m9,G.unionBy=g9,G.unionWith=v9,G.uniq=y9,G.uniqBy=b9,G.uniqWith=w9,G.unset=x7,G.unzip=Ub,G.unzipWith=fT,G.update=S7,G.updateWith=P7,G.values=lu,G.valuesIn=E7,G.without=C9,G.words=FT,G.wrap=y8,G.xor=x9,G.xorBy=S9,G.xorWith=P9,G.zip=E9,G.zipObject=k9,G.zipObjectDeep=I9,G.zipWith=M9,G.entries=OT,G.entriesIn=DT,G.extend=_T,G.extendWith=Gm,ew(G,G),G.add=EU,G.attempt=NT,G.camelCase=T7,G.capitalize=AT,G.ceil=kU,G.clamp=k7,G.clone=w8,G.cloneDeep=x8,G.cloneDeepWith=S8,G.cloneWith=C8,G.conformsTo=P8,G.deburr=LT,G.defaultTo=oU,G.divide=IU,G.endsWith=_7,G.eq=Gs,G.escape=$7,G.escapeRegExp=R7,G.every=B9,G.find=z9,G.findIndex=lT,G.findKey=e7,G.findLast=V9,G.findLastIndex=aT,G.findLastKey=t7,G.floor=MU,G.forEach=hT,G.forEachRight=mT,G.forIn=n7,G.forInRight=r7,G.forOwn=o7,G.forOwnRight=s7,G.get=Yb,G.gt=E8,G.gte=k8,G.has=a7,G.hasIn=Qb,G.head=uT,G.identity=yo,G.includes=K9,G.indexOf=VH,G.inRange=I7,G.invoke=d7,G.isArguments=Za,G.isArray=Mt,G.isArrayBuffer=I8,G.isArrayLike=go,G.isArrayLikeObject=Jn,G.isBoolean=M8,G.isBuffer=zl,G.isDate=T8,G.isElement=_8,G.isEmpty=$8,G.isEqual=R8,G.isEqualWith=O8,G.isError=Kb,G.isFinite=D8,G.isFunction=Ji,G.isInteger=ST,G.isLength=Um,G.isMap=PT,G.isMatch=A8,G.isMatchWith=L8,G.isNaN=F8,G.isNative=N8,G.isNil=j8,G.isNull=B8,G.isNumber=ET,G.isObject=Bn,G.isObjectLike=Un,G.isPlainObject=If,G.isRegExp=qb,G.isSafeInteger=z8,G.isSet=kT,G.isString=Wm,G.isSymbol=Fo,G.isTypedArray=iu,G.isUndefined=V8,G.isWeakMap=H8,G.isWeakSet=U8,G.join=KH,G.kebabCase=O7,G.last=vs,G.lastIndexOf=qH,G.lowerCase=D7,G.lowerFirst=A7,G.lt=W8,G.lte=G8,G.max=TU,G.maxBy=_U,G.mean=$U,G.meanBy=RU,G.min=OU,G.minBy=DU,G.stubArray=nw,G.stubFalse=rw,G.stubObject=bU,G.stubString=wU,G.stubTrue=CU,G.multiply=AU,G.nth=YH,G.noConflict=dU,G.noop=tw,G.now=zm,G.pad=L7,G.padEnd=F7,G.padStart=N7,G.parseInt=B7,G.random=M7,G.reduce=Z9,G.reduceRight=J9,G.repeat=j7,G.replace=z7,G.result=y7,G.round=LU,G.runInContext=he,G.sample=t8,G.size=o8,G.snakeCase=V7,G.some=s8,G.sortedIndex=n9,G.sortedIndexBy=r9,G.sortedIndexOf=o9,G.sortedLastIndex=s9,G.sortedLastIndexBy=i9,G.sortedLastIndexOf=l9,G.startCase=U7,G.startsWith=W7,G.subtract=FU,G.sum=NU,G.sumBy=BU,G.template=G7,G.times=xU,G.toFinite=el,G.toInteger=Ot,G.toLength=MT,G.toLower=K7,G.toNumber=ys,G.toSafeInteger=K8,G.toString=sn,G.toUpper=q7,G.trim=Y7,G.trimEnd=Q7,G.trimStart=X7,G.truncate=Z7,G.unescape=J7,G.uniqueId=PU,G.upperCase=eU,G.upperFirst=Xb,G.each=hT,G.eachRight=mT,G.first=uT,ew(G,function(){var d={};return vi(G,function(g,k){cn.call(G.prototype,k)||(d[k]=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(k){k=k===n?1:fr(Ot(k),0);var j=this.__filtered__&&!g?new Ht(this):this.clone();return j.__filtered__?j.__takeCount__=Br(k,j.__takeCount__):j.__views__.push({size:Br(k,K),type:d+(j.__dir__<0?"Right":"")}),j},Ht.prototype[d+"Right"]=function(k){return this.reverse()[d](k).reverse()}}),fs(["filter","map","takeWhile"],function(d,g){var k=g+1,j=k==_||k==F;Ht.prototype[d]=function(U){var q=this.clone();return q.__iteratees__.push({iteratee:yt(U,3),type:k}),q.__filtered__=q.__filtered__||j,q}}),fs(["head","last"],function(d,g){var k="take"+(g?"Right":"");Ht.prototype[d]=function(){return this[k](1).value()[0]}}),fs(["initial","tail"],function(d,g){var k="drop"+(g?"":"Right");Ht.prototype[d]=function(){return this.__filtered__?new Ht(this):this[k](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=Nt(function(d,g){return typeof d=="function"?new Ht(this):this.map(function(k){return Cf(k,d,g)})}),Ht.prototype.reject=function(d){return this.filter(Hm(yt(d)))},Ht.prototype.slice=function(d,g){d=Ot(d);var k=this;return k.__filtered__&&(d>0||g<0)?new Ht(k):(d<0?k=k.takeRight(-d):d&&(k=k.drop(d)),g!==n&&(g=Ot(g),k=g<0?k.dropRight(-g):k.take(g-d)),k)},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 k=/^(?:filter|find|map|reject)|While$/.test(g),j=/^(?:head|last)$/.test(g),U=G[j?"take"+(g=="last"?"Right":""):g],q=j||/^find/.test(g);U&&(G.prototype[g]=function(){var ee=this.__wrapped__,le=j?[1]:arguments,ge=ee instanceof Ht,De=le[0],Le=ge||Mt(ee),je=function(Bt){var Gt=U.apply(G,Dl([Bt],le));return j&&nt?Gt[0]:Gt};Le&&k&&typeof De=="function"&&De.length!=1&&(ge=Le=!1);var nt=this.__chain__,pt=!!this.__actions__.length,Ct=q&&!nt,Dt=ge&&!pt;if(!q&&Le){ee=Dt?ee:new Ht(this);var xt=d.apply(ee,le);return xt.__actions__.push({func:Bm,args:[je],thisArg:n}),new hs(xt,nt)}return Ct&&Dt?d.apply(this,le):(xt=this.thru(je),Ct?j?xt.value()[0]:xt.value():xt)})}),fs(["pop","push","shift","sort","splice","unshift"],function(d){var g=dm[d],k=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",j=/^(?:pop|shift)$/.test(d);G.prototype[d]=function(){var U=arguments;if(j&&!this.__chain__){var q=this.value();return g.apply(Mt(q)?q:[],U)}return this[k](function(ee){return g.apply(Mt(ee)?ee:[],U)})}}),vi(Ht.prototype,function(d,g){var k=G[g];if(k){var j=k.name+"";cn.call(tu,j)||(tu[j]=[]),tu[j].push({name:g,func:k})}}),tu[Rm(n,w).name]=[{name:"wrapper",func:n}],Ht.prototype.clone=Jz,Ht.prototype.reverse=eV,Ht.prototype.value=tV,G.prototype.at=_9,G.prototype.chain=$9,G.prototype.commit=R9,G.prototype.next=O9,G.prototype.plant=A9,G.prototype.reverse=L9,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=F9,G.prototype.first=G.prototype.head,hf&&(G.prototype[hf]=D9),G},Zc=Rz();Ua?((Ua.exports=Zc)._=Zc,J0._=Zc):Tr._=Zc}).call(ln)})(Xv,Xv.exports);var Eue=Xv.exports;const Ze=pi(Eue),Hu="/~/api/",kue={loginSrp1:90,update:600,get_status:20},EN={};function Iue(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=kue[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()+Hu+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=Hh(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=H2())},[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()+Hu+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 Mue(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}}const TN=typeof window!="undefined"?u.useLayoutEffect:u.useEffect;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])}function D2(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 Tue(){const e=u.useRef(!1);return u.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),u.useCallback(()=>e.current,[])}function W1(){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=Tue(),[n,r]=u.useState(e),o=u.useCallback(s=>{t()&&r(s)},[t,r]);return[n,o,t]}function _ue(e){return e.filter(t=>t===0||t&&(!Array.isArray(t)||t.length))}function $ue(e,t){const n=[];for(const r of _ue(t))n.push(r,e);return n.splice(-1,1),fh(n)}function fh(e){return e.map((t,n)=>!t||typeof t=="string"?t:Array.isArray(t)?fh(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 Jg(e,t,{delay:n=0}={}){const r=Jg.worker2env||(Jg.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),ye({data:i},o)}function Rue(n){var r=n,{margin:e}=r,t=At(r,["margin"]);const o=u.useRef(),[s,i]=u.useState(),l=W1();return u.useEffect(()=>{const a=o.current;if(!a)return;const c=a.getBoundingClientRect(),f=document.documentElement,p=window.innerHeight||f.clientHeight;i(p-(c==null?void 0:c.top)-e)},[l]),u.createElement("div",ye({ref:o,style:{maxHeight:s,overflow:"auto"}},t))}function Oue({children:e}){return e?u.createElement("div",{className:"ariaOnly"},e):null}const Due=navigator.platform.match("Mac");function G1(e){return(e.ctrlKey||Due&&e.metaKey)&&e.key}const Aue=Symbol(),A2=Symbol(),Wf="a",ev="w";let Lue=(e,t)=>new Proxy(e,t);const Kx=Object.getPrototypeOf,qx=new WeakMap,RN=e=>e&&(qx.has(e)?qx.get(e):Kx(e)===Object.prototype||Kx(e)===Array.prototype),GR=e=>typeof e=="object"&&e!==null,Fue=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(Kx(e),t)},ON=e=>e[A2]||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,Fue(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===ev)C[ev]=!0;else{let w=C[v];w||(w=new Set,C[v]=w),w.add(m)}}},y={get:(v,m)=>m===A2?a:(h("k",m),DN(Reflect.get(v,m),f[Wf],f.c,f.t)),has:(v,m)=>m===Aue?(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(ev),Reflect.ownKeys(v))};return c&&(y.set=y.deleteProperty=()=>!1),[y,f]})(s,!!i),l[1].p=Lue(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(!GR(e)||!GR(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[ev]===!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})}},Nue=e=>RN(e)&&e[A2]||null,KR=(e,t=!0)=>{qx.set(e,t)};const qw=e=>typeof e=="object"&&e!==null,Jl=new WeakMap,ip=new WeakSet,Bue=(e=Object.is,t=(c,f)=>new Proxy(c,f),n=c=>qw(c)&&!ip.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 KR(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(ip.has(m))KR(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(!qw(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,T=++l[0])=>{p!==T&&(p=T,h.forEach(A=>A(O,T)))};let v=l[1];const m=(O=++l[1])=>(v!==O&&!h.size&&(v=O,w.forEach(([T])=>{const A=T[1](O);A>p&&(p=A)})),p),C=O=>(T,A)=>{const z=[...T];z[1]=[O,...z[1]],y(z,A)},w=new Map,b=(O,T)=>{if(h.size){const A=T[3](C(O));w.set(O,[T,A])}else w.set(O,[T])},x=O=>{var T;const A=w.get(O);A&&(w.delete(O),(T=A[1])==null||T.call(A))},P=O=>(h.add(O),h.size===1&&w.forEach(([A,z],N)=>{const _=A[3](C(N));w.set(N,[A,_])}),()=>{h.delete(O),h.size===0&&w.forEach(([A,z],N)=>{z&&(z(),w.set(N,[A]))})}),M=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),I=t(M,{deleteProperty(O,T){const A=Reflect.get(O,T);x(T);const z=Reflect.deleteProperty(O,T);return z&&y(["delete",[T],A]),z},set(O,T,A,z){const N=Reflect.has(O,T),_=Reflect.get(O,T,z);if(N&&(e(_,A)||i.has(A)&&e(_,i.get(A))))return!0;x(T),qw(A)&&(A=Nue(A)||A);let $=A;if(A instanceof Promise)A.then(F=>{A.status="fulfilled",A.value=F,y(["resolve",[T],F])}).catch(F=>{A.status="rejected",A.reason=F,y(["reject",[T],F])});else{!Jl.has(A)&&n(A)&&($=a(A));const F=!ip.has($)&&Jl.get($);F&&b(T,F)}return Reflect.set(O,T,$,z),y(["set",[T],A,_]),!0}});i.set(c,I);const R=[M,m,s,P];return Jl.set(I,R),Reflect.ownKeys(c).forEach(O=>{const T=Object.getOwnPropertyDescriptor(c,O);"value"in T&&(I[O]=c[O],delete T.value,delete T.writable),Object.defineProperty(M,O,T)}),I})=>[a,Jl,ip,e,t,n,r,o,s,i,l],[jue]=Bue();function L2(e={}){return jue(e)}function F2(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 qR(e,t){const n=Jl.get(e),[r,o,s]=n;return s(r,o(),t)}function zue(e){return ip.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 kd=u;function Vue(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Hue=typeof Object.is=="function"?Object.is:Vue,Uue=kd.useState,Wue=kd.useEffect,Gue=kd.useLayoutEffect,Kue=kd.useDebugValue;function que(e,t){var n=t(),r=Uue({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return Gue(function(){o.value=n,o.getSnapshot=t,Yw(o)&&s({inst:o})},[e,n,t]),Wue(function(){return Yw(o)&&s({inst:o}),e(function(){Yw(o)&&s({inst:o})})},[e]),Kue(n),n}function Yw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Hue(e,n)}catch(r){return!0}}function Yue(e,t){return t()}var Que=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?Yue:que;FN.useSyncExternalStore=kd.useSyncExternalStore!==void 0?kd.useSyncExternalStore:Que;LN.exports=FN;var Xue=LN.exports;const Zue=pi(Xue),{use:YR}=Ko,{useSyncExternalStore:Jue}=Zue;const ede=new WeakMap;function N2(e,t){const n=t==null?void 0:t.sync,r=u.useRef(),o=u.useRef();let s=!0;const i=Jue(u.useCallback(c=>{const f=F2(e,c,n);return c(),f},[e,n]),()=>{const c=qR(e,YR);try{if(!s&&r.current&&o.current&&!AN(r.current,c,o.current,new WeakMap))return r.current}catch(f){}return c},()=>qR(e,YR));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,ede)}const Id=L2([]),Yx={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]&&tde(document.activeElement,n)||(r[s].focus(),e.preventDefault())});function tde(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function nde(e){const t=N2(Id);return u.useEffect(()=>{document.body.style.overflow=t.length?"hidden":""},[t.length]),u.createElement(u.Fragment,{},u.createElement("div",ye({"aria-hidden":t.length>0},e)),t.map(n=>u.createElement(rde,ye({key:n.$id},n))))}function rde(e){var r;const t=u.useRef();if(u.useEffect(()=>{var o;(o=t.current)==null||o.focus()},[]),e=ye(ye({},Yx),e),e.Container)return u.createElement(e.Container,e);return u.createElement("div",{ref:t,className:"dialog-backdrop "+(e.className||""),tabIndex:0,onKeyDown:ode,onClick:o=>o.target===o.currentTarget&&Vi()},e.noFrame?u.createElement(e.Content||"div"):u.createElement("div",ye({role:"dialog","aria-modal":!0,className:"dialog",style:ye(ye({},n()),(r=e.dialogProps)==null?void 0:r.style),onClick(o){o.stopPropagation()}},e.dialogProps),e.closable||e.closable===void 0&&u.createElement("button",ye({className:"dialog-icon dialog-closer",onClick(){Vi()}},e.closableProps)),e.icon&&u.createElement("div",{className:"dialog-icon dialog-type"+(typeof e.icon=="string"?" dialog-icon-text":""),"aria-hidden":!0},Zv(e.icon)),u.createElement("div",{className:"dialog-title"},Zv(e.title)),u.createElement("div",{className:"dialog-content"},u.createElement(e.Content||"div"))));function n(){const{innerWidth:o,innerHeight:s}=window,i=e.position;return i&&ye(ye({margin:"1em",position:"absolute"},i[0]<o/2?{left:i[0]}:{right:o-i[0]}),i[1]<s/2?{top:i[1]}:{bottom:s-i[1]})}}function Zv(e){return bfe(e)||u.isValidElement(e)?e:u.createElement(e)}function ode(e){e.key==="Escape"&&Vi()}function po(e){const t=Math.random();return e.$id=t,e=o0(e,r=>u.isValidElement(r)?zue(r):r),Id.push(e),{close:n};function n(r){const o=Id.findIndex(s=>s.$id===t);if(!(o<0))return BN(o,r)}}function Vi(e){let t=Id.length;for(;t--;){const n=Id[t];if(!n.reserveClosing)return BN(t,e),n}}function BN(e,t){var r;const[n]=Id.splice(e,1);return(r=n==null?void 0:n.onClose)==null?void 0:r.call(n,t)}var yc={},K1={},Md={};const sde={},ide=Object.freeze(Object.defineProperty({__proto__:null,default:sde},Symbol.toStringTag,{value:"Module"})),QR=zS(ide);Object.defineProperty(Md,"__esModule",{value:!0});var XR=Md.crossEnvCrypto=void 0;try{const e=typeof window!="undefined"&&window.crypto||QR.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);XR=Md.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=QR,n=r=>o=>t.createHash(r).update(o).digest().buffer;XR=Md.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(K1,"__esModule",{value:!0});K1.SRPParameters=void 0;const Cg=Md;class Td{constructor(t=Td.PrimeGroup[2048],n=Td.H.SHA512){if(this.primeGroup=t,this.H=n,this.NBits=this.primeGroup.N.toString(2).length,!n)throw new Error("Hash function required")}}K1.SRPParameters=Td;Td.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)}};Td.H={SHA1:Cg.crossEnvCrypto.hashFunctions.SHA1,SHA256:Cg.crossEnvCrypto.hashFunctions.SHA256,SHA384:Cg.crossEnvCrypto.hashFunctions.SHA384,SHA512:Cg.crossEnvCrypto.hashFunctions.SHA512};var q1={},Y1={};(function(e){var t=ln&&ln.__awaiter||function(x,P,M,E){function I(R){return R instanceof M?R:new M(function(O){O(R)})}return new(M||(M=Promise))(function(R,O){function T(N){try{z(E.next(N))}catch(_){O(_)}}function A(N){try{z(E.throw(N))}catch(_){O(_)}}function z(N){N.done?R(N.value):I(N.value).then(T,A)}z((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=Md,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 I=0;P.length%2!==0&&(E[0]=parseInt(P[0],16),I=1);for(let R=0;R<M.byteLength;R++)E[R+I]=parseInt(P.slice(2*R+I,2*R+2+I),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((I,R)=>I+R.byteLength,0),E=new Uint8Array(M);for(let I=0,R=0;R<P.length;R++)E.set(new Uint8Array(P[R]),I),I+=P[R].byteLength;return x.H(E)}e.hash=f;function p(x,P,...M){const E=M.map(I=>e.padStartArrayBuffer(I,P));return f(x,...E)}e.hashPadded=p;function h(x=10){const P=new Uint8Array(Math.ceil(Math.ceil(x/2)));return n.crossEnvCrypto.randomBytes(P),P.reduce((M,E)=>{const I=E.toString(16).toString();return I.length===1?M+"0"+I:M+I},"").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 I=yield x.computeX(P,M,E);return x.computeVerifier(I)})}e.createVerifier=v;function m(x,P,M,E){return t(this,void 0,void 0,function*(){const I=yield x.generateRandomSalt(E);return{s:I,v:yield v(x,P,I,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}})(Y1);var Wl=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(q1,"__esModule",{value:!0});q1.SRPRoutines=void 0;const mn=Y1;class lde{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 Wl(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 Wl(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 Wl(this,void 0,void 0,function*(){return mn.arrayBufferToBigInt(yield this.hash(mn.bigIntToArrayBuffer(n),yield this.computeIdentityHash(t,r)))})}computeXStep2(t,n){return Wl(this,void 0,void 0,function*(){return mn.arrayBufferToBigInt(yield this.hash(mn.bigIntToArrayBuffer(t),n))})}computeIdentityHash(t,n){return Wl(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 Wl(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 Wl(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 Wl(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)}}q1.SRPRoutines=lde;var Ca={},B2=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 ade{constructor(t){this.routines=t}step1(t,n){return B2(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 Q1(this.routines,t,r)})}}Ca.SRPClientSession=ade;class Q1{constructor(t,n,r){this.routines=t,this.I=n,this.IH=r}step2(t,n){return B2(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 X1(this.routines,s,c,a)})}toJSON(){return{I:this.I,IH:Array.from(new Uint8Array(this.IH))}}static fromState(t,n){return new Q1(t,n.I,new Uint8Array(n.IH).buffer)}}Ca.SRPClientSessionStep1=Q1;class X1{constructor(t,n,r,o){this.routines=t,this.A=n,this.M1=r,this.S=o}step3(t){return B2(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 X1(t,BigInt("0x"+n.A),BigInt("0x"+n.M1),BigInt("0x"+n.S))}}Ca.SRPClientSessionStep2=X1;var _d={},Qx=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(_d,"__esModule",{value:!0});_d.SRPServerSessionStep1=_d.SRPServerSession=void 0;const Xx=Y1;class cde{constructor(t){this.routines=t}step1(t,n,r){return Qx(this,void 0,void 0,function*(){const o=this.routines.generatePrivateValue(),s=yield this.routines.computeK(),i=ude(this.routines.parameters,s,r,o);return new Z1(this.routines,t,n,r,o,i)})}}_d.SRPServerSession=cde;class Z1{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 Qx(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 dde(this.routines.parameters.primeGroup.N,this.verifier,n,t,this.b)})}step2(t,n){return Qx(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 Z1(t,n.identifier,BigInt("0x"+n.salt),BigInt("0x"+n.verifier),BigInt("0x"+n.b),BigInt("0x"+n.B))}}_d.SRPServerSessionStep1=Z1;const ude=(e,t,n,r)=>(Xx.modPow(e.primeGroup.g,r,e.primeGroup.N)+n*t)%e.primeGroup.N,dde=(e,t,n,r,o)=>Xx.modPow(Xx.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=K1;Object.defineProperty(e,"SRPParameters",{enumerable:!0,get:function(){return t.SRPParameters}});var n=q1;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=_d;Object.defineProperty(e,"SRPServerSession",{enumerable:!0,get:function(){return o.SRPServerSession}}),Object.defineProperty(e,"SRPServerSessionStep1",{enumerable:!0,get:function(){return o.SRPServerSessionStep1}});var s=Y1;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}})})(yc);function fde(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 pde(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 pde(e,t,n,r){return rt(this,null,function*(){const o=new yc.SRPRoutines(new yc.SRPParameters);return yield(yield new yc.SRPClientSession(o).step1(e,t)).step2(BigInt(n),BigInt(r))})}var J1={};const xi="\\\\/",ZR=`[^${xi}]`,al="\\.",hde="\\+",mde="\\?",e0="\\/",gde="(?=.)",jN="[^/]",j2=`(?:${e0}|$)`,zN=`(?:^|${e0})`,z2=`${al}{1,2}${j2}`,vde=`(?!${al})`,yde=`(?!${zN}${z2})`,bde=`(?!${al}{0,1}${j2})`,wde=`(?!${z2})`,Cde=`[^.${e0}]`,xde=`${jN}*?`,Sde="/",VN={DOT_LITERAL:al,PLUS_LITERAL:hde,QMARK_LITERAL:mde,SLASH_LITERAL:e0,ONE_CHAR:gde,QMARK:jN,END_ANCHOR:j2,DOTS_SLASH:z2,NO_DOT:vde,NO_DOTS:yde,NO_DOT_SLASH:bde,NO_DOTS_SLASH:wde,QMARK_NO_DOT:Cde,STAR:xde,START_ANCHOR:zN,SEP:Sde},Pde=st(ye({},VN),{SLASH_LITERAL:`[${xi}]`,QMARK:ZR,STAR:`${ZR}*?`,DOTS_SLASH:`${al}{1,2}(?:[${xi}]|$)`,NO_DOT:`(?!${al})`,NO_DOTS:`(?!(?:^|[${xi}])${al}{1,2}(?:[${xi}]|$))`,NO_DOT_SLASH:`(?!${al}{0,1}(?:[${xi}]|$))`,NO_DOTS_SLASH:`(?!${al}{1,2}(?:[${xi}]|$))`,QMARK_NO_DOT:`[^.${xi}]`,START_ANCHOR:`(?:^|[${xi}])`,END_ANCHOR:`(?:[${xi}]|$)`,SEP:"\\"}),Ede={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 t0={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Ede,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?Pde:VN}};(function(e){const{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:o}=t0;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}})(J1);const JR=J1,{CHAR_ASTERISK:Qw,CHAR_AT:kde,CHAR_BACKWARD_SLASH:lp,CHAR_COMMA:Ide,CHAR_DOT:Xw,CHAR_EXCLAMATION_MARK:Zw,CHAR_FORWARD_SLASH:HN,CHAR_LEFT_CURLY_BRACE:Jw,CHAR_LEFT_PARENTHESES:eC,CHAR_LEFT_SQUARE_BRACKET:Mde,CHAR_PLUS:Tde,CHAR_QUESTION_MARK:eO,CHAR_RIGHT_CURLY_BRACE:_de,CHAR_RIGHT_PARENTHESES:tO,CHAR_RIGHT_SQUARE_BRACKET:$de}=t0,nO=e=>e===HN||e===lp,rO=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Rde=(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,I,R,O={value:"",depth:0,isGlob:!1};const T=()=>c>=r,A=()=>a.charCodeAt(c+1),z=()=>(I=R,a.charCodeAt(++c));for(;c<r;){R=z();let V;if(R===lp){b=O.backslashes=!0,R=z(),R===Jw&&(w=!0);continue}if(w===!0||R===Jw){for(E++;T()!==!0&&(R=z());){if(R===lp){b=O.backslashes=!0,z();continue}if(R===Jw){E++;continue}if(w!==!0&&R===Xw&&(R=z())===Xw){if(h=O.isBrace=!0,v=O.isGlob=!0,M=!0,o===!0)continue;break}if(w!==!0&&R===Ide){if(h=O.isBrace=!0,v=O.isGlob=!0,M=!0,o===!0)continue;break}if(R===_de&&(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(I===Xw&&c===f+1){f+=2;continue}p=c+1;continue}if(n.noext!==!0&&(R===Tde||R===kde||R===Qw||R===eO||R===Zw)===!0&&A()===eC){if(v=O.isGlob=!0,m=O.isExtglob=!0,M=!0,R===Zw&&c===f&&(P=!0),o===!0){for(;T()!==!0&&(R=z());){if(R===lp){b=O.backslashes=!0,R=z();continue}if(R===tO){v=O.isGlob=!0,M=!0;break}}continue}break}if(R===Qw){if(I===Qw&&(C=O.isGlobstar=!0),v=O.isGlob=!0,M=!0,o===!0)continue;break}if(R===eO){if(v=O.isGlob=!0,M=!0,o===!0)continue;break}if(R===Mde){for(;T()!==!0&&(V=z());){if(V===lp){b=O.backslashes=!0,z();continue}if(V===$de){y=O.isBracket=!0,v=O.isGlob=!0,M=!0;break}}if(o===!0)continue;break}if(n.nonegate!==!0&&R===Zw&&c===f){x=O.negated=!0,f++;continue}if(n.noparen!==!0&&R===eC){if(v=O.isGlob=!0,o===!0){for(;T()!==!0&&(R=z());){if(R===eC){b=O.backslashes=!0,R=z();continue}if(R===tO){M=!0;break}}continue}break}if(v===!0){if(M=!0,o===!0)continue;break}}n.noext===!0&&(m=!1,v=!1);let N=a,_="",$="";f>0&&(_=a.slice(0,f),a=a.slice(f),p-=f),N&&v===!0&&p>0?(N=a.slice(0,p),$=a.slice(p)):v===!0?(N="",$=a):N=a,N&&N!==""&&N!=="/"&&N!==a&&nO(N.charCodeAt(N.length-1))&&(N=N.slice(0,-1)),n.unescape===!0&&($&&($=JR.removeBackslashes($)),N&&b===!0&&(N=JR.removeBackslashes(N)));const F={prefix:_,input:e,start:f,base:N,glob:$,isBrace:h,isBracket:y,isGlob:v,isExtglob:m,isGlobstar:C,negated:x,negatedExtglob:P};if(n.tokens===!0&&(F.maxDepth=0,nO(R)||i.push(O),F.tokens=i),n.parts===!0||n.tokens===!0){let V;for(let L=0;L<s.length;L++){const B=V?V+1:f,H=s[L],K=e.slice(B,H);n.tokens&&(L===0&&f!==0?(i[L].isPrefix=!0,i[L].value=_):i[L].value=K,rO(i[L]),F.maxDepth+=i[L].depth),(L!==0||K!=="")&&l.push(K),V=H}if(V&&V+1<e.length){const L=e.slice(V+1);l.push(L),n.tokens&&(i[i.length-1].value=L,rO(i[i.length-1]),F.maxDepth+=i[i.length-1].depth)}F.slashes=s,F.parts=l}return F};var Ode=Rde;const Jv=t0,Ys=J1,{MAX_LENGTH:ey,POSIX_REGEX_SOURCE:Dde,REGEX_NON_SPECIAL_CHARS:Ade,REGEX_SPECIAL_CHARS_BACKREF:Lde,REPLACEMENTS:UN}=Jv,Fde=(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},gu=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,V2=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=UN[e]||e;const n=ye({},t),r=typeof n.maxLength=="number"?Math.min(ey,n.maxLength):ey;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=Jv.globChars(n.windows),c=Jv.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}).)*?)`,I=n.dot?"":m,R=n.dot?b:x;let O=n.bash===!0?E(n):P;n.capture&&(O=`(${O})`),typeof n.noext=="boolean"&&(n.noextglob=n.noext);const T={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,T),o=e.length;const A=[],z=[],N=[];let _=s,$;const F=()=>T.index===o-1,V=T.peek=(Z=1)=>e[T.index+Z],L=T.advance=()=>e[++T.index]||"",B=()=>e.slice(T.index+1),H=(Z="",pe=0)=>{T.consumed+=Z,T.index+=pe},K=Z=>{T.output+=Z.output!=null?Z.output:Z.value,H(Z.value)},Y=()=>{let Z=1;for(;V()==="!"&&(V(2)!=="("||V(3)==="?");)L(),T.start++,Z++;return Z%2===0?!1:(T.negated=!0,T.start++,!0)},J=Z=>{T[Z]++,N.push(Z)},Q=Z=>{T[Z]--,N.pop()},X=Z=>{if(_.type==="globstar"){const pe=T.braces>0&&(Z.type==="comma"||Z.type==="brace"),ne=Z.extglob===!0||A.length&&(Z.type==="pipe"||Z.type==="paren");Z.type!=="slash"&&Z.type!=="paren"&&!pe&&!ne&&(T.output=T.output.slice(0,-_.output.length),_.type="star",_.value="*",_.output=O,T.output+=_.output)}if(A.length&&Z.type!=="paren"&&(A[A.length-1].inner+=Z.value),(Z.value||Z.output)&&K(Z),_&&_.type==="text"&&Z.type==="text"){_.value+=Z.value,_.output=(_.output||"")+Z.value;return}Z.prev=_,i.push(Z),_=Z},te=(Z,pe)=>{const ne=st(ye({},c[pe]),{conditions:1,inner:""});ne.prev=_,ne.parens=T.parens,ne.output=T.output;const re=(n.capture?"(":"")+ne.open;J("parens"),X({type:Z,value:pe,output:T.output?"":y}),X({type:"paren",extglob:!0,value:L(),output:re}),A.push(ne)},se=Z=>{let pe=Z.close+(n.capture?")":""),ne;if(Z.type==="negate"){let re=O;if(Z.inner&&Z.inner.length>1&&Z.inner.includes("/")&&(re=E(n)),(re!==O||F()||/^\)+$/.test(B()))&&(pe=Z.close=`)$))${re}`),Z.inner.includes("*")&&(ne=B())&&/^\.[^\\/.]+$/.test(ne)){const me=V2(ne,st(ye({},t),{fastpaths:!1})).output;pe=Z.close=`)${me})${re})`}Z.prev.type==="bos"&&(T.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:$,output:pe}),Q("parens")};if(n.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let Z=!1,pe=e.replace(Lde,(ne,re,me,ce,xe,ke)=>ce==="\\"?(Z=!0,ne):ce==="?"?re?re+ce+(xe?b.repeat(xe.length):""):ke===0?R+(xe?b.repeat(xe.length):""):b.repeat(me.length):ce==="."?f.repeat(me.length):ce==="*"?re?re+ce+(xe?O:""):O:re?ne:`\\${ne}`);return Z===!0&&(n.unescape===!0?pe=pe.replace(/\\/g,""):pe=pe.replace(/\\+/g,ne=>ne.length%2===0?"\\\\":ne?"\\":"")),pe===e&&n.contains===!0?(T.output=e,T):(T.output=Ys.wrapOutput(pe,T,t),T)}for(;!F();){if($=L(),$==="\0")continue;if($==="\\"){const ne=V();if(ne==="/"&&n.bash!==!0||ne==="."||ne===";")continue;if(!ne){$+="\\",X({type:"text",value:$});continue}const re=/^\\+/.exec(B());let me=0;if(re&&re[0].length>2&&(me=re[0].length,T.index+=me,me%2!==0&&($+="\\")),n.unescape===!0?$=L():$+=L(),T.brackets===0){X({type:"text",value:$});continue}}if(T.brackets>0&&($!=="]"||_.value==="["||_.value==="[^")){if(n.posix!==!1&&$===":"){const ne=_.value.slice(1);if(ne.includes("[")&&(_.posix=!0,ne.includes(":"))){const re=_.value.lastIndexOf("["),me=_.value.slice(0,re),ce=_.value.slice(re+2),xe=Dde[ce];if(xe){_.value=me+xe,T.backtrack=!0,L(),!s.output&&i.indexOf(_)===1&&(s.output=y);continue}}}($==="["&&V()!==":"||$==="-"&&V()==="]")&&($=`\\${$}`),$==="]"&&(_.value==="["||_.value==="[^")&&($=`\\${$}`),n.posix===!0&&$==="!"&&_.value==="["&&($="^"),_.value+=$,K({value:$});continue}if(T.quotes===1&&$!=='"'){$=Ys.escapeRegex($),_.value+=$,K({value:$});continue}if($==='"'){T.quotes=T.quotes===1?0:1,n.keepQuotes===!0&&X({type:"text",value:$});continue}if($==="("){J("parens"),X({type:"paren",value:$});continue}if($===")"){if(T.parens===0&&n.strictBrackets===!0)throw new SyntaxError(gu("opening","("));const ne=A[A.length-1];if(ne&&T.parens===ne.parens+1){se(A.pop());continue}X({type:"paren",value:$,output:T.parens?")":"\\)"}),Q("parens");continue}if($==="["){if(n.nobracket===!0||!B().includes("]")){if(n.nobracket!==!0&&n.strictBrackets===!0)throw new SyntaxError(gu("closing","]"));$=`\\${$}`}else J("brackets");X({type:"bracket",value:$});continue}if($==="]"){if(n.nobracket===!0||_&&_.type==="bracket"&&_.value.length===1){X({type:"text",value:$,output:`\\${$}`});continue}if(T.brackets===0){if(n.strictBrackets===!0)throw new SyntaxError(gu("opening","["));X({type:"text",value:$,output:`\\${$}`});continue}Q("brackets");const ne=_.value.slice(1);if(_.posix!==!0&&ne[0]==="^"&&!ne.includes("/")&&($=`/${$}`),_.value+=$,K({value:$}),n.literalBrackets===!1||Ys.hasRegexChars(ne))continue;const re=Ys.escapeRegex(_.value);if(T.output=T.output.slice(0,-_.value.length),n.literalBrackets===!0){T.output+=re,_.value=re;continue}_.value=`(${l}${re}|${_.value})`,T.output+=_.value;continue}if($==="{"&&n.nobrace!==!0){J("braces");const ne={type:"brace",value:$,output:"(",outputIndex:T.output.length,tokensIndex:T.tokens.length};z.push(ne),X(ne);continue}if($==="}"){const ne=z[z.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 xe=me.length-1;xe>=0&&(i.pop(),me[xe].type!=="brace");xe--)me[xe].type!=="dots"&&ce.unshift(me[xe].value);re=Fde(ce,n),T.backtrack=!0}if(ne.comma!==!0&&ne.dots!==!0){const me=T.output.slice(0,ne.outputIndex),ce=T.tokens.slice(ne.tokensIndex);ne.value=ne.output="\\{",$=re="\\}",T.output=me;for(const xe of ce)T.output+=xe.output||xe.value}X({type:"brace",value:$,output:re}),Q("braces"),z.pop();continue}if($==="|"){A.length>0&&A[A.length-1].conditions++,X({type:"text",value:$});continue}if($===","){let ne=$;const re=z[z.length-1];re&&N[N.length-1]==="braces"&&(re.comma=!0,ne="|"),X({type:"comma",value:$,output:ne});continue}if($==="/"){if(_.type==="dot"&&T.index===T.start+1){T.start=T.index+1,T.consumed="",T.output="",i.pop(),_=s;continue}X({type:"slash",value:$,output:h});continue}if($==="."){if(T.braces>0&&_.type==="dot"){_.value==="."&&(_.output=f);const ne=z[z.length-1];_.type="dots",_.output+=$,_.value+=$,ne.dots=!0;continue}if(T.braces+T.parens===0&&_.type!=="bos"&&_.type!=="slash"){X({type:"text",value:$,output:f});continue}X({type:"dot",value:$,output:f});continue}if($==="?"){if(!(_&&_.value==="(")&&n.noextglob!==!0&&V()==="("&&V(2)!=="?"){te("qmark",$);continue}if(_&&_.type==="paren"){const re=V();let me=$;if(re==="<"&&!Ys.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(_.value==="("&&!/[!=<:]/.test(re)||re==="<"&&!/<([!=]|\w+>)/.test(B()))&&(me=`\\${$}`),X({type:"text",value:$,output:me});continue}if(n.dot!==!0&&(_.type==="slash"||_.type==="bos")){X({type:"qmark",value:$,output:x});continue}X({type:"qmark",value:$,output:b});continue}if($==="!"){if(n.noextglob!==!0&&V()==="("&&(V(2)!=="?"||!/[!=<:]/.test(V(3)))){te("negate",$);continue}if(n.nonegate!==!0&&T.index===0){Y();continue}}if($==="+"){if(n.noextglob!==!0&&V()==="("&&V(2)!=="?"){te("plus",$);continue}if(_&&_.value==="("||n.regex===!1){X({type:"plus",value:$,output:p});continue}if(_&&(_.type==="bracket"||_.type==="paren"||_.type==="brace")||T.parens>0){X({type:"plus",value:$});continue}X({type:"plus",value:p});continue}if($==="@"){if(n.noextglob!==!0&&V()==="("&&V(2)!=="?"){X({type:"at",extglob:!0,value:$,output:""});continue}X({type:"text",value:$});continue}if($!=="*"){($==="$"||$==="^")&&($=`\\${$}`);const ne=Ade.exec(B());ne&&($+=ne[0],T.index+=ne[0].length),X({type:"text",value:$});continue}if(_&&(_.type==="globstar"||_.star===!0)){_.type="star",_.star=!0,_.value+=$,_.output=O,T.backtrack=!0,T.globstar=!0,H($);continue}let Z=B();if(n.noextglob!==!0&&/^\([^?]/.test(Z)){te("star",$);continue}if(_.type==="star"){if(n.noglobstar===!0){H($);continue}const ne=_.prev,re=ne.prev,me=ne.type==="slash"||ne.type==="bos",ce=re&&(re.type==="star"||re.type==="globstar");if(n.bash===!0&&(!me||Z[0]&&Z[0]!=="/")){X({type:"star",value:$,output:""});continue}const xe=T.braces>0&&(ne.type==="comma"||ne.type==="brace"),ke=A.length&&(ne.type==="pipe"||ne.type==="paren");if(!me&&ne.type!=="paren"&&!xe&&!ke){X({type:"star",value:$,output:""});continue}for(;Z.slice(0,3)==="/**";){const fe=e[T.index+4];if(fe&&fe!=="/")break;Z=Z.slice(3),H("/**",3)}if(ne.type==="bos"&&F()){_.type="globstar",_.value+=$,_.output=E(n),T.output=_.output,T.globstar=!0,H($);continue}if(ne.type==="slash"&&ne.prev.type!=="bos"&&!ce&&F()){T.output=T.output.slice(0,-(ne.output+_.output).length),ne.output=`(?:${ne.output}`,_.type="globstar",_.output=E(n)+(n.strictSlashes?")":"|$)"),_.value+=$,T.globstar=!0,T.output+=ne.output+_.output,H($);continue}if(ne.type==="slash"&&ne.prev.type!=="bos"&&Z[0]==="/"){const fe=Z[1]!==void 0?"|$":"";T.output=T.output.slice(0,-(ne.output+_.output).length),ne.output=`(?:${ne.output}`,_.type="globstar",_.output=`${E(n)}${h}|${h}${fe})`,_.value+=$,T.output+=ne.output+_.output,T.globstar=!0,H($+L()),X({type:"slash",value:"/",output:""});continue}if(ne.type==="bos"&&Z[0]==="/"){_.type="globstar",_.value+=$,_.output=`(?:^|${h}|${E(n)}${h})`,T.output=_.output,T.globstar=!0,H($+L()),X({type:"slash",value:"/",output:""});continue}T.output=T.output.slice(0,-_.output.length),_.type="globstar",_.output=E(n),_.value+=$,T.output+=_.output,T.globstar=!0,H($);continue}const pe={type:"star",value:$,output:O};if(n.bash===!0){pe.output=".*?",(_.type==="bos"||_.type==="slash")&&(pe.output=I+pe.output),X(pe);continue}if(_&&(_.type==="bracket"||_.type==="paren")&&n.regex===!0){pe.output=$,X(pe);continue}(T.index===T.start||_.type==="slash"||_.type==="dot")&&(_.type==="dot"?(T.output+=C,_.output+=C):n.dot===!0?(T.output+=w,_.output+=w):(T.output+=I,_.output+=I),V()!=="*"&&(T.output+=y,_.output+=y)),X(pe)}for(;T.brackets>0;){if(n.strictBrackets===!0)throw new SyntaxError(gu("closing","]"));T.output=Ys.escapeLast(T.output,"["),Q("brackets")}for(;T.parens>0;){if(n.strictBrackets===!0)throw new SyntaxError(gu("closing",")"));T.output=Ys.escapeLast(T.output,"("),Q("parens")}for(;T.braces>0;){if(n.strictBrackets===!0)throw new SyntaxError(gu("closing","}"));T.output=Ys.escapeLast(T.output,"{"),Q("braces")}if(n.strictSlashes!==!0&&(_.type==="star"||_.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${h}?`}),T.backtrack===!0){T.output="";for(const Z of T.tokens)T.output+=Z.output!=null?Z.output:Z.value,Z.suffix&&(T.output+=Z.suffix)}return T};V2.fastpaths=(e,t)=>{const n=ye({},t),r=typeof n.maxLength=="number"?Math.min(ey,n.maxLength):ey,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}=Jv.globChars(n.windows),v=n.dot?f:c,m=n.dot?p:c,C=n.capture?"":"?:",w={negated:!1,prefix:""};let b=n.bash===!0?".*?":h;n.capture&&(b=`(${b})`);const x=I=>I.noglobstar===!0?b:`(${C}(?:(?!${y}${I.dot?a:s}).)*?)`,P=I=>{switch(I){case"*":return`${v}${l}${b}`;case".*":return`${s}${l}${b}`;case"*.*":return`${v}${b}${s}${l}${b}`;case"*/*":return`${v}${b}${i}${l}${m}${b}`;case"**":return v+x(n);case"**/*":return`(?:${v}${x(n)}${i})?${m}${l}${b}`;case"**/*.*":return`(?:${v}${x(n)}${i})?${m}${b}${s}${l}${b}`;case"**/.*":return`(?:${v}${x(n)}${i})?${s}${l}${b}`;default:{const R=/^(.*?)\.(\w+)$/.exec(I);if(!R)return;const O=P(R[1]);return O?O+s+R[2]:void 0}}},M=Ys.removePrefix(e,w);let E=P(M);return E&&n.strictSlashes!==!0&&(E+=`${i}?`),E};var Nde=V2;const Bde=Ode,Zx=Nde,WN=J1,jde=t0,zde=e=>e&&typeof e=="object"&&!Array.isArray(e),rr=(e,t,n=!1)=>{if(Array.isArray(e)){const f=e.map(h=>rr(h,t,n));return h=>{for(const y of f){const v=y(h);if(v)return v}return!1}}const r=zde(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!r)throw new TypeError("Expected pattern to be a non-empty string");const o=t||{},s=o.windows,i=r?rr.compileRe(e,t):rr.makeRe(e,t,!1,!0),l=i.state;delete i.state;let a=()=>!1;if(o.ignore){const f=st(ye({},t),{ignore:null,onMatch:null,onResult:null});a=rr(o.ignore,f,n)}const c=(f,p=!1)=>{const{isMatch:h,match:y,output:v}=rr.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};rr.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=rr.matchBase(e,t,n,o):l=t.exec(a)),{isMatch:!!l,match:l,output:a}};rr.matchBase=(e,t,n)=>(t instanceof RegExp?t:rr.makeRe(t,n)).test(WN.basename(e));rr.isMatch=(e,t,n)=>rr(t,n)(e);rr.parse=(e,t)=>Array.isArray(e)?e.map(n=>rr.parse(n,t)):Zx(e,st(ye({},t),{fastpaths:!1}));rr.scan=(e,t)=>Bde(e,t);rr.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=rr.toRegex(l,t);return r===!0&&(a.state=e),a};rr.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=Zx.fastpaths(e,t)),o.output||(o=Zx(e,t)),rr.compileRe(o,t,n,r)};rr.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/$^/}};rr.constants=jde;var Vde=rr;const Hde=pi(Vde),Ude=-1,Wde=" ",Qd=401,n0=403,Gde=404,Kde=406,qde=409,Jx=424,Yde=429,Qde=500,Xde={[Qd]:"Unauthorized",[n0]:"Forbidden",[Gde]:"Not found",[Qde]:"Server error",[Yde]:"Too many requests"},r0="https://github.com/rejetto/hfs/",Zde=r0+"wiki/",Jde=6e4,efe=60*Jde,tfe=24*efe,nfe=10,rfe=["name","extension","size","time"],ofe={auto:"",light:"light",dark:"dark"},Dn=ife(["geo_enable","geo_allow","geo_list","geo_allow_unknown","max_downloads","max_downloads_per_ip","max_downloads_per_account","roots","roots_mandatory"]),vu={add:"+",remove:"-",update:"=",props:"props",ready:"ready",error:"e"},sfe=!0,oO=!1,tC={can_see:"can_read",can_read:sfe,can_list:"can_read",can_upload:oO,can_delete:oO,can_archive:"can_read"};function ife(e){return Object.fromEntries(e.map(t=>[t,t]))}function lfe(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}const afe=["","K","M","G","T"];function Sl(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+(afe[s]||"")+t}function cfe(e,t={}){return Sl(e,ye({post:"B/s",k:1e3},t)).replace("K","k")}function ci(e,t,n=""){return t?e+t+n:""}function Hh(e,t){return new Promise(n=>setTimeout(n,e,t))}function o0(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>[n,t(r,n)]))}function ufe(e,t,n=!1){return!n&&!t||t.endsWith(e)?t:t+e}function dfe(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 ffe(e){return!!e}function Hc(e){return e.filter(ffe)}function pfe(e,t){return Object.defineProperties(e,qN(t,n=>({enumerable:!1,writable:!0,value:n})))}function hfe(e,t){try{return e()}catch(n){return t==null?void 0:t(n)}}function Pl(e,t){return t(e)}function mfe(e){return(e*100).toFixed(1)+"%"}function s0(e){return e==null?[]:Array.isArray(e)?e:[e]}function H2(){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 gfe(e){return e.slice(0,e.lastIndexOf("/",e.length-1))}function vfe(e,t){try{return e&&JSON.parse(e)}catch(n){return t==null?void 0:t(e)}}function sO(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(Hc(r))}function yfe(e){return Object.keys(e)}function eS(e){return e?new Date(e).toLocaleString():"-"}function bfe(e){return!e||Object(e)!==e}function wfe(e){return/^([.:\da-f]+)$/i.test(e)}function Cfe(e){return e&&/^[a-zA-Z]:$/.test(e)}function ty(e,t){return e==t||e&&t&&typeof e=="object"&&typeof t=="object"&&Object.entries(e).every(([n,r])=>ty(r,t[n]))&&Object.entries(t).every(([n,r])=>Object.hasOwn(e,n)||ty(r,e[n]))}function i0(e,t){var n;return(n=t[e])!=null?n:e}function YN(e){return e==="::1"||e.endsWith("127.0.0.1")}function xfe(e){return/^(?:|:10\..*|172\.(1[6-9]|2\d|3[01])\..*|192\.168\..*)$/.test(e)}function QN(e){return e.includes(":")?"["+e+"]":e}function Sfe(e){return e.replace(/[\u0000-\u002F\u003A-\u0040\u005B-\u0060\u007B-\u00FF]/g,t=>"&#"+("000"+t.charCodeAt(0)).slice(-4)+";")}function Pfe(e,t=!1){return e?Hde(e.replace(/^(!)?/,"$1(")+")",{nocase:!0}):()=>t}function Efe(e,t,n=!1){return Pfe(t,n)(e)}function kfe(e){var t;return Ze.findKey(Ife,n=>n.test(e))||((t=/^[^/(]+ ?/.exec(e))==null?void 0:t[0])||e}const Ife={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 nC=l0();Object.assign(nC,{getPluginKey:()=>iO("plugin"),getPluginPublic:()=>{var e,t;return(t=(e=iO("src"))==null?void 0:e.match(/^.*\//))==null?void 0:t[0]},getPluginConfig:()=>nC.plugins[nC.getPluginKey()]||{}});function iO(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 Mfe(){return window.innerWidth<800}function l0(){return window.HFS}function JN(){return l0().prefixUrl||""}function Tfe(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 ny(e,t=document){const n=t.querySelector(e);if(n&&n instanceof HTMLElement)return n.focus(),!0}function _fe(){const e=console.debug;console.debug=(...t)=>window.DEV&&e(...t)}function $fe(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 U2={},Rfe=et;Object.defineProperty(U2,"__esModule",{value:!0});var t5=U2.default=void 0,Ofe=Rfe(tt()),Dfe=Je();t5=U2.default=(0,Ofe.default)((0,Dfe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 14H9V8h2zm4 0h-2V8h2z"}),"PauseCircle");var W2={},Afe=et;Object.defineProperty(W2,"__esModule",{value:!0});var a0=W2.default=void 0,Lfe=Afe(tt()),Ffe=Je();a0=W2.default=(0,Lfe.default)((0,Ffe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M9.5 16.5v-9l7 4.5z"}),"PlayCircle");var G2={},Nfe=et;Object.defineProperty(G2,"__esModule",{value:!0});var c0=G2.default=void 0,Bfe=Nfe(tt()),jfe=Je();c0=G2.default=(0,Bfe.default)((0,jfe.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");var K2={},zfe=et;Object.defineProperty(K2,"__esModule",{value:!0});var q2=K2.default=void 0,Vfe=zfe(tt()),Hfe=Je();q2=K2.default=(0,Vfe.default)((0,Hfe.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var Y2={},Ufe=et;Object.defineProperty(Y2,"__esModule",{value:!0});var u0=Y2.default=void 0,Wfe=Ufe(tt()),Gfe=Je();u0=Y2.default=(0,Wfe.default)((0,Gfe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var Q2={},Kfe=et;Object.defineProperty(Q2,"__esModule",{value:!0});var d0=Q2.default=void 0,qfe=Kfe(tt()),Yfe=Je();d0=Q2.default=(0,qfe.default)((0,Yfe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error");var X2={},Qfe=et;Object.defineProperty(X2,"__esModule",{value:!0});var n5=X2.default=void 0,Xfe=Qfe(tt()),Zfe=Je();n5=X2.default=(0,Xfe.default)((0,Zfe.jsx)("path",{d:"M12 8V4l8 8-8 8v-4H4V8z"}),"Forward");var Z2={},Jfe=et;Object.defineProperty(Z2,"__esModule",{value:!0});var ry=Z2.default=void 0,epe=Jfe(tt()),tpe=Je();ry=Z2.default=(0,epe.default)((0,tpe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");var J2={},npe=et;Object.defineProperty(J2,"__esModule",{value:!0});var f0=J2.default=void 0,rpe=npe(tt()),ope=Je();f0=J2.default=(0,rpe.default)((0,ope.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning");var eE={},spe=et;Object.defineProperty(eE,"__esModule",{value:!0});var Uh=eE.default=void 0,ipe=spe(tt()),lpe=Je();Uh=eE.default=(0,ipe.default)((0,lpe.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save");var r5={};const ape=zS(xq);var cpe=et;Object.defineProperty(r5,"__esModule",{value:!0});var upe=r5.default=o5,rC=cpe(ape);function o5(e,t){const n=(0,rC.default)({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=(0,rC.default)({},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]=(0,rC.default)({},s),Object.keys(o).forEach(i=>{n[r][i]=o5(o[i],s[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function dpe(e){return Ge("MuiLoadingButton",e)}const fpe=We("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),nl=fpe,ppe=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],hpe=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,dpe,r);return S({},r,s)},mpe=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",gpe=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}})),vpe=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})),ype=u.forwardRef(function(t,n){const r=u.useContext(L4),o=upe(r,t),s=He({props:o,name:"MuiLoadingButton"}),{children:i,disabled:l=!1,id:a,loading:c=!1,loadingIndicator:f,loadingPosition:p="center",variant:h="text"}=s,y=ae(s,ppe),v=Yt(a),m=f!=null?f:D.jsx(zi,{"aria-labelledby":v,color:"inherit",size:16}),C=S({},s,{disabled:l,loading:c,loadingIndicator:m,loadingPosition:p,variant:h}),w=hpe(C),b=c?D.jsx(vpe,{className:w.loadingIndicator,ownerState:C,children:m}):null;return D.jsxs(gpe,S({disabled:l||c,id:v,ref:n},y,{variant:h,classes:w,ownerState:C,children:[C.loadingPosition==="end"?i:b,C.loadingPosition==="end"?b:i]}))}),s5=ype;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(ja,ye(st(ye({fullWidth:!0,InputLabelProps:m||p.placeholder?{shrink:!0}:void 0},p),{sx:p.label?p.sx:Object.assign({"& .MuiInputBase-input":{pt:1.5}},p.sx),value:m,onChange(E){let I=E.target.value;if(c){const R=c(I);if(R===!1)return;I=R}C(I),(i||b.current===void 0)&&P(E,I)},onKeyDown(E){var I;(I=p.onKeyDown)==null||I.call(p,E),(E.key==="Enter"||E.code===void 0)&&P(E)},onFocus(E){b.current=E.target.value},onBlur(E){var I;(I=p.onBlur)==null||I.call(p,E),b.current!==E.target.value&&P(E)},InputProps:ye({startAdornment:l&&u.createElement(xl,{position:"start"},l),endAdornment:a&&u.createElement(xl,{position:"end"},a)},p.InputProps)}),M));return f?u.createElement(zh,{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 tE={},bpe=et;Object.defineProperty(tE,"__esModule",{value:!0});var i5=tE.default=void 0,wpe=bpe(tt()),Cpe=Je();i5=tE.default=(0,wpe.default)((0,Cpe.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 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(ja,st(ye(ye({},l5(e)),i),{onChange(a){try{let c=a.target.value;c=JSON.parse(c),n(c,{was:t,event:a})}catch(c){}}}))}function p0(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=l5(st(ye({clearValue:[]},t),{clearable:!1})),{select:v,InputProps:m}=P,C=At(P,["select","InputProps"]),w=u.useMemo(()=>a5(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(zh,st(ye(ye({multiple:!0,options:w,filterSelectedOptions:!0,onChange:(M,E)=>s(E.map(I=>I.value),{was:o,event:M}),isOptionEqualToValue:(M,E)=>M.value===E.value,getOptionLabel:M=>M.label,renderOption:(M,E)=>{var I;return u.createElement("span",M,(I=e==null?void 0:e(E))!=null?I:E.label)}},C),h),{value:b,renderInput:M=>u.createElement(ja,ye(st(ye({},y),{placeholder:b.length?void 0:p,SelectProps:{multiple:!0},sx:st(ye({},y.sx),{"& div[role=button]":{whiteSpace:"unset"}})}),M)),renderTags:(M,E)=>M.map((I,R)=>{var O;return u.createElement(jh,ye({label:(O=e==null?void 0:e(I))!=null?O:I.label},E({index:R})))}),sx:ye({".MuiAutocomplete-tag":{height:24},".MuiAutocomplete-inputRoot":{pt:"21px"},"input[type][type]":{p:"4px"},".MuiChip-deleteIcon[class]":{position:"absolute",right:"-0.6em",opacity:0,color:"text.primary",transition:"all .2s"},".MuiChip-root:hover .MuiChip-deleteIcon":{opacity:1}},a)}))}function l5(e){const{options:t,disabled:n,start:r,end:o,clearable:s,clearValue:i,value:l}=e,a=a5(t),c=JSON.stringify(l),f=a.find(h=>JSON.stringify(h.value)===c),p=s&&(Array.isArray(l)?l.length>0:l);return{select:!0,fullWidth:!0,sx:e.label?e.sx:Object.assign({"& .MuiInputBase-input":{pt:1}},e.sx),value:f?c:"",disabled:!(a!=null&&a.length)||n,InputProps:ye({startAdornment:(r||p)&&u.createElement(xl,{position:"start"},p&&u.createElement(_l,{title:"Clear",children:u.createElement(xr,{onClick(h){e.onChange(i,{was:l,event:h})}},u.createElement(i5))}),r),endAdornment:o&&u.createElement(xl,{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 a5(e){return Array.isArray(e)?e.map(t=>typeof t=="string"||typeof t=="number"?{value:t,label:String(t)}:t):Object.entries(e).map(([t,n])=>({value:n,label:t}))}function $p(r){var o=r,{value:e,empty:t="-"}=o,n=At(o,["value","empty"]);return!n.toField&&t!==void 0&&e!==0&&!e&&(e=t),u.createElement(Wi,st(ye({},n),{value:e,disabled:!0}))}function zo(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,ye({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(ye({},y),{was:h?Number(h):null}))},inputProps:{min:o,max:s,step:i},InputProps:Ze.merge({sx:{"& input":{appearance:"textfield"}}},l&&{sx:{pr:"6px","& input":{pl:".2em",textAlign:"right"}},endAdornment:u.createElement(xl,{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(pN,st(ye({checked:p},l),{onChange(v){n(v.target.checked,{event:v,was:t})}}));return u.createElement(ze,{ml:1,mt:1,sx:s?{color:"error.main",outlineOffset:6,outline:"1px solid"}:void 0},u.createElement(Y4,ye({label:e,control:y,labelPlacement:"end"},l.size==="small"&&{sx:{"& .MuiFormControlLabel-label":{fontSize:".9rem"}}})),o&&u.createElement(Kd,{error:s},o))}function Uc(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,I]=u.useState(0),R=u.useRef(!1),O=u.useRef("");u.useEffect(()=>void _(),[E]);const T={},A={};return u.createElement("form",st(ye({ref:a&&($=>a.current=$||void 0)},h),{onSubmit($){$.preventDefault()},onKeyDown($){M&&!M.disabled&&($.ctrlKey||$.metaKey)&&$.key==="Enter"&&z()}}),u.createElement(ze,ye({display:"flex",flexDirection:"column",gap:3},y),u.createElement(oi,ye({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:V,fromField:L=Ze.identity,toField:B=Ze.identity,getError:H,error:K}=Q,Y=At(Q,["k","fromField","toField","getError","error"]);let J=w[V]||K||x[V];if(J===!0&&(J="Not valid"),V){const te=$.hasOwnProperty("value")?$.value:t==null?void 0:t[V],se=ye(ye({},$),Y);Object.assign(Y,{value:B(te),error:!!(J||K)||void 0,setApi(Z){A[V]=Z},onKeyDown(Z){f&&Z.key==="Enter"&&z()},onChange(Z){var pe;try{if(Z=L(Z,{originalValue:te}),P(ne=>st(ye({},ne),{[V]:!1})),(((pe=A[V])==null?void 0:pe.isEqual)||Ze.isEqual)(Z,te))return;n(Z,V),N(V)}catch(ne){P(re=>st(ye({},re),{[V]:(ne==null?void 0:ne.message)||String(ne)||!0}))}}}),Array.isArray(Y.helperText)&&(Y.helperText=u.createElement(u.Fragment,{},...Y.helperText)),J&&(Y.helperText=Y.helperText?u.createElement(u.Fragment,{},u.createElement("span",{style:{borderBottom:"1px solid"}},J),u.createElement(ze,{color:"text.primary",component:"span",display:"block"},Y.helperText)):J),Y.label===void 0&&(Y.label=c5(V)),Ze.defaults(Y,r==null?void 0:r(se))}{const X=Y,{xs:te=12,sm:se,md:Z,lg:pe,xl:ne,comp:re=Wi,before:me,after:ce,fromField:xe,toField:ke}=X,fe=At(X,["xs","sm","md","lg","xl","comp","before","after","fromField","toField"]);Object.assign(fe,{name:V});const Ie=T[V]=(T[V]||0)+1;return u.createElement(oi,{key:V?V+Ie:F,item:!0,xs:te,sm:se,md:Z,lg:pe,xl:ne},me,u.isValidElement(re)?re:u.createElement(re,fe),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(s5,st(ye({variant:"contained",startIcon:u.createElement(Uh),children:"Save",loading:D2(E!==0)},M),{onClick:z})),...i)));function z(){R.current=!0,N()}function N($=""){E===0&&(O.current=$,setTimeout(()=>I(F=>F===0?1:F)))}function _(){return rt(this,null,function*(){var V,L,B;if(E===0)return;if(E===1)return I(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],J=(yield(L=(V=A[K])==null?void 0:V.getError)==null?void 0:L.call(V,Y,{values:t,fields:e}))||(yield(B=H.getError)==null?void 0:B.call(H,Y,{values:t,fields:e}))||x[K];if(F[K]=J||!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&&I(0)}})}}function c5(e){return Ze.upperFirst(e.indexOf("_")>0?e.replace(/_/g," "):e.replace(/([a-z])([A-Z])/g,(t,n,r)=>n+" "+r.toLowerCase()))}function u5(){return H1("(prefers-color-scheme: dark)")}const xpe={};function Spe(){const e=u5()?null:xpe;return u.useMemo(()=>t2({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 Ppe={"`":"code","*":"i","**":"b"};function tr(e,{linkTarget:t="_blank",onText:n=r=>r}={}){return typeof e!="string"&&(e=e[0]),nE(e,/(`|_|\*\*?)(.+?)\1|(\n)|\[(.+?)\]\((.+?)\)|<([^ >/]+)>(.*?)<\/\6>|<([^ >/]+) *\/>/g,r=>r[4]?u.createElement(ts,{href:r[5],target:t},n(r[4])):r[3]?u.createElement("br"):r[1]?u.createElement(Ppe[r[1]]||u.Fragment,{},n(r[2])):u.createElement(r[6]||r[8],{},r[7]),n)}function nE(e,t,n,r=o=>o){const o=[];let 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)))}Yx.Container=function(t){const n=u.useRef(),{width:r,height:o}=W1(),s=r>0&&Math.min(r,o)<500;u.useEffect(()=>{const p=setTimeout(()=>{const h=n.current;h&&(h.focus(),!s&&(ny("[autofocus]")||ny("input,textarea")))});return()=>clearTimeout(p)},[n.current]);const i=rE();t=ye(ye({},Yx),t);const f=t.dialogProps||{},{sx:l,root:a}=f,c=At(f,["sx","root"]);return t.noFrame?u.createElement(V1,{open:!0,children:u.createElement(Gh,{},u.createElement(t.Content))}):u.createElement(z4,st(ye(ye({open:!0,maxWidth:"lg",fullScreen:s},c),a),{className:t.className,onClose:()=>Vi()}),t.title&&u.createElement(uoe,{sx:ye({position:"sticky",top:0,p:1,zIndex:2,boxShadow:"0 0 8px #0004",display:"flex",alignItems:"center",gap:1},i)},t.icon&&Zv(t.icon),u.createElement(ze,{flex:1,minWidth:40},Zv(t.title)),u.createElement(dn,{icon:u0,title:"Close",onClick:()=>Vi()})),u.createElement(V4,{ref:n,sx:ye({p:t.padding?1:0,pt:"16px !important",overflow:"initial",display:"flex",flexDirection:"column",justifyContent:"center"},l)},u.createElement(t.Content)))};function rE(){return u5()?{bgcolor:"#2d2d2d"}:{bgcolor:"#ccc",color:"#444"}}const d5={error:d0,warning:f0,info:ry,success:q2};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=H2(),i=po(st(ye({className:"dialog-alert dialog-alert-"+r,icon:(a=n.icon)!=null?a:u.createElement(d5[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(_o,{sx:{mt:1},size:"small",onClick:i.close},"Close"))}}));return Object.assign(s,i)}function hr(e,s={}){var i=s,{href:t,confirmText:n="Go",dontText:r="Don't"}=i,o=At(i,["href","confirmText","dontText"]);const l=H2(),a=po(st(ye({className:"dialog-confirm",onClose:l.resolve},o),{Content:c}));return Object.assign(l,a);function c(){return u.createElement(u.Fragment,{},u.createElement(ze,{mb:2},typeof e=="string"?tr(e):e),u.createElement(qr,{},u.createElement("a",{href:t,onClick:()=>Vi(!0)},u.createElement(Yn,{variant:"contained"},n)),u.createElement(Yn,{onClick:()=>Vi(!1)},r)))}}function ph(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(ye({className:"dialog-confirm",onClose:i},n),{Content:s})));function s(){const[i,l]=u.useState(t||{}),p=typeof e=="function"?e(i):e,{onChange:a,before:c}=p,f=At(p,["onChange","before"]);return u.createElement(u.Fragment,{},c,u.createElement(Uc,st(ye({},f),{values:i,set(h,y){l(v=>{const m=st(ye({},v),{[y]:h});return a==null||a(m,{setValues:l}),m})},save:st(ye({},f.save),{onClick(){Vi(i)}})})))}})}function Wh(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 ph(st(ye({},s),{values:{text:t},form:ye({fields:[st(ye({k:"text",label:null,autoFocus:!0},n),{before:u.createElement(ze,{mb:2},e)})],save:ye({children:"Continue",startIcon:u.createElement(n5)},r),saveOnEnter:!0,barSx:{gap:2},addToBar:[u.createElement(Yn,{onClick:Vi},"Cancel"),...o]},s.form)})).then(c=>c==null?void 0:c.text)})}function f5(){return po({Content:()=>u.createElement(zi,{size:"20vw"}),noFrame:!0,closable:!1}).close}function or(e,t="info",n){const o=po(st(ye({},n),{Content:i,dialogProps:{fullScreen:!1,PaperProps:{sx:{transition:"opacity 3000ms ease-in"},ref(l){l&&(l.style.opacity="0")}}}})),{close:s}=o;return setTimeout(s,3e3),o;function i(){return u.createElement(ze,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},u.isValidElement(t)?t:u.createElement(d5[t],{color:t}),u.isValidElement(e)?e:u.createElement("div",{},String(e)))}}const p5=`🇦🇨|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}}),Epe="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 h5(){return u.createElement(zi)}function Xo(e){return H1(t=>t.breakpoints.up(e),{noSsr:!0})}function m5({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(zi,{value:t*100||0,variant:"determinate",size:32,sx:{position:"absolute"}}),u.createElement(_l,{title:u.createElement(u.Fragment,{},Ze.isNumber(t)?mfe(t):"Size unknown",r&&u.createElement("div",{},r)),children:u.createElement(zi,{color:"success",value:(n||1e-7)*100,variant:"determinate",size:32,sx:ye({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,ye({sx:ye(ye({display:"flex",gap:".8em",flexDirection:e?"column":void 0,alignItems:e?void 0:"center"},t&&{justifyContent:"center"}),o)},r),n)}function xa(e,t){return Array.isArray(t)&&(t=fh(t)),u.createElement(ts,{href:Zde+e,target:"help"},t)}function h0(e,t){return u.createElement(dn,ye({icon:c0,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(ye({ref:p,disabled:r},f),{sx:ye({height:"fit-content"},c),onClick(...b){return rt(this,null,function*(){if(l&&!(yield hr(l)))return;const x=n==null?void 0:n.apply(this,b);x&&x instanceof Promise&&(m(!0),x.then(P=>P!==!1&&g5(a),Et).finally(()=>m(!1)))})}}),(o||v)&&o!==!1&&u.createElement(zi,st(ye({},typeof o=="number"?{value:o*100,variant:"determinate"}:null),{style:{position:"absolute",top:"10%",left:"10%",width:"80%",height:"80%"}})),u.createElement(t));return r&&(C=u.createElement("span",{role:"button","aria-label":e+", disabled"},C)),e&&(C=u.createElement(_l,st(ye({title:e},i),{children:C}))),C});function _o(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(s5,st(ye({variant:"contained",startIcon:e&&u.createElement(e),loading:!!(v||o),loadingPosition:e&&"start",loadingIndicator:typeof o!="number"?void 0:u.createElement(zi,{size:"1rem",value:o*100,variant:"determinate"}),disabled:r},p),{children:C&&f,sx:ye(ye({},p.sx),!C&&{minWidth:"auto",px:2,py:"7px","& span":{mx:0}}),onClick(...x){return rt(this,null,function*(){if(l&&!(yield hr(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&&g5(a),Et).finally(()=>m(!1)))})}}));return r&&(w=u.createElement("span",{role:"button","aria-label":t+", disabled"},w)),t&&(w=u.createElement(_l,st(ye({title:t},i),{children:w}))),w}function g5(e){e&&or(e===!0?"Operation completed":e,"success")}function Wr(e,t,n){return u.createElement(_l,{title:t,children:u.createElement(e,{sx:n})})}function m0(e){return u.createElement(ts,ye({component:LP},e))}const Gh=u.forwardRef((e,t)=>u.createElement(ze,ye({ref:t,display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"},e)));function cl(t){var e=At(t,[]);return u.createElement(ts,st(ye({},e),{sx:ye({cursor:"pointer"},e.sx)}))}function v5(){const[e,t]=y5(n=>({title:"Pause",icon:n?t5:a0,sx:{rotate:n?"180deg":"0deg"}}),!0);return{pause:!e,pauseButton:t}}function y5(e,t=!1){const[n,r]=u.useState(t),o=u.useCallback(()=>r(l=>!l),[]),s=e(n),i=u.createElement(dn,st(ye({size:"small",color:n?"primary":"default","aria-pressed":n},s),{sx:ye({transition:"all .5s"},s.sx),onClick:o}));return[n,i]}function oy({code:e,ip:t,def:n,long:r,short:o}){const s=t&&!YN(t)&&!xfe(t),{data:i}=Jg(e===void 0&&s&&kpe,t,{delay:100});e||(e=i||"");const l=e&&Ze.find(p5,{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 kpe(e){return rt(this,null,function*(){return(yield ct("ip_country",{ips:e})).codes})}function b5(e,t,n,r){let o=e[t];return F2(e,()=>{const s=e[t];Object.is(o,s)||n(o=s)},r)}const w5="admin_state",rn=L2(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[w5]||null))),C5=["onlinePluginsColumns","monitorOnlyFiles"],Ipe=Ze.debounce(()=>localStorage[w5]=JSON.stringify(Ze.pick(rn,C5)),500,{maxWait:1e3});for(const e of C5)b5(rn,e,Ipe);function Vs(){return N2(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)===Ape}(e)||Array.isArray(e)||!!e[hO]||!!(!((t=e.constructor)===null||t===void 0)&&t[hO])||oE(e)||sE(e))}function hh(e,t,n){n===void 0&&(n=!1),Zd(e)===0?(n?Object.keys:uE)(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:oE(e)?2:sE(e)?3:0}function tS(e,t){return Zd(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Mpe(e,t){return Zd(e)===2?e.get(t):e[t]}function x5(e,t,n){var r=Zd(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Tpe(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function oE(e){return Ope&&e instanceof Map}function sE(e){return Dpe&&e instanceof Set}function ic(e){return e.o||e.t}function iE(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Lpe(e);delete t[ns];for(var n=uE(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 lE(e,t){return t===void 0&&(t=!1),aE(e)||$d(e)||!Dc(e)||(Zd(e)>1&&(e.set=e.add=e.clear=e.delete=_pe),Object.freeze(e),t&&hh(e,function(n,r){return lE(r,!0)},!0)),e}function _pe(){ri(2)}function aE(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ai(e){var t=Fpe[e];return t||ri(18,e),t}function lO(){return mh}function oC(e,t){t&&(Ai("Patches"),e.u=[],e.s=[],e.v=t)}function sy(e){nS(e),e.p.forEach($pe),e.p=null}function nS(e){e===mh&&(mh=e.l)}function aO(e){return mh={p:[],l:mh,h:e,m:!0,_:0}}function $pe(e){var t=e[ns];t.i===0||t.i===1?t.j():t.g=!0}function sC(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&&(sy(t),ri(4)),Dc(e)&&(e=iy(t,e),t.l||ly(t,e)),t.u&&Ai("Patches").M(n[ns].t,e,t.u,t.s)):e=iy(t,n,[]),sy(t),t.u&&t.v(t.u,t.s),e!==S5?e:void 0}function iy(e,t,n){if(aE(t))return t;var r=t[ns];if(!r)return hh(t,function(l,a){return cO(e,r,t,l,a,n)},!0),t;if(r.A!==e)return t;if(!r.P)return ly(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=iE(r.k):r.o,s=o,i=!1;r.i===3&&(s=new Set(o),o.clear(),i=!0),hh(s,function(l,a){return cO(e,r,o,l,a,n,i)}),ly(e,o,!1),n&&e.u&&Ai("Patches").N(r,n,e.u,e.s)}return r.o}function cO(e,t,n,r,o,s,i){if($d(o)){var l=iy(e,o,s&&t&&t.i!==3&&!tS(t.R,r)?s.concat(r):void 0);if(x5(n,r,l),!$d(l))return;e.m=!1}else i&&n.add(o);if(Dc(o)&&!aE(o)){if(!e.h.D&&e._<1)return;iy(e,o),t&&t.A.l||ly(e,o)}}function ly(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&lE(t,n)}function iC(e,t){var n=e[ns];return(n?ic(n):e)[t]}function uO(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 rS(e){e.P||(e.P=!0,e.l&&rS(e.l))}function lC(e){e.o||(e.o=iE(e.t))}function oS(e,t,n){var r=oE(t)?Ai("MapSet").F(t,n):sE(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:lO(),P:!1,I:!1,R:{},l:s,t:o,k:null,o:null,j:null,C:!1},a=l,c=sS;i&&(a=[l],c=ap);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:lO()).p.push(r),r}function Rpe(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=dO(n,s),o.I=!1}else r=dO(n,s);return hh(r,function(i,l){o&&Mpe(o.t,i)===l||x5(r,i,t(l))}),s===3?new Set(r):r}(e)}function dO(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return iE(e)}var fO,mh,cE=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",Ope=typeof Map!="undefined",Dpe=typeof Set!="undefined",pO=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",S5=cE?Symbol.for("immer-nothing"):((fO={})["immer-nothing"]=!0,fO),hO=cE?Symbol.for("immer-draftable"):"__$immer_draftable",ns=cE?Symbol.for("immer-state"):"__$immer_state",Ape=""+Object.prototype.constructor,uE=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Lpe=Object.getOwnPropertyDescriptors||function(e){var t={};return uE(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Fpe={},sS={get:function(e,t){if(t===ns)return e;var n=ic(e);if(!tS(n,t))return function(o,s,i){var l,a=uO(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===iC(e.t,t)?(lC(e),e.o[t]=oS(e.A.h,r,e)):r},has:function(e,t){return t in ic(e)},ownKeys:function(e){return Reflect.ownKeys(ic(e))},set:function(e,t,n){var r=uO(ic(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=iC(ic(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(Tpe(n,o)&&(n!==void 0||tS(e.t,t)))return!0;lC(e),rS(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 iC(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,lC(e),rS(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=ic(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)}},ap={};hh(sS,function(e,t){ap[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),ap.deleteProperty=function(e,t){return ap.set.call(this,e,t,void 0)},ap.set=function(e,t,n){return sS.set.call(this,e[0],t,n,e[0])};var Npe=function(){function e(n){var r=this;this.O=pO,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=aO(r),p=oS(r,o,void 0),h=!0;try{c=s(p),h=!1}finally{h?sy(f):nS(f)}return typeof Promise!="undefined"&&c instanceof Promise?c.then(function(m){return oC(f,i),sC(m,f)},function(m){throw sy(f),m}):(oC(f,i),sC(c,f))}if(!o||typeof o!="object"){if((c=s(o))===void 0&&(c=o),c===S5&&(c=void 0),r.D&&lE(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=Rpe(n));var r=aO(this),o=oS(this,n,void 0);return o[ns].C=!0,nS(r),o},t.finishDraft=function(n,r){var o=n&&n[ns],s=o.A;return oC(s,r),sC(void 0,s)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!pO&&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 Npe,Bpe=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 jpe=Bpe;Iue({onResponse(e,t){return rt(this,null,function*(){if(e.status===Qd)throw rn.loginRequired=(t==null?void 0:t.possible)!==!1||n0,new kN(e.status,"Unauthorized")})}});const zpe={timeout:"Operation timeout"};function Qn(...e){const t=IN(...e);return st(ye({},t),{element:u.useMemo(()=>e[0]?t.error?u.createElement(Er,{severity:"error"},i0(String(t.error),zpe),u.createElement(dn,{icon:c0,onClick:t.reload,sx:{m:"-10px 0 -8px 16px"}})):t.loading||t.data===void 0?h5():null:null,Object.values(t))})}function El(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=[],T=Ze.debounce(()=>{const N=O.splice(0,1/0);N.length&&(r&&N.reverse(),i(_=>r?[...N,..._]:[..._,...N]))},1e3,{maxWait:1e3});f(void 0),v(!0),h(!0),C(!0),i([]);const A=MN(e,t,(N,_)=>{switch(N){case"connected":return h(!1),setTimeout(()=>T.flush());case"error":return f("Connection error"),setTimeout(E,1e3),z();case"closed":return z();case"msg":const $=[],F=[];s0(_).forEach(V=>{var H,K,Y;if(!Array.isArray(V))return console.debug("illegal list packet",V);console.debug("LIST",...V);const[L,B]=V;if(L===vu.ready){T.flush(),C(!1);return}if(L===vu.error){B===Qd?rn.loginRequired=((H=V[2])==null?void 0:H.possible)!==!1||n0:f(e5(B));return}if(L===vu.props)return a(B);if(L===vu.add){const J=(K=n==null?void 0:n(B))!=null?K:B;(Y=J.id)!=null||(J.id=x.current=Math.max(x.current,Date.now())+.001),O.push(J),T();return}if(L===vu.remove){const J=Ze.matches(B);Ze.isEmpty(Ze.remove(O,J))&&$.push(J);return}if(L===vu.update){const J=V[2],Q=Ze.find(O,B);if(Q)return Object.assign(Q,J);F.push([B,J]);return}console.debug("unknown list api",L)}),i(V=>{let L=V,B;if($.length&&(B=V.filter(H=>!$.some(K=>K(H))),B.length<V.length&&(L=B)),F.length)for(const[H,K]of F){const Y=Ze.findIndex(L,H);Y<0||(L===V&&(L=B!=null?B:V.slice()),L[Y]=ye(ye({},L[Y]),K))}return L}),(A==null?void 0:A.readyState)===(A==null?void 0:A.CLOSED)&&z()}});return()=>A.close();function z(){C(!1),v(!1),T.flush()}},[w,e,JSON.stringify(t)]),{list:P!=null?P:s,props:l,loading:y,error:c,initializing:m,connecting:p,setList:i,updateList:I,updateEntry:R,reload:E};function E(){b(O=>O+1)}function I(O){i(jpe(s,O))}function R(O,T){I(A=>{const z=Ze.find(A,O);z&&Object.assign(z,T)})}}var dE={},Vpe=et;Object.defineProperty(dE,"__esModule",{value:!0});var P5=dE.default=void 0,Hpe=Vpe(tt()),Upe=Je();P5=dE.default=(0,Hpe.default)((0,Upe.jsx)("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"}),"LinkOff");var fE={},Wpe=et;Object.defineProperty(fE,"__esModule",{value:!0});var g0=fE.default=void 0,Gpe=Wpe(tt()),Kpe=Je();g0=fE.default=(0,Gpe.default)((0,Kpe.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var pE={},qpe=et;Object.defineProperty(pE,"__esModule",{value:!0});var E5=pE.default=void 0,Ype=qpe(tt()),Qpe=Je();E5=pE.default=(0,Ype.default)((0,Qpe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block");var hE={},Xpe=et;Object.defineProperty(hE,"__esModule",{value:!0});var k5=hE.default=void 0,Zpe=Xpe(tt()),Jpe=Je();k5=hE.default=(0,Zpe.default)((0,Jpe.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-2 6h-2v2h2v2h-2v2h-2v-2h2v-2h-2v-2h2v-2h-2V8h2v2h2z"}),"FolderZip");var mE={},ehe=et;Object.defineProperty(mE,"__esModule",{value:!0});var Kh=mE.default=void 0,the=ehe(tt()),nhe=Je();Kh=mE.default=(0,the.default)((0,nhe.jsx)("path",{d:"M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z"}),"Upload");var gE={},rhe=et;Object.defineProperty(gE,"__esModule",{value:!0});var vE=gE.default=void 0,ohe=rhe(tt()),she=Je();vE=gE.default=(0,ohe.default)((0,she.jsx)("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download");const I5=u.createContext(void 0);function zt(){const e=u.useContext(I5);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 ihe=()=>u.useRef({}),M5=u.createContext(void 0),ut=()=>{const e=u.useContext(M5);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},T5=u.createContext(void 0);function za(){const e=u.useContext(T5);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 mO={};function yE(e,t){const n=u.useRef(mO);return n.current===mO&&(n.current=e(t)),n}const lhe=[];function _5(e){u.useEffect(e,lhe)}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))}},ahe=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,!ahe(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 che(e){return e.acceptsApiRef}function gO(e,t){return che(t)?t(e):t(e.current.state)}const uhe=Object.is,bE=$5,dhe=()=>({state:null,equals:null,selector:null}),ot=(e,t,n=uhe)=>{const r=yE(dhe),o=r.current.selector!==null,[s,i]=u.useState(o?null:gO(e,t));return r.current.state=s,r.current.equals=n,r.current.selector=t,_5(()=>e.current.store.subscribe(()=>{const l=gO(e,r.current.selector);r.current.equals(r.current.state,l)||(r.current.state=l,i(l))})),s};function Vt(e){return Ge("MuiDataGrid",e)}const de=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 ay="NOT_FOUND";function fhe(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:ay},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function phe(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 ay}function o(l,a){r(l)===ay&&(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 hhe=function(t,n){return t===n};function mhe(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 v0(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?hhe:r,s=n.maxSize,i=s===void 0?1:s,l=n.resultEqualityCheck,a=mhe(o),c=i===1?fhe(a):phe(i,a);function f(){var p=c.get(arguments);if(p===ay){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 ghe(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 vhe(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=ghe(l),b=e.apply(void 0,[function(){return c++,h.apply(null,arguments)}].concat(C)),x=e(function(){for(var M=[],E=w.length,I=0;I<E;I++)M.push(w[I].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 yhe=vhe(v0);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 Mu(e){return"current"in e&&"instanceId"in e.current}const Tu={id:"default"},Tt=(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=Mu(a),p=c!=null?c:f?a.current.instanceId:Tu,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=Mu(a),p=c!=null?c:f?a.current.instanceId:Tu,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=Mu(a),p=c!=null?c:f?a.current.instanceId:Tu,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=Mu(a),p=c!=null?c:f?a.current.instanceId:Tu,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=Mu(a),p=c!=null?c:f?a.current.instanceId:Tu,h=f?a.current.state:a,y=e(h,p);return t(y)};else throw new Error("Missing arguments");return l.acceptsApiRef=!0,l},Tn=(...e)=>{const t=(...n)=>{var r,o;const[s,i]=n,l=Mu(s),a=l?s.current.instanceId:i!=null?i:Tu,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=yhe(...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},bc=e=>e.columns,gl=Tt(bc,e=>e.orderedFields),Jd=Tt(bc,e=>e.lookup),Li=Tn(gl,Jd,(e,t)=>e.map(n=>t[n])),si=Tt(bc,e=>e.columnVisibilityModel),Ar=Tn(Li,si,(e,t)=>e.filter(n=>t[n.field]!==!1)),y0=Tn(Ar,e=>e.map(t=>t.field)),Rd=Tn(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}),wE=Tt(Ar,Rd,(e,t)=>{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),R5=Tn(Li,e=>e.filter(t=>t.filterable)),whe=Tn(Li,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),b0=e=>e.columnGrouping,Che=Tn(b0,e=>{var t;return(t=e==null?void 0:e.unwrappedGroupingModel)!=null?t:{}}),O5=Tn(b0,e=>{var t;return(t=e==null?void 0:e.lookup)!=null?t:{}}),xhe=Tn(b0,e=>{var t;return(t=e==null?void 0:e.headerStructure)!=null?t:[]}),qh=Tt(b0,e=>{var t;return(t=e==null?void 0:e.maxDepth)!=null?t:0}),hi=e=>e.rows,w0=Tt(hi,e=>e.totalRowCount),She=Tt(hi,e=>e.loading),Phe=Tt(hi,e=>e.totalTopLevelRowCount),ca=Tt(hi,e=>e.dataRowIdToModelLookup),cy=Tt(hi,e=>e.dataRowIdToIdLookup),ti=Tt(hi,e=>e.tree),Ehe=Tt(hi,e=>e.groupingName),vO=Tt(hi,e=>e.treeDepths),C0=Tn(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}),xg=Tt(hi,e=>e.dataRowIds),khe=Tt(hi,e=>e==null?void 0:e.additionalRowGroups),ef=Tn(khe,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:{}}})}}),Ihe=Tt(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)}),D5=()=>{var e;const t=za(),n=ut(),r=ot(t,Ar),o=ot(t,w0),s=ot(t,qh),i=ot(t,Ihe);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}},Mhe=e=>{const{classes:t}=e;return Te({root:["main"]},Vt,t)},The=Ir("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"})),_he=u.forwardRef((e,t)=>{var n;const r=ut(),o=Mhe(r),s=(n=r.experimentalFeatures)!=null&&n.ariaV7?D5:null,i=typeof s=="function"?s():null;return D.jsx(The,S({ref:t,className:o.root,ownerState:r},i,{children:e.children}))}),A5=e=>e.sorting,CE=Tt(A5,e=>e.sortedRows),xE=Tn(CE,ca,(e,t)=>e.map(n=>{var r;return{id:n,model:(r=t[n])!=null?r:{}}})),xs=Tt(A5,e=>e.sortModel),$he=Tn(xs,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),SE=e=>e.filter,Or=Tt(SE,e=>e.filterModel);Tt(Or,e=>e.quickFilterValues);const Rhe=e=>e.visibleRowsLookup,L5=Tt(SE,e=>e.filteredRowsLookup);Tt(SE,e=>e.filteredDescendantCountLookup);const Va=Tn(Rhe,xE,(e,t)=>t.filter(n=>e[n.id]!==!1)),Rp=Tn(Va,e=>e.map(t=>t.id)),Ohe=Tn(L5,xE,(e,t)=>t.filter(n=>e[n.id]!==!1)),Dhe=Tn(Ohe,e=>e.map(t=>t.id)),F5=Tn(Va,ti,C0,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),N5=Tt(Va,e=>e.length),x0=Tt(F5,e=>e.length),Ahe=Tn(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})}),Lhe=Tn(Ahe,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),S0=e=>e.focus,Vo=Tt(S0,e=>e.cell),Fhe=Tt(S0,e=>e.columnHeader);Tt(S0,e=>e.columnHeaderFilter);const uy=Tt(S0,e=>e.columnGroupHeader),P0=e=>e.tabIndex,dy=Tt(P0,e=>e.cell),B5=Tt(P0,e=>e.columnHeader);Tt(P0,e=>e.columnHeaderFilter);const Nhe=Tt(P0,e=>e.columnGroupHeader),PE=e=>e.density,Bhe=Tt(PE,e=>e.value),tf=Tt(PE,e=>e.factor),iS=e=>e.columnMenu;function jhe(e){const{VirtualScrollerComponent:t,ColumnHeadersProps:n,children:r}=e,o=za(),s=ut(),i=u.useRef(null),l=ot(o,Ar),a=ot(o,Lhe),c=ot(o,$he),f=ot(o,Rd),p=ot(o,B5),h=ot(o,dy),y=ot(o,Nhe),v=ot(o,Fhe),m=ot(o,uy),C=ot(o,tf),w=ot(o,qh),b=ot(o,iS),x=ot(o,si),P=ot(o,xhe),M=!(y===null&&p===null&&h===null);Lt(()=>{o.current.computeSizeAndPublishResizeEvent();const T=i.current;if(typeof ResizeObserver=="undefined")return()=>{};let A;const z=new ResizeObserver(()=>{A=requestAnimationFrame(()=>{o.current.computeSizeAndPublishResizeEvent()})});return T&&z.observe(T),()=>{A&&window.cancelAnimationFrame(A),T&&z.unobserve(T)}},[o]);const E=u.useRef(null),I=u.useRef(null),R=u.useRef(null);o.current.register("private",{columnHeadersContainerElementRef:I,columnHeadersElementRef:E,virtualScrollerRef:R,mainElementRef:i});const O=!!o.current.getRootDimensions();return D.jsxs(_he,{ref:i,children:[D.jsx(s.slots.columnHeaders,S({ref:I,innerRef:E,visibleColumns:l,filterColumnLookup:a,sortColumnLookup:c,columnPositions:f,columnHeaderTabIndexState:p,columnGroupHeaderTabIndexState:y,columnHeaderFocus:v,columnGroupHeaderFocus:m,densityFactor:C,headerGroupingMaxDepth:w,columnMenuState:b,columnVisibility:x,columnGroupsHeaderStructure:P,hasOtherElementInTabSequence:M},n)),O&&D.jsx(t,{ref:R}),r]})}function zhe(){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",sd=Symbol("mui.id_autogenerated"),Vhe=()=>({type:"group",id:ao,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function Hhe(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 fy=(e,t,n)=>{const r=t?t(e):e.id;return Hhe(r,e,n),r},tv=({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=fy(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}},j5=({tree:e,rowCountProp:t=0})=>{const n=e[ao];return Math.max(t,n.children.length+(n.footerId==null?0:1))},z5=({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:j5({tree:f.tree,rowCountProp:t}),groupingName:c,loading:n})},gh=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,EE=(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||!gh(e[i]))&&o.push(i);const l=EE(e,i,n);for(let a=0;a<l.length;a+=1)o.push(l[a])}return!n&&r.footerId!=null&&o.push(r.footerId),o},Uhe=({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=fy(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 V5(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 H5(e,t){const n=tf(e);return`var(--DataGrid-overlayHeight, ${2*Math.floor(t*n)}px)`}const Whe=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})),Ghe=Ir("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),Khe=e=>{const{classes:t}=e;return Te({root:["overlayWrapper"],inner:["overlayWrapperInner"]},Vt,t)};function qhe(e){var t,n;const r=zt(),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]);Lt(()=>r.current.subscribeEvent("viewportInnerSizeChange",l),[r,l]);let a=(t=s==null?void 0:s.height)!=null?t:0;o.autoHeight&&a===0&&(a=H5(r,o.rowHeight));const c=Khe(S({},e,{classes:o.classes}));return s?D.jsx(Whe,{className:be(c.root),overlayType:e.overlayType,children:D.jsx(Ghe,S({className:be(c.inner),style:{height:a,width:(n=s==null?void 0:s.width)!=null?n:0}},e))}):null}function Yhe(){const e=zt(),t=ut(),n=ot(e,w0),r=ot(e,N5),o=ot(e,She),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(qhe,{overlayType:a,children:l})}function E0(e){return u.memo(e,$5)}let aC;function Qhe(){return aC===void 0&&document.createElement("div").focus({get preventScroll(){return aC=!0,!1}}),aC}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||{}),rl=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(rl||{}),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||{}),ol=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(ol||{});function U5(e){return e.field!==void 0}function Xhe(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Zhe(e,t){return e.closest(`.${t}`)}function kE(e){return e.replace(/["\\]/g,"\\$&")}function Jhe(e,t){return e.querySelector(`[role="columnheader"][data-field="${kE(t)}"]`)}function W5(e){return`.${de.row}[data-id="${kE(String(e))}"]`}function eme(e,t){return e.querySelector(W5(t))}function tme(e,{id:t,field:n}){const r=W5(t),o=`.${de.cell}[data-field="${kE(n)}"]`,s=`${r} ${o}`;return e.querySelector(s)}function Yh(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function Ft(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 Uu extends Error{}function nme(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 Uu(`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 Uu(`No row with id #${v} found`);const b=Vo(e),x=dy(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 Uu(`No row with id #${v} found`);const P=Vo(e),M=dy(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 Uu(`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=sd in v?v[sd]:(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[sd],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?Jhe(e.current.rootElementRef.current,v):null,[e]),p=u.useCallback(v=>e.current.rootElementRef.current?eme(e.current.rootElementRef.current,v):null,[e]),h=u.useCallback((v,m)=>e.current.rootElementRef.current?tme(e.current.rootElementRef.current,{id:v,field:m}):null,[e]);Ft(e,{getCellValue:l,getCellParams:i,getCellElement:h,getRowValue:a,getRowFormattedValue:c,getRowParams:o,getRowElement:p,getColumnHeaderParams:r,getColumnHeaderElement:f},"public")}const rme=["changeReason","unstable_updateValueOnRender"],ome=["column","rowId","editCellState","align","children","colIndex","height","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","isNotVisible","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver","style"],sme=["changeReason","unstable_updateValueOnRender"],py={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:{}},ime=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,Vt,i)},lme=u.forwardRef((e,t)=>{const{column:n,rowId:r,editCellState:o}=e,s=zt(),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 Uu)return py;throw R}},bE),c=ot(s,()=>s.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:l}));if(a===py)return null;const{cellMode:f,hasFocus:p,isEditable:h,value:y,formattedValue:v}=a,m=n.type==="actions",C=(f==="view"||!h)&&!m?a.tabIndex:-1,{classes:w,getCellClassName:b}=i,x=s.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:l});n.cellClassName&&x.push(typeof n.cellClassName=="function"?n.cellClassName(a):n.cellClassName),b&&x.push(b(a));let P;if(o==null&&n.renderCell&&(P=n.renderCell(a),x.push(de["cell--withRenderer"]),x.push(w==null?void 0:w["cell--withRenderer"])),o!=null&&n.renderEditCell){const R=s.current.getRowWithUpdatedValues(r,n.field),O=ae(o,rme),T=S({},a,{row:R},O);P=n.renderEditCell(T),x.push(de["cell--editing"]),x.push(w==null?void 0:w["cell--editing"])}const{slots:M}=i,E=M.cell,I=S({},e,{ref:t,field:l,formattedValue:v,hasFocus:p,isEditable:h,isSelected:c,value:y,cellMode:f,children:P,tabIndex:C,className:be(x)});return u.createElement(E,I)}),ame=E0(lme),cme=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:I,onKeyUp:R,onDragEnter:O,onDragOver:T,style:A}=e,z=ae(e,ome),N=zt(),_=ut(),$=i.field,F=ot(N,()=>{try{const Me=N.current.getCellParams(l,$);return Me.api=N.current,Me}catch(Se){if(Se instanceof Uu)return py;throw Se}},bE),V=ot(N,()=>N.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:l,field:$})),{cellMode:L,hasFocus:B,isEditable:H,value:K,formattedValue:Y}=F,J=i.type==="actions"&&((n=(r=i).getActions)==null?void 0:n.call(r,N.current.getRowParams(l)).some(Se=>!Se.props.disabled)),Q=(L==="view"||!H)&&!J?F.tabIndex:-1,{classes:X,getCellClassName:te}=_,se=N.current.unstable_applyPipeProcessors("cellClassName",[],{id:l,field:$});i.cellClassName&&se.push(typeof i.cellClassName=="function"?i.cellClassName(F):i.cellClassName),te&&se.push(te(F));const Z=Y==null?K:Y,pe=u.useRef(null),ne=kt(t,pe),re=u.useRef(null),me=(o=_.unstable_cellSelection)!=null?o:!1,ce={align:c,showRightBorder:v,isEditable:H,classes:_.classes,isSelected:V,isSelectionMode:me},xe=ime(ce),ke=u.useCallback(Se=>Me=>{const Oe=N.current.getCellParams(l,$||"");N.current.publishEvent(Se,Oe,Me),M&&M(Me)},[N,$,M,l]),fe=u.useCallback(Se=>Me=>{const Oe=N.current.getCellParams(l,$||"");N.current.publishEvent(Se,Oe,Me),P&&P(Me)},[N,$,P,l]),Ie=u.useCallback((Se,Me)=>Oe=>{if(!N.current.getRow(l))return;const Ne=N.current.getCellParams(l,$||"");N.current.publishEvent(Se,Ne,Oe),Me&&Me(Oe)},[N,$,l]),ve=u.useMemo(()=>S(w?{padding:0,opacity:0,width:0,border:0}:{minWidth:h,maxWidth:h,minHeight:p,maxHeight:p==="auto"?"none":p},A),[h,p,w,A]);if(u.useEffect(()=>{if(!B||L===un.Edit)return;const Se=pn(N.current.rootElementRef.current);if(pe.current&&!pe.current.contains(Se.activeElement)){const Me=pe.current.querySelector('[tabindex="0"]'),Oe=re.current||Me||pe.current;if(Qhe())Oe.focus({preventScroll:!0});else{const Ne=N.current.getScrollPosition();Oe.focus(),N.current.scroll(Ne)}}},[B,L,N]),F===py)return null;let Re=z.onFocus,ie;if(a==null&&i.renderCell&&(ie=i.renderCell(F),se.push(de["cell--withRenderer"]),se.push(X==null?void 0:X["cell--withRenderer"])),a!=null&&i.renderEditCell){const Se=N.current.getRowWithUpdatedValues(l,i.field),Me=ae(a,sme),Oe=S({},F,{row:Se},Me);ie=i.renderEditCell(Oe),se.push(de["cell--editing"]),se.push(X==null?void 0:X["cell--editing"])}if(ie===void 0){const Se=Z==null?void 0:Z.toString();ie=D.jsx("div",{className:xe.content,title:Se,role:"presentation",children:Se})}u.isValidElement(ie)&&J&&(ie=u.cloneElement(ie,{focusElementRef:re}));const ue=C?null:{onDragEnter:Ie("cellDragEnter",O),onDragOver:Ie("cellDragOver",T)},we=(s=_.experimentalFeatures)==null?void 0:s.ariaV7;return D.jsx("div",S({ref:ne,className:be(y,se,xe.root),role:we?"gridcell":"cell","data-field":$,"data-colindex":f,"aria-colindex":f+1,"aria-colspan":m,style:ve,tabIndex:Q,onClick:Ie("cellClick",b),onDoubleClick:Ie("cellDoubleClick",x),onMouseOver:Ie("cellMouseOver",E),onMouseDown:fe("cellMouseDown"),onMouseUp:ke("cellMouseUp"),onKeyDown:Ie("cellKeyDown",I),onKeyUp:Ie("cellKeyUp",R)},ue,z,{onFocus:Re,children:ie}))}),lS=E0(cme),ume=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex"],dme=e=>{const{classes:t}=e;return Te({root:["booleanCell"]},Vt,t)};function fme(e){const{value:t}=e,n=ae(e,ume),r=zt(),o=ut(),s={classes:o.classes},i=dme(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 pme=u.memo(fme),hme=e=>gh(e.rowNode)?"":D.jsx(pme,S({},e)),mme=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],gme=e=>{const{classes:t}=e;return Te({root:["editBooleanCell"]},Vt,t)};function vme(e){var t;const{id:n,value:r,field:o,className:s,hasFocus:i,onValueChange:l}=e,a=ae(e,mme),c=zt(),f=u.useRef(null),p=Yt(),[h,y]=u.useState(r),v=ut(),m={classes:v.classes},C=gme(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]),Lt(()=>{i&&f.current.focus()},[i]),D.jsx("label",S({htmlFor:p,className:be(C.root,s)},a,{children:D.jsx(v.slots.baseCheckbox,S({id:p,inputRef:f,checked:!!h,onChange:w,size:"small"},(t=v.slotProps)==null?void 0:t.baseCheckbox))}))}const yme=e=>D.jsx(vme,S({},e)),bme=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],wme=oe(Wd)({fontSize:"inherit"}),Cme=e=>{const{classes:t}=e;return Te({root:["editInputCell"]},Vt,t)};function xme(e){const{id:t,value:n,field:r,colDef:o,hasFocus:s,inputProps:i,onValueChange:l}=e,a=ae(e,bme),c=o.type==="dateTime",f=zt(),p=u.useRef(),h=u.useMemo(()=>{let P;n==null?P=null:n instanceof Date?P=n:P=new Date((n!=null?n:"").toString());let M;return P==null||Number.isNaN(P.getTime())?M="":M=new Date(P.getTime()-P.getTimezoneOffset()*60*1e3).toISOString().substr(0,c?16:10),{parsed:P,formatted:M}},[n,c]),[y,v]=u.useState(h),C={classes:ut().classes},w=Cme(C),b=u.useCallback(P=>{if(P==="")return null;const[M,E]=P.split("T"),[I,R,O]=M.split("-"),T=new Date;if(T.setFullYear(Number(I),Number(R)-1,Number(O)),T.setHours(0,0,0,0),E){const[A,z]=E.split(":");T.setHours(Number(A),Number(z),0,0)}return T},[]),x=u.useCallback(P=>rt(this,null,function*(){const M=P.target.value,E=b(M);l&&(yield l(P,E)),v({parsed:E,formatted:M}),f.current.setEditCellValue({id:t,field:r,value:E},P)}),[f,r,t,l,b]);return u.useEffect(()=>{v(P=>{var M,E;return h.parsed!==P.parsed&&((M=h.parsed)==null?void 0:M.getTime())!==((E=P.parsed)==null?void 0:E.getTime())?h:P})},[h]),Lt(()=>{s&&p.current.focus()},[s]),D.jsx(wme,S({inputRef:p,fullWidth:!0,className:w.root,type:c?"datetime-local":"date",inputProps:S({max:c?"9999-12-31T23:59":"9999-12-31"},i),value:y.formatted,onChange:x},a))}const G5=e=>D.jsx(xme,S({},e)),Sme=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],Pme=e=>{const{classes:t}=e;return Te({root:["editInputCell"]},Vt,t)},Eme=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%"}})),kme=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=ae(e,Sme),h=zt(),y=u.useRef(),[v,m]=u.useState(o),C=Pme(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]),Lt(()=>{l&&y.current.focus()},[l]),D.jsx(Eme,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))}),Ime=e=>D.jsx(kme,S({},e)),hy=e=>e==="Escape",Mme=e=>e==="Enter",K5=e=>e==="Tab",q5=e=>e===" ",Tme=e=>e.indexOf("Arrow")===0,_me=e=>e==="Home"||e==="End",$me=e=>e.indexOf("Page")===0;function Y5(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const my=e=>_me(e)||Tme(e)||$me(e)||q5(e),Rme=e=>!!e.key,Ome=e=>K5(e)||hy(e);function wc(e){return(e==null?void 0:e.type)==="singleSelect"}function aS(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 Dme=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","getOptionLabel","getOptionValue"],Ame=["MenuProps"];function Lme(e){return!!e.key}function Fme(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=ae(e,Dme),w=zt(),b=u.useRef(),x=u.useRef(),[P,M]=u.useState(y),I=(n=(((t=o.slotProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1,R=((r=o.slotProps)==null?void 0:r.baseSelect)||{},{MenuProps:O}=R,T=ae(R,Ame);if(Lt(()=>{if(f){var V;(V=x.current)==null||V.focus()}},[f]),!wc(c))return null;let A;if(typeof(c==null?void 0:c.valueOptions)=="function"?A=c==null?void 0:c.valueOptions({id:s,row:a,field:l}):A=c==null?void 0:c.valueOptions,!A)return null;const z=m||c.getOptionValue,N=v||c.getOptionLabel,_=V=>rt(this,null,function*(){if(!wc(c)||!A)return;M(!1);const L=V.target,B=aS(L.value,A,z);h&&(yield h(V,B)),yield w.current.setEditCellValue({id:s,field:l,value:B},V)}),$=(V,L)=>{if(o.editMode===Hi.Row){M(!1);return}if(L==="backdropClick"||hy(V.key)){const B=w.current.getCellParams(s,l);w.current.publishEvent("cellEditStop",S({},B,{reason:hy(V.key)?Zs.escapeKeyDown:Zs.cellFocusOut}))}},F=V=>{Lme(V)&&V.key==="Enter"||M(!0)};return!A||!c?null:D.jsx(o.slots.baseSelect,S({ref:b,inputRef:x,value:i,onChange:_,open:P,onOpen:F,MenuProps:S({onClose:$},O),error:p,native:I,fullWidth:!0},C,T,{children:A.map(V=>{var L;const B=z(V);return u.createElement(o.slots.baseSelectOption,S({},((L=o.slotProps)==null?void 0:L.baseSelectOption)||{},{native:I,key:B,value:B}),N(V))})}))}const Nme=e=>D.jsx(Fme,S({},e)),Bme=["open","target","onClose","children","position","className","onExited"],jme=e=>{const{classes:t}=e;return Te({root:["menu"]},Vt,t)},zme=oe(Ba,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${de.menuList}`]:{outline:0}})),Vme={"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=ae(e,Bme),f=zt(),p=ut(),h=jme(p),y=u.useRef(null);Lt(()=>{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(zme,S({as:p.slots.basePopper,className:be(l,h.root),ownerState:p,open:n,anchorEl:r,transition:!0,placement:i},c,(t=p.slotProps)==null?void 0:t.basePopper,{children:({TransitionProps:C,placement:w})=>D.jsx(b4,{onClickAway:m,mouseEvent:"onMouseDown",children:D.jsx(dh,S({},C,{style:{transformOrigin:Vme[w]},onExited:v(C==null?void 0:C.onExited),children:D.jsx(zs,{children:s})}))})}))}const Hme=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],Ume=e=>typeof e.getActions=="function";function Wme(e){var t;const{colDef:n,id:r,hasFocus:o,tabIndex:s,position:i="bottom-end",focusElementRef:l}=e,a=ae(e,Hme),[c,f]=u.useState(-1),[p,h]=u.useState(!1),y=zt(),v=u.useRef(null),m=u.useRef(null),C=u.useRef(!1),w=u.useRef({}),b=vn(),x=Yt(),P=Yt(),M=ut();if(!Ume(n))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const E=n.getActions(y.current.getRowParams(r)),I=E.filter(F=>!F.props.showInMenu),R=E.filter(F=>F.props.showInMenu),O=I.length+(R.length?1:0);u.useLayoutEffect(()=>{o||Object.entries(w.current).forEach(([F,V])=>{V==null||V.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(V=>!V.props.disabled);f(F)}}}),[E]),u.useEffect(()=>{c>=O&&f(O-1)},[c,O]);const T=()=>{h(!0),f(O-1),C.current=!0},A=()=>{h(!1)},z=F=>V=>{w.current[F]=V},N=(F,V)=>L=>{f(F),C.current=!0,V&&V(L)},_=F=>{if(O<=1)return;const V=(B,H)=>{var K;if(B<0||B>E.length)return B;const Y=b.direction==="rtl"?-1:1,J=(H==="left"?-1:1)*Y;return(K=E[B+J])!=null&&K.props.disabled?V(B+J,H):B+J};let L=c;F.key==="ArrowRight"?L=V(c,"right"):F.key==="ArrowLeft"&&(L=V(c,"left")),!(L<0||L>=O)&&L!==c&&(F.preventDefault(),F.stopPropagation(),f(L))},$=F=>{F.key==="Tab"&&F.preventDefault(),["Tab","Enter","Escape"].includes(F.key)&&A()};return D.jsxs("div",S({role:"menu",ref:v,tabIndex:-1,className:de.actionsCell,onKeyDown:_},a,{children:[I.map((F,V)=>u.cloneElement(F,{key:V,touchRippleRef:z(V),onClick:N(V,F.props.onClick),tabIndex:c===V?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:T,touchRippleRef:z(P),tabIndex:c===I.length?s:-1},(t=M.slotProps)==null?void 0:t.baseIconButton,{children:D.jsx(M.slots.moreActionsIcon,{fontSize:"small"})})),R.length>0&&D.jsx(Q5,{open:p,target:m.current,position:i,onClose:A,onClick:A,children:D.jsx(Yd,{id:x,className:de.menuList,onKeyDown:$,"aria-labelledby":P,variant:"menu",autoFocusItem:!0,children:R.map((F,V)=>u.cloneElement(F,{key:V}))})})]}))}const Gme=e=>D.jsx(Wme,S({},e)),Kme=["label","icon","showInMenu","onClick"],Sg=u.forwardRef((e,t)=>{const{label:n,icon:r,showInMenu:o,onClick:s}=e,i=ae(e,Kme),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(ml,{children:r}),n]}))}),qme=["field","align","width","contentWidth"],Yme=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${Pe(t)}`,"withBorderColor"]};return Te(r,Vt,n)};function Qme(e){const{align:t,width:n,contentWidth:r}=e,o=ae(e,qme),i={classes:ut().classes,align:t},l=Yme(i);return D.jsx("div",S({className:l.root,style:{width:n}},o,{children:D.jsx(fae,{width:`${r}%`})}))}function Xme(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?$c(lt(e.palette.divider,1),.88):_c(lt(e.palette.divider,1),.68)}const yO={[`.${de.columnSeparator}, .${de["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},bO={[`& .${de.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${de.menuIcon}`]:{width:"auto",visibility:"visible"}},Zme=oe("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${de.autoHeight}`]:t.autoHeight},{[`&.${de.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${de["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${de["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${de["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${de.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${de["root--disableUserSelection"]} .${de.cell}`]:t["root--disableUserSelection"]},{[`&.${de.autosizing}`]:t.autosizing},{[`& .${de.editBooleanCell}`]:t.editBooleanCell},{[`& .${de["cell--editing"]}`]:t["cell--editing"]},{[`& .${de["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${de["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${de["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${de["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${de.cell}`]:t.cell},{[`& .${de["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${de["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${de["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${de["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${de["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${de.cellContent}`]:t.cellContent},{[`& .${de.cellCheckbox}`]:t.cellCheckbox},{[`& .${de.cellSkeleton}`]:t.cellSkeleton},{[`& .${de.checkboxInput}`]:t.checkboxInput},{[`& .${de["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${de["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${de["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${de["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${de["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${de["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${de["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${de["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${de["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${de.columnHeader}`]:t.columnHeader},{[`& .${de.headerFilterRow}`]:t.headerFilterRow},{[`& .${de.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${de.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${de.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${de["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${de["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${de.columnSeparator}`]:t.columnSeparator},{[`& .${de.filterIcon}`]:t.filterIcon},{[`& .${de.iconSeparator}`]:t.iconSeparator},{[`& .${de.menuIcon}`]:t.menuIcon},{[`& .${de.menuIconButton}`]:t.menuIconButton},{[`& .${de.menuOpen}`]:t.menuOpen},{[`& .${de.menuList}`]:t.menuList},{[`& .${de["row--editable"]}`]:t["row--editable"]},{[`& .${de["row--editing"]}`]:t["row--editing"]},{[`& .${de["row--dragging"]}`]:t["row--dragging"]},{[`& .${de.row}`]:t.row},{[`& .${de.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${de.rowReorderCell}`]:t.rowReorderCell},{[`& .${de["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${de.sortIcon}`]:t.sortIcon},{[`& .${de.withBorderColor}`]:t.withBorderColor},{[`& .${de.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${de.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${de.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${de["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=Xme(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",[`&.${de.autoHeight}`]:{height:"auto",[`& .${de["row--lastVisible"]} .${de.cell}`]:{borderBottomColor:"transparent"}},[`&.${de.autosizing}`]:{[`& .${de.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},[`& .${de.cell} > *`]:{overflow:"visible !important",whiteSpace:"nowrap"}},[`& .${de["virtualScrollerContent--overflowed"]} .${de["row--lastVisible"]} .${de.cell}`]:{borderBottomColor:"transparent"},[`& .${de.columnHeader}, & .${de.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${de.columnHeader}:focus-within, & .${de.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:lt(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${de.columnHeader}:focus, & .${de.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${de.columnHeaderCheckbox}, & .${de.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${de.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${de["columnHeader--sorted"]} .${de.iconButtonContainer}, & .${de["columnHeader--filtered"]} .${de.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${de.columnHeader}:not(.${de["columnHeader--sorted"]}) .${de.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${de.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${de.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${de["columnHeader--filledGroup"]} .${de.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${de["columnHeader--filledGroup"]}.${de["columnHeader--showColumnBorder"]} .${de.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${de["columnHeader--filledGroup"]}.${de["columnHeader--showColumnBorder"]}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${de.headerFilterRow}`]:{borderTop:`1px solid ${t}`},[`& .${de.sortIcon}, & .${de.filterIcon}`]:{fontSize:"inherit"},[`& .${de["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${de["columnHeader--alignCenter"]} .${de.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${de["columnHeader--alignRight"]} .${de.columnHeaderDraggableContainer}, & .${de["columnHeader--alignRight"]} .${de.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${de["columnHeader--alignCenter"]} .${de.menuIcon}, & .${de["columnHeader--alignRight"]} .${de.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${de["columnHeader--alignRight"]} .${de.menuIcon}, & .${de["columnHeader--alignRight"]} .${de.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${de["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${de.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},"@media (hover: hover)":{[`& .${de.columnHeaders}:hover`]:yO,[`& .${de.columnHeader}:hover`]:bO,[`& .${de.columnHeader}:not(.${de["columnHeader--sorted"]}):hover .${de.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${de.columnHeaders}`]:yO,[`& .${de.columnHeader}`]:bO},[`& .${de["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${de["columnSeparator--sideRight"]}`]:{right:-12},[`& .${de["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(e.vars||e).palette.text.primary,"@media (hover: none)":{color:t}},[`&.${de["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${de.iconSeparator}`]:{color:"inherit"},[`& .${de.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${de.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${de.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`: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)}}}},[`& .${de.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`: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)}}}},[`&.${de["root--disableUserSelection"]} .${de.cell}`]:{userSelect:"none"},[`& .${de.row}:not(.${de["row--dynamicHeight"]}) > .${de.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${de.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${de.cell}.${de["cell--selectionMode"]}`]:{cursor:"default"},[`& .${de.cell}.${de["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${de["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${de["row--editing"]} .${de.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${de.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${de.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${de.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${de.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${de.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${de["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${de.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${de.withBorderColor}`]:{borderColor:t},[`& .${de["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${de["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${de["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${de["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${de["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${de.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${de.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${de["columnHeader--dragging"]}, & .${de["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${de["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${de.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${de.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${de.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${de.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${de.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),Jme=["children","className"],ege=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${Pe(n)}`,"withBorderColor"]};return Te(o,Vt,r)},tge=u.forwardRef(function(t,n){var r;const o=ut(),{children:s,className:i}=t,l=ae(t,Jme),a=za(),c=ot(a,Bhe),f=u.useRef(null),p=kt(f,n),h=(r=o.experimentalFeatures)!=null&&r.ariaV7?null:D5,y=typeof h=="function"?h():null,v=S({},o,{density:c}),m=ege(v);a.current.register("public",{rootElementRef:f});const[C,w]=u.useState(!1);return Lt(()=>{w(!0)},[]),C?D.jsx(Zme,S({ref:p,className:be(i,m.root),ownerState:v},y,l,{children:s})):null}),nge=["className"],rge=e=>{const{classes:t}=e;return Te({root:["footerContainer","withBorderColor"]},Vt,t)},oge=Ir("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),sge=u.forwardRef(function(t,n){const{className:r}=t,o=ae(t,nge),s=ut(),i=rge(s);return D.jsx(oge,S({ref:n,className:be(i.root,r),ownerState:s},o))}),ige=["className"],lge=e=>{const{classes:t}=e;return Te({root:["overlay"]},Vt,t)},age=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)"}),IE=u.forwardRef(function(t,n){const{className:r}=t,o=ae(t,ige),s=ut(),i=lge(s);return D.jsx(age,S({ref:n,className:be(i.root,r),ownerState:s},o))}),cge=["className"],uge=e=>{const{classes:t}=e;return Te({root:["iconButtonContainer"]},Vt,t)},dge=Ir("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),X5=u.forwardRef(function(t,n){const{className:r}=t,o=ae(t,cge),s=ut(),i=uge(s);return D.jsx(dge,S({ref:n,className:be(i.root,r),ownerState:s},o))}),fge=e=>{const{classes:t}=e;return Te({icon:["sortIcon"]},Vt,t)};function pge(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 hge(e){var t;const{direction:n,index:r,sortingOrder:o}=e,s=zt(),i=ut(),l=S({},e,{classes:i.classes}),a=fge(l),c=pge(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(X5,{children:[r!=null&&D.jsx(A4,{badgeContent:r,color:"default",children:f}),r==null&&f]})}const mge=u.memo(hge),gge=e=>{const{classes:t,open:n}=e;return Te({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Vt,t)},vge=u.memo(e=>{var t,n;const{colDef:r,open:o,columnMenuId:s,columnMenuButtonId:i,iconButtonRef:l}=e,a=zt(),c=ut(),f=S({},e,{classes:c.classes}),p=gge(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 yge({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:s,target:i,onExited:l}){const a=zt(),c=a.current.getColumn(o),f=qe(p=>{p&&(p.stopPropagation(),i!=null&&i.contains(p.target))||a.current.hideColumnMenu()});return!i||!c?null:D.jsx(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"],wge=e=>{const{classes:t}=e;return Te({root:["columnHeaderTitle"]},Vt,t)},Cge=Ir("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),xge=u.forwardRef(function(t,n){const{className:r}=t,o=ae(t,bge),s=ut(),i=wge(s);return D.jsx(Cge,S({ref:n,className:be(i.root,r),ownerState:s},o))});function Sge(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=Xhe(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(xge,{onMouseOver:a,ref:s,children:n})}))}const Pge=["resizable","resizing","height","side"];var Z5=function(e){return e.Left="left",e.Right="right",e}(Z5||{});const Ege=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,Vt,r)};function kge(e){const{height:t,side:n=Z5.Right}=e,r=ae(e,Pge),o=ut(),s=S({},e,{side:n,classes:o.classes}),i=Ege(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 Ige=u.memo(kge),Mge=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps"],J5=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:I}=t,R=ae(t,Mge),O=za(),T=ut(),A=u.useRef(null),[z,N]=u.useState(o),_=kt(A,n);let $="none";return a!=null&&($=a==="asc"?"ascending":"descending"),u.useEffect(()=>{z||N(o)},[z,o]),u.useLayoutEffect(()=>{const F=O.current.state.columnMenu;if(c&&!F.open){const L=A.current.querySelector('[tabindex="0"]')||A.current;L==null||L.focus(),O.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[O,c]),D.jsxs("div",S({ref:_,className:be(r.root,x),style:{height:i,width:m,minWidth:m,maxWidth:m},role:"columnheader",tabIndex:f,"aria-colindex":s+1,"aria-sort":$,"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(Sge,{label:P,description:v,columnWidth:m})}),b]}),C]})),D.jsx(Ige,S({resizable:!T.disableColumnResize&&!!M,resizing:l,height:i,side:p},I)),w]}))}),Tge=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,Vt,n)};function _ge(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=Yt(),M=Yt(),E=u.useRef(null),[I,R]=u.useState(i),O=u.useMemo(()=>!b.disableColumnReorder&&!m&&!s.disableReorder,[b.disableColumnReorder,m,s.disableReorder]);let T;s.renderHeader&&(T=s.renderHeader(w.current.getColumnHeaderParams(s.field)));const A=S({},e,{classes:b.classes,showRightBorder:b.showColumnVerticalBorder}),z=Tge(A),N=u.useCallback(Q=>X=>{Yh(X)||w.current.publishEvent(Q,w.current.getColumnHeaderParams(s.field),X)},[w,s.field]),_=u.useMemo(()=>({onClick:N("columnHeaderClick"),onDoubleClick:N("columnHeaderDoubleClick"),onMouseOver:N("columnHeaderOver"),onMouseOut:N("columnHeaderOut"),onMouseEnter:N("columnHeaderEnter"),onMouseLeave:N("columnHeaderLeave"),onKeyDown:N("columnHeaderKeyDown"),onFocus:N("columnHeaderFocus"),onBlur:N("columnHeaderBlur")}),[N]),$=u.useMemo(()=>O?{onDragStart:N("columnHeaderDragStart"),onDragEnter:N("columnHeaderDragEnter"),onDragOver:N("columnHeaderDragOver"),onDragEnd:N("columnHeaderDragEnd")}:{},[O,N]),F=u.useMemo(()=>({onMouseDown:N("columnSeparatorMouseDown"),onDoubleClick:N("columnSeparatorDoubleClick")}),[N]);u.useEffect(()=>{I||R(i)},[I,i]);const V=u.useCallback(()=>{R(!1)},[]),L=!b.disableColumnMenu&&!s.disableColumnMenu&&D.jsx(vge,{colDef:s,columnMenuId:P,columnMenuButtonId:M,open:I,iconButtonRef:E}),B=D.jsx(yge,{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:V}),H=(n=s.sortingOrder)!=null?n:b.sortingOrder,K=D.jsxs(u.Fragment,{children:[!b.disableColumnFilter&&D.jsx(b.slots.columnHeaderFilterIconButton,S({field:s.field,counter:h},(r=b.slotProps)==null?void 0:r.columnHeaderFilterIconButton)),s.sortable&&!s.hideSortIcons&&D.jsx(mge,{direction:f,index:p,sortingOrder:H})]});u.useLayoutEffect(()=>{const Q=w.current.state.columnMenu;if(y&&!Q.open){const te=x.current.querySelector('[tabindex="0"]')||x.current;te==null||te.focus(),w.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[w,y]);const Y=typeof s.headerClassName=="function"?s.headerClassName({field:s.field,colDef:s}):s.headerClassName,J=(o=s.headerName)!=null?o:s.field;return D.jsx(J5,S({ref:x,classes:z,columnMenuOpen:i,colIndex:l,height:a,isResizing:c,sortDirection:f,hasFocus:y,tabIndex:v,separatorSide:C,isDraggable:O,headerComponent:T,description:s.description,elementId:s.field,width:s.computedWidth,columnMenuIconButton:L,columnTitleIconButtons:K,headerClassName:Y,label:J,resizable:!b.disableColumnResize&&!!s.resizable,"data-field":s.field,columnMenu:B,draggableContainerProps:$,columnHeaderSeparatorProps:F},_))}const vh=()=>({items:[],logicOperator:So.And,quickFilterValues:[],quickFilterLogicOperator:So.And}),wO=1e3;let $ge=class{constructor(t=wO){this.timeouts=new Map,this.cleanupTimeout=wO,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)}},Rge=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 Oge=class{};function Dge(e){let t=0;return function(r,o,s,i){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new Rge:new $ge);const[l]=u.useState(new Oge),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 Age={registry:null},dt=Dge(Age),Lge={isFirst:!0};function In(e,t,n){dt(e,t,n,Lge)}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 Fge(e){return typeof e=="number"&&!Number.isNaN(e)}function e3(e){return typeof e=="function"}function ME(e){return typeof e=="object"&&e!==null}function Nge(){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 nv(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Od=(e,t,n)=>Math.max(t,Math.min(n,e));function Cc(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(!Cc(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(!Cc(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(!Cc(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Bge(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 jge(e,t,n){const r=Bge(e);return()=>t+(n-t)*r()}function t3(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const zge=(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(e3(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])},Qh=e=>{const t=u.useRef(!0);t.current&&(t.current=!1,e())},Vge=100,Hge=e=>e?0:100,n3=(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 r3=e=>({page:0,pageSize:e?0:100}),Uge=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),o3=(e,t)=>{if(t===Fi.DataGrid&&e>Vge)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
|
-
`))},s3=e=>e.pagination,Es=Tt(s3,e=>e.paginationModel),Wge=Tt(Es,e=>e.page),Gge=Tt(Es,e=>e.pageSize);Tt(Es,x0,(e,t)=>n3(t,e.pageSize));const TE=Tn(Es,ti,C0,Va,F5,(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}}),Kge=Tn(Va,TE,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),i3=Tn(Rp,TE,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),yh=e=>e.preferencePanel;var Ac=function(e){return e.filters="filters",e.columns="columns",e}(Ac||{});const bh=e=>e.rowsMeta,Ss=e=>e.rowSelection,qge=Tt(Ss,e=>e.length),Yge=Tn(Ss,ca,(e,t)=>new Map(e.map(n=>[n,t[n]]))),gy=Tn(Ss,e=>e.reduce((t,n)=>(t[n]=n,t),{})),Qge=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"),l3=(e,t)=>t&&e.length>1?(Qge(),[e[0]]):e,CO=(e,t)=>n=>S({},n,{sorting:S({},n.sorting,{sortModel:l3(e,t)})}),Xge=e=>e==="desc",Zge=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=Xge(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}},Jge=(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),eve=(e,t)=>{const n=e.map(r=>Zge(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)=>Jge(n,o,s)).map(o=>o.node.id)},xO=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},_E=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,tve=new Intl.Collator,nve=(e,t)=>{const n=_E(e,t);return n!==null?n:typeof e=="string"?tve.compare(e.toString(),t.toString()):e-t},a3=(e,t)=>{const n=_E(e,t);return n!==null?n:Number(e)-Number(t)},c3=(e,t)=>{const n=_E(e,t);return n!==null?n:e>t?1:e<t?-1:0},u3=e=>e.headerFiltering,rve=Tt(u3,e=>e.editing),ove=Tt(u3,e=>e.menuOpen),sve=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0};return S({},e,{virtualization:n})};function ive(e,t){const n=s=>{e.current.setState(i=>S({},i,{virtualization:S({},i.virtualization,{enabled:s})}))};Ft(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 d3=e=>e.virtualization,lve=Tt(d3,e=>e.enabled),f3=Tt(d3,e=>e.enabledForColumns),ave=e=>{const{classes:t}=e;return Te({icon:["filterIcon"]},Vt,t)};function cve(e){var t,n;const{counter:r,field:o,onClick:s}=e,i=zt(),l=ut(),a=S({},e,{classes:l.classes}),c=ave(a),f=ot(i,yh),p=Yt(),h=Yt(),y=u.useCallback(C=>{C.preventDefault(),C.stopPropagation();const{open:w,openedPanelValue:b}=yh(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(X5,{children:[r>1&&D.jsx(A4,{badgeContent:r,color:"default",children:m}),r===1&&m]})}))}const uve=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],dve=e=>{const{classes:t}=e;return Te({root:["checkboxInput"]},Vt,t)},fve=u.forwardRef(function(t,n){var r;const{field:o,id:s,value:i,rowNode:l,hasFocus:a,tabIndex:c}=t,f=ae(t,uve),p=zt(),h=ut(),y={classes:h.classes},v=dve(y),m=u.useRef(null),C=u.useRef(null),w=kt(m,n),b=p.current.getCellElement(s,o),x=I=>{const R={value:I.target.checked,id:s};p.current.publishEvent("rowSelectionCheckboxChange",R,I)};u.useLayoutEffect(()=>{c===0&&b&&(b.tabIndex=-1)},[b,c]),u.useEffect(()=>{if(a){var I;const R=(I=m.current)==null?void 0:I.querySelector("input");R==null||R.focus({preventScroll:!0})}else C.current&&C.current.stop({})},[a]);const P=u.useCallback(I=>{q5(I.key)&&I.stopPropagation()},[]);if(l.type==="footer"||l.type==="pinnedRow")return null;const M=p.current.isRowSelectable(s),E=p.current.getLocaleText(i?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return D.jsx(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))}),pve=fve,hve=["field","colDef"],mve=e=>{const{classes:t}=e;return Te({root:["checkboxInput"]},Vt,t)},gve=u.forwardRef(function(t,n){var r;const o=ae(t,hve),[,s]=u.useState(!1),i=zt(),l=ut(),a={classes:l.classes},c=mve(a),f=ot(i,B5),p=ot(i,Ss),h=ot(i,Rp),y=ot(i,i3),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,T)=>(O[T]=!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 I=i.current.getLocaleText(b?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return D.jsx(l.slots.baseCheckbox,S({ref:n,indeterminate:w,checked:b,onChange:x,className:c.root,inputProps:{"aria-label":I},tabIndex:P,onKeyDown:M},(r=l.slotProps)==null?void 0:r.baseCheckbox,o))}),SO=bt(D.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),PO=bt(D.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),EO=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"),kO=bt(D.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),vve=bt(D.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),IO=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"),yve=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"),wve=bt(D.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),Cve=bt(D.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),xve=bt(D.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),Sve=bt(D.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),Pve=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"),cC=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"),MO=bt(D.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),Eve=bt(D.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),kve=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"),TO=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"),Ive=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"),Mve=bt(D.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Tve=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"),_ve=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"),$ve=bt(D.jsx("g",{children:D.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),Rve=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 Ove=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"),Dve=["hideMenu","colDef","id","labelledby","className","children","open"],Ave=oe(Yd)(()=>({minWidth:248})),Lve=u.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:s,className:i,children:l,open:a}=t,c=ae(t,Dve),f=u.useCallback(p=>{K5(p.key)&&p.preventDefault(),Ome(p.key)&&r(p)},[r]);return D.jsx(Ave,S({id:o,ref:n,className:be(de.menuList,i),"aria-labelledby":s,onKeyDown:f,autoFocus:a},c,{children:l}))}),Fve=["displayOrder"],Nve=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=ae(P,Fve);x=S({},x,M)}return a&&b!==m.length-1?[...C,[c[w],x],[ch,{}]]:[...C,[c[w],x]]},[])},[a,l,p,i,c,f,h])};function Bve(e){const{colDef:t,onClick:n}=e,r=zt(),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(ml,{children:D.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),D.jsx(Di,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function jve(e){const{onClick:t}=e,n=zt(),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(ml,{children:D.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),D.jsx(Di,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function zve(e){return D.jsxs(u.Fragment,{children:[D.jsx(Bve,S({},e)),D.jsx(jve,S({},e))]})}function Vve(e){const{colDef:t,onClick:n}=e,r=zt(),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(ml,{children:D.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),D.jsx(Di,{children:r.current.getLocaleText("columnMenuFilter")})]})}function Hve(e){var t;const{colDef:n,onClick:r}=e,o=zt(),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(ml,{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(ml,{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(ml,{}),D.jsx(Di,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})}const Uve=["defaultSlots","defaultSlotProps","slots","slotProps"],Wve={columnMenuSortItem:Hve,columnMenuFilterItem:Vve,columnMenuColumnsItem:zve},Gve={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},Kve=u.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:s,slotProps:i}=t,l=ae(t,Uve),a=Nve(S({},l,{defaultSlots:r,defaultSlotProps:o,slots:s,slotProps:i}));return D.jsx(Lve,S({ref:n},l,{children:a.map(([c,f],p)=>D.jsx(c,S({},f),p))}))}),qve=u.forwardRef(function(t,n){return D.jsx(Kve,S({},t,{ref:n,defaultSlots:Wve,defaultSlotProps:Gve}))}),Yve=["className"],Qve=e=>{const{classes:t}=e;return Te({root:["panelContent"]},Vt,t)},Xve=Ir("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function p3(e){const{className:t}=e,n=ae(e,Yve),r=ut(),o=Qve(r);return D.jsx(Xve,S({className:be(t,o.root),ownerState:r},n))}const Zve=["className"],Jve=e=>{const{classes:t}=e;return Te({root:["panelFooter"]},Vt,t)},eye=Ir("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function h3(e){const{className:t}=e,n=ae(e,Zve),r=ut(),o=Jve(r);return D.jsx(eye,S({className:be(t,o.root),ownerState:r},n))}const tye=["className"],nye=e=>{const{classes:t}=e;return Te({root:["panelHeader"]},Vt,t)},rye=Ir("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function oye(e){const{className:t}=e,n=ae(e,tye),r=ut(),o=nye(r);return D.jsx(rye,S({className:be(t,o.root),ownerState:r},n))}const sye=["className","slotProps"],iye=e=>{const{classes:t}=e;return Te({root:["panelWrapper"]},Vt,t)},lye=oe("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),aye=()=>!0,m3=u.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,s=ae(t,sye),i=ut(),l=iye(i);return D.jsx(l2,S({open:!0,disableEnforceFocus:!0,isEnabled:aye},o.TrapFocus,{children:D.jsx(lye,S({ref:n,tabIndex:-1,className:be(r,l.root),ownerState:i},s))}))}),cye=!1,uye=["sort","searchPredicate","autoFocusSearchField","disableHideAllButton","disableShowAllButton","getTogglableColumns"],dye=e=>{const{classes:t}=e;return Te({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},Vt,t)},fye=oe("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),pye=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)}})),hye=oe(xr)({justifyContent:"flex-end"}),_O=new Intl.Collator,mye=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function gye(e){var t,n,r;const o=zt(),s=u.useRef(null),i=ot(o,Li),l=ot(o,si),a=ut(),[c,f]=u.useState(""),p=dye(a),{sort:h,searchPredicate:y=mye,autoFocusSearchField:v=!0,disableHideAllButton:m=!1,disableShowAllButton:C=!1,getTogglableColumns:w}=e,b=ae(e,uye),x=u.useMemo(()=>{switch(h){case"asc":return[...i].sort((A,z)=>_O.compare(A.headerName||A.field,z.headerName||z.field));case"desc":return[...i].sort((A,z)=>-_O.compare(A.headerName||A.field,z.headerName||z.field));default:return i}},[i,h]),P=A=>{const{name:z}=A.target;o.current.setColumnVisibility(z,l[z]===!1)},M=u.useCallback(A=>{const z=si(o),N=S({},z),_=w?w(i):null;return i.forEach($=>{$.hideable&&(_==null||_.includes($.field))&&(A?delete N[$.field]:N[$.field]=!1)}),o.current.setColumnVisibilityModel(N)},[o,i,w]),E=u.useCallback(A=>{f(A.target.value)},[]),I=u.useMemo(()=>{const A=w?w(x):null,z=A?x.filter(({field:N})=>A.includes(N)):x;return c?z.filter(N=>y(N,c.toLowerCase())):z},[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 T=A=>O===!1&&A.hideable!==!1?(O=!0,!0):!1;return D.jsxs(m3,S({},b,{children:[D.jsx(oye,{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(p3,{children:D.jsx(fye,{className:p.root,ownerState:a,children:I.map(A=>{var z;return D.jsxs(pye,{className:p.columnsPanelRow,ownerState:a,children:[D.jsx(Y4,{control:D.jsx(a.slots.baseSwitch,S({disabled:A.hideable===!1,checked:l[A.field]!==!1,onClick:P,name:A.field,size:"small",inputRef:T(A)?R:void 0},(z=a.slotProps)==null?void 0:z.baseSwitch)),label:A.headerName||A.field}),!a.disableColumnReorder&&cye&&D.jsx(hye,{draggable:!0,"aria-label":o.current.getLocaleText("columnsPanelDragIconLabel"),title:o.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:D.jsx(a.slots.columnReorderIcon,{})})]},A.field)})})}),C&&m?null:D.jsxs(h3,{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 vye=["children","className","classes"],yye=We("MuiDataGrid",["panel","paper"]),bye=oe(Ba,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),wye=oe(zs,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),Cye=u.forwardRef((e,t)=>{const{children:n,className:r}=e,o=ae(e,vye),s=zt(),i=ut(),l=yye,[a,c]=u.useState(!1),f=u.useCallback(()=>{s.current.hidePreferences()},[s]),p=u.useCallback(m=>{hy(m.key)&&s.current.hidePreferences()},[s]),h=u.useMemo(()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{c(!0)},effect:()=>()=>{c(!1)}}],[]),[y,v]=u.useState(null);return u.useEffect(()=>{var m;const C=(m=s.current.rootElementRef)==null||(m=m.current)==null?void 0:m.querySelector(`.${de.columnHeaders}`);C&&v(C)},[s]),y?D.jsx(bye,S({ref:t,placement:"bottom-start",className:be(r,l.panel),ownerState:i,anchorEl:y,modifiers:h},o,{children:D.jsx(b4,{mouseEvent:"onMouseUp",onClickAway:f,children:D.jsx(wye,{className:l.paper,ownerState:i,elevation:8,onKeyDown:p,children:a&&n})})})):null}),xye=u.forwardRef(function(t,n){var r,o,s;const i=zt(),l=ot(i,Li),a=ut(),c=ot(i,yh),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}))}),Sye=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],Pye=["InputComponentProps"],Eye=e=>{const{classes:t}=e;return Te({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Vt,t)},kye=oe("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),Iye=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)})),Mye=oe("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),Tye=oe("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),_ye=oe("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),$ye=oe("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),Rye=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,$O=new Intl.Collator,Oye=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:I,filterColumns:R,deleteIconProps:O={},logicOperatorInputProps:T={},operatorInputProps:A={},columnInputProps:z={},valueInputProps:N={}}=t,_=ae(t,Sye),$=zt(),F=ot($,R5),V=ot($,Or),L=Yt(),B=Yt(),H=Yt(),K=Yt(),Y=ut(),J=Eye(Y),Q=u.useRef(null),X=u.useRef(null),te=v&&E.length>0,se=((r=Y.slotProps)==null?void 0:r.baseFormControl)||{},pe=(s=(((o=Y.slotProps)==null?void 0:o.baseSelect)||{}).native)!=null?s:!0,ne=((i=Y.slotProps)==null?void 0:i.baseInputLabel)||{},re=((l=Y.slotProps)==null?void 0:l.baseSelectOption)||{},{InputComponentProps:me}=N,ce=ae(N,Pye),xe=u.useMemo(()=>{if(R===void 0||typeof R!="function")return F;const we=R({field:y.field,columns:F,currentFilters:(V==null?void 0:V.items)||[]});return F.filter(Se=>we.includes(Se.field))},[R,V==null?void 0:V.items,F,y.field]),ke=u.useMemo(()=>{switch(I){case"asc":return xe.sort((we,Se)=>$O.compare(Gf(we),Gf(Se)));case"desc":return xe.sort((we,Se)=>-$O.compare(Gf(we),Gf(Se)));default:return xe}},[xe,I]),fe=y.field?$.current.getColumn(y.field):null,Ie=u.useMemo(()=>{var we;return!y.operator||!fe?null:(we=fe.filterOperators)==null?void 0:we.find(Se=>Se.value===y.operator)},[y,fe]),ve=u.useCallback(we=>{const Se=we.target.value,Me=$.current.getColumn(Se);if(Me.field===fe.field)return;const Oe=Me.filterOperators.find(Ke=>Ke.value===y.operator)||Me.filterOperators[0],Ne=!Oe.InputComponent||Oe.InputComponent!==(Ie==null?void 0:Ie.InputComponent)||Me.type!==fe.type;C(S({},y,{field:Se,operator:Oe.value,value:Ne?void 0:y.value}))},[$,C,y,fe,Ie]),Re=u.useCallback(we=>{const Se=we.target.value,Me=fe==null?void 0:fe.filterOperators.find(Ne=>Ne.value===Se),Oe=!(Me!=null&&Me.InputComponent)||(Me==null?void 0:Me.InputComponent)!==(Ie==null?void 0:Ie.InputComponent);C(S({},y,{operator:Se,value:Oe?void 0:y.value}))},[C,y,fe,Ie]),ie=u.useCallback(we=>{const Se=we.target.value===So.And.toString()?So.And:So.Or;P(Se)},[P]),ue=()=>{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 we;Q==null||(we=Q.current)==null||we.focus()}else X.current.focus()}}),[Ie]),D.jsxs(kye,S({ref:n,className:J.root,"data-id":y.id,ownerState:Y},_,{children:[D.jsx(Iye,S({variant:"standard",as:Y.slots.baseFormControl},se,O,{className:be(J.deleteIcon,se.className,O.className),ownerState:Y,children:D.jsx(Y.slots.baseIconButton,S({"aria-label":$.current.getLocaleText("filterPanelDeleteIconLabel"),title:$.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:ue,size:"small"},(a=Y.slotProps)==null?void 0:a.baseIconButton,{children:D.jsx(Y.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),D.jsx(Mye,S({variant:"standard",as:Y.slots.baseFormControl},se,T,{sx:S({display:te?"flex":"none",visibility:b?"visible":"hidden"},se.sx||{},T.sx||{}),className:be(J.logicOperatorInput,se.className,T.className),ownerState:Y,children:D.jsx(Y.slots.baseSelect,S({inputProps:{"aria-label":$.current.getLocaleText("filterPanelLogicOperator")},value:w,onChange:ie,disabled:!!x||E.length===1,native:pe},(c=Y.slotProps)==null?void 0:c.baseSelect,{children:E.map(we=>u.createElement(Y.slots.baseSelectOption,S({},re,{native:pe,key:we.toString(),value:we.toString()}),$.current.getLocaleText(Rye(we))))}))})),D.jsxs(Tye,S({variant:"standard",as:Y.slots.baseFormControl},se,z,{className:be(J.columnInput,se.className,z.className),ownerState:Y,children:[D.jsx(Y.slots.baseInputLabel,S({},ne,{htmlFor:L,id:B,children:$.current.getLocaleText("filterPanelColumns")})),D.jsx(Y.slots.baseSelect,S({labelId:B,id:L,label:$.current.getLocaleText("filterPanelColumns"),value:y.field||"",onChange:ve,native:pe},(f=Y.slotProps)==null?void 0:f.baseSelect,{children:ke.map(we=>u.createElement(Y.slots.baseSelectOption,S({},re,{native:pe,key:we.field,value:we.field}),Gf(we)))}))]})),D.jsxs(_ye,S({variant:"standard",as:Y.slots.baseFormControl},se,A,{className:be(J.operatorInput,se.className,A.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:Re,native:pe,inputRef:X},(p=Y.slotProps)==null?void 0:p.baseSelect,{children:fe==null||(h=fe.filterOperators)==null?void 0:h.map(we=>u.createElement(Y.slots.baseSelectOption,S({},re,{native:pe,key:we.value,value:we.value}),we.label||$.current.getLocaleText(`filterOperator${Pe(we.value)}`)))}))]})),D.jsx($ye,S({variant:"standard",as:Y.slots.baseFormControl},se,ce,{className:be(J.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 RE(){const e=yE($E.create).current;return _5(e.disposeEffect),e}const Dye=["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=ae(e,Dye),y=RE(),[v,m]=u.useState((t=r.value)!=null?t:""),[C,w]=u.useState(!1),b=Yt(),x=ut(),P=u.useCallback(M=>{const{value:E}=M.target;m(String(E)),w(!0),y.start(x.filterDebounceMs,()=>{const I=S({},r,{value:E,fromInput:b});o(I),w(!1)})},[b,o,r,x.filterDebounceMs,y]);return u.useEffect(()=>{if(r.fromInput!==b||r.value===void 0){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 Aye=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function yu(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=ae(e,Aye),y=RE(),[v,m]=u.useState((t=r.value)!=null?t:""),[C,w]=u.useState(!1),b=Yt(),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 Lye=["item","applyValue","type","apiRef","focusElementRef","getOptionLabel","getOptionValue","placeholder","tabIndex","label","isFilterActive","clearButton","InputLabelProps"],Fye=({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)}),Nye=oe("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function RO(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=ae(e,Lye),[M,E]=u.useState((t=c.value)!=null?t:""),I=Yt(),R=Yt(),O=ut(),T=(n=(r=O.slotProps)==null||(r=r.baseSelect)==null?void 0:r.native)!=null?n:!0;let A=null;if(c.field){const V=h.current.getColumn(c.field);wc(V)&&(A=V)}const z=m||((o=A)==null?void 0:o.getOptionValue),N=v||((s=A)==null?void 0:s.getOptionLabel),_=u.useMemo(()=>{if(A)return typeof A.valueOptions=="function"?A.valueOptions({field:A.field}):A.valueOptions},[A]),$=u.useCallback(V=>{let L=V.target.value;L=aS(L,_,z),E(String(L)),f(S({},c,{value:L}))},[_,z,f,c]);if(u.useEffect(()=>{var V;let L;if(_!==void 0){if(L=aS(c.value,_,z),L!==c.value){f(S({},c,{value:L}));return}}else L=c.value;L=(V=L)!=null?V:"",E(String(L))},[c,_,f,z]),!wc(A)||!wc(A))return null;const F=b!=null?b:h.current.getLocaleText("filterPanelInputLabel");return D.jsxs(Nye,{children:[D.jsxs(O.slots.baseFormControl,{children:[D.jsx(O.slots.baseInputLabel,S({},(i=O.slotProps)==null?void 0:i.baseInputLabel,{id:R,htmlFor:I,shrink:!0,variant:"standard",children:F})),D.jsx(O.slots.baseSelect,S({id:I,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:T},P,(l=O.slotProps)==null?void 0:l.baseSelect,{children:Fye({column:A,OptionComponent:O.slots.baseSelectOption,getOptionLabel:N,getOptionValue:z,isSelectNative:T,baseSelectOptionProps:(a=O.slotProps)==null?void 0:a.baseSelectOption})}))]}),x]})}const Bye=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","InputLabelProps"],jye=oe("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function zye(e){var t,n,r,o;const{item:s,applyValue:i,apiRef:l,focusElementRef:a,clearButton:c,tabIndex:f,label:p}=e,h=ae(e,Bye),[y,v]=u.useState(s.value||""),m=ut(),C=Yt(),w=Yt(),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(I=>{const R=I.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(jye,{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 Vye=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],OO=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),Hye=u.forwardRef(function(t,n){var r,o;const s=zt(),i=ut(),l=ot(s,Or),a=ot(s,R5),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=ae(t,Vye),b=s.current.upsertFilterItem,x=u.useCallback(A=>{s.current.setFilterLogicOperator(A)},[s]),P=u.useCallback(()=>{let A;if(v&&typeof v=="function"){const z=v({currentFilters:(l==null?void 0:l.items)||[],columns:a});if(z===null)return null;A=a.find(({field:N})=>N===z)}else A=a.find(z=>{var N;return(N=z.filterOperators)==null?void 0:N.length});return A?OO(A):null},[l==null?void 0:l.items,a,v]),M=u.useCallback(()=>{if(v===void 0||typeof v!="function")return P();const A=l.items.length?l.items:[P()].filter(Boolean),z=v({currentFilters:A,columns:a});if(z===null)return null;const N=a.find(({field:_})=>_===z);return N?OO(N):null},[l.items,a,v,P]),E=u.useMemo(()=>l.items.length?l.items:(f.current||(f.current=P()),f.current?[f.current]:[]),[l.items,P]),I=E.length>1,R=()=>{const A=M();A&&s.current.upsertFilterItems([...E,A])},O=u.useCallback(A=>{const z=E.length===1;s.current.deleteFilterItem(A),z&&s.current.hideFilterPanel()},[s,E.length]),T=()=>{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(m3,S({ref:n},w,{children:[D.jsx(p3,{children:E.map((A,z)=>D.jsx(Oye,S({item:A,applyFilterChanges:b,deleteFilter:O,hasMultipleFilters:I,showMultiFilterOperators:z>0,multiFilterOperator:l.logicOperator,disableMultiFilterOperator:z!==1,applyMultiFilterOperatorChanges:x,focusElementRef:z===E.length-1?c:null,logicOperators:p,columnsSort:h},y),A.id==null?z:A.id))}),!i.disableMultipleColumnsFiltering&&!(m&&C)?D.jsxs(h3,{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:T,startIcon:D.jsx(i.slots.filterPanelRemoveAllIcon,{})},(o=i.slotProps)==null?void 0:o.baseButton,{children:s.current.getLocaleText("filterPanelRemoveAll")}))]}):null]}))}),Uye=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function g3(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:s,color:i,error:l,helperText:a,size:c,variant:f}=e,p=ae(e,Uye),h={color:i,error:l,helperText:a,size:c,variant:f},[y,v]=u.useState(t.value||[]),m=Yt(),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(zh,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 Wye=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant","getOptionLabel","getOptionValue"],Gye=$4();function Kye(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=ae(e,Wye),m={color:l,error:a,helperText:c,size:f,variant:p},C=Yt(),w=ut();let b=null;if(r.field){const T=s.current.getColumn(r.field);wc(T)&&(b=T)}const x=y||((t=b)==null?void 0:t.getOptionValue),P=h||((n=b)==null?void 0:n.getOptionLabel),M=u.useCallback((T,A)=>x(T)===x(A),[x]),E=u.useMemo(()=>{var T;return(T=b)!=null&&T.valueOptions?typeof b.valueOptions=="function"?b.valueOptions({field:b.field}):b.valueOptions:[]},[b]),I=u.useMemo(()=>E==null?void 0:E.map(x),[E,x]),R=u.useMemo(()=>Array.isArray(r.value)?E!==void 0?r.value.map(A=>I==null?void 0:I.findIndex(z=>z===A)).filter(A=>A>=0).map(A=>E[A]):r.value:[],[r.value,E,I]);u.useEffect(()=>{(!Array.isArray(r.value)||R.length!==r.value.length)&&o(S({},r,{value:R.map(x)}))},[r,R,o,x]);const O=u.useCallback((T,A)=>{o(S({},r,{value:A.map(x)}))},[o,r,x]);return D.jsx(zh,S({multiple:!0,options:E,isOptionEqualToValue:M,filterOptions:Gye,id:C,value:R,onChange:O,getOptionLabel:P,renderTags:(T,A)=>T.map((z,N)=>D.jsx(w.slots.baseChip,S({variant:"outlined",size:"small",label:P(z)},A({index:N})))),renderInput:T=>{var A;return D.jsx(w.slots.baseTextField,S({},T,{label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:S({},T.InputLabelProps,{shrink:!0}),inputRef:i,type:"singleSelect"},m,(A=w.slotProps)==null?void 0:A.baseTextField))}},v))}const qye=["hideMenu","options"],Yye=["hideMenu","options"];function Qye(e){const t=zt(),{hideMenu:n,options:r}=e,o=ae(e,qye);return D.jsx(Pr,S({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function Xye(e){const t=zt(),{hideMenu:n,options:r}=e,o=ae(e,Yye);return D.jsx(Pr,S({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const Zye=["className","selectedRowCount"],Jye=e=>{const{classes:t}=e;return Te({root:["selectedRowCount"]},Vt,t)},e1e=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"}})),t1e=u.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,s=ae(t,Zye),i=zt(),l=ut(),a=Jye(l),c=i.current.getLocaleText("footerRowSelected")(o);return D.jsx(e1e,S({ref:n,className:be(a.root,r),ownerState:l},s,{children:c}))}),n1e=u.forwardRef(function(t,n){var r,o;const s=zt(),i=ut(),l=ot(s,Phe),a=ot(s,qge),c=ot(s,x0),f=!i.hideFooterSelectedRowCount&&a>0?D.jsx(t1e,{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(sge,S({ref:n},t,{children:[f,p,h]}))});function r1e(){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 o1e=u.forwardRef(function(t,n){return D.jsx(IE,S({ref:n},t,{children:D.jsx(zi,{})}))}),s1e=u.forwardRef(function(t,n){const o=zt().current.getLocaleText("noRowsLabel");return D.jsx(IE,S({ref:n},t,{children:o}))}),i1e=oe(gce)(({theme:e})=>({[`& .${vc.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${vc.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),l1e=u.forwardRef(function(t,n){const r=zt(),o=ut(),s=ot(r,Es),i=ot(r,x0),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(i1e,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))}),a1e=["className","rowCount","visibleRowCount"],c1e=e=>{const{classes:t}=e;return Te({root:["rowCount"]},Vt,t)},u1e=Ir("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),d1e=u.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:s}=t,i=ae(t,a1e),l=zt(),a=ut(),c=c1e(a);if(o===0)return null;const f=s<o?l.current.getLocaleText("footerTotalVisibleRows")(s,o):o.toLocaleString();return D.jsxs(u1e,S({ref:n,className:be(c.root,r),ownerState:a},i,{children:[l.current.getLocaleText("footerTotalRows")," ",f]}))}),vy=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=TE(e),n=Kge(e)):(n=Va(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},Wc=(e,t)=>{const n=vy(e,t);return u.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},cS={current:null};function Xh(e){return e.isInternal=!0,e}function yy(e){return e!==void 0&&e.isInternal===!0}function f1e(e){return Xh((t,n)=>{const r=e(t,n);return r&&(o=>r(o.value,o.row,n,cS.current))})}function Zh(e){return e.map(t=>S({},t,{getApplyFilterFn:f1e(t.getApplyFilterFnV7),getApplyFilterFnV7:Xh(t.getApplyFilterFnV7)}))}function v3(e){return Xh((t,n,r)=>{const o=e(t,n,r);return o&&(s=>o(s.value,s.row,n,r))})}function y3(e){return{current:e.current.getPublicApi()}}const p1e=typeof window=="undefined"?globalThis:window,b3=p1e[atob("ZXZhbA==")];let Kf;const h1e=()=>{if(Kf!==void 0)return Kf;try{Kf=b3("true")}catch(e){Kf=!1}return Kf},uS=(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},m1e=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"),g1e=Gi("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),v1e=Gi("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),w3=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(m1e(),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&&g1e(),i&&v1e(),i||s?S({},e,{items:o.map(l=>uS(l,n))}):e.items!==o?S({},e,{items:o}):e},DO=(e,t,n)=>r=>S({},r,{filterModel:w3(e,t,n)}),ua=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,C3=(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=!yy(a.getApplyFilterFn),f=!yy(a.getApplyFilterFnV7),p=y3(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);cS.current=p,s&&(v.value=ua(v.value));const m=h(v);return cS.current=null,m}}};let AO=1;const y1e=(e,t,n)=>{const{items:r}=e,o=r.map(a=>C3(a,t)).filter(a=>!!a);if(o.length===0)return null;if(n||!h1e())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=b3(s.replaceAll("$$",String(AO))),l=(a,c)=>i(t.current.getRowId,o,a,c);return AO+=1,l},b1e=(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)?y0(t):gl(t),a=[],{ignoreDiacritics:c}=t.current.rootProps,f=y3(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=!yy(y),C=!yy(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 I=M[w];let R=t.current.getRowValue(h,P);if(I.fn!==null)if(I.v7){if(c&&(R=ua(R)),I.fn(R,h,P,f)){v[b]=!0;continue e}}else{var C;const O=(C=m[E])!=null?C:t.current.getCellParams(t.current.getRowId(h),E);if(c&&(O.value=ua(O.value)),m[E]=O,I.fn(O)){v[b]=!0;continue e}}}v[b]=!1}return v}},w1e=(e,t,n)=>{const r=y1e(e,t,n),o=b1e(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}},LO=e=>e!=null,C1e=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>C3(r,t)!==null)),e.cleanedFilterItems),x1e=(e,t,n,r,o)=>{const s=C1e(o,r,n.items),i=e.filter(LO),l=t.filter(LO);if(i.length>0){var a;const f=h=>i.some(y=>y[h.id]);if(((a=n.logicOperator)!=null?a:vh().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:vh().quickFilterLogicOperator)===So.And){if(!n.quickFilterValues.every(f))return!1}else if(!n.quickFilterValues.some(f))return!1}return!0},FO=Xh(e=>{if(!e)return null;const t=new RegExp(nv(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}}),x3=(e=!1)=>Zh([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(nv(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(`^${nv(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(`.*${nv(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:g3}]),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:nve,type:"string",align:"left",filterOperators:x3(),renderEditCell:Ime,getApplyQuickFilterFn:v3(FO),getApplyQuickFilterFnV7:FO},S1e=()=>Zh([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t=e.value==="true";return n=>!!n===t},InputComponent:zye}]);function P1e({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const E1e=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}},S3=S({},ui,{type:"boolean",align:"center",headerAlign:"center",renderCell:hme,renderEditCell:yme,sortComparator:a3,valueFormatter:P1e,filterOperators:S1e(),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>E1e(e)}),Yl="__check__",nf=S({},S3,{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=>gy(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>D.jsx(gve,S({},e)),renderCell:e=>D.jsx(pve,S({},e))}),k0="actions",k1e=S({},ui,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:Gme,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0}),OE="__detail_panel_toggle__",lo=e=>e.editRows,I1e=["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"],M1e=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"]},Vt,i)};function T1e({width:e}){if(!e)return null;const t={width:e};return D.jsx("div",{className:`${de.cell} ${de.withBorderColor}`,style:t})}const _1e=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:I,onMouseOut:R,onMouseOver:O}=t,T=ae(t,I1e),A=zt(),z=u.useRef(null),N=ut(),_=Wc(A,N),$=ot(A,wE),F=ot(A,xs),V=ot(A,C0),L=ot(A,qh),B=ot(A,lo),H=kt(z,n),K=l+L+2,Y={selected:r,hovered:o,isLastVisible:C,classes:N.classes,editing:A.current.getRowMode(s)===Cn.Edit,editable:N.editMode===Hi.Row,rowHeight:f},J=M1e(Y);u.useLayoutEffect(()=>{f==="auto"&&z.current&&typeof ResizeObserver=="undefined"&&A.current.unstable_storeRowHeightMeasurement(s,z.current.clientHeight,c)},[A,f,s,c]),u.useLayoutEffect(()=>{if(_.range){const Ne=A.current.getRowIndexRelativeToVisibleRows(s);Ne!=null&&A.current.unstable_setLastMeasuredRowIndex(Ne)}const Se=z.current;if(!Se||f!=="auto"||typeof ResizeObserver=="undefined")return;const Oe=new ResizeObserver(Ne=>{const[Ke]=Ne,Ye=Ke.borderBoxSize&&Ke.borderBoxSize.length>0?Ke.borderBoxSize[0].blockSize:Ke.contentRect.height;A.current.unstable_storeRowHeightMeasurement(s,Ye,c)});return Oe.observe(Se),()=>Oe.disconnect()},[A,_.range,l,f,s,c]);const Q=u.useCallback((Se,Me)=>Oe=>{Yh(Oe)||A.current.getRow(s)&&(A.current.publishEvent(Se,A.current.getRowParams(s),Oe),Me&&Me(Oe))},[A,s]),X=u.useCallback(Se=>{const Me=Zhe(Se.target,de.cell),Oe=Me==null?void 0:Me.getAttribute("data-field");if(Oe){if(Oe===nf.field||Oe===OE||Oe==="__reorder__"||A.current.getCellMode(s,Oe)===un.Edit)return;const Ne=A.current.getColumn(Oe);if((Ne==null?void 0:Ne.type)===k0)return}Q("rowClick",P)(Se)},[A,P,Q,s]),{slots:te,slotProps:se,disableColumnReorder:Z}=N,pe=te.cell===lS?lS:ame,ne=N.rowReordering,re=(Se,Me)=>{var Oe,Ne;const Ke=Z&&Se.disableReorder||!ne&&!!F.length&&V>1&&Object.keys(B).length>0,Ye=(Oe=(Ne=B[s])==null?void 0:Ne[Se.field])!=null?Oe:null;let Fe=!1;return w!==void 0&&h[w].field===Se.field&&(Fe=!0),D.jsx(pe,S({column:Se,width:Me.width,rowId:s,height:f,showRightBorder:Me.showRightBorder,align:Se.align||"left",colIndex:Me.indexRelativeToAllColumns,colSpan:Me.colSpan,disableDragEvents:Ke,editCellState:Ye,isNotVisible:Fe},se==null?void 0:se.cell),Se.field)},me=ot(A,()=>S({},A.current.unstable_getRowInternalSizes(s)),bE);let ce=f;if(ce==="auto"&&me){let Se=0;const Me=Object.entries(me).reduce((Oe,[Ne,Ke])=>/^base[A-Z]/.test(Ne)?(Se+=1,Ke>Oe?Ke:Oe):Oe,0);Me>0&&Se>1&&(ce=Me)}const xe=u.useMemo(()=>{if(b)return{opacity:0,width:0,height:0};const Se=S({},a,{maxHeight:f==="auto"?"none":f,minHeight:ce});if(me!=null&&me.spacingTop){const Me=N.rowSpacingType==="border"?"borderTopWidth":"marginTop";Se[Me]=me.spacingTop}if(me!=null&&me.spacingBottom){const Me=N.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let Oe=Se[Me];typeof Oe!="number"&&(Oe=parseInt(Oe||"0",10)),Oe+=me.spacingBottom,Se[Me]=Oe}return Se},[b,f,a,ce,me,N.rowSpacingType]),ke=A.current.unstable_applyPipeProcessors("rowClassName",[],s);if(typeof N.getRowClassName=="function"){var fe;const Se=l-(((fe=_.range)==null?void 0:fe.firstRowIndex)||0),Me=S({},A.current.getRowParams(s),{isFirstVisible:Se===0,isLastVisible:Se===_.rows.length-1,indexRelativeToCurrentPage:Se});ke.push(N.getRowClassName(Me))}const Ie=jge(1e4,20,80),ve=A.current.getRowNode(s);if(!ve)return null;const Re=ve.type,ie=[];for(let Se=0;Se<y.length;Se+=1){const Me=y[Se];let Oe=m+Se;w!==void 0&&x&&(h[w].field===Me.field?Oe=w:Oe-=1);const Ne=A.current.unstable_getCellColSpanInfo(s,Oe);if(Ne&&!Ne.spannedByColSpan)if(Re!=="skeletonRow"){const{colSpan:Ke,width:Ye}=Ne.cellProps,Fe={width:Ye,colSpan:Ke,showRightBorder:N.showCellVerticalBorder,indexRelativeToAllColumns:Oe};ie.push(re(Me,Fe))}else{const{width:Ke}=Ne.cellProps,Ye=Math.round(Ie());ie.push(D.jsx(te.skeletonCell,{width:Ke,contentWidth:Ye,field:Me.field,align:Me.align},Me.field))}}const ue=v-$,we=i?{onClick:X,onDoubleClick:Q("rowDoubleClick",M),onMouseEnter:Q("rowMouseEnter",E),onMouseLeave:Q("rowMouseLeave",I),onMouseOut:Q("rowMouseOut",R),onMouseOver:Q("rowMouseOver",O)}:null;return D.jsxs("div",S({ref:H,"data-id":s,"data-rowindex":l,role:"row",className:be(...ke,J.root,p,o&&"Mui-hovered"),"aria-rowindex":K,"aria-selected":r,style:xe},we,T,{children:[ie,ue>0&&D.jsx(T1e,{width:ue})]}))}),$1e=E0(_1e);function R1e({privateApiRef:e,props:t,children:n}){const r=u.useRef(e.current.getPublicApi());return D.jsx(M5.Provider,{value:t,children:D.jsx(T5.Provider,{value:e,children:D.jsx(I5.Provider,{value:r,children:n})})})}const O1e=Nge()&&window.localStorage.getItem("DEBUG")!=null,cp=()=>{},D1e={debug:cp,info:cp,warn:cp,error:cp},NO=["debug","info","warn","error"];function BO(e,t,n=console){const r=NO.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return NO.reduce((s,i,l)=>(l>=r?s[i]=(...a)=>{const[c,...f]=a;n[i](`MUI: ${e} - ${c}`,...f)}:s[i]=cp,s),{})}const A1e=(e,t)=>{const n=u.useCallback(r=>O1e?BO(r,"debug",t.logger):t.logLevel?BO(r,t.logLevel.toString(),t.logger):D1e,[t.logLevel,t.logger]);Ft(e,{getLogger:n},"private")};class DE{static create(t){return new DE(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 L1e=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 P3=Symbol("mui.api_private"),F1e=e=>e.isPropagationStopped!==void 0;let jO=0;function N1e(e){var t;const n=(t=e.current)==null?void 0:t[P3];if(n)return n;const r={},o={state:r,store:DE.create(r),instanceId:{id:jO}};return jO+=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 L1e}),o}function B1e(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[P3]:e.current}}function j1e(e,t){const n=u.useRef(),r=u.useRef();r.current||(r.current=N1e(n)),n.current||(n.current=B1e(r));const o=u.useCallback((...i)=>{const[l,a,c={}]=i;if(c.defaultMuiPrevented=!1,F1e(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 Ft(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 z1e=(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 wh(e){"@babel/helpers - typeof";return wh=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},wh(e)}function V1e(e,t){if(wh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(wh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ch(e){var t=V1e(e,"string");return wh(t)=="symbol"?t:String(t)}const H1e=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=ae(y,[p].map(Ch));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};Ft(e,a,"private"),Ft(e,c,"public")},gr=(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]);Qh(()=>{s()});const i=u.useRef(!0);u.useEffect(()=>(i.current?i.current=!1:s(),()=>{r.current&&(r.current(),r.current=null)}),[s])},AE=(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]);Qh(()=>{s()});const i=u.useRef(!0);u.useEffect(()=>(i.current?i.current=!1:s(),()=>{r.current&&(r.current(),r.current=null)}),[s])},by=(e,t,n,r)=>{const o=u.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);Qh(()=>{o()});const s=u.useRef(!0);u.useEffect(()=>{s.current?s.current=!1:o()},[o])},Lc="none",zO={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},U1e=e=>{const t=u.useRef(new Map),n=u.useRef({}),r=u.useCallback((a,c,f)=>{const p=()=>{const v=n.current[c],m=ae(v,[a].map(Ch));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(zO[c])&&e.current.publishEvent("activeStrategyProcessorChange",c),p},[e]),o=u.useCallback((a,c)=>{const f=e.current.getActiveStrategy(zO[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]);Ft(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:s,setStrategyAvailability:i},"private")},W1e=(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(e3(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};Ft(e,a,"public"),Ft(e,c,"private")},G1e=(e,t)=>{const n=j1e(e,t);return A1e(n,t),W1e(n,t),H1e(n),U1e(n),z1e(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)},K1e=/(\d+)-(\d+)-(\d+)/,q1e=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function bu(e,t,n,r){if(!e.value)return null;const[o,s,i,l,a]=e.value.match(n?q1e:K1e).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 E3=e=>Zh([{value:"is",getApplyFilterFnV7:t=>bu(t,(n,r)=>n===r,e),InputComponent:yu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFnV7:t=>bu(t,(n,r)=>n!==r,e),InputComponent:yu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFnV7:t=>bu(t,(n,r)=>n>r,e),InputComponent:yu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFnV7:t=>bu(t,(n,r)=>n>=r,e),InputComponent:yu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFnV7:t=>bu(t,(n,r)=>n<r,e,!e),InputComponent:yu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFnV7:t=>bu(t,(n,r)=>n<=r,e),InputComponent:yu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!=null,requiresFilterValue:!1}]);function k3({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 Y1e({value:e,field:t,id:n}){return e?(k3({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""}function Q1e({value:e,field:t,id:n}){return e?(k3({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""}const X1e=S({},ui,{type:"date",sortComparator:c3,valueFormatter:Y1e,filterOperators:E3(),renderEditCell:G5,pastedValueParser:e=>new Date(e)}),Z1e=S({},ui,{type:"dateTime",sortComparator:c3,valueFormatter:Q1e,filterOperators:E3(!0),renderEditCell:G5,pastedValueParser:e=>new Date(e)}),ea=e=>e==null?null:Number(e),VO=Xh(e=>e==null||Number.isNaN(e)||e===""?null:t=>ea(t)===ea(e)),J1e=()=>Zh([{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:g3,InputComponentProps:{type:"number"}}]),e0e=S({},ui,{type:"number",align:"right",headerAlign:"right",sortComparator:a3,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>Fge(e)?e.toLocaleString():e||"",filterOperators:J1e(),getApplyQuickFilterFn:v3(VO),getApplyQuickFilterFnV7:VO}),wu=e=>e==null||!ME(e)?e:e.value,t0e=()=>Zh([{value:"is",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>wu(t)===wu(e.value),InputComponent:RO},{value:"not",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>wu(t)!==wu(e.value),InputComponent:RO},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(wu);return n=>t.includes(wu(n))},InputComponent:Kye}]),n0e=e=>typeof e[0]=="object",r0e=e=>ME(e)?e.value:e,o0e=e=>ME(e)?e.label:String(e),s0e=S({},ui,{type:"singleSelect",getOptionLabel:o0e,getOptionValue:r0e,valueFormatter(e){const{id:t,field:n,value:r,api:o}=e,s=e.api.getColumn(n);if(!wc(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(!n0e(i))return s.getOptionLabel(r);const l=i.find(a=>s.getOptionValue(a)===r);return l?s.getOptionLabel(l):""},renderEditCell:Nme,filterOperators:t0e(),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}}),I3="__default__",i0e=()=>({string:ui,number:e0e,date:X1e,dateTime:Z1e,boolean:S3,singleSelect:s0e,[k0]:k1e,[I3]:ui});function dS(e,t){return typeof e=="string"&&[t,`
|
|
607
|
-
`,"\r",'"'].some(n=>e.includes(n))?`"${e.replace(/"/g,'""')}"`:e}const M3=(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 dS(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 fS{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 l0e=({id:e,columns:t,getCellParams:n,delimiterCharacter:r,ignoreValueFormatter:o})=>{const s=new fS({delimiterCharacter:r});return t.forEach(i=>{const l=n(e,i.field);s.addValue(M3(l,{delimiterCharacter:r,ignoreValueFormatter:o}))}),s.getRowString()};function a0e(e){const{columns:t,rowIds:n,delimiterCharacter:r,includeHeaders:o,includeColumnGroupsHeaders:s,ignoreValueFormatter:i,apiRef:l}=e,a=n.reduce((y,v)=>`${y}${l0e({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 fS({delimiterCharacter:r,sanitizeCellValue:dS});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 fS({delimiterCharacter:r,sanitizeCellValue:dS});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 HO(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 c0e(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{HO(e)}):HO(e)}function u0e(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const d0e=(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")||u0e(i.target))return;let l="";if(e.current.getSelectedRows().size>0)l=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o});else{const c=Vo(e);if(c){const f=e.current.getCellParams(c.id,c.field);l=M3(f,{delimiterCharacter:o,ignoreValueFormatter:r})}}l=e.current.unstable_applyPipeProcessors("clipboardCopy",l),l&&(c0e(l),e.current.publishEvent("clipboardCopy",l))},[e,r,o]);zge(e,e.current.rootElementRef,"keydown",s),In(e,"clipboardCopy",t.onClipboardCopy)},f0e=e=>S({},e,{columnMenu:{open:!1}}),p0e=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=iS(e.current.state);if(i.field){const a=Jd(e),c=si(e),f=gl(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=iS(e.current.state);!l.open||l.field!==i?n(i):r()},[e,t,n,r]);Ft(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),dt(e,"columnResizeStart",r),dt(e,"virtualScrollerWheel",e.current.hideColumnMenu),dt(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},T3=["maxWidth","minWidth","width","flex"];function h0e({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 pS=(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=Od(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=h0e({initialFreeSpace:i,totalFlexUnits:r,flexColumns:s});Object.keys(l).forEach(a=>{n[a].computedWidth=l[a].computedWidth})}return S({},e,{lookup:n})},m0e=(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 UO(e,t){let n=e[I3];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=bc(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({},UO(r,v.type),{field:m,hasBeenResized:!1}),f.orderedFields.push(m)):s&&f.orderedFields.push(m),C&&C.type!==v.type&&(C=S({},UO(r,v.type),{field:m}));let w=C.hasBeenResized;T3.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=m0e(h,n);return pS(y,(i=(l=(a=e.current).getRootDimensions)==null||(l=l.call(a))==null?void 0:l.viewportInnerSize.width)!=null?i:0)},WO=e=>t=>S({},t,{columns:e});function hS({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 g0e({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:r,lastRowToRender:o,apiRef:s,visibleRows:i}){const l=Math.max(e-n,t);return hS({firstColumnToRender:l,apiRef:s,firstRowToRender:r,lastRowToRender:o,visibleRows:i})}function LE(e,t){const n=tf(e),r=qh(e);return Math.floor(t*n)*((r!=null?r:0)+1)}const _3=i0e(),v0e=(e,t,n)=>{var r,o,s,i;const l=_u({apiRef:n,columnTypes:_3,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 y0e(e,t){var n,r;const o=eo(e,"useGridColumns"),s=_3,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(_=>{o.debug("Updating columns state."),e.current.setState(WO(_)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",_.orderedFields)},[o,e]),c=u.useCallback(_=>Jd(e)[_],[e]),f=u.useCallback(()=>Li(e),[e]),p=u.useCallback(()=>Ar(e),[e]),h=u.useCallback((_,$=!0)=>($?Ar(e):Li(e)).findIndex(V=>V.field===_),[e]),y=u.useCallback(_=>{const $=h(_);return Rd(e)[$]},[e,h]),v=u.useCallback(_=>{si(e)!==_&&(e.current.setState(F=>S({},F,{columns:_u({apiRef:e,columnTypes:s,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:_,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,s]),m=u.useCallback(_=>{const $=_u({apiRef:e,columnTypes:s,columnsToUpsert:_,initialState:void 0,keepOnlyColumnsToUpsert:!1});a($)},[e,a,s]),C=u.useCallback((_,$)=>{var F;const V=si(e),L=(F=V[_])!=null?F:!0;if($!==L){const B=S({},V,{[_]:$});e.current.setColumnVisibilityModel(B)}},[e]),w=u.useCallback(_=>gl(e).findIndex(F=>F===_),[e]),b=u.useCallback((_,$)=>{const F=gl(e),V=w(_);if(V===$)return;o.debug(`Moving column ${_} to index ${$}`);const L=[...F],B=L.splice(V,1)[0];L.splice($,0,B),a(S({},bc(e.current.state),{orderedFields:L}));const H={column:e.current.getColumn(_),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(_),oldIndex:V};e.current.publishEvent("columnIndexChange",H)},[e,o,a,w]),x=u.useCallback((_,$)=>{var F,V;o.debug(`Updating column ${_} width to ${$}`);const L=bc(e.current.state),B=L.lookup[_],H=S({},B,{width:$,hasBeenResized:!0});a(pS(S({},L,{lookup:S({},L.lookup,{[_]:H})}),(F=(V=e.current.getRootDimensions())==null?void 0:V.viewportInnerSize.width)!=null?F:0)),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(_),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};Ft(e,P,"public"),Ft(e,M,t.signature===Fi.DataGrid?"private":"public");const E=u.useCallback((_,$)=>{var F,V;const L={},B=si(e);(!$.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((F=(V=t.initialState)==null||(V=V.columns)==null?void 0:V.columnVisibilityModel)!=null?F:{}).length>0||Object.keys(B).length>0)&&(L.columnVisibilityModel=B),L.orderedFields=gl(e);const K=Li(e),Y={};return K.forEach(J=>{if(J.hasBeenResized){const Q={};T3.forEach(X=>{let te=J[X];te===1/0&&(te=-1),Q[X]=te}),Y[J.field]=Q}}),Object.keys(Y).length>0&&(L.dimensions=Y),S({},_,{columns:L})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),I=u.useCallback((_,$)=>{var F;const V=(F=$.stateToRestore.columns)==null?void 0:F.columnVisibilityModel,L=$.stateToRestore.columns;if(V==null&&L==null)return _;const B=_u({apiRef:e,columnTypes:s,columnsToUpsert:[],initialState:L,columnVisibilityModel:V,keepOnlyColumnsToUpsert:!1});return e.current.setState(WO(B)),L!=null&&e.current.publishEvent("columnsChange",B.orderedFields),_},[e,s]),R=u.useCallback((_,$)=>{if($===Ac.columns){var F;const V=t.slots.columnsPanel;return D.jsx(V,S({},(F=t.slotProps)==null?void 0:F.columnsPanel))}return _},[t.slots.columnsPanel,(r=t.slotProps)==null?void 0:r.columnsPanel]),O=u.useCallback(_=>t.disableColumnSelector?_:[..._,"columnMenuColumnsItem"],[t.disableColumnSelector]);gr(e,"columnMenu",O),gr(e,"exportState",E),gr(e,"restoreState",I),gr(e,"preferencePanel",R);const T=u.useRef(null);dt(e,"viewportInnerSizeChange",_=>{T.current!==_.width&&(T.current=_.width,a(pS(bc(e.current.state),_.width)))});const z=u.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const _=_u({apiRef:e,columnTypes:s,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});a(_)},[e,o,a,s]);AE(e,"hydrateColumns",z);const N=u.useRef(!0);u.useEffect(()=>{if(N.current){N.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),i.current===t.columns&&l.current===s)return;const _=_u({apiRef:e,columnTypes:s,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});i.current=t.columns,l.current=s,a(_)},[o,e,a,t.columns,s]),u.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const b0e=.7,w0e=1.3,$3={compact:b0e,comfortable:w0e,standard:1},C0e=(e,t)=>S({},e,{density:{value:t.density,factor:$3[t.density]}}),x0e=(e,t)=>{const n=eo(e,"useDensity"),r=u.useCallback(s=>{n.debug(`Set grid density to ${s}`),e.current.setState(i=>{const l=PE(i),a={value:s,factor:$3[s]};return Cc(l,a)?i:S({},i,{density:a})}),e.current.forceUpdate()},[n,e]);u.useEffect(()=>{e.current.setDensity(t.density)},[e,t.density]),Ft(e,{setDensity:r},"public")};function S0e(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 R3=({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)},P0e=({apiRef:e})=>{var t,n;const r=Dhe(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},E0e=(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=R3({apiRef:e,options:c}),m=((f=c.getRowsToExport)!=null?f:P0e)({apiRef:e});return a0e({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"});S0e(p,"csv",c==null?void 0:c.fileName)},[n,s]);Ft(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(Qye,{options:f.csvOptions}),componentName:"csvExport"}]},[]);gr(e,"exportMenu",a)},k0e=(e,t)=>{var n,r;const o=S({},r3(t.autoPageSize),(n=t.paginationModel)!=null?n:(r=t.initialState)==null||(r=r.pagination)==null?void 0:r.paginationModel);return o3(o.pageSize,t.signature),S({},e,{pagination:{paginationModel:o}})},rv=(e,t,n)=>r=>{var o;let s=r.paginationModel;const i=(o=n==null?void 0:n.pageSize)!=null?o:s.pageSize,l=n3(e,i);n&&((n==null?void 0:n.page)!==s.page||(n==null?void 0:n.pageSize)!==s.pageSize)&&(s=n);const a=Uge(s.page,l);return a!==s.page&&(s=S({},s,{page:a})),o3(s.pageSize,t),{paginationModel:s}},I0e=(e,t)=>{var n;const r=eo(e,"useGridPagination"),o=ot(e,x0),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",rv((C=t.rowCount)!=null?C:o,t.signature,m),"setPaginationModel"),e.current.forceUpdate())},[e,r,t.rowCount,t.signature,o]);Ft(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!==Hge(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({},r3(t.autoPageSize),(b=C.stateToRestore.pagination)==null?void 0:b.paginationModel):Es(e);return e.current.updateControlState("pagination",rv((x=t.rowCount)!=null?x:o,t.signature,P),"stateRestorePreProcessing"),m},[e,t.autoPageSize,t.rowCount,t.signature,o]);gr(e,"exportState",p),gr(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=V5(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",rv((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 M0e(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function T0e(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 _0e=(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=R3({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=bh(e.current.state),M=e.current.rootElementRef.current,E=M.cloneNode(!0),I=E.querySelector(`.${de.main}`);I.style.overflow="visible",E.style.contain="size";const O=E.querySelector(`.${de.columnHeaders}`).querySelector(`.${de.columnHeadersInner}`);O.style.width="100%";let T=((C=M.querySelector(`.${de.toolbarContainer}`))==null?void 0:C.offsetHeight)||0,A=((w=M.querySelector(`.${de.footerContainer}`))==null?void 0:w.offsetHeight)||0;if(b.hideToolbar){var z;(z=E.querySelector(`.${de.toolbarContainer}`))==null||z.remove(),T=0}if(b.hideFooter){var N;(N=E.querySelector(`.${de.footerContainer}`))==null||N.remove(),A=0}const _=P.currentPageTotalHeight+LE(e,t.columnHeaderHeight)+T+A;if(E.style.height=`${_}px`,E.style.boxSizing="content-box",m!=null&&m.getRowsToExport){const L=E.querySelector(`.${de.footerContainer}`);L.style.position="absolute",L.style.width="100%",L.style.top=`${_-A}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 L=x.createElement("style");L.appendChild(x.createTextNode(F)),x.head.appendChild(L)}b.bodyClassName&&x.body.classList.add(...b.bodyClassName.split(" "));const V=[];if(b.copyStyles){const L=M.getRootNode(),H=(L.constructor.name==="ShadowRoot"?L:r.current).querySelectorAll("style, link[rel='stylesheet']");for(let K=0;K<H.length;K+=1){const Y=H[K];if(Y.tagName==="STYLE"){const J=x.createElement(Y.tagName),Q=Y.sheet;if(Q){let X="";for(let te=0;te<Q.cssRules.length;te+=1)typeof Q.cssRules[te].cssText=="string"&&(X+=`${Q.cssRules[te].cssText}\r
|
|
611
|
-
`);J.appendChild(x.createTextNode(X)),x.head.appendChild(J)}}else if(Y.getAttribute("href")){const J=x.createElement(Y.tagName);for(let Q=0;Q<Y.attributes.length;Q+=1){const X=Y.attributes[Q];X&&J.setAttribute(X.nodeName,X.nodeValue||"")}V.push(new Promise(Q=>{J.addEventListener("load",()=>Q())})),x.head.appendChild(J)}}}Promise.all(V).then(()=>{v.contentWindow.print()})},[e,r,t.columnHeaderHeight]),f=u.useCallback(v=>{var m;r.current.body.removeChild(v),e.current.restoreState(o.current||{}),(m=o.current)!=null&&(m=m.columns)!=null&&m.columnVisibilityModel||e.current.setColumnVisibilityModel(s.current),e.current.unstable_setVirtualization(!0),e.current.setRows(i.current),o.current=null,s.current={},i.current=[]},[e]),h={exportDataAsPrint:u.useCallback(v=>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=N5(e),w={page:0,pageSize:C};e.current.updateControlState("pagination",rv(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 M0e();const m=T0e(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])};Ft(e,h,"public");const y=u.useCallback((v,m)=>{var C;return(C=m.printOptions)!=null&&C.disableToolbarButton?v:[...v,{component:D.jsx(Xye,{options:m.printOptions}),componentName:"printExport"}]},[]);gr(e,"exportMenu",y)},$0e=(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:vh();return S({},e,{filter:{filterModel:w3(i,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},R0e=e=>e.filteredRowsLookup;function GO(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function O0e(){return v0(Object.values)}const D0e=(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(T=>{const A=Or(T,e.current.instanceId),z=t.filterMode==="client"?w1e(A,e,t.disableEval):null,N=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:z,filterModel:A!=null?A:vh()}),_=S({},T,{filter:S({},T.filter,N)}),$=GO(e,_);return S({},_,{visibleRowsLookup:$})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.disableEval]),i=u.useCallback((T,A)=>A==null||A.filterable===!1||t.disableColumnFilter?T:[...T,"columnMenuFilterItem"],[t.disableColumnFilter]),l=u.useCallback(()=>{s(),e.current.forceUpdate()},[e,s]),a=u.useCallback(T=>{const A=Or(e),z=[...A.items],N=z.findIndex(_=>_.id===T.id);N===-1?z.push(T):z[N]=T,e.current.setFilterModel(S({},A,{items:z}),"upsertFilterItem")},[e]),c=u.useCallback(T=>{const A=Or(e),z=[...A.items];T.forEach(N=>{const _=T.findIndex($=>$.id===N.id);_===-1?z.push(N):z[_]=N}),e.current.setFilterModel(S({},A,{items:T}),"upsertFilterItems")},[e]),f=u.useCallback(T=>{const A=Or(e),z=A.items.filter(N=>N.id!==T.id);z.length!==A.items.length&&e.current.setFilterModel(S({},A,{items:z}),"deleteFilterItem")},[e]),p=u.useCallback((T,A,z)=>{if(o.debug("Displaying filter panel"),T){const N=Or(e),_=N.items.filter(L=>{var B;if(L.value!==void 0)return!(Array.isArray(L.value)&&L.value.length===0);const K=(B=e.current.getColumn(L.field).filterOperators)==null?void 0:B.find(J=>J.value===L.operator);return!(typeof(K==null?void 0:K.requiresFilterValue)=="undefined"?!0:K==null?void 0:K.requiresFilterValue)});let $;const F=_.find(L=>L.field===T),V=e.current.getColumn(T);F?$=_:t.disableMultipleColumnsFiltering?$=[uS({field:T,operator:V.filterOperators[0].value},e)]:$=[..._,uS({field:T,operator:V.filterOperators[0].value},e)],e.current.setFilterModel(S({},N,{items:$}))}e.current.showPreferences(Ac.filters,A,z)},[e,o,t.disableMultipleColumnsFiltering]),h=u.useCallback(()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()},[e,o]),y=u.useCallback(T=>{const A=Or(e);A.logicOperator!==T&&e.current.setFilterModel(S({},A,{logicOperator:T}),"changeLogicOperator")},[e]),v=u.useCallback(T=>{const A=Or(e);Cc(A.quickFilterValues,T)||e.current.setFilterModel(S({},A,{quickFilterValues:[...T]}))},[e]),m=u.useCallback((T,A)=>{Or(e)!==T&&(o.debug("Setting filter model"),e.current.updateControlState("filter",DO(T,t.disableMultipleColumnsFiltering,e),A),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};Ft(e,C,"public");const w=u.useCallback((T,A)=>{var z;const N=Or(e);return!A.exportOnlyDirtyModels||t.filterModel!=null||((z=t.initialState)==null||(z=z.filter)==null?void 0:z.filterModel)!=null||!Cc(N,vh())?S({},T,{filter:{filterModel:N}}):T},[e,t.filterModel,(n=t.initialState)==null||(n=n.filter)==null?void 0:n.filterModel]),b=u.useCallback((T,A)=>{var z;const N=(z=A.stateToRestore.filter)==null?void 0:z.filterModel;return N==null?T:(e.current.updateControlState("filter",DO(N,t.disableMultipleColumnsFiltering,e),"restoreState"),S({},T,{callbacks:[...T.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),x=u.useCallback((T,A)=>{if(A===Ac.filters){var z;const N=t.slots.filterPanel;return D.jsx(N,S({},(z=t.slotProps)==null?void 0:z.filterPanel))}return T},[t.slots.filterPanel,(r=t.slotProps)==null?void 0:r.filterPanel]),{getRowId:P}=t,M=yE(O0e),E=u.useCallback(T=>{if(t.filterMode!=="client"||!T.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const A=ca(e),z={},{isRowMatchingFilters:N}=T,_={},$={passingFilterItems:null,passingQuickFilterValues:null},F=M.current(e.current.state.rows.dataRowIdToModelLookup);for(let B=0;B<F.length;B+=1){const H=F[B],K=P?P(H):H.id;N(H,void 0,$);const Y=x1e([$.passingFilterItems],[$.passingQuickFilterValues],T.filterModel,e,_);z[K]=Y}const V="auto-generated-group-footer-root";return A[V]&&(z[V]=!0),{filteredRowsLookup:z,filteredDescendantCountLookup:{}}},[e,t.filterMode,P,M]);gr(e,"columnMenu",i),gr(e,"exportState",w),gr(e,"restoreState",b),gr(e,"preferencePanel",x),by(e,Lc,"filtering",E),by(e,Lc,"visibleRowsLookupCreation",R0e);const I=u.useCallback(()=>{o.debug("onColUpdated - GridColumns changed, applying filters");const T=Or(e),A=whe(e),z=T.items.filter(N=>N.field&&A[N.field]);z.length<T.items.length&&e.current.setFilterModel(S({},T,{items:z}))},[e,o]),R=u.useCallback(T=>{T==="filtering"&&e.current.unstable_applyFilters()},[e]),O=u.useCallback(()=>{e.current.setState(T=>S({},T,{visibleRowsLookup:GO(e,T)})),e.current.forceUpdate()},[e]);dt(e,"rowsSet",s),dt(e,"columnsChange",I),dt(e,"activeStrategyProcessorChange",R),dt(e,"rowExpansionChange",O),dt(e,"columnVisibilityModelChange",()=>{const T=Or(e);T.quickFilterValues&&T.quickFilterExcludeHiddenColumns&&e.current.unstable_applyFilters()}),Qh(()=>{e.current.unstable_applyFilters()}),Lt(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,o,t.filterModel])},A0e=e=>S({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),L0e=(e,t)=>{const n=eo(e,"useGridFocus"),r=u.useRef(null),o=u.useCallback((I,R)=>{I&&e.current.getRow(I.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(I.id,I.field),R)},[e]),s=u.useCallback((I,R)=>{const O=Vo(e);(O==null?void 0:O.id)===I&&(O==null?void 0:O.field)===R||(e.current.setState(T=>(n.debug(`Focusing on cell with id=${I} and field=${R}`),S({},T,{tabIndex:{cell:{id:I,field:R},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:I,field:R},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(I)&&(O&&o(O,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(I,R))))},[e,n,o]),i=u.useCallback((I,R={})=>{const O=Vo(e);o(O,R),e.current.setState(T=>(n.debug(`Focusing on column header with colIndex=${I}`),S({},T,{tabIndex:{columnHeader:{field:I},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:I},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),l=u.useCallback((I,R={})=>{const O=Vo(e);o(O,R),e.current.setState(T=>(n.debug(`Focusing on column header filter with colIndex=${I}`),S({},T,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:I},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:I},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),a=u.useCallback((I,R,O={})=>{const T=Vo(e);T&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(T.id,T.field),O),e.current.setState(A=>S({},A,{tabIndex:{columnGroupHeader:{field:I,depth:R},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:I,depth:R},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),c=u.useCallback(()=>uy(e),[e]),f=u.useCallback((I,R,O)=>{let T=e.current.getColumnIndex(R);const A=Ar(e),z=vy(e,{pagination:t.pagination,paginationMode:t.paginationMode}),N=ef(e),_=[].concat(N.top||[],z.rows,N.bottom||[]);let $=_.findIndex(B=>B.id===I);O==="right"?T+=1:O==="left"?T-=1:$+=1,T>=A.length?($+=1,$<_.length&&(T=0)):T<0&&($-=1,$>=0&&(T=A.length-1)),$=Od($,0,_.length-1);const F=_[$];if(!F)return;const V=e.current.unstable_getCellColSpanInfo(F.id,T);V&&V.spannedByColSpan&&(O==="left"||O==="below"?T=V.leftVisibleCellIndex:O==="right"&&(T=V.rightVisibleCellIndex)),T=Od(T,0,A.length-1);const L=A[T];e.current.setCellFocus(F.id,L.field)},[e,t.pagination,t.paginationMode]),p=u.useCallback(({id:I,field:R})=>{e.current.setCellFocus(I,R)},[e]),h=u.useCallback((I,R)=>{R.key==="Enter"||R.key==="Tab"||R.key==="Shift"||my(R.key)||e.current.setCellFocus(I.id,I.field)},[e]),y=u.useCallback(({field:I},R)=>{R.target===R.currentTarget&&e.current.setColumnHeaderFocus(I,R)},[e]),v=u.useCallback(({fields:I,depth:R},O)=>{if(O.target!==O.currentTarget)return;const T=uy(e);T!==null&&T.depth===R&&I.includes(T.field)||e.current.setColumnGroupHeaderFocus(I[0],R,O)},[e]),m=u.useCallback((I,R)=>{var O;(O=R.relatedTarget)!=null&&O.className.includes(de.columnHeader)||(n.debug("Clearing focus"),e.current.setState(T=>S({},T,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),C=u.useCallback(I=>{r.current=I},[]),w=u.useCallback(I=>{const R=r.current;r.current=null;const O=Vo(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:I,cell:R}))return;if(!O){R&&e.current.setCellFocus(R.id,R.field);return}if((R==null?void 0:R.id)===O.id&&(R==null?void 0:R.field)===O.field)return;const A=e.current.getCellElement(O.id,O.field);A!=null&&A.contains(I.target)||(R?e.current.setCellFocus(R.id,R.field):(e.current.setState(z=>S({},z,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),o(O,I)))},[e,o]),b=u.useCallback(I=>{if(I.cellMode==="view")return;const R=Vo(e);((R==null?void 0:R.id)!==I.id||(R==null?void 0:R.field)!==I.field)&&e.current.setCellFocus(I.id,I.field)},[e]),x=u.useCallback(()=>{const I=Vo(e);I&&!e.current.getRow(I.id)&&e.current.setState(R=>S({},R,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[e]),P=qe(()=>{const I=Vo(e);if(!I)return;const R=vy(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(R.rows.find(A=>A.id===I.id))return;const T=Ar(e);e.current.setState(A=>S({},A,{tabIndex:{cell:{id:R.rows[0].id,field:T[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),M={setCellFocus:s,setColumnHeaderFocus:i,setColumnHeaderFilterFocus:l},E={moveFocusToRelativeCell:f,setColumnGroupHeaderFocus:a,getColumnGroupHeaderFocus:c};Ft(e,M,"public"),Ft(e,E,"private"),u.useEffect(()=>{const I=pn(e.current.rootElementRef.current);return I.addEventListener("mouseup",w),()=>{I.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 F0e(e,t){const n=ef(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const uC=({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},dC=({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},N0e=(e,t)=>{const n=eo(e,"useGridKeyboardNavigation"),r=Wc(e,t).rows,o=vn(),s=u.useMemo(()=>F0e(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 I=e.current.getVisibleColumns()[w].field;e.current.setCellFocus(b,I)},[e,n]),a=u.useCallback((w,b)=>{n.debug(`Navigating to header col ${w}`),e.current.scrollToIndexes({colIndex:w});const x=e.current.getVisibleColumns()[w].field;e.current.setColumnHeaderFocus(x,b)},[e,n]),c=u.useCallback((w,b)=>{n.debug(`Navigating to header filter col ${w}`),e.current.scrollToIndexes({colIndex:w});const x=e.current.getVisibleColumns()[w].field;e.current.setColumnHeaderFilterFocus(x,b)},[e,n]),f=u.useCallback((w,b,x)=>{n.debug(`Navigating to header col ${w}`),e.current.scrollToIndexes({colIndex:w});const{field:P}=e.current.getVisibleColumns()[w];e.current.setColumnGroupHeaderFocus(P,b,x)},[e,n]),p=u.useCallback(w=>{var b;return(b=s[w])==null?void 0:b.id},[s]),h=u.useCallback((w,b)=>{const x=b.currentTarget.querySelector(`.${de.columnHeaderTitleContainerContent}`);if(!!x&&x.contains(b.target)&&w.field!==nf.field||!e.current.getRootDimensions())return;const E=e.current.getViewportPageSize(),I=w.field?e.current.getColumnIndex(w.field):0,R=s.length>0?0:null,O=s.length-1,T=0,A=Ar(e).length-1,z=qh(e);let N=!0;switch(b.key){case"ArrowDown":{R!==null&&(i?c(I,b):l(I,p(R)));break}case"ArrowRight":{const _=dC({currentColIndex:I,firstColIndex:T,lastColIndex:A,direction:o.direction});_!==null&&a(_,b);break}case"ArrowLeft":{const _=uC({currentColIndex:I,firstColIndex:T,lastColIndex:A,direction:o.direction});_!==null&&a(_,b);break}case"ArrowUp":{z>0&&f(I,z-1,b);break}case"PageDown":{R!==null&&O!==null&&l(I,p(Math.min(R+E,O)));break}case"Home":{a(T,b);break}case"End":{a(A,b);break}case"Enter":{(b.ctrlKey||b.metaKey)&&e.current.toggleColumnMenu(w.field);break}case" ":break;default:N=!1}N&&b.preventDefault()},[e,s.length,i,c,l,p,o.direction,a,f]),y=u.useCallback((w,b)=>{if(!e.current.getRootDimensions())return;const P=rve(e)===w.field,M=ove(e)===w.field;if(P||M||!my(b.key))return;const E=e.current.getViewportPageSize(),I=w.field?e.current.getColumnIndex(w.field):0,R=0,O=s.length-1,T=0,A=Ar(e).length-1;let z=!0;switch(b.key){case"ArrowDown":{const N=p(R);N!=null&&l(I,N);break}case"ArrowRight":{const N=dC({currentColIndex:I,firstColIndex:T,lastColIndex:A,direction:o.direction});N!==null&&c(N,b);break}case"ArrowLeft":{const N=uC({currentColIndex:I,firstColIndex:T,lastColIndex:A,direction:o.direction});N!==null?c(N,b):e.current.setColumnHeaderFilterFocus(w.field,b);break}case"ArrowUp":{a(I,b);break}case"PageDown":{O!==null&&l(I,p(Math.min(R+E,O)));break}case"Home":{c(T,b);break}case"End":{c(A,b);break}case" ":break;default:z=!1}z&&b.preventDefault()},[e,s.length,c,o.direction,a,l,p]),v=u.useCallback((w,b)=>{if(!e.current.getRootDimensions())return;const P=uy(e);if(P===null)return;const{field:M,depth:E}=P,{fields:I,depth:R,maxDepth:O}=w,T=e.current.getViewportPageSize(),A=e.current.getColumnIndex(M),z=M?e.current.getColumnIndex(M):0,N=0,_=s.length-1,$=0,F=Ar(e).length-1;let V=!0;switch(b.key){case"ArrowDown":{R===O-1?a(A,b):f(A,E+1,b);break}case"ArrowUp":{R>0&&f(A,E-1,b);break}case"ArrowRight":{const L=I.length-I.indexOf(M)-1;A+L+1<=F&&f(A+L+1,E,b);break}case"ArrowLeft":{const L=I.indexOf(M);A-L-1>=$&&f(A-L-1,E,b);break}case"PageDown":{_!==null&&l(z,p(Math.min(N+T,_)));break}case"Home":{f($,E,b);break}case"End":{f(F,E,b);break}case" ":break;default:V=!1}V&&b.preventDefault()},[e,s.length,a,f,l,p]),m=u.useCallback((w,b)=>{if(Yh(b))return;const x=e.current.getCellParams(w.id,w.field);if(x.cellMode===un.Edit||!my(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,I=e.current.getViewportPageSize(),R=w.field?e.current.getColumnIndex(w.field):0,O=s.findIndex($=>$.id===w.id),T=0,A=s.length-1,z=0,N=Ar(e).length-1;let _=!0;switch(b.key){case"ArrowDown":{O<A&&l(R,p(O+1));break}case"ArrowUp":{O>T?l(R,p(O-1)):i?c(R,b):a(R,b);break}case"ArrowRight":{const $=dC({currentColIndex:R,firstColIndex:z,lastColIndex:N,direction:E});$!==null&&l($,p(O),E==="rtl"?"left":"right");break}case"ArrowLeft":{const $=uC({currentColIndex:R,firstColIndex:z,lastColIndex:N,direction:E});$!==null&&l($,p(O),E==="rtl"?"right":"left");break}case"Tab":{b.shiftKey&&R>z?l(R-1,p(O),"left"):!b.shiftKey&&R<N&&l(R+1,p(O),"right");break}case" ":{if(w.field===OE)break;const F=w.colDef;if(F&&F.type==="treeDataGroup")break;!b.shiftKey&&O<A&&l(R,p(Math.min(O+I,A)));break}case"PageDown":{O<A&&l(R,p(Math.min(O+I,A)));break}case"PageUp":{const $=Math.max(O-I,T);$!==O&&$>=T?l(R,p($)):a(R,b);break}case"Home":{b.ctrlKey||b.metaKey||b.shiftKey?l(z,p(T)):l(z,p(O));break}case"End":{b.ctrlKey||b.metaKey||b.shiftKey?l(N,p(A)):l(N,p(O));break}default:_=!1}_&&b.preventDefault()},[e,s,o.direction,l,p,i,c,a]),C=u.useCallback((w,{event:b})=>b.key===" "?!1:w,[]);gr(e,"canStartEditing",C),dt(e,"columnHeaderKeyDown",h),dt(e,"headerFilterKeyDown",y),dt(e,"columnGroupHeaderKeyDown",v),dt(e,"cellKeyDown",m)},B0e=(e,t)=>{var n,r;return S({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},j0e=(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=yh(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]);Ft(e,{showPreferences:c,hidePreferences:a},"public");const f=u.useCallback((h,y)=>{var v;const m=yh(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]);gr(e,"exportState",f),gr(e,"restoreState",p),u.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(s.current)},[])},z0e=["id","field"],V0e=["id","field"],H0e=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"),U0e=(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.editMode===Hi.Cell&&_(...$)},p=u.useCallback((_,$)=>{const F=e.current.getCellParams(_,$);if(!e.current.isCellEditable(F))throw new Error(`MUI: The cell with id=${_} and field=${$} is not editable.`)},[e]),h=u.useCallback((_,$,F)=>{if(e.current.getCellMode(_,$)!==F)throw new Error(`MUI: The cell with id=${_} and field=${$} is not in ${F} mode.`)},[e]),y=u.useCallback((_,$)=>{if(!_.isEditable||_.cellMode===un.Edit)return;const F=S({},_,{reason:rl.cellDoubleClick});e.current.publishEvent("cellEditStart",F,$)},[e]),v=u.useCallback((_,$)=>{if(_.cellMode===un.View||e.current.getCellMode(_.id,_.field)===un.View)return;const F=S({},_,{reason:Zs.cellFocusOut});e.current.publishEvent("cellEditStop",F,$)},[e]),m=u.useCallback((_,$)=>{if(_.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 V=S({},_,{reason:F});e.current.publishEvent("cellEditStop",V,$)}}else if(_.isEditable){let F;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:$,cellParams:_,editMode:"cell"}))return;if(Y5($)?F=rl.printableKeyDown:($.ctrlKey||$.metaKey)&&$.key==="v"?F=rl.pasteKeyDown:$.key==="Enter"?F=rl.enterKeyDown:($.key==="Delete"||$.key==="Backspace")&&(F=rl.deleteKeyDown),F){const L=S({},_,{reason:F,key:$.key});e.current.publishEvent("cellEditStart",L,$)}}},[e]),C=u.useCallback(_=>{const{id:$,field:F,reason:V}=_,L={id:$,field:F};(V===rl.printableKeyDown||V===rl.deleteKeyDown||V===rl.pasteKeyDown)&&(L.deleteValue=!0),e.current.startCellEditMode(L)},[e]),w=u.useCallback(_=>{const{id:$,field:F,reason:V}=_;e.current.runPendingEditCellValueMutation($,F);let L;V===Zs.enterKeyDown?L="below":V===Zs.tabKeyDown?L="right":V===Zs.shiftTabKeyDown&&(L="left");const B=V==="escapeKeyDown";e.current.stopCellEditMode({id:$,field:F,ignoreModifications:B,cellToFocusAfter:L})},[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((_,$)=>{const F=lo(e.current.state);return F[_]&&F[_][$]?un.Edit:un.View},[e]),x=qe(_=>{const $=_!==t.cellModesModel;c&&$&&c(_,{}),!(t.cellModesModel&&$)&&(r(_),o.current=_,e.current.publishEvent("cellModesModelChange",_))}),P=u.useCallback((_,$,F)=>{const V=S({},o.current);if(F!==null)V[_]=S({},V[_],{[$]:S({},F)});else{const L=V[_],B=ae(L,[$].map(Ch));V[_]=B,Object.keys(V[_]).length===0&&delete V[_]}x(V)},[x]),M=u.useCallback((_,$,F)=>{e.current.setState(V=>{const L=S({},V.editRows);return F!==null?L[_]=S({},L[_],{[$]:S({},F)}):(delete L[_][$],Object.keys(L[_]).length===0&&delete L[_]),S({},V,{editRows:L})}),e.current.forceUpdate()},[e]),E=u.useCallback(_=>{const{id:$,field:F}=_,V=ae(_,z0e);p($,F),h($,F,un.View),P($,F,S({mode:un.Edit},V))},[p,h,P]),I=qe(_=>{const{id:$,field:F,deleteValue:V,initialValue:L}=_;let B=e.current.getCellValue($,F);(V||L)&&(B=V?"":L),M($,F,{value:B,error:!1,isProcessingProps:!1}),e.current.setCellFocus($,F)}),R=u.useCallback(_=>{const{id:$,field:F}=_,V=ae(_,V0e);h($,F,un.Edit),P($,F,S({mode:un.View},V))},[h,P]),O=qe(_=>rt(void 0,null,function*(){const{id:$,field:F,ignoreModifications:V,cellToFocusAfter:L="none"}=_;h($,F,un.Edit),e.current.runPendingEditCellValueMutation($,F);const B=()=>{M($,F,null),P($,F,null),L!=="none"&&e.current.moveFocusToRelativeCell($,F,L)};if(V){B();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 J=e.current.getRowWithUpdatedValuesFromCellEditing($,F);if(i){const Q=X=>{s.current[$][F].mode=un.Edit,P($,F,{mode:un.Edit}),l?l(X):H0e()};try{const X=e.current.getRow($);Promise.resolve(i(J,X)).then(te=>{e.current.updateRows([te]),B()}).catch(Q)}catch(X){Q(X)}}else e.current.updateRows([J]),B()})),T=u.useCallback(_=>rt(void 0,null,function*(){var $;const{id:F,field:V,value:L,debounceMs:B,unstable_skipValueParser:H}=_;p(F,V),h(F,V,un.Edit);const K=e.current.getColumn(V),Y=e.current.getRow(F);let J=L;K.valueParser&&!H&&(J=K.valueParser(L,e.current.getCellParams(F,V)));let Q=lo(e.current.state),X=S({},Q[F][V],{value:J,changeReason:B?"debouncedSetEditCellValue":"setEditCellValue"});if(K.preProcessEditCellProps){const te=L!==Q[F][V].value;X=S({},X,{isProcessingProps:!0}),M(F,V,X),X=yield Promise.resolve(K.preProcessEditCellProps({id:F,row:Y,props:X,hasChanged:te}))}return e.current.getCellMode(F,V)===un.View?!1:(Q=lo(e.current.state),X=S({},X,{isProcessingProps:!1}),X.value=K.preProcessEditCellProps?Q[F][V].value:J,M(F,V,X),Q=lo(e.current.state),!(($=Q[F])!=null&&($=$[V])!=null&&$.error))}),[e,p,h,M]),A=u.useCallback((_,$)=>{const F=e.current.getColumn($),V=lo(e.current.state),L=e.current.getRow(_);if(!V[_]||!V[_][$])return e.current.getRow(_);const{value:B}=V[_][$];return F.valueSetter?F.valueSetter({value:B,row:L}):S({},L,{[$]:B})},[e]),z={getCellMode:b,startCellEditMode:E,stopCellEditMode:R},N={setCellEditingEditCellValue:T,getRowWithUpdatedValuesFromCellEditing:A};Ft(e,z,"public"),Ft(e,N,"private"),u.useEffect(()=>{a&&x(a)},[a,x]),Lt(()=>{const _=cy(e),$=s.current;s.current=t3(n),Object.entries(n).forEach(([F,V])=>{Object.entries(V).forEach(([L,B])=>{var H,K;const Y=((H=$[F])==null||(H=H[L])==null?void 0:H.mode)||un.View,J=(K=_[F])!=null?K:F;B.mode===un.Edit&&Y===un.View?I(S({id:J,field:L},B)):B.mode===un.View&&Y===un.Edit&&O(S({id:J,field:L},B))})})},[e,n,I,O])},W0e=["id"],G0e=["id"],K0e=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"),q0e=(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=L=>(...B)=>{t.editMode===Hi.Row&&L(...B)},y=u.useCallback((L,B)=>{const H=e.current.getCellParams(L,B);if(!e.current.isCellEditable(H))throw new Error(`MUI: The cell with id=${L} and field=${B} is not editable.`)},[e]),v=u.useCallback((L,B)=>{if(e.current.getRowMode(L)!==B)throw new Error(`MUI: The row with id=${L} is not in ${B} mode.`)},[e]),m=u.useCallback((L,B)=>{if(!L.isEditable||e.current.getRowMode(L.id)===Cn.Edit)return;const H=e.current.getRowParams(L.id),K=S({},H,{field:L.field,reason:ql.cellDoubleClick});e.current.publishEvent("rowEditStart",K,B)},[e]),C=u.useCallback(L=>{l.current=L},[]),w=u.useCallback((L,B)=>{L.isEditable&&e.current.getRowMode(L.id)!==Cn.View&&(l.current=null,i.current=setTimeout(()=>{var H;if(i.current=null,((H=l.current)==null?void 0:H.id)!==L.id){if(!e.current.getRow(L.id)||e.current.getRowMode(L.id)===Cn.View)return;const K=e.current.getRowParams(L.id),Y=S({},K,{field:L.field,reason:ol.rowFocusOut});e.current.publishEvent("rowEditStop",Y,B)}}))},[e]);u.useEffect(()=>()=>{clearTimeout(i.current)},[]);const b=u.useCallback((L,B)=>{if(L.cellMode===Cn.Edit){if(B.which===229)return;let H;if(B.key==="Escape")H=ol.escapeKeyDown;else if(B.key==="Enter")H=ol.enterKeyDown;else if(B.key==="Tab"){const K=y0(e).filter(Y=>e.current.getColumn(Y).type===k0?!0:e.current.isCellEditable(e.current.getCellParams(L.id,Y)));if(B.shiftKey?L.field===K[0]&&(H=ol.shiftTabKeyDown):L.field===K[K.length-1]&&(H=ol.tabKeyDown),B.preventDefault(),!H){const Y=K.findIndex(Q=>Q===L.field),J=K[B.shiftKey?Y-1:Y+1];e.current.setCellFocus(L.id,J)}}if(H){const K=S({},e.current.getRowParams(L.id),{reason:H,field:L.field});e.current.publishEvent("rowEditStop",K,B)}}else if(L.isEditable){let H;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:B,cellParams:L,editMode:"row"}))return;if(Y5(B)||(B.ctrlKey||B.metaKey)&&B.key==="v"?H=ql.printableKeyDown:B.key==="Enter"?H=ql.enterKeyDown:(B.key==="Delete"||B.key==="Backspace")&&(H=ql.deleteKeyDown),H){const Y=e.current.getRowParams(L.id),J=S({},Y,{field:L.field,reason:H});e.current.publishEvent("rowEditStart",J,B)}}},[e]),x=u.useCallback(L=>{const{id:B,field:H,reason:K}=L,Y={id:B,fieldToFocus:H};(K===ql.printableKeyDown||K===ql.deleteKeyDown)&&(Y.deleteValue=!!H),e.current.startRowEditMode(Y)},[e]),P=u.useCallback(L=>{const{id:B,reason:H,field:K}=L;e.current.runPendingEditCellValueMutation(B);let Y;H===ol.enterKeyDown?Y="below":H===ol.tabKeyDown?Y="right":H===ol.shiftTabKeyDown&&(Y="left");const J=H==="escapeKeyDown";e.current.stopRowEditMode({id:B,ignoreModifications:J,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(L=>{if(t.editMode===Hi.Cell)return Cn.View;const B=lo(e.current.state);return B[L]&&Object.keys(B[L]).length>0?Cn.Edit:Cn.View},[e,t.editMode]),E=qe(L=>{const B=L!==t.rowModesModel;p&&B&&p(L,{}),!(t.rowModesModel&&B)&&(r(L),o.current=L,e.current.publishEvent("rowModesModelChange",L))}),I=u.useCallback((L,B)=>{const H=S({},o.current);B!==null?H[L]=S({},B):delete H[L],E(H)},[E]),R=u.useCallback((L,B)=>{e.current.setState(H=>{const K=S({},H.editRows);return B!==null?K[L]=B:delete K[L],S({},H,{editRows:K})}),e.current.forceUpdate()},[e]),O=u.useCallback((L,B,H)=>{e.current.setState(K=>{const Y=S({},K.editRows);return H!==null?Y[L]=S({},Y[L],{[B]:S({},H)}):(delete Y[L][B],Object.keys(Y[L]).length===0&&delete Y[L]),S({},K,{editRows:Y})}),e.current.forceUpdate()},[e]),T=u.useCallback(L=>{const{id:B}=L,H=ae(L,W0e);v(B,Cn.View),I(B,S({mode:Cn.Edit},H))},[v,I]),A=qe(L=>{const{id:B,fieldToFocus:H,deleteValue:K,initialValue:Y}=L,Q=gl(e).reduce((X,te)=>{if(!e.current.getCellParams(B,te).isEditable)return X;let Z=e.current.getCellValue(B,te);return H===te&&(K||Y)&&(Z=K?"":Y),X[te]={value:Z,error:!1,isProcessingProps:!1},X},{});R(B,Q),H&&e.current.setCellFocus(B,H)}),z=u.useCallback(L=>{const{id:B}=L,H=ae(L,G0e);v(B,Cn.Edit),I(B,S({mode:Cn.View},H))},[v,I]),N=qe(L=>{const{id:B,ignoreModifications:H,field:K,cellToFocusAfter:Y="none"}=L;e.current.runPendingEditCellValueMutation(B);const J=()=>{Y!=="none"&&K&&e.current.moveFocusToRelativeCell(B,K,Y),R(B,null),I(B,null)};if(H){J();return}const Q=lo(e.current.state),X=e.current.getRow(B);if(Object.values(Q[B]).some(pe=>pe.isProcessingProps)){s.current[B].mode=Cn.Edit;return}if(Object.values(Q[B]).some(pe=>pe.error)){s.current[B].mode=Cn.Edit,I(B,{mode:Cn.Edit});return}const Z=e.current.getRowWithUpdatedValuesFromRowEditing(B);if(a){const pe=ne=>{s.current[B].mode=Cn.Edit,I(B,{mode:Cn.Edit}),c?c(ne):K0e()};try{Promise.resolve(a(Z,X)).then(ne=>{e.current.updateRows([ne]),J()}).catch(pe)}catch(ne){pe(ne)}}else e.current.updateRows([Z]),J()}),_=u.useCallback(L=>{const{id:B,field:H,value:K,debounceMs:Y,unstable_skipValueParser:J}=L;y(B,H);const Q=e.current.getColumn(H),X=e.current.getRow(B);let te=K;Q.valueParser&&!J&&(te=Q.valueParser(K,e.current.getCellParams(B,H)));let se=lo(e.current.state),Z=S({},se[B][H],{value:te,changeReason:Y?"debouncedSetEditCellValue":"setEditCellValue"});return Q.preProcessEditCellProps||O(B,H,Z),new Promise(pe=>{const ne=[];if(Q.preProcessEditCellProps){const re=Z.value!==se[B][H].value;Z=S({},Z,{isProcessingProps:!0}),O(B,H,Z);const me=se[B],ce=ae(me,[H].map(Ch)),xe=Promise.resolve(Q.preProcessEditCellProps({id:B,row:X,props:Z,hasChanged:re,otherFieldsProps:ce})).then(ke=>{if(e.current.getRowMode(B)===Cn.View){pe(!1);return}se=lo(e.current.state),ke=S({},ke,{isProcessingProps:!1}),ke.value=Q.preProcessEditCellProps?se[B][H].value:te,O(B,H,ke)});ne.push(xe)}Object.entries(se[B]).forEach(([re,me])=>{if(re===H)return;const ce=e.current.getColumn(re);if(!ce.preProcessEditCellProps)return;me=S({},me,{isProcessingProps:!0}),O(B,re,me),se=lo(e.current.state);const xe=se[B],ke=ae(xe,[re].map(Ch)),fe=Promise.resolve(ce.preProcessEditCellProps({id:B,row:X,props:me,hasChanged:!1,otherFieldsProps:ke})).then(Ie=>{if(e.current.getRowMode(B)===Cn.View){pe(!1);return}Ie=S({},Ie,{isProcessingProps:!1}),O(B,re,Ie)});ne.push(fe)}),Promise.all(ne).then(()=>{e.current.getRowMode(B)===Cn.Edit?(se=lo(e.current.state),pe(!se[B][H].error)):pe(!1)})})},[e,y,O]),$=u.useCallback(L=>{const B=lo(e.current.state),H=e.current.getRow(L);if(!B[L])return e.current.getRow(L);let K=S({},H);return Object.entries(B[L]).forEach(([Y,J])=>{const Q=e.current.getColumn(Y);Q.valueSetter?K=Q.valueSetter({value:J.value,row:K}):K[Y]=J.value}),K},[e]),F={getRowMode:M,startRowEditMode:T,stopRowEditMode:z},V={setRowEditingEditCellValue:_,getRowWithUpdatedValuesFromRowEditing:$};Ft(e,F,"public"),Ft(e,V,"private"),u.useEffect(()=>{f&&E(f)},[f,E]),Lt(()=>{const L=cy(e),B=s.current;s.current=t3(n),Object.entries(n).forEach(([H,K])=>{var Y,J;const Q=((Y=B[H])==null?void 0:Y.mode)||Cn.View,X=(J=L[H])!=null?J:H;K.mode===Cn.Edit&&Q===Cn.View?A(S({id:X},K)):K.mode===Cn.View&&Q===Cn.Edit&&N(S({id:X},K))})},[e,n,A,N])},Y0e=e=>S({},e,{editRows:{}}),Q0e=(e,t)=>{U0e(e,t),q0e(e,t);const n=u.useRef({}),{isCellEditable:r}=t,o=u.useCallback(h=>gh(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};Ft(e,f,"public"),Ft(e,p,"private")},X0e=(e,t,n)=>(n.current.caches.rows=tv({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),S({},e,{rows:z5({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),Z0e=(e,t)=>{const n=eo(e,"useGridRows"),r=Wc(e,t),o=u.useRef(Date.now()),s=RE(),i=u.useCallback(N=>{const _=ca(e)[N];if(_)return _;const $=e.current.getRowNode(N);return $&&gh($)?{[sd]:N}:null},[e]),l=t.getRowId,a=u.useCallback(N=>sd in N?N[sd]:l?l(N):N.id,[l]),c=u.useMemo(()=>r.rows.reduce((N,{id:_},$)=>(N[_]=$,N),{}),[r.rows]),f=u.useCallback(({cache:N,throttle:_})=>{const $=()=>{o.current=Date.now(),e.current.setState(V=>S({},V,{rows:z5({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:ti(e),previousTreeDepths:vO(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(s.clear(),e.current.caches.rows=N,!_){$();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(N=>{n.debug(`Updating all rows, new length ${N.length}`);const _=tv({rows:N,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),$=e.current.caches.rows;_.rowsBeforePartialUpdates=$.rowsBeforePartialUpdates,f({cache:_,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,f,e]),h=u.useCallback(N=>{if(t.signature===Fi.DataGrid&&N.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
|
|
612
|
-
`));const _=[];N.forEach(F=>{const V=fy(F,t.getRowId,"A row was provided without id when calling updateRows():"),L=e.current.getRowNode(V);if((L==null?void 0:L.type)==="pinnedRow"){const B=e.current.caches.pinnedRows,H=B.idLookup[V];H&&(B.idLookup[V]=S({},H,F))}else _.push(F)});const $=Uhe({updates:_,getRowId:t.getRowId,previousCache:e.current.caches.rows});f({cache:$,throttle:!0})},[t.signature,t.getRowId,f,e]),y=u.useCallback(()=>{const N=xg(e),_=ca(e);return new Map(N.map($=>{var F;return[$,(F=_[$])!=null?F:{}]}))},[e]),v=u.useCallback(()=>w0(e),[e]),m=u.useCallback(()=>xg(e),[e]),C=u.useCallback(N=>c[N],[c]),w=u.useCallback((N,_)=>{const $=e.current.getRowNode(N);if(!$)throw new Error(`MUI: No row with id #${N} found`);if($.type!=="group")throw new Error("MUI: Only group nodes can be expanded or collapsed");const F=S({},$,{childrenExpanded:_});e.current.setState(V=>S({},V,{rows:S({},V.rows,{tree:S({},V.rows.tree,{[N]:F})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",F)},[e]),b=u.useCallback(N=>{var _;return(_=ti(e)[N])!=null?_:null},[e]),x=u.useCallback(({skipAutoGeneratedRows:N=!0,groupId:_,applySorting:$,applyFiltering:F})=>{const V=ti(e);let L;if($){const B=V[_];if(!B)return[];const H=CE(e);L=[];const K=H.findIndex(Y=>Y===_)+1;for(let Y=K;Y<H.length&&V[H[Y]].depth>B.depth;Y+=1){const J=H[Y];(!N||!gh(V[J]))&&L.push(J)}}else L=EE(V,_,N);if(F){const B=L5(e);L=L.filter(H=>B[H]!==!1)}return L},[e]),P=u.useCallback((N,_)=>{const $=e.current.getRowNode(N);if(!$)throw new Error(`MUI: No row with id #${N} 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 V=ti(F,e.current.instanceId)[ao],L=V.children,B=L.findIndex(K=>K===N);if(B===-1||B===_)return F;n.debug(`Moving row ${N} to index ${_}`);const H=[...L];return H.splice(_,0,H.splice(B,1)[0]),S({},F,{rows:S({},F.rows,{tree:S({},F.rows.tree,{[ao]:S({},V,{children:H})})})})}),e.current.publishEvent("rowsSet")},[e,n]),M=u.useCallback((N,_)=>{if(t.signature===Fi.DataGrid&&_.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
|
|
613
|
-
`));if(_.length===0)return;if(C0(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const F=S({},ti(e)),V=S({},ca(e)),L=S({},cy(e)),B=F[ao],H=[...B.children];for(let Y=0;Y<_.length;Y+=1){const J=_[Y],Q=fy(J,t.getRowId,"A row was provided without id when calling replaceRows()."),[X]=H.splice(N+Y,1,Q);delete V[X],delete L[X],delete F[X];const te={id:Q,depth:0,parent:ao,type:"leaf",groupingKey:null};V[Q]=J,L[Q]=Q,F[Q]=te}F[ao]=S({},B,{children:H});const K=H.filter(Y=>F[Y].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=V,e.current.caches.rows.dataRowIdToIdLookup=L,e.current.setState(Y=>S({},Y,{rows:S({},Y.rows,{dataRowIdToModelLookup:V,dataRowIdToIdLookup:L,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},I={setRowIndex:P,setRowChildrenExpansion:w,getRowGroupChildren:x},R=u.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let N;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?N=S({},e.current.caches.rows,{updates:{type:"full",rows:xg(e)}}):N=tv({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),f({cache:N,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,f]),O=u.useCallback(N=>{N==="rowTreeCreation"&&R()},[R]),T=u.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==Ehe(e)&&R()},[e,R]);dt(e,"activeStrategyProcessorChange",O),dt(e,"strategyAvailabilityChange",T);const A=u.useCallback(()=>{e.current.setState(N=>{const _=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:ti(N,e.current.instanceId),treeDepths:vO(N,e.current.instanceId),dataRowIds:xg(N,e.current.instanceId),dataRowIdToModelLookup:ca(N,e.current.instanceId),dataRowIdToIdLookup:cy(N,e.current.instanceId)});return S({},N,{rows:S({},N.rows,_,{totalTopLevelRowCount:j5({tree:_.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);AE(e,"hydrateRows",A),Ft(e,E,"public"),Ft(e,I,t.signature===Fi.DataGrid?"private":"public");const z=u.useRef(!0);u.useEffect(()=>{if(z.current){z.current=!1;return}const N=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,_=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,$=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(N){_||(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:tv({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])},J0e=e=>{const t={[ao]:S({},Vhe(),{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}},ebe=({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}},tbe=e=>e.updates.type==="full"?J0e(e.updates.rows):ebe({previousTree:e.previousTree,actions:e.updates.actions}),nbe=e=>{by(e,Lc,"rowTreeCreation",tbe)},O3=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],rbe=(e,t)=>{var n;return S({},e,{rowSelection:t.rowSelection?(n=O3(t.rowSelectionModel))!=null?n:[]:[]})},obe=(e,t)=>{const n=eo(e,"useGridSelection"),r=_=>(...$)=>{t.rowSelection&&_(...$)},o=u.useMemo(()=>O3(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=Wc(e,t),h=u.useCallback(_=>{var $;let F=_;const V=($=s.current)!=null?$:_,L=e.current.isRowSelected(_);if(L){const B=Rp(e),H=B.findIndex(Y=>Y===V),K=B.findIndex(Y=>Y===F);if(H===K)return;H>K?F=B[K+1]:F=B[K-1]}s.current=_,e.current.selectRowRange({startId:V,endId:F},!L)},[e]),y=u.useCallback(_=>{if(t.signature===Fi.DataGrid&&!t.checkboxSelection&&Array.isArray(_)&&_.length>1)throw new Error(["MUI: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(`
|
|
614
|
-
`));Ss(e.current.state)!==_&&(n.debug("Setting selection model"),e.current.setState(F=>S({},F,{rowSelection:t.rowSelection?_:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),v=u.useCallback(_=>Ss(e.current.state).includes(_),[e]),m=u.useCallback(_=>{if(c&&!c(e.current.getRowParams(_)))return!1;const $=e.current.getRowNode(_);return!(($==null?void 0:$.type)==="footer"||($==null?void 0:$.type)==="pinnedRow")},[e,c]),C=u.useCallback(()=>Yge(e),[e]),w=u.useCallback((_,$=!0,F=!1)=>{if(e.current.isRowSelectable(_))if(s.current=_,F)n.debug(`Setting selection for row ${_}`),e.current.setRowSelectionModel($?[_]:[]);else{n.debug(`Toggling selection for row ${_}`);const L=Ss(e.current.state).filter(H=>H!==_);$&&L.push(_),(L.length<2||f)&&e.current.setRowSelectionModel(L)}},[e,n,f]),b=u.useCallback((_,$=!0,F=!1)=>{n.debug("Setting selection for several rows");const V=_.filter(H=>e.current.isRowSelectable(H));let L;if(F)L=$?V:[];else{const H=S({},gy(e));V.forEach(K=>{$?H[K]=K:delete H[K]}),L=Object.values(H)}(L.length<2||f)&&e.current.setRowSelectionModel(L)},[e,n,f]),x=u.useCallback(({startId:_,endId:$},F=!0,V=!1)=>{if(!e.current.getRow(_)||!e.current.getRow($))return;n.debug(`Expanding selection from row ${_} to row ${$}`);const L=Rp(e),B=L.indexOf(_),H=L.indexOf($),[K,Y]=B>H?[H,B]:[B,H],J=L.slice(K,Y+1);e.current.selectRows(J,F,V)},[e,n]),P={selectRow:w,setRowSelectionModel:y,getSelectedRows:C,isRowSelected:v,isRowSelectable:m},M={selectRows:b,selectRowRange:x};Ft(e,P,"public"),Ft(e,M,t.signature===Fi.DataGrid?"private":"public");const E=u.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const _=Ss(e.current.state),$=ca(e),F=S({},gy(e));let V=!1;_.forEach(L=>{$[L]||(delete F[L],V=!0)}),V&&e.current.setRowSelectionModel(Object.values(F))},[e,t.keepNonExistentRowsSelected]),I=u.useCallback((_,$)=>{const F=$.metaKey||$.ctrlKey,V=!i&&!F&&!Rme($),L=!f||V,B=e.current.isRowSelected(_);L?e.current.selectRow(_,V?!0:!B,!0):e.current.selectRow(_,!B,!1)},[e,f,i]),R=u.useCallback((_,$)=>{var F;if(a)return;const V=(F=$.target.closest(`.${de.cell}`))==null?void 0:F.getAttribute("data-field");if(V===nf.field||V===OE)return;if(V){const B=e.current.getColumn(V);if((B==null?void 0:B.type)===k0)return}e.current.getRowNode(_.id).type!=="pinnedRow"&&($.shiftKey&&(f||i)?h(_.id):I(_.id,$))},[a,f,i,e,h,I]),O=u.useCallback((_,$)=>{if(f&&$.shiftKey){var F;(F=window.getSelection())==null||F.removeAllRanges()}},[f]),T=u.useCallback((_,$)=>{$.nativeEvent.shiftKey?h(_.id):e.current.selectRow(_.id,_.value)},[e,h]),A=u.useCallback(_=>{const F=t.checkboxSelectionVisibleOnly&&t.pagination?i3(e):Rp(e);e.current.selectRows(F,_.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),z=u.useCallback((_,$)=>{if(e.current.getCellMode(_.id,_.field)!==un.Edit&&!Yh($)){if(my($.key)&&$.shiftKey){const F=Vo(e);if(F&&F.id!==_.id){$.preventDefault();const V=e.current.isRowSelected(F.id);if(!f){e.current.selectRow(F.id,!V,!0);return}const L=e.current.getRowIndexRelativeToVisibleRows(F.id),B=e.current.getRowIndexRelativeToVisibleRows(_.id);let H,K;L>B?V?(H=B,K=L-1):(H=B,K=L):V?(H=L+1,K=B):(H=L,K=B);const Y=p.rows.slice(H,K+1).map(J=>J.id);e.current.selectRows(Y,!V);return}}if($.key===" "&&$.shiftKey){$.preventDefault(),I(_.id,$);return}$.key==="a"&&($.ctrlKey||$.metaKey)&&($.preventDefault(),b(e.current.getAllRowIds(),!0))}},[e,I,b,p.rows,f]);dt(e,"sortedRowsSet",r(E)),dt(e,"rowClick",r(R)),dt(e,"rowSelectionCheckboxChange",r(T)),dt(e,"headerSelectionCheckboxChange",A),dt(e,"cellMouseDown",r(O)),dt(e,"cellKeyDown",r(z)),u.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),u.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const N=o!=null;u.useEffect(()=>{if(N||!t.rowSelection)return;const _=Ss(e.current.state);if(m){const $=_.filter(F=>m(F));$.length<_.length&&e.current.setRowSelectionModel($)}},[e,m,N,t.rowSelection]),u.useEffect(()=>{if(!t.rowSelection||N)return;const _=Ss(e.current.state);!f&&_.length>1&&e.current.setRowSelectionModel([])},[e,f,i,N,t.rowSelection])},D3={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"},sbe=e=>{const{classes:t}=e;return u.useMemo(()=>Te({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Vt,t),[t])},ibe=(e,t)=>{const n={classes:t.classes},r=sbe(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]);gr(e,"hydrateColumns",o)},lbe=(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:l3(s,t.disableMultipleColumnsSorting),sortedRows:[]}})},abe=(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,I)=>{const R=xs(e),O=R.findIndex(A=>A.field===E);let T=[...R];return O>-1?I?T.splice(O,1,I):T.splice(O,1):T=[...R,I],T},[e]),s=u.useCallback((E,I)=>{var R;const T=xs(e).find(z=>z.field===E.field);if(T){var A;const z=I===void 0?xO((A=E.sortingOrder)!=null?A:t.sortingOrder,T.sort):I;return z==null?void 0:S({},T,{sort:z})}return{field:E.field,sort:I===void 0?xO((R=E.sortingOrder)!=null?R:t.sortingOrder):I}},[e,t.sortingOrder]),i=u.useCallback((E,I)=>I==null||I.sortable===!1?E:(I.sortingOrder||t.sortingOrder).some(O=>!!O)?[...E,"columnMenuSortItem"]:E,[t.sortingOrder]),l=u.useCallback(()=>{e.current.setState(E=>{if(t.sortingMode==="server")return r.debug("Skipping sorting rows as sortingMode = server"),S({},E,{sorting:S({},E.sorting,{sortedRows:EE(ti(e),ao,!1)})});const I=xs(E,e.current.instanceId),R=eve(I,e),O=e.current.applyStrategyProcessor("sorting",{sortRowList:R});return S({},E,{sorting:S({},E.sorting,{sortedRows:O})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,r,t.sortingMode]),a=u.useCallback(E=>{xs(e)!==E&&(r.debug("Setting sort model"),e.current.setState(CO(E,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,r,t.disableMultipleColumnsSorting]),c=u.useCallback((E,I,R)=>{if(!E.sortable)return;const O=s(E,I);let T;!R||t.disableMultipleColumnsSorting?T=O?[O]:[]:T=o(E.field,O),e.current.setSortModel(T)},[e,o,s,t.disableMultipleColumnsSorting]),f=u.useCallback(()=>xs(e),[e]),p=u.useCallback(()=>xE(e).map(I=>I.model),[e]),h=u.useCallback(()=>CE(e),[e]),y=u.useCallback(E=>e.current.getSortedRowIds()[E],[e]);Ft(e,{getSortModel:f,getSortedRows:p,getSortedRowIds:h,getRowIdFromRowIndex:y,setSortModel:a,sortColumn:c,applySorting:l},"public");const m=u.useCallback((E,I)=>{var R;const O=xs(e);return!I.exportOnlyDirtyModels||t.sortModel!=null||((R=t.initialState)==null||(R=R.sorting)==null?void 0:R.sortModel)!=null||O.length>0?S({},E,{sorting:{sortModel:O}}):E},[e,t.sortModel,(n=t.initialState)==null||(n=n.sorting)==null?void 0:n.sortModel]),C=u.useCallback((E,I)=>{var R;const O=(R=I.stateToRestore.sorting)==null?void 0:R.sortModel;return O==null?E:(e.current.setState(CO(O,t.disableMultipleColumnsSorting)),S({},E,{callbacks:[...E.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),w=u.useCallback(E=>{const I=ti(e),R=I[ao],O=E.sortRowList?E.sortRowList(R.children.map(T=>I[T])):[...R.children];return R.footerId!=null&&O.push(R.footerId),O},[e]);gr(e,"exportState",m),gr(e,"restoreState",C),by(e,Lc,"sorting",w);const b=u.useCallback(({colDef:E},I)=>{const R=I.shiftKey||I.metaKey||I.ctrlKey;c(E,void 0,R)},[c]),x=u.useCallback(({colDef:E},I)=>{Mme(I.key)&&!I.ctrlKey&&!I.metaKey&&c(E,void 0,I.shiftKey)},[c]),P=u.useCallback(()=>{const E=xs(e),I=Jd(e);if(E.length>0){const R=E.filter(O=>I[O.field]);R.length<E.length&&e.current.setSortModel(R)}},[e]),M=u.useCallback(E=>{E==="sorting"&&e.current.applySorting()},[e]);gr(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),Qh(()=>{e.current.applySorting()}),Lt(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function KO(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 cbe=(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=w0(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=Rd(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=KO({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=bh(e.current.state),P=Wge(e),M=Gge(e),E=t.pagination?p.rowIndex-P*M:p.rowIndex,I=x.positions[E+1]?x.positions[E+1]-x.positions[E]:x.currentPageTotalHeight-x.positions[E],R=((w=s.current.querySelector(`.${de["pinnedRows--top"]}`))==null?void 0:w.clientHeight)||0,O=((b=s.current.querySelector(`.${de["pinnedRows--bottom"]}`))==null?void 0:b.clientHeight)||0;m.top=KO({clientHeight:s.current.clientHeight-R-O,scrollTop:s.current.scrollTop,offsetHeight:I,offsetTop:x.positions[E]})}return m=e.current.unstable_applyPipeProcessors("scrollToIndexes",m,p),typeof m.left!==void 0||typeof m.top!==void 0?(e.current.scroll(m),!0):!1},[r,e,s,t.pagination,i]),a=u.useCallback(p=>{if(s.current&&p.left!=null&&o.current){const h=n.direction==="rtl"?-1:1;o.current.scrollLeft=p.left,s.current.scrollLeft=h*p.left,r.debug(`Scrolling left: ${p.left}`)}s.current&&p.top!=null&&(s.current.scrollTop=p.top,r.debug(`Scrolling top: ${p.top}`)),r.debug("Scrolling, updating container, and viewport")},[s,n.direction,o,r]),c=u.useCallback(()=>s!=null&&s.current?{top:s.current.scrollTop,left:s.current.scrollLeft}:{top:0,left:0},[s]);Ft(e,{scroll:a,scrollToIndexes:l,getScrollPosition:c},"public")};function ube(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 dbe=({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 fbe(e,t){const n=eo(e,"useResizeContainer"),r=u.useRef(!1),o=u.useRef(null),s=u.useRef(null),i=ot(e,bh),l=ot(e,tf),a=Math.floor(t.rowHeight*l),c=LE(e,t.columnHeaderHeight),f=u.useCallback(()=>{var I;const R=(I=e.current.rootElementRef)==null?void 0:I.current,O=wE(e),T=V5(e);if(!o.current)return;let A;if(t.scrollbarSize!=null)A=t.scrollbarSize;else if(!O||!R)A=0;else{const B=pn(R).createElement("div");B.style.width="99px",B.style.height="99px",B.style.position="absolute",B.style.overflow="scroll",B.className="scrollDiv",R.appendChild(B),A=B.offsetWidth-B.clientWidth,R.removeChild(B)}let z,N,_;if(t.autoHeight)_=!1,N=Math.round(O)>Math.round(o.current.width),z={width:o.current.width,height:i.currentPageTotalHeight+(N?A:0)};else{z={width:o.current.width,height:Math.max(o.current.height-c,0)};const L=dbe({content:{width:Math.round(O),height:i.currentPageTotalHeight},container:{width:Math.round(z.width),height:z.height-T.top-T.bottom},scrollBarSize:A});_=L.hasScrollY,N=L.hasScrollX}const $={width:z.width-(_?A:0),height:z.height-(N?A:0)},F={viewportOuterSize:z,viewportInnerSize:$,hasScrollX:N,hasScrollY:_,scrollBarSize:A},V=s.current;s.current=F,(F.viewportInnerSize.width!==(V==null?void 0:V.viewportInnerSize.width)||F.viewportInnerSize.height!==(V==null?void 0:V.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",F.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,i.currentPageTotalHeight,c]),[p,h]=u.useState(),y=u.useMemo(()=>Fa(h,60),[]),v=u.useRef();Lt(()=>{p&&(f(),e.current.publishEvent("debouncedResize",o.current))},[e,p,f]);const m=u.useCallback(()=>{e.current.computeSizeAndPublishResizeEvent()},[e]),C=u.useCallback(()=>s.current,[]),w=u.useCallback(()=>{const I=e.current.getRootDimensions();if(!I)return 0;const R=vy(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const T=e.current.getRenderContext(),A=T.lastRowIndex-T.firstRowIndex;return Math.min(A-1,R.rows.length)}const O=Math.floor(I.viewportInnerSize.height/a);return Math.min(O,R.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,a]),b=u.useCallback(()=>{var I,R,O;const T=(I=e.current.mainElementRef)==null?void 0:I.current;if(!T)return;const z=Jo(T).getComputedStyle(T),N=parseFloat(z.height)||0,_=parseFloat(z.width)||0,$=N!==((R=v.current)==null?void 0:R.height),F=_!==((O=v.current)==null?void 0:O.width);if(!v.current||$||F){const V={width:_,height:N};e.current.publishEvent("resize",V),v.current=V}},[e]),x={resize:m,getRootDimensions:C},P={getViewportPageSize:w,updateGridDimensionsRef:f,computeSizeAndPublishResizeEvent:b};Ft(e,x,"public"),Ft(e,P,"private");const M=u.useRef(!0),E=u.useCallback(I=>{o.current=I;const R=/jsdom/.test(window.navigator.userAgent);if(I.height===0&&!r.current&&!t.autoHeight&&!R&&(n.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
|
|
615
|
-
`)),r.current=!0),I.width===0&&!r.current&&!R&&(n.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
|
|
616
|
-
`)),r.current=!0),M.current){h(I),M.current=!1;return}y(I)},[t.autoHeight,y,n]);Lt(()=>f(),[f]),In(e,"sortedRowsSet",f),In(e,"paginationModelChange",f),In(e,"columnsChange",f),dt(e,"resize",E),In(e,"debouncedResize",t.onResize)}const pbe=["style"],hbe=["style"];function id(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?id(e,t,n,o):id(e,t,o+1,r)}function mbe(e,t,n){let r=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=r,r*=2;return id(e,t,Math.floor(n/2),Math.min(n,t.length))}const ta=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[Od(e-n,r,o),Od(t+n,r,o)],A3=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,gbe={maxSize:3},vbe=e=>{var t,n;const r=za(),o=ut(),s=ot(r,Ar),i=ot(r,lve),l=ot(r,f3),{ref:a,onRenderZonePositioning:c,renderZoneMinColumnIndex:f=0,renderZoneMaxColumnIndex:p=s.length,getRowProps:h}=e,y=vn(),v=ot(r,Rd),m=ot(r,wE),C=ot(r,Vo),w=ot(r,dy),b=ot(r,bh),x=ot(r,gy),P=Wc(r,o),M=u.useRef(null),E=u.useRef(null),I=kt(a,E),[R,O]=u.useState(null),T=u.useRef(R),A=u.useRef({top:0,left:0}),[z,N]=u.useState({width:null,height:null}),_=u.useRef(m),[$,F]=u.useState(null),V=u.useRef(Object.create(null)),L=u.useRef(),B=u.useRef(),H=u.useRef(v0((fe,Ie,ve,Re,ie,ue)=>{let we;const Se=fe.slice(Ie,ve);return ue>-1&&(Ie>ue&&ue>=Re||ve<ue&&ue<ie)&&(we=ue),{focusedCellColumnIndexNotInRange:we,renderedColumns:Se}},gbe)),K=u.useMemo(()=>C!==null?s.findIndex(fe=>fe.field===C.field):-1,[C,s]),Y=u.useCallback(fe=>{var Ie,ve;const Re=r.current.getLastMeasuredRowIndex();let ie=Re===1/0;(Ie=P.range)!=null&&Ie.lastRowIndex&&!ie&&(ie=Re>=P.range.lastRowIndex);const ue=Od(Re-(((ve=P.range)==null?void 0:ve.firstRowIndex)||0),0,b.positions.length);return ie||b.positions[ue]>=fe?id(fe,b.positions):mbe(fe,b.positions,ue)},[r,(t=P.range)==null?void 0:t.firstRowIndex,(n=P.range)==null?void 0:n.lastRowIndex,b.positions]),J=u.useCallback(()=>{if(!i)return{firstRowIndex:0,lastRowIndex:P.rows.length,firstColumnIndex:0,lastColumnIndex:s.length};const{top:fe,left:Ie}=A.current,ve=Math.min(Y(fe),b.positions.length-1),Re=o.autoHeight?ve+P.rows.length:Y(fe+z.height);let ie=0,ue=v.length;if(l){let we=!1;const[Se,Me]=ta({firstIndex:ve,lastIndex:Re,minFirstIndex:0,maxLastIndex:P.rows.length,buffer:o.rowBuffer});for(let Oe=Se;Oe<Me&&!we;Oe+=1){const Ne=P.rows[Oe];we=r.current.rowHasAutoHeight(Ne.id)}we||(ie=id(Math.abs(Ie),v),ue=id(Math.abs(Ie)+z.width,v))}return{firstRowIndex:ve,lastRowIndex:Re,firstColumnIndex:ie,lastColumnIndex:ue}},[i,l,Y,b.positions.length,o.autoHeight,o.rowBuffer,P.rows,v,s.length,r,z]);Lt(()=>{i?(E.current.scrollLeft=0,E.current.scrollTop=0):M.current.style.transform="translate3d(0px, 0px, 0px)"},[i]),Lt(()=>{N({width:E.current.clientWidth,height:E.current.clientHeight})},[b.currentPageTotalHeight]);const Q=u.useCallback(()=>{E.current&&N({width:E.current.clientWidth,height:E.current.clientHeight})},[]);dt(r,"debouncedResize",Q);const X=u.useCallback(fe=>{const[Ie,ve]=ta({firstIndex:fe.firstRowIndex,lastIndex:fe.lastRowIndex,minFirstIndex:0,maxLastIndex:P.rows.length,buffer:o.rowBuffer}),[Re]=ta({firstIndex:fe.firstColumnIndex,lastIndex:fe.lastColumnIndex,minFirstIndex:f,maxLastIndex:p,buffer:o.columnBuffer}),ie=hS({firstColumnToRender:Re,apiRef:r,firstRowToRender:Ie,lastRowToRender:ve,visibleRows:P.rows}),ue=y.direction==="ltr"?1:-1,we=bh(r.current.state).positions[Ie],Se=ue*Rd(r)[ie];M.current.style.transform=`translate3d(${Se}px, ${we}px, 0px)`,typeof c=="function"&&c({top:we,left:Se})},[r,P.rows,c,f,p,o.columnBuffer,o.rowBuffer,y.direction]),te=u.useCallback(()=>T.current,[]),se=u.useCallback(fe=>{if(T.current&&A3(fe,T.current)){X(fe);return}O(fe),X(fe);const[Ie,ve]=ta({firstIndex:fe.firstRowIndex,lastIndex:fe.lastRowIndex,minFirstIndex:0,maxLastIndex:P.rows.length,buffer:o.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:Ie,lastRowToRender:ve}),T.current=fe},[r,O,T,P.rows.length,o.rowBuffer,X]);Lt(()=>{if(z.width==null)return;const fe=J();se(fe);const{top:Ie,left:ve}=A.current,Re={top:Ie,left:ve,renderContext:fe};r.current.publishEvent("scrollPositionChange",Re)},[r,J,z.width,se]);const Z=qe(fe=>{const{scrollTop:Ie,scrollLeft:ve}=fe.currentTarget;if(A.current.top=Ie,A.current.left=ve,!T.current||Ie<0||y.direction==="ltr"&&ve<0||y.direction==="rtl"&&ve>0)return;const Re=i?J():T.current,ie=Math.abs(Re.firstRowIndex-T.current.firstRowIndex),ue=Math.abs(Re.lastRowIndex-T.current.lastRowIndex),we=Math.abs(Re.firstColumnIndex-T.current.firstColumnIndex),Se=Math.abs(Re.lastColumnIndex-T.current.lastColumnIndex),Me=ie>=o.rowThreshold||ue>=o.rowThreshold||we>=o.columnThreshold||Se>=o.columnThreshold||_.current!==m;r.current.publishEvent("scrollPositionChange",{top:Ie,left:ve,renderContext:Me?Re:T.current},fe),Me&&(zd.flushSync(()=>{se(Re)}),_.current=m)}),pe=qe(fe=>{r.current.publishEvent("virtualScrollerWheel",{},fe)}),ne=qe(fe=>{r.current.publishEvent("virtualScrollerTouchMove",{},fe)}),re=u.useMemo(()=>C!==null?P.rows.findIndex(fe=>fe.id===C.id):-1,[C,P.rows]);dt(r,"rowMouseOver",(fe,Ie)=>{var ve;Ie.currentTarget.contains(Ie.relatedTarget)||F((ve=fe.id)!=null?ve:null)}),dt(r,"rowMouseOut",(fe,Ie)=>{Ie.currentTarget.contains(Ie.relatedTarget)||F(null)});const me=(fe={renderContext:R})=>{var Ie;const{onRowRender:ve,renderContext:Re,minFirstColumn:ie=f,maxLastColumn:ue=p,availableSpace:we=z.width,rowIndexOffset:Se=0,position:Me="center"}=fe;if(!Re||we==null)return null;const Oe=i?o.rowBuffer:0,Ne=i?o.columnBuffer:0,[Ke,Ye]=ta({firstIndex:Re.firstRowIndex,lastIndex:Re.lastRowIndex,minFirstIndex:0,maxLastIndex:P.rows.length,buffer:Oe}),Fe=[];if(fe.rows)fe.rows.forEach(gt=>{Fe.push(gt),r.current.calculateColSpan({rowId:gt.id,minFirstColumn:ie,maxLastColumn:ue,columns:s})});else{if(!P.range)return null;for(let gt=Ke;gt<Ye;gt+=1){const Rt=P.rows[gt];Fe.push(Rt),r.current.calculateColSpan({rowId:Rt.id,minFirstColumn:ie,maxLastColumn:ue,columns:s})}}let mt=!1;if(re>-1){const gt=P.rows[re];(Ke>re||Ye<re)&&(mt=!0,re>Ke?Fe.push(gt):Fe.unshift(gt),r.current.calculateColSpan({rowId:gt.id,minFirstColumn:ie,maxLastColumn:ue,columns:s}))}const[Zt,Pt]=ta({firstIndex:Re.firstColumnIndex,lastIndex:Re.lastColumnIndex,minFirstIndex:ie,maxLastIndex:ue,buffer:Ne}),Ve=hS({firstColumnToRender:Zt,apiRef:r,firstRowToRender:Ke,lastRowToRender:Ye,visibleRows:P.rows});let ht=!1;(Ve>K||Pt<K)&&(ht=!0);const{focusedCellColumnIndexNotInRange:Be,renderedColumns:Xe}=H.current(s,Ve,Pt,ie,ue,ht?K:-1),vt=((Ie=o.slotProps)==null?void 0:Ie.row)||{},{style:wt}=vt,_t=ae(vt,pbe);(L.current!==h||B.current!==wt)&&(V.current=Object.create(null));const Qt=[];let Pn=!1;for(let gt=0;gt<Fe.length;gt+=1){var bn;const{id:Rt,model:vr}=Fe[gt],lr=mt&&C.id===Rt,Rl=mt?Ke+gt===P.rows.length:Ke+gt===P.rows.length-1,cs=r.current.rowHasAutoHeight(Rt)?"auto":r.current.unstable_getRowHeight(Rt);let _n;x[Rt]==null?_n=!1:_n=r.current.isRowSelectable(Rt),ve&&ve(Rt);const an=C!==null&&C.id===Rt?C.field:null,yr=Be!==void 0&&s[Be],ho=yr&&an?[yr,...Xe]:Xe;let us=null;w!==null&&w.id===Rt&&(us=r.current.getCellParams(Rt,w.field).cellMode==="view"?w.field:null);const ar=typeof h=="function"&&h(Rt,vr)||{},{style:Oo}=ar,gi=ae(ar,hbe);if(!V.current[Rt]){const Nr=S({},Oo,wt);V.current[Rt]=Nr}let Mr=Se+((P==null||(bn=P.range)==null?void 0:bn.firstRowIndex)||0)+Ke+gt;mt&&(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:Be,isNotVisible:lr,rowHeight:cs,focusedCell:an,tabbableCell:us,renderedColumns:ho,visibleColumns:s,firstColumnToRender:Ve,lastColumnToRender:Pt,selected:_n,index:Mr,containerWidth:we,isLastVisible:Rl,position:Me},gi,_t,{hovered:$===Rt,style:V.current[Rt]}),Rt))}return L.current=h,B.current=wt,Qt},ce=z.width&&m>=z.width,xe=u.useMemo(()=>{const fe=Math.max(b.currentPageTotalHeight,1);let Ie=!1;E!=null&&E.current&&fe<=(E==null?void 0:E.current.clientHeight)&&(Ie=!0);const ve={width:ce?m:"auto",height:fe,minHeight:Ie?"100%":"auto"};return o.autoHeight&&P.rows.length===0&&(ve.height=H5(r,o.rowHeight)),ve},[r,E,m,b.currentPageTotalHeight,ce,o.autoHeight,o.rowHeight,P.rows.length]);u.useEffect(()=>{r.current.publishEvent("virtualScrollerContentSizeChange")},[r,xe]);const ke=u.useMemo(()=>{const fe={};return ce||(fe.overflowX="hidden"),o.autoHeight&&(fe.overflowY="hidden"),fe},[ce,o.autoHeight]);return r.current.register("private",{getRenderContext:te}),{renderContext:R,updateRenderZonePosition:X,getRows:me,getRootProps:(fe={})=>S({ref:I,onScroll:Z,onWheel:pe,onTouchMove:ne},fe,{style:fe.style?S({},fe.style,ke):ke,role:"presentation"}),getContentProps:({style:fe}={})=>({style:fe?S({},fe,xe):xe,role:"presentation"}),getRenderZoneProps:()=>({ref:M,role:"rowgroup"})}},ybe=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"]},Vt,t)};function bbe(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=zt(),m=ot(v,O5),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 I=h.showColumnVerticalBorder,R=S({},e,{classes:h.classes,showColumnBorder:I,headerAlign:x,depth:o,isDragging:!1}),O=w!=null?w:n,T=Yt(),A=n===null?`empty-group-cell-${T}`:n,z=ybe(R);u.useLayoutEffect(()=>{if(c){const V=y.current.querySelector('[tabindex="0"]')||y.current;V==null||V.focus()}},[v,c]);const N=u.useCallback(F=>V=>{Yh(V)||v.current.publishEvent(F,E,V)},[v,E]),_=u.useMemo(()=>({onKeyDown:N("columnGroupHeaderKeyDown"),onFocus:N("columnGroupHeaderFocus"),onBlur:N("columnGroupHeaderBlur")}),[N]),$=typeof C.headerClassName=="function"?C.headerClassName(E):C.headerClassName;return D.jsx(J5,S({ref:y,classes:z,columnMenuOpen:!1,colIndex:a,height:l,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:f,isDraggable:!1,headerComponent:P,headerClassName:$,description:b,elementId:A,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:O,"aria-colspan":i.length,"data-fields":`|-${i.join("-|-")}-|`},_))}const qO=oe("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function wbe(e){return!!e.target}const Cbe=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(),I=ot(E,f3),R=ut(),O=u.useRef(null),T=kt(t,O),[A,z]=u.useState(null),N=u.useRef(A),_=u.useRef(0),$=Wc(E,R),F=LE(E,R.columnHeaderHeight),V=Math.floor(R.columnHeaderHeight*p),L=u.useCallback(ne=>{A&&ne&&A3(A,ne)||z(ne)},[A]);u.useEffect(()=>{E.current.columnHeadersContainerElementRef.current.scrollLeft=0},[E]);const B=u.useRef(v0(g0e,{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=B.current({firstColumnIndex:ne.firstColumnIndex,minColumnIndex:n,columnBuffer:R.columnBuffer,firstRowToRender:re,lastRowToRender:me,apiRef:E,visibleRows:$.rows}),xe=w.direction==="ltr"?1:-1,ke=ce>0?_.current-xe*i[ce]:_.current;O.current.style.transform=`translate3d(${-ke}px, 0px, 0px)`},[i,n,R.columnBuffer,E,$.rows,R.rowBuffer,w.direction]);u.useLayoutEffect(()=>{A&&H(A)},[A,H]);const K=u.useCallback(({left:ne,renderContext:re=null},me)=>{var ce,xe;if(!O.current||_.current===ne&&((ce=N.current)==null?void 0:ce.firstColumnIndex)===(re==null?void 0:re.firstColumnIndex)&&((xe=N.current)==null?void 0:xe.lastColumnIndex)===(re==null?void 0:re.lastColumnIndex))return;_.current=ne;let ke=!1;re!==N.current||!N.current?(wbe(me)?(zd.flushSync(()=>{L(re)}),ke=!0):L(re),N.current=re):ke=!0,re&&ke&&H(re)},[H,L]),Y=u.useCallback(ne=>M(ne.field),[]),J=u.useCallback(()=>M(""),[]),Q=u.useCallback(ne=>x(ne.field),[]),X=u.useCallback(()=>x(""),[]);dt(E,"columnResizeStart",Y),dt(E,"columnResizeStop",J),dt(E,"columnHeaderDragStart",Q),dt(E,"columnHeaderDragEnd",X),dt(E,"scrollPositionChange",K);const te=ne=>{const{renderContext:re=A,minFirstColumn:me=n,maxLastColumn:ce=r.length}=ne||{};if(!re)return null;const[xe,ke]=ta({firstIndex:re.firstRowIndex,lastIndex:re.lastRowIndex,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:R.rowBuffer}),fe=I?B.current({firstColumnIndex:re.firstColumnIndex,minColumnIndex:me,columnBuffer:R.columnBuffer,apiRef:E,firstRowToRender:xe,lastRowToRender:ke,visibleRows:$.rows}):0,Ie=I?Math.min(re.lastColumnIndex+R.columnBuffer,ce):ce;return{renderedColumns:r.slice(fe,Ie),firstColumnToRender:fe,lastColumnToRender:Ie,minFirstColumn:me,maxLastColumn:ce}},se=(ne,re={})=>{const me=te(ne);if(me==null)return null;const{renderedColumns:ce,firstColumnToRender:xe}=me,ke=[];for(let fe=0;fe<ce.length;fe+=1){const Ie=ce[fe],ve=xe+fe,Re=ve===0,ie=l!==null&&l.field===Ie.field||Re&&!C?0:-1,ue=c!==null&&c.field===Ie.field,we=y.open&&y.field===Ie.field;ke.push(D.jsx(_ge,S({},o[Ie.field],{columnMenuOpen:we,filterItemsCounter:s[Ie.field]&&s[Ie.field].length,headerHeight:V,isDragging:Ie.field===b,colDef:Ie,colIndex:ve,isResizing:P===Ie.field,hasFocus:ue,tabIndex:ie},re),Ie.field))}return D.jsx(qO,{role:"row","aria-rowindex":h+1,ownerState:R,children:ke})},Z=ne=>{if(h===0)return null;const re=te(ne);if(re==null||re.renderedColumns.length===0)return null;const{firstColumnToRender:me,lastColumnToRender:ce}=re,xe=[],ke=[];for(let ve=0;ve<h;ve+=1){var fe,Ie;const Re=m[ve],ie=r[me].field,ue=(fe=E.current.unstable_getColumnGroupPath(ie)[ve])!=null?fe:null,we=Re.findIndex(({groupId:Pt,columnFields:Ve})=>Pt===ue&&Ve.includes(ie)),Se=r[ce-1].field,Me=(Ie=E.current.unstable_getColumnGroupPath(Se)[ve])!=null?Ie:null,Oe=Re.findIndex(({groupId:Pt,columnFields:Ve})=>Pt===Me&&Ve.includes(Se)),Ne=Re.slice(we,Oe+1).map(Pt=>S({},Pt,{columnFields:Pt.columnFields.filter(Ve=>v[Ve]!==!1)})).filter(Pt=>Pt.columnFields.length>0),Ke=Ne[0].columnFields.indexOf(ie),Fe=Ne[0].columnFields.slice(0,Ke).reduce((Pt,Ve)=>{var ht;const Be=E.current.getColumn(Ve);return Pt+((ht=Be.computedWidth)!=null?ht:0)},0);let mt=me;const Zt=Ne.map(({groupId:Pt,columnFields:Ve})=>{const ht=f!==null&&f.depth===ve&&Ve.includes(f.field),Be=a!==null&&a.depth===ve&&Ve.includes(a.field)?0:-1,Xe={groupId:Pt,width:Ve.reduce((vt,wt)=>vt+E.current.getColumn(wt).computedWidth,0),fields:Ve,colIndex:mt,hasFocus:ht,tabIndex:Be};return mt+=Ve.length,Xe});ke.push({leftOverflow:Fe,elements:Zt})}return ke.forEach((ve,Re)=>{xe.push(D.jsx(qO,{style:{height:`${V}px`,transform:`translateX(-${ve.leftOverflow}px)`},role:"row","aria-rowindex":Re+1,ownerState:R,children:ve.elements.map(({groupId:ie,width:ue,fields:we,colIndex:Se,hasFocus:Me,tabIndex:Oe},Ne)=>D.jsx(bbe,{groupId:ie,width:ue,fields:we,colIndex:Se,depth:Re,isLastColumn:Se===r.length-we.length,maxDepth:ke.length,height:V,hasFocus:Me,tabIndex:Oe},Ne))},Re))}),xe},pe={minHeight:F,maxHeight:F,lineHeight:`${V}px`};return{renderContext:A,getColumnHeaders:se,getColumnsToRender:te,getColumnGroupHeaders:Z,isDragging:!!b,getRootProps:(ne={})=>S({style:pe},ne),getInnerProps:()=>({ref:T,role:"rowgroup"}),headerHeight:V}},xbe=["className"],Sbe=e=>{const{classes:t}=e;return Te({root:["columnHeaders","withBorderColor"]},Vt,t)},Pbe=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)"}),Ebe=u.forwardRef(function(t,n){const{className:r}=t,o=ae(t,xbe),s=ut(),i=Sbe(s);return D.jsx(Pbe,S({ref:n,className:be(r,i.root),ownerState:s},o,{role:"presentation"}))}),kbe=["isDragging","className"],Ibe=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return Te({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},Vt,r)},Mbe=Ir("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${de.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${de.columnHeaderDropZone} .${de.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${de["columnHeadersInner--scrollable"]} .${de.columnHeader}:last-child`]:{borderRight:"none"}})),Tbe=u.forwardRef(function(t,n){var r,o;const{isDragging:s,className:i}=t,l=ae(t,kbe),a=zt(),c=ut(),f=S({},c,{isDragging:s,hasScrollX:(r=(o=a.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1}),p=Ibe(f);return D.jsx(Mbe,S({ref:n,className:be(i,p.root),ownerState:f},l))}),_be=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],$be=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=ae(t,_be),{isDragging:x,getRootProps:P,getInnerProps:M,getColumnHeaders:E,getColumnGroupHeaders:I}=Cbe({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(Ebe,S({ref:n},P(b),{children:D.jsxs(Tbe,S({isDragging:x},M(),{children:[I(),E()]}))}))}),Rbe=E0($be),Obe=u.forwardRef(function(t,n){const o=zt().current.getLocaleText("noResultsOverlayLabel");return D.jsx(IE,S({ref:n},t,{children:o}))}),Dbe=["sortingOrder"],Abe=u.memo(function(t){const{sortingOrder:n}=t,r=ae(t,Dbe),o=ut(),[s]=n,i=s==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return i?D.jsx(i,S({},r)):null}),Lbe=["native"];function Fbe(e){let{native:t}=e,n=ae(e,Lbe);return t?D.jsx("option",S({},n)):D.jsx(Pr,S({},n))}const Nbe={BooleanCellTrueIcon:Mve,BooleanCellFalseIcon:cC,ColumnMenuIcon:Pve,OpenFilterButtonIcon:vve,FilterPanelDeleteIcon:cC,ColumnFilteredIcon:IO,ColumnSelectorIcon:bve,ColumnUnsortedIcon:Abe,ColumnSortedAscendingIcon:SO,ColumnSortedDescendingIcon:PO,ColumnResizeIcon:wve,DensityCompactIcon:Cve,DensityStandardIcon:xve,DensityComfortableIcon:Sve,ExportIcon:Ive,MoreActionsIcon:Tve,TreeDataCollapseIcon:kO,TreeDataExpandIcon:EO,GroupingCriteriaCollapseIcon:kO,GroupingCriteriaExpandIcon:EO,DetailPanelExpandIcon:MO,DetailPanelCollapseIcon:Eve,RowReorderIcon:TO,QuickFilterIcon:yve,QuickFilterClearIcon:cC,ColumnMenuHideIcon:_ve,ColumnMenuSortAscendingIcon:SO,ColumnMenuSortDescendingIcon:PO,ColumnMenuFilterIcon:IO,ColumnMenuManageColumnsIcon:$ve,ColumnMenuClearIcon:Rve,LoadIcon:kve,FilterPanelAddIcon:MO,FilterPanelRemoveAllIcon:Ove,ColumnReorderIcon:TO},Bbe=S({},Nbe,{BaseCheckbox:B4,BaseTextField:ja,BaseFormControl:q4,BaseSelect:b2,BaseSwitch:pN,BaseButton:Yn,BaseIconButton:xr,BaseInputAdornment:xl,BaseTooltip:_l,BasePopper:Ba,BaseInputLabel:nN,BaseSelectOption:Fbe,BaseChip:jh}),jbe=Bbe,zbe=S({},jbe,{Cell:lS,SkeletonCell:Qme,ColumnHeaderFilterIconButton:cve,ColumnMenu:qve,ColumnHeaders:Rbe,Footer:n1e,FooterRowCount:d1e,Toolbar:null,PreferencesPanel:xye,LoadingOverlay:o1e,NoResultsOverlay:Obe,NoRowsOverlay:s1e,Pagination:l1e,FilterPanel:Hye,ColumnsPanel:gye,Panel:Cye,Row:$1e}),L3=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>S({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function Vbe({defaultSlots:e,slots:t,components:n}){const r=t!=null?t:n?L3(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 Hbe=["components","componentsProps"];function Ube(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 Wbe(e){return u.useMemo(()=>{const{components:t,componentsProps:n}=e,r=ae(e,Hbe);return[t,n,Ube(r)]},[e])}const Gbe={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},I0={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},Kbe=L3(zbe),qbe=e=>{const[t,n,r]=Wbe(He({props:e,name:"MuiDataGrid"})),o=u.useMemo(()=>S({},D3,r.localeText),[r.localeText]),s=u.useMemo(()=>Vbe({defaultSlots:Kbe,slots:r.slots,components:t}),[t,r.slots]);return u.useMemo(()=>{var i;return S({},I0,r,{localeText:o,slots:s,slotProps:(i=r.slotProps)!=null?i:n},Gbe)},[r,o,s,n])},Ybe=e=>S({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),YO=(e,t,n)=>typeof e=="number"&&e>0?e:t,Qbe=(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,s3),p=ot(e,xs),h=Wc(e,t),y=ot(e,ef),v=YO(t.rowHeight,I0.rowHeight),m=Math.floor(v*a),C=u.useCallback(()=>{var z,N;l.current=!1;const _=V=>{s.current[V.id]||(s.current[V.id]={sizes:{baseCenter:m},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:L,needsFirstMeasurement:B,sizes:H}=s.current[V.id];let K=typeof m=="number"&&m>0?m:52;const Y=H.baseCenter;if(L)K=Y;else if(n){const se=n(S({},V,{densityFactor:a}));if(se==="auto"){if(B){const Z=o?o(S({},V,{densityFactor:a})):m;K=Z!=null?Z:m}else K=Y;l.current=!0,s.current[V.id].autoHeight=!0}else K=YO(se,m),s.current[V.id].needsFirstMeasurement=!1,s.current[V.id].autoHeight=!1}else s.current[V.id].needsFirstMeasurement=!1;const J={};for(const se in H)/^base[A-Z]/.test(se)&&(J[se]=H[se]);if(J.baseCenter=K,r){var Q,X;const se=e.current.getRowIndexRelativeToVisibleRows(V.id),Z=r(S({},V,{isFirstVisible:se===0,isLastVisible:se===h.rows.length-1,indexRelativeToCurrentPage:se}));J.spacingTop=(Q=Z.top)!=null?Q:0,J.spacingBottom=(X=Z.bottom)!=null?X:0}const te=e.current.unstable_applyPipeProcessors("rowHeight",J,V);return s.current[V.id].sizes=te,te},$=[],F=h.rows.reduce((V,L)=>{$.push(V);let B=0,H=0;const K=_(L);for(const Y in K){const J=K[Y];/^base[A-Z]/.test(Y)?B=J>B?J:B:H+=J}return V+B+H},0);y==null||(z=y.top)==null||z.forEach(V=>{_(V)}),y==null||(N=y.bottom)==null||N.forEach(V=>{_(V)}),e.current.setState(V=>S({},V,{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(z=>{const N=s.current[z];return N?N.sizes.baseCenter:m},[m]),b=z=>{var N;return(N=s.current[z])==null?void 0:N.sizes},x=u.useCallback((z,N)=>{s.current[z].sizes.baseCenter=N,s.current[z].isResized=!0,s.current[z].needsFirstMeasurement=!1,C()},[C]),P=u.useMemo(()=>Fa(C,t.rowPositionsDebounceMs),[C,t.rowPositionsDebounceMs]),M=u.useCallback((z,N,_)=>{if(!s.current[z]||!s.current[z].autoHeight)return;const $=s.current[z].sizes[`base${Pe(_)}`]!==N;s.current[z].needsFirstMeasurement=!1,s.current[z].sizes[`base${Pe(_)}`]=N,$&&P()},[P]),E=u.useCallback(z=>{var N;return((N=s.current[z])==null?void 0:N.autoHeight)||!1},[]),I=u.useCallback(()=>i.current,[]),R=u.useCallback(z=>{l.current&&z>i.current&&(i.current=z)},[]),O=u.useCallback(()=>{s.current={},C()},[C]);u.useEffect(()=>{C()},[m,c,f,p,C]),AE(e,"rowHeight",C);const T={unstable_setLastMeasuredRowIndex:R,unstable_getRowHeight:w,unstable_getRowInternalSizes:b,unstable_setRowHeight:x,unstable_storeRowHeightMeasurement:M,resetRowHeights:O},A={getLastMeasuredRowIndex:I,rowHasAutoHeight:E};Ft(e,T,"public"),Ft(e,A,"private")},Xbe=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]);Ft(e,{exportState:t,restoreState:n},"public")},Zbe=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};Ft(e,i,"public"),Ft(e,l,"private");const a=u.useCallback(()=>{t.current={}},[]);dt(e,"columnOrderChange",a)},F3=(e,t,n)=>{if(U5(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=>{F3(s,[...t,r],n)})},mS=e=>{if(!e)return{};const t={};return e.forEach(n=>{F3(n,[],t)}),t},gS=(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)=>Cc(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},Jbe=["groupId","children"],FE=e=>{let t={};return e.forEach(n=>{if(U5(n))return;const{groupId:r,children:o}=n,s=ae(n,Jbe);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=FE(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)},ewe=(e,t,n)=>{var r,o,s,i;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const l=gl(n),a=y0(n),c=FE((o=t.columnGroupingModel)!=null?o:[]),f=mS((s=t.columnGroupingModel)!=null?s:[]),p=gS(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}})},twe=(e,t)=>{var n;const r=u.useCallback(a=>{var c;return(c=Che(e)[a])!=null?c:[]},[e]),o=u.useCallback(()=>O5(e),[e]);Ft(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const i=u.useCallback(()=>{var a;const c=mS((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=gS(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=gl(e),m=y0(e),C=FE(a!=null?a:[]),w=mS(a!=null?a:[]),b=gS(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])},nwe=(e,t)=>{const n=G1e(e,t);return ibe(n,t),nbe(n),bo(rbe,n,t),bo(v0e,n,t),bo(X0e,n,t),bo(Y0e,n,t),bo(A0e,n,t),bo(lbe,n,t),bo(B0e,n,t),bo($0e,n,t),bo(C0e,n,t),bo(k0e,n,t),bo(Ybe,n,t),bo(f0e,n,t),bo(ewe,n,t),bo(sve,n,t),N0e(n,t),obe(n,t),y0e(n,t),Z0e(n,t),nme(n,t),Zbe(n),twe(n,t),Q0e(n,t),L0e(n,t),j0e(n,t),D0e(n,t),abe(n,t),x0e(n,t),I0e(n,t),Qbe(n,t),cbe(n,t),p0e(n),E0e(n,t),_0e(n,t),d0e(n,t),fbe(n,t),ube(n,t),Xbe(n),ive(n,t),n},rwe=e=>{const{classes:t}=e;return Te({root:["virtualScroller"]},Vt,t)},owe=Ir("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"},zIndex:0}),swe=u.forwardRef(function(t,n){const r=ut(),o=rwe(r);return D.jsx(owe,S({ref:n},t,{className:be(o.root,t.className),ownerState:r}))}),iwe=(e,t)=>{const{classes:n}=e;return Te({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},Vt,n)},lwe=Ir("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),awe=u.forwardRef(function(t,n){var r;const o=ut(),s=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",i=iwe(o,s);return D.jsx(lwe,S({ref:n},t,{ownerState:o,className:be(i.root,t.className)}))}),cwe=["className"],uwe=e=>{const{classes:t}=e;return Te({root:["virtualScrollerRenderZone"]},Vt,t)},dwe=Ir("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),fwe=u.forwardRef(function(t,n){const{className:r}=t,o=ae(t,cwe),s=ut(),i=uwe(s);return D.jsx(dwe,S({ref:n,className:be(i.root,r),ownerState:s},o))}),pwe=["className"],hwe=u.forwardRef(function(t,n){const{className:r}=t,o=ae(t,pwe),{getRootProps:s,getContentProps:i,getRenderZoneProps:l,getRows:a}=vbe({ref:n});return D.jsxs(swe,S({className:r},s(o),{children:[D.jsx(Yhe,{}),D.jsx(awe,S({},i(),{children:D.jsx(fwe,S({},l(),{children:a()}))}))]}))}),N3=u.forwardRef(function(t,n){const r=qbe(t),o=nwe(r.apiRef,r);return D.jsx(R1e,{privateApiRef:o,props:r,children:D.jsxs(tge,S({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[D.jsx(r1e,{}),D.jsx(jhe,{VirtualScrollerComponent:hwe}),D.jsx(zhe,{})]}))})}),B3=u.memo(N3);I0.filterDebounceMs;I0.filterDebounceMs;N3.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:RY(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 mwe={},gwe=(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)||{}})}}}}},vwe=gwe(D3,mwe),fC="Actions";function Jh(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}=W1(),h=vn(),y=ihe(),[v,m]=u.useState(0),C=u.useMemo(()=>{const{localeText:E}=vwe.components.MuiDataGrid.defaultProps,I=e.map(R=>{var _;const{type:O}=R;(!O||O==="string")&&((_=R.filterOperators)!=null||(R.filterOperators=x3().map(F=>F.value.includes("Empty")?F:[F,st(ye(st(ye({},F),{value:"!"+F.value,getApplyFilterFn(V,L){const B=F.getApplyFilterFn(V,L);return B&&Ze.negate(B)}}),F.getApplyFilterFnV7&&{getApplyFilterFnV7(V,L){var H;const B=(H=F.getApplyFilterFnV7)==null?void 0:H.call(F,V,L);return B?Ze.negate(B):null}}),{label:"(not) "+(E["filterOperator"+Ze.upperFirst(F.value)]||F.value)})]).flat()));const{mergeRender:T}=R;if(!T)return R;const $=T,{other:A,override:z}=$,N=At($,["other","override"]);return st(ye({},R),{originalRenderCell:R.renderCell||!0,renderCell(F){const{columns:V}=F.api.store.getSnapshot(),L=V.columnVisibilityModel[A]===!1;return u.createElement(ze,{},R.renderCell?R.renderCell(F):F.formattedValue,L&&u.createElement(ze,ye(ye({},l&&{lineHeight:"1em",fontSize:"smaller"}),N),M(ye(ye({},V.lookup[A]),z),F.row)))}})});return n&&I.push(ye({field:fC,width:40*v,headerName:"",align:"center",headerAlign:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell(R){const O=n(ye(ye({},R.row),R));return setTimeout(()=>m(O.length)),u.createElement(ze,{whiteSpace:"nowrap"},...O)}},r)),I},[e,n,v]),w=u.useMemo(()=>{if(!p)return;const E=Hc(C.map(({field:R,hideUnder:O,hidden:T})=>(T||O&&p<(typeof O=="number"?O:h.breakpoints.values[O]))&&R)),I=Object.fromEntries(E.map(R=>[R,!1]));return Ze.merge(t,{columns:{columnVisibilityModel:I}}),E},[C]),[b,x]=u.useState({}),P=u.useRef({});if(u.useEffect(()=>{const{current:{id:E,setCurRow:I}}=P;I==null||I(Ze.find(a.rows,{id:E}))}),!w)return null;return u.createElement(u.Fragment,{},i&&u.createElement(Er,{severity:"error"},i),o&&u.createElement(ze,{position:"relative"},u.createElement(Gv,{sx:{position:"absolute",width:"calc(100% - 2px)",borderRadius:1,m:"1px 1px"}})),u.createElement(B3,st(ye({initialState:t,style:{height:0,flex:"auto"},density:l?"compact":"standard",columns:C,apiRef:y,slots:ye({},(s||o)&&{noRowsOverlay:()=>o?null:u.createElement(Gh,{},s)}),onCellClick({field:E,row:I}){if(E===fC)return;const R=y.current.getVisibleColumns().length,O=C.filter(T=>T.renderCell||T.field===fC||I[T.field]!==void 0);O.length<=R||po({title:"Details",onClose(){P.current={}},Content(){const[T,A]=u.useState(I),z=u.useRef(I);T&&(z.current=T);const N=z.current;return P.current={id:N.id,setCurRow:A},u.createElement(ze,{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(8em,1fr))",gap:"1em",gridAutoFlow:"dense",minWidth:"max(16em, 40vw)",sx:{opacity:T?void 0:.5}},O.map(_=>u.createElement(ze,{key:_.field,gridColumn:_.flex&&"1/-1"},u.createElement(ze,{bgcolor:"#0003",p:1},_.headerName||_.field),u.createElement(qr,{minHeight:"2.5em",px:1,wordBreak:"break-word"},M(_,N)))))}})}},a),{onColumnVisibilityModelChange:E=>x(E),columnVisibilityModel:ye(ye(ye({},Object.fromEntries(w.map(E=>[E,!1]))),a.columnVisibilityModel),b)})));function M(E,I){const R=y.current;let O=I[E.field];E.valueGetter&&(O=E.valueGetter({value:O,api:R,row:I,field:E.field,id:I.id}));const T=E.originalRenderCell||E.renderCell;return T&&T!==!0?T(ye({value:O,row:I,api:R},I)):E.valueFormatter?E.valueFormatter(ye({value:O},I)):O}}var NE={},ywe=et;Object.defineProperty(NE,"__esModule",{value:!0});var BE=NE.default=void 0,bwe=ywe(tt()),wwe=Je();BE=NE.default=(0,bwe.default)((0,wwe.jsx)("path",{d:"M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v-5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2m0 13H4v-2h16zm0-5H4V4h16z"}),"CardMembership");var jE={},Cwe=et;Object.defineProperty(jE,"__esModule",{value:!0});var zE=jE.default=void 0,xwe=Cwe(tt()),Swe=Je();zE=jE.default=(0,xwe.default)((0,Swe.jsx)("path",{d:"M3 10h11v2H3zm0-2h11V6H3zm0 8h7v-2H3zm15.01-3.13.71-.71c.39-.39 1.02-.39 1.41 0l.71.71c.39.39.39 1.02 0 1.41l-.71.71zm-.71.71-5.3 5.3V21h2.12l5.3-5.3z"}),"EditNote");var VE={},Pwe=et;Object.defineProperty(VE,"__esModule",{value:!0});var HE=VE.default=void 0,Ewe=Pwe(tt()),kwe=Je();HE=VE.default=(0,Ewe.default)((0,kwe.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");var UE={},Iwe=et;Object.defineProperty(UE,"__esModule",{value:!0});var WE=UE.default=void 0,Mwe=Iwe(tt()),Twe=Je();WE=UE.default=(0,Mwe.default)((0,Twe.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");var GE={},_we=et;Object.defineProperty(GE,"__esModule",{value:!0});var $l=GE.default=void 0,$we=_we(tt()),Rwe=Je();$l=GE.default=(0,$we.default)((0,Rwe.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var KE={},Owe=et;Object.defineProperty(KE,"__esModule",{value:!0});var qE=KE.default=void 0,Dwe=Owe(tt()),Awe=Je();qE=KE.default=(0,Dwe.default)((0,Awe.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward");var YE={},Lwe=et;Object.defineProperty(YE,"__esModule",{value:!0});var j3=YE.default=void 0,Fwe=Lwe(tt()),Nwe=Je();j3=YE.default=(0,Fwe.default)((0,Nwe.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward");var QE={},Bwe=et;Object.defineProperty(QE,"__esModule",{value:!0});var z3=QE.default=void 0,jwe=Bwe(tt()),zwe=Je();z3=QE.default=(0,jwe.default)((0,zwe.jsx)("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"}),"Undo");const Vwe=["localeText"],vS=u.createContext(null),XE=function(t){var n;const{localeText:r}=t,o=ae(t,Vwe),{utils:s,localeText:i}=(n=u.useContext(vS))!=null?n:{utils:void 0,localeText:void 0},l=He({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(vS.Provider,{value:w,children:a})},Hwe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:S({},e)}}}}),V3={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"},Uwe=V3;Hwe(V3);const Gc=()=>{const e=u.useContext(vS);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({},Uwe,e.localeText),[e.localeText]);return u.useMemo(()=>S({},e,{localeText:t}),[e,t])},on=()=>Gc().utils,em=()=>Gc().defaultDates,as=()=>Gc().localeText,Ha=e=>{const t=on(),n=u.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},Wwe=bt(D.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Gwe=bt(D.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Kwe=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"),qwe=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 Ywe=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"),Qwe=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"),Xwe=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 Zwe(e){return Ge("MuiPickersArrowSwitcher",e)}We("MuiPickersArrowSwitcher",["root","spacer","button"]);const Jwe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],eCe=["ownerState"],tCe=["ownerState"],nCe=oe("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),rCe=oe("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),QO=oe(xr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>S({},e.hidden&&{visibility:"hidden"})),oCe=e=>{const{classes:t}=e;return Te({root:["root"],spacer:["spacer"],button:["button"]},Zwe,t)},H3=u.forwardRef(function(t,n){var r,o,s,i;const a=vn().direction==="rtl",c=He({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=ae(c,Jwe),I=c,R=oCe(I),O={isDisabled:v,isHidden:m,goTo:C,label:w},T={isDisabled:b,isHidden:x,goTo:P,label:M},A=(r=h==null?void 0:h.previousIconButton)!=null?r:QO,z=Kt({elementType:A,externalSlotProps:y==null?void 0:y.previousIconButton,additionalProps:{size:"medium",title:T.label,"aria-label":T.label,disabled:T.isDisabled,edge:"end",onClick:T.goTo},ownerState:S({},I,{hidden:T.isHidden}),className:R.button}),N=(o=h==null?void 0:h.nextIconButton)!=null?o:QO,_=Kt({elementType:N,externalSlotProps:y==null?void 0:y.nextIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"start",onClick:O.goTo},ownerState:S({},I,{hidden:O.isHidden}),className:R.button}),$=(s=h==null?void 0:h.leftArrowIcon)!=null?s:Gwe,F=Kt({elementType:$,externalSlotProps:y==null?void 0:y.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),V=ae(F,eCe),L=(i=h==null?void 0:h.rightArrowIcon)!=null?i:Kwe,B=Kt({elementType:L,externalSlotProps:y==null?void 0:y.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),H=ae(B,tCe);return D.jsxs(nCe,S({ref:n,className:be(R.root,p),ownerState:I},E,{children:[D.jsx(A,S({},z,{children:a?D.jsx(L,S({},H)):D.jsx($,S({},V))})),f?D.jsx(qn,{variant:"subtitle1",component:"span",children:f}):D.jsx(rCe,{className:R.spacer,ownerState:I}),D.jsx(N,S({},_,{children:a?D.jsx($,S({},V)):D.jsx(L,S({},H))}))]}))}),Ti=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),sCe=({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}},U3=["hours","minutes","seconds"],Dd=e=>U3.includes(e),Ql=e=>U3.includes(e)||e==="meridiem",iCe=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,xh=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,lCe=(e,t,n,r)=>{const o=xh(r.getHours(e),t,n);return r.setHours(e,o)},XO=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),tm=(e,t)=>(n,r)=>e?t.isAfter(n,r):XO(n,t)>XO(r,t),ZO=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return Ti(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:Ti(n,["minutes"])?o.minutes:Ti(n,["seconds"])?o.seconds:Ti(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:Ti(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 nm({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=>!o.includes(O)))&&(v(o.includes(n)?n:o[0]),p.current=o,f.current=n)},[n,v,y,o]);const b=o.indexOf(y),x=(a=o[b-1])!=null?a:null,P=(c=o[b+1])!=null?c:null,M=qe((O,T)=>{w(T?O:A=>O===A?null:A),l==null||l(O,T)}),E=qe(O=>{M(O,!0),O!==y&&(v(O),t&&t(O))}),I=qe(()=>{P&&E(P)}),R=qe((O,T,A)=>{const z=T==="finish",N=A?o.indexOf(A)<o.length-1:!!P;if(e(O,z&&N?"partial":T,A),A&&A!==y){const $=o[o.indexOf(A)+1];$&&E($)}else z&&I()});return{view:y,setView:E,focusedView:C,setFocusedView:M,nextView:P,previousView:x,defaultView:o.includes(n)?n:o[0],goToNextView:I,setValueAndGoToNextView:R}}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 cCe(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 ZE(e,t,n,r){const o=on(),s=iCe(e,o),i=u.useCallback(l=>{const a=e==null?null:lCe(e,l,!!t,o);n(a,r!=null?r:"partial")},[t,e,n,r,o]);return{meridiemMode:s,handleMeridiemChange:i}}const Sh=36,M0=2,T0=320,uCe=280,_0=334,W3=232,up=48,$0=oe("div")({overflow:"hidden",width:T0,maxHeight:_0,display:"flex",flexDirection:"column",margin:"0 auto"});function dCe(e){return Ge("MuiTimeClock",e)}We("MuiTimeClock",["root","arrowSwitcher"]);const Ad=220,Ni=36,Ph={x:Ad/2,y:Ad/2},G3={x:Ph.x,y:0},fCe=G3.x-Ph.x,pCe=G3.y-Ph.y,hCe=e=>e*(180/Math.PI),K3=(e,t,n)=>{const r=t-Ph.x,o=n-Ph.y,s=Math.atan2(fCe,pCe)-Math.atan2(r,o);let i=hCe(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}},mCe=(e,t,n=1)=>{const r=n*6;let{value:o}=K3(r,e,t);return o=o*n%60,o},gCe=(e,t,n)=>{const{value:r,distance:o}=K3(30,e,t);let s=r||12;return n?s%=12:o<Ad/2-Ni&&(s+=12,s%=24),s};function vCe(e){return Ge("MuiClockPointer",e)}We("MuiClockPointer",["root","thumb"]);const yCe=["className","hasSelected","isInner","type","viewValue"],bCe=e=>{const{classes:t}=e;return Te({root:["root"],thumb:["thumb"]},vCe,t)},wCe=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"])})),CCe=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 xCe(e){const t=He({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:s}=t,i=ae(t,yCe),l=u.useRef(o);u.useEffect(()=>{l.current=o},[o]);const a=S({},t,{shouldAnimate:l.current!==o}),c=bCe(a),f=()=>{let h=360/(o==="hours"?12:60)*s;return o==="hours"&&s>12&&(h-=360),{height:Math.round((r?.26:.4)*Ad),transform:`rotateZ(${h}deg)`}};return D.jsx(wCe,S({style:f(),className:be(n,c.root),ownerState:a},i,{children:D.jsx(CCe,{ownerState:a,className:c.thumb})}))}function SCe(e){return Ge("MuiClock",e)}We("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const Op=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:s,utils:i,timezone:l})=>{const a=i.startOfDay(i.dateWithTimezone(void 0,l));n&&i.isBefore(o,a)&&(o=a),t&&i.isAfter(r,a)&&(r=a);let 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},PCe=(e,t)=>t==null||!e.isValid(t)?null:t,Fs=(e,t,n)=>t==null||!e.isValid(t)?n:t,ECe=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),JE=(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},yS=(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},ek=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),fl=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},kCe=["year","month","day"],ld=e=>kCe.includes(e),JO=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Ti(n,["year"])?o.year:Ti(n,["month"])?o.month:Ti(n,["day"])?o.dayOfMonth:Ti(n,["month","year"])?`${o.month} ${o.year}`:Ti(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},ICe=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},MCe=e=>{const{classes:t}=e;return Te({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},SCe,t)},TCe=oe("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),_Ce=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"}),$Ce=oe("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),RCe=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"}})),OCe=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%)"})),DCe=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}})),ACe=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}})),eD=oe(qn,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function LCe(e){const t=He({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=MCe(b),I=a(v,y),R=!n&&y==="hours"&&(v<1||v>12),O=(B,H)=>{m||C||a(B,y)||p(B,H)},T=(B,H)=>{let{offsetX:K,offsetY:Y}=B;if(K===void 0){const Q=B.target.getBoundingClientRect();K=B.changedTouches[0].clientX-Q.left,Y=B.changedTouches[0].clientY-Q.top}const J=y==="seconds"||y==="minutes"?mCe(K,Y,f):gCe(K,Y,!!n);O(J,H)},A=B=>{M.current=!0,T(B,"shallow")},z=B=>{M.current&&(T(B,"finish"),M.current=!1)},N=B=>{B.buttons>0&&T(B.nativeEvent,"shallow")},_=B=>{M.current&&(M.current=!1),T(B.nativeEvent,"finish")},$=u.useMemo(()=>y==="hours"?!0:v%5===0,[y,v]),F=y==="minutes"?f:1,V=u.useRef(null);Lt(()=>{o&&V.current.focus()},[o]);const L=B=>{if(!M.current)switch(B.key){case"Home":O(0,"partial"),B.preventDefault();break;case"End":O(y==="minutes"?59:23,"partial"),B.preventDefault();break;case"ArrowUp":O(v+F,"partial"),B.preventDefault();break;case"ArrowDown":O(v-F,"partial"),B.preventDefault();break}};return D.jsxs(TCe,{className:be(w,E.root),children:[D.jsxs(_Ce,{className:E.clock,children:[D.jsx(RCe,{onTouchMove:A,onTouchEnd:z,onMouseUp:_,onMouseMove:N,ownerState:{disabled:m},className:E.squareMask}),!I&&D.jsxs(u.Fragment,{children:[D.jsx(OCe,{className:E.pin}),i!=null&&D.jsx(xCe,{type:y,viewValue:v,isInner:R,hasSelected:$})]}),D.jsx($Ce,{"aria-activedescendant":h,"aria-label":P.clockLabelText(y,i,x),ref:V,role:"listbox",onKeyDown:L,tabIndex:0,className:E.wrapper,children:s})]}),n&&r&&D.jsxs(u.Fragment,{children:[D.jsx(DCe,{onClick:C?void 0:()=>l("am"),disabled:m||c===null,ownerState:b,className:E.amButton,title:fl(x,"am"),children:D.jsx(eD,{variant:"caption",className:E.meridiemText,children:fl(x,"am")})}),D.jsx(ACe,{disabled:m||c===null,onClick:C?void 0:()=>l("pm"),ownerState:b,className:E.pmButton,title:fl(x,"pm"),children:D.jsx(eD,{variant:"caption",className:E.meridiemText,children:fl(x,"pm")})})]})]})}function FCe(e){return Ge("MuiClockNumber",e)}const Pg=We("MuiClockNumber",["root","selected","disabled"]),NCe=["className","disabled","index","inner","label","selected"],BCe=e=>{const{classes:t,selected:n,disabled:r}=e;return Te({root:["root",n&&"selected",r&&"disabled"]},FCe,t)},jCe=oe("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Pg.disabled}`]:t.disabled},{[`&.${Pg.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},[`&.${Pg.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${Pg.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&S({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function q3(e){const t=He({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:s,label:i,selected:l}=t,a=ae(t,NCe),c=t,f=BCe(c),p=o%12/12*Math.PI*2-Math.PI/2,h=(Ad-Ni-2)/2*(s?.65:1),y=Math.round(Math.cos(p)*h),v=Math.round(Math.sin(p)*h);return D.jsx(jCe,S({className:be(n,f.root),"aria-disabled":r?!0:void 0,"aria-selected":l?!0:void 0,role:"option",style:{transform:`translate(${y}px, ${v+(Ad-Ni)/2}px`},ownerState:c},a,{children:i}))}const zCe=({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(q3,{id:v?o:void 0,index:p,inner:y,selected:v,disabled:r(p),label:h,"aria-label":n(h)},p))}return l},tD=({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(q3,{label:l,id:c?o:void 0,index:a+1,inner:!1,disabled:n(i),selected:c,"aria-label":r(l)},i)})},tk=({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=qe(m=>f==null?m:o.setTimezone(l,f,m)),h=(i=e!=null?e:f)!=null?i:"default",y=u.useMemo(()=>o.setTimezone(l,h,c),[o,l,h,c]),v=qe((m,...C)=>{const w=p(m);r==null||r(w,...C)});return{value:y,handleValueChange:v,timezone:h}},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=qe((c,...f)=>{l(c),o==null||o(c,...f)});return tk({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},VCe=e=>Math.max(...e.map(t=>{var n;return(n=ni[t.type])!=null?n:1})),qf=(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},HCe=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{var s;let i=o?o():qf(t,n,ek(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=qf(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=qf(t,n,e.maxDate));const l=tm((s=e.disableIgnoringDatePartForTimeValidation)!=null?s:!1,t);return e.minTime!=null&&l(e.minTime,i)&&(i=qf(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:yS(t,i,e.minTime))),e.maxTime!=null&&l(i,e.maxTime)&&(i=qf(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:yS(t,i,e.maxTime))),i},Y3=(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}},UCe=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},R0=(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 JE(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return R0(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[]}},X3=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length<n;)r=`0${r}`;return r},Z3=(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?X3(e,s,o.maxLength):s},WCe=(e,t,n,r,o,s,i)=>{const l=UCe(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=>Z3(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()},nk=(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},Wu=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),J3=(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=nk(i,t?"input-rtl":"input-ltr"),a=`${i.startSeparator}${l}${i.endSeparator}`,c=Wu(a).length,f=a.length,p=Wu(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},GCe=(e,t,n,r,o)=>{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length,format:o});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType,format:o});case"day":return n.fieldDayPlaceholder({format:o});case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType,format:o});case"hours":return n.fieldHoursPlaceholder({format:o});case"minutes":return n.fieldMinutesPlaceholder({format:o});case"seconds":return n.fieldSecondsPlaceholder({format:o});case"meridiem":return n.fieldMeridiemPlaceholder({format:o});default:return o}},nD=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),eB=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,tB=(e,t,n,r,o)=>{if(n!=="digit")return!1;const s=e.dateWithTimezone(void 0,t);switch(r){case"year":return eB(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")}},KCe=(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},rD=(e,t,n,r,o,s,i,l)=>{let a="";const c=[],f=e.date(),p=x=>{if(x==="")return null;const P=Y3(e,x),M=tB(e,t,P.contentType,P.type,x),E=i?M:P.contentType==="digit",I=o!=null&&e.isValid(o);let R=I?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,I&&(R=X3(e,R,O))}return c.push(S({},P,{format:x,maxLength:O,value:R,placeholder:GCe(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=KCe(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,I=`${b}${m.slice(x)}`,R=w.test(I);!E&&M.match(/([A-Za-z]+)/)&&R?(b=I.slice(0,w.lastIndex),x+=w.lastIndex-1):E&&(P==null?void 0:P.start)===x||(P==null?void 0:P.end)===x||(p(b),b="",c.length===0?a+=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})},qCe=(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(nk(a,"non-input")))}const s=r.join(" "),i=o.join(" ");return e.parse(i,s)},YCe=(e,t)=>{const r=e.map(o=>{const s=nk(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${s}${o.endSeparator}`}).join("");return t?`${r}`:r},QCe=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:s,longestMonth:i}=JE(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:eB(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=R0(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})}},XCe=(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=R0(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}},oD={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},sD=(e,t,n,r,o,s)=>[...r].sort((i,l)=>oD[i.type]-oD[l.type]).reduce((i,l)=>!s||l.modified?XCe(e,t,l,n,i):i,o),ZCe=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,JCe=(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]}},exe=["value","referenceDate"],os={emptyValue:null,getTodayValue:ek,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=ae(e,exe);return t!=null&&r.utils.isValid(t)?t:n!=null?n:HCe(r)},cleanValue:PCe,areValuesEqual:ECe,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)},txe={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:J3(o(t),r),getValueStrFromSections:YCe,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)},rk=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>S({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})},ok=({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:()=>ek(n,o,"date")}),[]);return e!=null?e:s},nxe=["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"],rxe=e=>{const{classes:t}=e;return Te({root:["root"],arrowSwitcher:["arrowSwitcher"]},dCe,t)},oxe=oe($0,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),sxe=oe(H3,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),ixe=["hours","minutes"],lxe=u.forwardRef(function(t,n){const r=on(),o=He({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:I,onChange:R,view:O,views:T=ixe,openTo:A,onViewChange:z,focusedView:N,onFocusedViewChange:_,className:$,disabled:F,readOnly:V,timezone:L}=o,B=ae(o,nxe),H=f!=null?f:rk(a),K=p!=null?p:c,{value:Y,handleValueChange:J,timezone:Q}=rf({name:"TimeClock",timezone:L,value:h,defaultValue:y,onChange:R,valueManager:os}),X=ok({value:Y,referenceDate:v,utils:r,props:o,timezone:Q}),te=as(),se=Ha(Q),{view:Z,setView:pe,previousView:ne,nextView:re,setValueAndGoToNextView:me}=nm({view:O,views:T,openTo:A,onViewChange:z,onChange:J,focusedView:N,onFocusedViewChange:_}),{meridiemMode:ce,handleMeridiemChange:xe}=ZE(X,s,me),ke=u.useCallback((ie,ue)=>{const we=tm(m,r),Se=ue==="hours"||ue==="minutes"&&T.includes("seconds"),Me=({start:Ne,end:Ke})=>!(w&&we(w,Ke)||C&&we(Ne,C)||b&&we(Ne,se)||x&&we(se,Se?Ke:Ne)),Oe=(Ne,Ke=1)=>{if(Ne%Ke!==0||M!=null&&M(Ne,ue))return!1;if(E)switch(ue){case"hours":return!E(r.setHours(X,Ne),"hours");case"minutes":return!E(r.setMinutes(X,Ne),"minutes");case"seconds":return!E(r.setSeconds(X,Ne),"seconds");default:return!1}return!0};switch(ue){case"hours":{const Ne=xh(ie,ce,s),Ke=r.setHours(X,Ne),Ye=r.setSeconds(r.setMinutes(Ke,0),0),Fe=r.setSeconds(r.setMinutes(Ke,59),59);return!Me({start:Ye,end:Fe})||!Oe(Ne)}case"minutes":{const Ne=r.setMinutes(X,ie),Ke=r.setSeconds(Ne,0),Ye=r.setSeconds(Ne,59);return!Me({start:Ke,end:Ye})||!Oe(ie,P)}case"seconds":{const Ne=r.setSeconds(X,ie);return!Me({start:Ne,end:Ne})||!Oe(ie)}default:throw new Error("not supported")}},[s,X,m,C,ce,w,P,M,E,r,b,x,se,T]),fe=Yt(),Ie=u.useMemo(()=>{switch(Z){case"hours":{const ie=(ue,we)=>{const Se=xh(ue,ce,s);me(r.setHours(X,Se),we)};return{onChange:ie,viewValue:r.getHours(X),children:zCe({value:Y,utils:r,ampm:s,onChange:ie,getClockNumberText:te.hoursClockNumberText,isDisabled:ue=>F||ke(ue,"hours"),selectedId:fe})}}case"minutes":{const ie=r.getMinutes(X),ue=(we,Se)=>{me(r.setMinutes(X,we),Se)};return{viewValue:ie,onChange:ue,children:tD({utils:r,value:ie,onChange:ue,getClockNumberText:te.minutesClockNumberText,isDisabled:we=>F||ke(we,"minutes"),selectedId:fe})}}case"seconds":{const ie=r.getSeconds(X),ue=(we,Se)=>{me(r.setSeconds(X,we),Se)};return{viewValue:ie,onChange:ue,children:tD({utils:r,value:ie,onChange:ue,getClockNumberText:te.secondsClockNumberText,isDisabled:we=>F||ke(we,"seconds"),selectedId:fe})}}default:throw new Error("You must provide the type for ClockView")}},[Z,r,Y,s,te.hoursClockNumberText,te.minutesClockNumberText,te.secondsClockNumberText,ce,me,X,ke,fe,F]),ve=o,Re=rxe(ve);return D.jsxs(oxe,S({ref:n,className:be(Re.root,$),ownerState:ve},B,{children:[D.jsx(LCe,S({autoFocus:l!=null?l:!!N,ampmInClock:i&&T.includes("hours"),value:Y,type:Z,ampm:s,minutesStep:P,isTimeDisabled:ke,meridiemMode:ce,handleMeridiemChange:xe,selectedId:fe,disabled:F,readOnly:V},Ie)),I&&D.jsx(sxe,{className:Re.arrowSwitcher,slots:H,slotProps:K,onGoToPrevious:()=>pe(ne),isPreviousDisabled:!ne,previousLabel:te.openPreviousView,onGoToNext:()=>pe(re),isNextDisabled:!re,nextLabel:te.openNextView,ownerState:ve})]}))});function axe(e){return Ge("MuiDigitalClock",e)}const cxe=We("MuiDigitalClock",["root","list","item"]),uxe=["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"],dxe=e=>{const{classes:t}=e;return Te({root:["root"],list:["list"],item:["item"]},axe,t)},fxe=oe($0,{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:W3})),pxe=oe(Yd,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),hxe=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)}})),mxe=u.forwardRef(function(t,n){var r,o,s;const i=on(),l=u.useRef(null),a=kt(n,l),c=He({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:I,disablePast:R,minutesStep:O=1,shouldDisableClock:T,shouldDisableTime:A,onChange:z,view:N,openTo:_,onViewChange:$,focusedView:F,onFocusedViewChange:V,className:L,disabled:B,readOnly:H,views:K=["hours"],skipDisabled:Y=!1,timezone:J}=c,Q=ae(c,uxe),{value:X,handleValueChange:te,timezone:se}=rf({name:"DigitalClock",timezone:J,value:w,defaultValue:b,onChange:z,valueManager:os}),Z=as(),pe=Ha(se),ne=u.useMemo(()=>S({},c,{alreadyRendered:!!l.current}),[c]),re=dxe(ne),me=(r=(o=m==null?void 0:m.digitalClockItem)!=null?o:y==null?void 0:y.DigitalClockItem)!=null?r:hxe,ce=Kt({elementType:me,externalSlotProps:(s=C==null?void 0:C.digitalClockItem)!=null?s:v==null?void 0:v.digitalClockItem,ownerState:{},className:re.item}),xe=ok({value:X,referenceDate:x,utils:i,props:c,timezone:se}),ke=qe(ie=>te(ie,"finish","hours")),{setValueAndGoToNextView:fe}=nm({view:N,views:K,openTo:_,onViewChange:$,onChange:ke,focusedView:F,onFocusedViewChange:V}),Ie=qe(ie=>{fe(ie,"finish")});u.useEffect(()=>{if(l.current===null)return;const ie=l.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!ie)return;const ue=ie.offsetTop;l.current.scrollTop=ue-4});const ve=u.useCallback(ie=>{const ue=tm(P,i),we=()=>!(E&&ue(E,ie)||M&&ue(ie,M)||I&&ue(ie,pe)||R&&ue(pe,ie)),Se=()=>i.getMinutes(ie)%O!==0||T!=null&&T(i.toJsDate(ie).getTime(),"hours")?!1:A?!A(ie,"hours"):!0;return!we()||!Se()},[P,i,E,M,I,pe,R,O,T,A]),Re=u.useMemo(()=>{const ie=i.startOfDay(xe);return[ie,...Array.from({length:Math.ceil(24*60/p)-1},(ue,we)=>i.addMinutes(ie,p*(we+1)))]},[xe,p,i]);return D.jsx(fxe,S({ref:a,className:be(re.root,L),ownerState:ne},Q,{children:D.jsx(pxe,{autoFocusItem:h||!!F,role:"listbox","aria-label":Z.timePickerToolbarTitle,className:re.list,children:Re.map(ie=>{if(Y&&ve(ie))return null;const ue=i.isEqual(ie,X);return D.jsx(me,S({onClick:()=>!H&&Ie(ie),selected:ue,disabled:B||ve(ie),disableRipple:H,role:"option","aria-disabled":H,"aria-selected":ue},ce,{children:i.format(ie,f?"fullTime12h":"fullTime24h")}),i.toISO(ie))})})}))});function gxe(e){return Ge("MuiMultiSectionDigitalClock",e)}We("MuiMultiSectionDigitalClock",["root"]);function vxe(e){return Ge("MuiMultiSectionDigitalClockSection",e)}const yxe=We("MuiMultiSectionDigitalClockSection",["root","item"]),bxe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],wxe=e=>{const{classes:t}=e;return Te({root:["root"],item:["item"]},vxe,t)},Cxe=oe(Yd,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:W3,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),xxe=oe(Pr,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:up,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:lt(e.palette.primary.main,e.palette.action.focusOpacity)}})),Sxe=u.forwardRef(function(t,n){var r;const o=u.useRef(null),s=kt(n,o),i=u.useRef(null),l=He({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=ae(l,bxe),x=u.useMemo(()=>S({},l,{alreadyRendered:!!o.current}),[l]),P=wxe(x),M=(r=m==null?void 0:m.digitalClockSectionItem)!=null?r:xxe;return u.useEffect(()=>{if(o.current===null)return;const E=o.current.querySelector('[role="option"][aria-selected="true"]');if(v&&a&&E&&E.focus(),!E||i.current===E)return;i.current=E;const I=E.offsetTop;o.current.scrollTop=I-4}),D.jsx(Cxe,S({ref:s,className:be(P.root,f),ownerState:x,autoFocusItem:a&&v,role:"listbox"},b,{children:y.map(E=>{var I,R;if(w&&(I=E.isDisabled)!=null&&I.call(E,E.value))return null;const O=E.isSelected(E.value);return D.jsx(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,className:P.item},C==null?void 0:C.digitalClockSectionItem,{children:E.label}),E.label)})}))}),Pxe=({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},iD=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:o,resolveAriaLabel:s,hasValue:i=!0})=>{const l=a=>e===null?!1:i&&e===a;return[...Array.from({length:Math.ceil(60/r)},(a,c)=>{const f=r*c;return{value:f,label:t.formatNumber(o(f)),isDisabled:n,isSelected:l,ariaLabel:s(f.toString())}})]},Exe=["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"],kxe=e=>{const{classes:t}=e;return Te({root:["root"]},gxe,t)},Ixe=oe($0,{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}`})),Mxe=u.forwardRef(function(t,n){const r=on(),o=He({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:I,view:R,views:O=["hours","minutes"],openTo:T,onViewChange:A,focusedView:z,onFocusedViewChange:N,className:_,disabled:$,readOnly:F,skipDisabled:V=!1,timezone:L}=o,B=ae(o,Exe),{value:H,handleValueChange:K,timezone:Y}=rf({name:"MultiSectionDigitalClock",timezone:L,value:h,defaultValue:y,onChange:I,valueManager:os}),J=as(),Q=Ha(Y),X=u.useMemo(()=>S({hours:1,minutes:5,seconds:5},i),[i]),te=ok({value:H,referenceDate:v,utils:r,props:o,timezone:Y}),se=qe((ie,ue,we)=>K(ie,ue,we)),Z=u.useMemo(()=>!s||!O.includes("hours")||O.includes("meridiem")?O:[...O,"meridiem"],[s,O]),{view:pe,setValueAndGoToNextView:ne,focusedView:re}=nm({view:R,views:Z,openTo:T,onViewChange:A,onChange:se,focusedView:z,onFocusedViewChange:N}),me=qe(ie=>{ne(ie,"finish","meridiem")}),{meridiemMode:ce,handleMeridiemChange:xe}=ZE(te,s,me,"finish"),ke=u.useCallback((ie,ue)=>{const we=tm(m,r),Se=ue==="hours"||ue==="minutes"&&Z.includes("seconds"),Me=({start:Ne,end:Ke})=>!(w&&we(w,Ke)||C&&we(Ne,C)||b&&we(Ne,Q)||x&&we(Q,Se?Ke:Ne)),Oe=(Ne,Ke=1)=>{if(Ne%Ke!==0||M!=null&&M(Ne,ue))return!1;if(E)switch(ue){case"hours":return!E(r.setHours(te,Ne),"hours");case"minutes":return!E(r.setMinutes(te,Ne),"minutes");case"seconds":return!E(r.setSeconds(te,Ne),"seconds");default:return!1}return!0};switch(ue){case"hours":{const Ne=xh(ie,ce,s),Ke=r.setHours(te,Ne),Ye=r.setSeconds(r.setMinutes(Ke,0),0),Fe=r.setSeconds(r.setMinutes(Ke,59),59);return!Me({start:Ye,end:Fe})||!Oe(Ne)}case"minutes":{const Ne=r.setMinutes(te,ie),Ke=r.setSeconds(Ne,0),Ye=r.setSeconds(Ne,59);return!Me({start:Ke,end:Ye})||!Oe(ie,P)}case"seconds":{const Ne=r.setSeconds(te,ie);return!Me({start:Ne,end:Ne})||!Oe(ie)}default:throw new Error("not supported")}},[s,te,m,C,ce,w,P,M,E,r,b,x,Q,Z]),fe=u.useCallback(ie=>{switch(ie){case"hours":return{onChange:ue=>{const we=xh(ue,ce,s);ne(r.setHours(te,we),"finish","hours")},items:Pxe({now:Q,value:H,ampm:s,utils:r,isDisabled:ue=>$||ke(ue,"hours"),timeStep:X.hours,resolveAriaLabel:J.hoursClockNumberText})};case"minutes":return{onChange:ue=>{ne(r.setMinutes(te,ue),"finish","minutes")},items:iD({value:r.getMinutes(te),utils:r,isDisabled:ue=>$||ke(ue,"minutes"),resolveLabel:ue=>r.format(r.setMinutes(Q,ue),"minutes"),timeStep:X.minutes,hasValue:!!H,resolveAriaLabel:J.minutesClockNumberText})};case"seconds":return{onChange:ue=>{ne(r.setSeconds(te,ue),"finish","seconds")},items:iD({value:r.getSeconds(te),utils:r,isDisabled:ue=>$||ke(ue,"seconds"),resolveLabel:ue=>r.format(r.setSeconds(Q,ue),"seconds"),timeStep:X.seconds,hasValue:!!H,resolveAriaLabel:J.secondsClockNumberText})};case"meridiem":{const ue=fl(r,"am"),we=fl(r,"pm");return{onChange:xe,items:[{value:"am",label:ue,isSelected:()=>!!H&&ce==="am",ariaLabel:ue},{value:"pm",label:we,isSelected:()=>!!H&&ce==="pm",ariaLabel:we}]}}default:throw new Error(`Unknown view: ${ie} found.`)}},[Q,H,s,r,X.hours,X.minutes,X.seconds,J.hoursClockNumberText,J.minutesClockNumberText,J.secondsClockNumberText,ce,ne,te,$,ke,xe]),Ie=u.useMemo(()=>Z.reduce((ie,ue)=>S({},ie,{[ue]:fe(ue)}),{}),[Z,fe]),ve=o,Re=kxe(ve);return D.jsx(Ixe,S({ref:n,className:be(Re.root,_),ownerState:ve,role:"group"},B,{children:Object.entries(Ie).map(([ie,ue])=>D.jsx(Sxe,{items:ue.items,onChange:ue.onChange,active:pe===ie,autoFocus:l!=null?l:re===ie,disabled:$,readOnly:F,slots:f!=null?f:a,slotProps:p!=null?p:c,skipDisabled:V,"aria-label":J.selectViewText(ie)},ie))}))});function Txe(e){return Ge("MuiPickersDay",e)}const ec=We("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),_xe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],$xe=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"]},Txe,a)},nB=({theme:e,ownerState:t})=>S({},e.typography.caption,{width:Sh,height:Sh,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),[`&.${ec.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${ec.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}},[`&.${ec.disabled}:not(.${ec.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${ec.disabled}&.${ec.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${M0}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${ec.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),rB=(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]},Rxe=oe(fi,{name:"MuiPickersDay",slot:"Root",overridesResolver:rB})(nB),Oxe=oe("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:rB})(({theme:e,ownerState:t})=>S({},nB({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),Yf=()=>{},Dxe=u.forwardRef(function(t,n){const r=He({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=Yf,onBlur:v=Yf,onKeyDown:m=Yf,onMouseDown:C=Yf,onMouseEnter:w=Yf,outsideCurrentMonth:b,selected:x=!1,showDaysOutsideCurrentMonth:P=!1,children:M,today:E=!1}=r,I=ae(r,_xe),R=S({},r,{autoFocus:o,disabled:l,disableHighlightToday:a,disableMargin:c,selected:x,showDaysOutsideCurrentMonth:P,today:E}),O=$xe(R),T=on(),A=u.useRef(null),z=kt(A,n);Lt(()=>{o&&!l&&!f&&!b&&A.current.focus()},[o,l,f,b]);const N=$=>{C($),b&&$.preventDefault()},_=$=>{l||h(i),b&&$.currentTarget.focus(),p&&p($)};return b&&!P?D.jsx(Oxe,{className:be(O.root,O.hiddenDaySpacingFiller,s),ownerState:R,role:I.role}):D.jsx(Rxe,S({className:be(O.root,s),ref:z,centerRipple:!0,disabled:l,tabIndex:x?0:-1,onKeyDown:$=>m($,i),onFocus:$=>y($,i),onBlur:$=>v($,i),onMouseEnter:$=>w($,i),onClick:_,onMouseDown:N},I,{ownerState:R,children:M||T.format(i,"dayOfMonth")}))}),Axe=u.memo(Dxe);function oB(e,t,n,r){const{value:o,onError:s}=e,i=Gc(),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 Lxe=e=>{const t=on(),n=as(),r=Gc(),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:I}=tk({timezone:P,value:p,defaultValue:h,onChange:v,valueManager:i}),R=u.useMemo(()=>QCe(t,M),[t,M]),O=u.useCallback((Q,X=null)=>l.getSectionsFromValue(t,Q,X,s,te=>rD(t,M,n,m,te,C,x,s)),[l,m,n,s,x,t,C,M]),T=u.useMemo(()=>l.getValueStrFromSections(O(i.emptyValue),s),[l,O,i.emptyValue,s]),[A,z]=u.useState(()=>{const Q=O(E),X={sections:Q,value:E,referenceValue:i.emptyValue,tempValueStrAndroid:null},te=VCe(Q),se=i.getInitialReferenceValue({referenceDate:y,value:E,utils:t,props:f,granularity:te,timezone:M});return S({},X,{referenceValue:se})}),[N,_]=Qr({controlled:w,default:null,name:"useField",state:"selectedSectionIndexes"}),$=Q=>{_(Q),b==null||b(Q),z(X=>S({},X,{selectedSectionQuery:null}))},F=u.useMemo(()=>{if(N==null)return null;if(N==="all")return{startIndex:0,endIndex:A.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof N=="number")return{startIndex:N,endIndex:N};if(typeof N=="string"){const Q=A.sections.findIndex(X=>X.type===N);return{startIndex:Q,endIndex:Q}}return N},[N,A.sections]),V=({value:Q,referenceValue:X,sections:te})=>{if(z(Z=>S({},Z,{sections:te,value:Q,referenceValue:X,tempValueStrAndroid:null})),i.areValuesEqual(t,A.value,Q))return;const se={validationError:c({adapter:r,value:Q,props:S({},f,{value:Q,timezone:M})})};I(Q,se)},L=(Q,X)=>{const te=[...A.sections];return te[Q]=S({},te[Q],{value:X,modified:!0}),J3(te,s)},B=()=>{V({value:i.emptyValue,referenceValue:A.referenceValue,sections:O(i.emptyValue)})},H=()=>{if(F==null)return;const Q=A.sections[F.startIndex],X=l.getActiveDateManager(t,A,Q),se=X.getSections(A.sections).filter(re=>re.value!=="").length===(Q.value===""?0:1),Z=L(F.startIndex,""),pe=se?null:t.date(new Date("")),ne=X.getNewValuesFromNewActiveDate(pe);(pe!=null&&!t.isValid(pe))!=(X.date!=null&&!t.isValid(X.date))?V(S({},ne,{sections:Z})):z(re=>S({},re,ne,{sections:Z,tempValueStrAndroid:null}))},K=Q=>{const X=(Z,pe)=>{const ne=t.parse(Z,m);if(ne==null||!t.isValid(ne))return null;const re=rD(t,M,n,m,ne,C,x,s);return sD(t,M,ne,re,pe,!1)},te=l.parseValueStr(Q,A.referenceValue,X),se=l.updateReferenceValue(t,te,A.referenceValue);V({value:te,referenceValue:se,sections:O(te,A.sections)})},Y=({activeSection:Q,newSectionValue:X,shouldGoToNextSection:te})=>{te&&F&&F.startIndex<A.sections.length-1?$(F.startIndex+1):F&&F.startIndex!==F.endIndex&&$(F.startIndex);const se=l.getActiveDateManager(t,A,Q),Z=L(F.startIndex,X),pe=se.getSections(Z),ne=qCe(t,pe);let re,me;if(ne!=null&&t.isValid(ne)){const ce=sD(t,M,ne,pe,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?V(S({},re,{sections:Z})):z(ce=>S({},ce,re,{sections:Z,tempValueStrAndroid:null}))},J=Q=>z(X=>S({},X,{tempValueStrAndroid:Q}));return u.useEffect(()=>{const Q=O(A.value);z(X=>S({},X,{sections:Q}))},[m,t.locale]),u.useEffect(()=>{let Q=!1;i.areValuesEqual(t,A.value,E)?Q=i.getTimezone(t,A.value)!==i.getTimezone(t,E):Q=!0,Q&&z(X=>S({},X,{value:E,referenceValue:l.updateReferenceValue(t,E,X.referenceValue),sections:O(E)}))},[E]),{state:A,selectedSectionIndexes:F,setSelectedSections:$,clearValue:B,clearActiveSection:H,updateSectionValue:Y,updateValueFromValueStr:K,setTempAndroidValueStr:J,sectionsValueBoundaries:R,placeholder:T,timezone:M}},Fxe=5e3,Cu=e=>e.saveQuery!=null,Nxe=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const s=on(),[i,l]=u.useState(null),a=qe(()=>l(null));u.useEffect(()=>{var y;i!=null&&((y=e[i.sectionIndex])==null?void 0:y.type)!==i.sectionType&&a()},[e,i,a]),u.useEffect(()=>{if(i!=null){const y=setTimeout(()=>a(),Fxe);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(!Cu(M))return l({sectionIndex:v,value:P,sectionType:b.type}),M}const x=m(w,b);return Cu(x)&&!x.saveQuery?(a(),null):(l({sectionIndex:v,value:w,sectionType:b.type}),Cu(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&&Y3(s,x).contentType==="letter"){const E=M(x),I=v(x,E,w);return Cu(I)?{saveQuery:!1}:S({},I,{sectionValue:P(I.sectionValue,E)})}return{saveQuery:!1}};return c(y,(w,b)=>{switch(b.type){case"month":{const x=P=>nD(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:Z3(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=tB(s,o,"digit","month","MM"),x=v(C,{type:w.type,format:"MM",hasLeadingZerosInFormat:b,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Cu(x))return x;const P=nD(s,x.sectionValue,"MM",w.format);return S({},x,{sectionValue:P})}if(w.type==="weekDay"){const b=v(C,w);if(Cu(b))return b;const x=R0(s,o,w.format)[Number(b.sectionValue)-1];return S({},b,{sectionValue:x})}return{saveQuery:!1}},C=>!Number.isNaN(Number(C)))};return{applyCharacterEditing:qe(y=>{const v=e[y.sectionIndex],C=!Number.isNaN(Number(y.keyPressed))?p(y):f(y);C==null?r(null):t({activeSection:v,newSectionValue:C.sectionValue,shouldGoToNextSection:C.shouldGoToNextSection})}),resetCharacterQuery:a}};function Bxe(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const jxe=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},wy=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?wy(t.shadowRoot):t:null},zxe="@media (pointer: fine)",Vxe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],Hxe=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}=Lxe(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:I,error:R,clearable:O,onClear:T,disabled:A},fieldValueManager:z,valueManager:N,validator:_}=e,$=ae(e.forwardedProps,Vxe),{applyCharacterEditing:F,resetCharacterQuery:V}=Nxe({sections:n.sections,updateSectionValue:l,sectionsValueBoundaries:f,setTempAndroidValueStr:c,timezone:h}),L=u.useRef(null),B=kt(y,L),H=u.useRef(void 0),Y=vn().direction==="rtl",J=u.useMemo(()=>JCe(n.sections,Y),[n.sections,Y]),Q=()=>{var ie;if(m){o(null);return}const ue=(ie=L.current.selectionStart)!=null?ie:0;let we;ue<=n.sections[0].startInInput||ue>=n.sections[n.sections.length-1].endInInput?we=1:we=n.sections.findIndex(Me=>Me.startInInput-Me.startSeparator.length>ue);const Se=we===-1?n.sections.length-1:we-1;o(Se)},X=qe((ie,...ue)=>{ie.isDefaultPrevented()||(b==null||b(ie,...ue),Q())}),te=qe(ie=>{E==null||E(ie),ie.preventDefault()}),se=qe((...ie)=>{P==null||P(...ie);const ue=L.current;window.clearTimeout(H.current),H.current=setTimeout(()=>{!ue||ue!==L.current||r!=null||m||(ue.value.length&&Number(ue.selectionEnd)-Number(ue.selectionStart)===ue.value.length?o("all"):Q())})}),Z=qe((...ie)=>{M==null||M(...ie),o(null)}),pe=qe(ie=>{if(I==null||I(ie),m){ie.preventDefault();return}const ue=ie.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const we=n.sections[r.startIndex],Se=/^[a-zA-Z]+$/.test(ue),Me=/^[0-9]+$/.test(ue),Oe=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ue);if(we.contentType==="letter"&&Se||we.contentType==="digit"&&Me||we.contentType==="digit-with-letter"&&Oe){V(),l({activeSection:we,newSectionValue:ue,shouldGoToNextSection:!0}),ie.preventDefault();return}if(Se||Me){ie.preventDefault();return}}ie.preventDefault(),V(),a(ue)}),ne=qe(ie=>{if(m)return;const ue=ie.target.value;if(ue===""){V(),s();return}const we=ie.nativeEvent.data,Se=we&&we.length>1,Me=Se?we:ue,Oe=Wu(Me);if(r==null||Se){a(Se?we:Oe);return}let Ne;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&Oe.length===1)Ne=Oe;else{const Ke=Wu(z.getValueStrFromSections(n.sections,Y));let Ye=-1,Fe=-1;for(let Ve=0;Ve<Ke.length;Ve+=1)Ye===-1&&Ke[Ve]!==Oe[Ve]&&(Ye=Ve),Fe===-1&&Ke[Ke.length-Ve-1]!==Oe[Oe.length-Ve-1]&&(Fe=Ve);const mt=n.sections[r.startIndex];if(Ye<mt.start||Ke.length-Fe-1>mt.end)return;const Pt=Oe.length-Ke.length+mt.end-Wu(mt.endSeparator||"").length;Ne=Oe.slice(mt.start+Wu(mt.startSeparator||"").length,Pt)}if(Ne.length===0){ZCe()?c(Me):(V(),i());return}F({keyPressed:Ne,sectionIndex:r.startIndex})}),re=qe(ie=>{switch(x==null||x(ie),!0){case(ie.key==="a"&&(ie.ctrlKey||ie.metaKey)):{ie.preventDefault(),o("all");break}case ie.key==="ArrowRight":{if(ie.preventDefault(),r==null)o(J.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const ue=J.neighbors[r.startIndex].rightIndex;ue!==null&&o(ue)}break}case ie.key==="ArrowLeft":{if(ie.preventDefault(),r==null)o(J.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const ue=J.neighbors[r.startIndex].leftIndex;ue!==null&&o(ue)}break}case ie.key==="Delete":{if(ie.preventDefault(),m)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?s():i(),V();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(ie.key):{if(ie.preventDefault(),m||r==null)break;const ue=n.sections[r.startIndex],we=z.getActiveDateManager(t,n,ue),Se=WCe(t,h,ue,ie.key,f,we.date,{minutesStep:w});l({activeSection:ue,newSectionValue:Se,shouldGoToNextSection:!1});break}}});Lt(()=>{if(!L.current)return;if(r==null){L.current.scrollLeft&&(L.current.scrollLeft=0);return}const ie=n.sections[r.startIndex],ue=n.sections[r.endIndex];let we=ie.startInInput,Se=ue.endInInput;if(r.shouldSelectBoundarySelectors&&(we-=ie.startSeparator.length,Se+=ue.endSeparator.length),we!==L.current.selectionStart||Se!==L.current.selectionEnd){const Me=L.current.scrollTop;L.current===wy(document)&&L.current.setSelectionRange(we,Se),L.current.scrollTop=Me}});const me=oB(S({},v,{value:n.value,timezone:h}),_,N.isSameError,N.defaultErrorState),ce=u.useMemo(()=>R!==void 0?R:N.hasError(me),[N,me,R]);u.useEffect(()=>{!ce&&!r&&V()},[n.referenceValue,r,ce]),u.useEffect(()=>(L.current&&L.current===document.activeElement&&o("all"),()=>window.clearTimeout(H.current)),[]),u.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(V(),i())},[n.tempValueStrAndroid]);const xe=u.useMemo(()=>{var ie;return(ie=n.tempValueStrAndroid)!=null?ie:z.getValueStrFromSections(n.sections,Y)},[n.sections,z,n.tempValueStrAndroid,Y]),ke=u.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),fe=L.current&&L.current===wy(document),Ie=N.areValuesEqual(t,n.value,N.emptyValue),ve=!fe&&Ie;u.useImperativeHandle(C,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var ie,ue;const we=(ie=L.current.selectionStart)!=null?ie:0,Se=(ue=L.current.selectionEnd)!=null?ue:0;if(we===0&&Se===0)return null;const Me=we<=n.sections[0].startInInput?1:n.sections.findIndex(Oe=>Oe.startInInput-Oe.startSeparator.length>we);return Me===-1?n.sections.length-1:Me-1},setSelectedSections:ie=>o(ie)}));const Re=qe((ie,...ue)=>{var we;ie.preventDefault(),T==null||T(ie,...ue),s(),L==null||(we=L.current)==null||we.focus(),o(0)});return S({placeholder:p,autoComplete:"off",disabled:!!A},$,{value:ve?"":xe,inputMode:ke,readOnly:m,onClick:X,onFocus:se,onBlur:Z,onPaste:pe,onChange:ne,onKeyDown:re,onMouseUp:te,onClear:Re,error:ce,ref:B,clearable:!!(O&&!Ie&&!m&&!A)})},sB=({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}},bS=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],wS=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],iB=["minDateTime","maxDateTime"],Uxe=[...bS,...wS,...iB],lB=e=>Uxe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),Wxe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],Gxe=(e,t)=>{const n=S({},e),r={},o=s=>{n.hasOwnProperty(s)&&(r[s]=n[s],delete n[s])};return Wxe.forEach(o),t==="date"?bS.forEach(o):t==="time"?wS.forEach(o):t==="date-time"&&(bS.forEach(o),wS.forEach(o),iB.forEach(o)),{forwardedProps:n,internalProps:r}},Kxe=oe(z4)({[`& .${Tp.container}`]:{outline:0},[`& .${Tp.paper}`]:{outline:0,minWidth:T0}}),qxe=oe(V4)({"&:first-of-type":{padding:0}});function Yxe(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:Kxe,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(qxe,{children:r})}))}function Qxe(e){return Ge("MuiPickersPopper",e)}We("MuiPickersPopper",["root","paper"]);const Xxe="@media (prefers-reduced-motion: reduce)",ad=typeof navigator!="undefined"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),lD=ad&&ad[1]?parseInt(ad[1],10):null,aD=ad&&ad[2]?parseInt(ad[2],10):null,Zxe=lD&&lD<10||aD&&aD<13||!1,aB=()=>H1(Xxe,{defaultMatches:!1})||Zxe,Jxe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],eSe=e=>{const{classes:t}=e;return Te({root:["root"],paper:["paper"]},Qxe,t)},tSe=oe(Ba,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),nSe=oe(zs,{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 rSe(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function oSe(e,t){const n=u.useRef(!1),r=u.useRef(!1),o=u.useRef(null),s=u.useRef(!1);u.useEffect(()=>{if(!e)return;function a(){s.current=!0}return document.addEventListener("mousedown",a,!0),document.addEventListener("touchstart",a,!0),()=>{document.removeEventListener("mousedown",a,!0),document.removeEventListener("touchstart",a,!0),s.current=!1}},[e]);const i=qe(a=>{if(!s.current)return;const c=r.current;r.current=!1;const f=pn(o.current);if(!o.current||"clientX"in a&&rSe(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 sSe=u.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:s,paperSlotProps:i,paperClasses:l,onPaperClick:a,onPaperTouchStart:c}=e,f=ae(e,Jxe),p=S({},o,{placement:r}),h=Kt({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 iSe(e){var t,n,r,o;const s=He({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 B(H){h&&(H.key==="Escape"||H.key==="Esc")&&p()}return document.addEventListener("keydown",B),()=>{document.removeEventListener("keydown",B)}},[p,h]);const b=u.useRef(null);u.useEffect(()=>{y==="tooltip"||c&&!c()||(h?b.current=wy(document):b.current&&b.current instanceof HTMLElement&&setTimeout(()=>{b.current instanceof HTMLElement&&b.current.focus()}))},[h,y,c]);const[x,P,M]=oSe(h,f!=null?f:p),E=u.useRef(null),I=kt(E,a),R=kt(I,x),O=s,T=eSe(O),A=aB(),z=w!=null?w:A,N=B=>{B.key==="Escape"&&(B.stopPropagation(),p())},_=((t=m==null?void 0:m.desktopTransition)!=null?t:z)?Gd:dh,$=(n=m==null?void 0:m.desktopTrapFocus)!=null?n:l2,F=(r=m==null?void 0:m.desktopPaper)!=null?r:nSe,V=(o=m==null?void 0:m.popper)!=null?o:tSe,L=Kt({elementType:V,externalSlotProps:C==null?void 0:C.popper,additionalProps:{transition:!0,role:y,open:h,anchorEl:i,placement:v,onKeyDown:N},className:T.root,ownerState:s});return D.jsx(V,S({},L,{children:({TransitionProps:B,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(_,S({},B,C==null?void 0:C.desktopTransition,{children:D.jsx(sSe,{PaperComponent:F,ownerState:O,popperPlacement:H,ref:R,onPaperClick:P,onPaperTouchStart:M,paperClasses:T.paper,paperSlotProps:C==null?void 0:C.desktopPaper,children:l})}))}))}))}function cB(e){return Ge("MuiPickersToolbar",e)}We("MuiPickersToolbar",["root","content"]);const lSe=e=>{const{classes:t,isLandscape:n}=e;return Te({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},cB,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"})),cSe=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"}}),uSe=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersToolbar"}),{children:o,className:s,toolbarTitle:i,hidden:l,titleId:a}=r,c=r,f=lSe(c);return l?null:D.jsxs(aSe,{ref:n,className:be(f.root,s),ownerState:c,children:[D.jsx(qn,{color:"text.secondary",variant:"overline",id:a,children:i}),D.jsx(cSe,{className:f.content,ownerState:c,children:o})]})});function dSe(e){return Ge("MuiPickersToolbarText",e)}const cD=We("MuiPickersToolbarText",["root","selected"]),fSe=["className","selected","value"],pSe=e=>{const{classes:t,selected:n}=e;return Te({root:["root",n&&"selected"]},dSe,t)},hSe=oe(qn,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${cD.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${cD.selected}`]:{color:(e.vars||e).palette.text.primary}})),uB=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersToolbarText"}),{className:o,value:s}=r,i=ae(r,fSe),l=pSe(r);return D.jsx(hSe,S({ref:n,className:be(o,l.root),component:"span"},i,{children:s}))}),mSe=["align","className","selected","typographyClassName","value","variant","width"],gSe=e=>{const{classes:t}=e;return Te({root:["root"]},cB,t)},vSe=oe(Yn,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Gl=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:s,selected:i,typographyClassName:l,value:a,variant:c,width:f}=r,p=ae(r,mSe),h=gSe(r);return D.jsx(vSe,S({variant:"text",ref:n,className:be(s,h.root)},f?{sx:{width:f}}:{},p,{children:D.jsx(uB,{align:o,className:l,variant:c,value:a,selected:i})}))}),ySe=({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}},bSe=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},wSe=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},CSe=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},xSe=({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=Gc(),[w,b]=Qr({controlled:f,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:x,setIsOpen:P}=ySe(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:I,handleValueChange:R}=tk({timezone:h,value:l,defaultValue:y,onChange:i,valueManager:t});oB(S({},e,{value:M.draft,timezone:I}),o,t.isSameError,t.defaultErrorState);const O=qe(se=>{const Z={action:se,dateState:M,hasChanged:me=>!t.areValuesEqual(m,se.value,me),isControlled:v,closeOnSelect:c},pe=bSe(Z),ne=wSe(Z),re=CSe(Z);if(E(me=>S({},me,{draft:se.value,lastPublishedValue:pe?se.value:me.lastPublishedValue,lastCommittedValue:ne?se.value:me.lastCommittedValue,hasBeenModifiedSinceMount:!0})),pe){const ce={validationError:se.name==="setValueFromField"?se.context.validationError:o({adapter:C,value:se.value,props:S({},e,{value:se.value,timezone:I})})};se.name==="setValueFromShortcut"&&se.shortcut!=null&&(ce.shortcut=se.shortcut),R(se.value,ce)}ne&&s&&s(se.value),re&&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 T=qe(()=>{O({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),A=qe(()=>{O({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),z=qe(()=>{O({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),N=qe(()=>{O({value:M.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),_=qe(()=>{O({value:t.getTodayValue(m,I,n),name:"setValueFromAction",pickerAction:"today"})}),$=qe(()=>P(!0)),F=qe(()=>P(!1)),V=qe((se,Z="partial")=>O({name:"setValueFromView",value:se,selectionState:Z})),L=qe((se,Z,pe)=>O({name:"setValueFromShortcut",value:se,changeImportance:Z!=null?Z:"accept",shortcut:pe})),B=qe((se,Z)=>O({name:"setValueFromField",value:se,context:Z})),H=qe(se=>{b(se),p==null||p(se)}),K={onClear:T,onAccept:A,onDismiss:z,onCancel:N,onSetToday:_,onOpen:$,onClose:F},Y={value:M.draft,onChange:B,selectedSections:w,onSelectedSectionsChange:H},J=u.useMemo(()=>t.cleanValue(m,M.draft),[m,t,M.draft]),Q={value:J,onChange:V,onClose:F,open:x,onSelectedSectionsChange:H},te=S({},K,{value:J,onChange:V,onSelectShortcut:L,isValid:se=>{const Z=o({adapter:C,value:se,props:S({},e,{value:se,timezone:I})});return!t.hasError(Z)}});return{open:x,fieldProps:Y,viewProps:Q,layoutProps:te,actions:K}},SSe=["className","sx"],PSe=({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=ae(e,SSe),{view:C,setView:w,defaultView:b,focusedView:x,setFocusedView:P,setValueAndGoToNextView:M}=nm({view:void 0,views:c,openTo:f,onChange:s,onViewChange:p,autoFocus:o}),{hasUIView:E,viewModeLookup:I}=u.useMemo(()=>c.reduce((_,$)=>{let F;return h?F="field":y[$]!=null?F="UI":F="field",_.viewModeLookup[$]=F,F==="UI"&&(_.hasUIView=!0),_},{hasUIView:!1,viewModeLookup:{}}),[h,y,c]),R=u.useMemo(()=>c.reduce((_,$)=>y[$]!=null&&Dd($)?_+1:_,0),[y,c]),O=I[C],T=qe(()=>O==="UI"),[A,z]=u.useState(O==="UI"?C:null);return A!==C&&I[C]==="UI"&&z(C),Lt(()=>{O==="field"&&i&&(a(),setTimeout(()=>{r==null||r.current.focus(),l(C)}))},[C]),Lt(()=>{if(!i)return;let _=C;O==="field"&&A!=null&&(_=A),_!==b&&I[_]==="UI"&&I[b]==="UI"&&(_=b),_!==C&&w(_),P(_,!0)},[i]),{hasUIView:E,shouldRestoreFocus:T,layoutProps:{views:c,view:A,onViewChange:w},renderCurrentView:()=>{if(A==null)return null;const _=y[A];return _==null?null:_(S({},m,n,t,{views:c,timezone:v,onChange:M,view:A,onViewChange:w,focusedView:x,onFocusedViewChange:P,showViewSwitcher:R>1,timeViewsCount:R}))}}};function uD(){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 ESe=(e,t)=>{const[n,r]=u.useState(uD);return Lt(()=>{const s=()=>{r(uD())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),Bxe(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},kSe=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,s=ESe(n.views,o);return{layoutProps:S({},n,t,{isLandscape:s,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},dB=(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))}};dB(["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 fB=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:s,validator:i,autoFocusView:l})=>{const a=xSe({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),c=PSe({props:e,inputRef:o,additionalViewProps:s,autoFocusView:l,propsFromPickerValue:a.viewProps}),f=kSe({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 pB(e){return Ge("MuiPickersLayout",e)}const pC=We("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),ISe=["onAccept","onClear","onCancel","onSetToday","actions"];function MSe(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:s}=e,i=ae(e,ISe),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(Xre,S({},i,{children:a}))}const TSe=["items","changeImportance","isLandscape","onChange","isValid"],_Se=["getValue"];function $Se(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,s=ae(e,TSe);if(t==null||t.length===0)return null;const i=t.map(l=>{let{getValue:a}=l,c=ae(l,_Se);const f=a({isValid:o});return{label:c.label,onClick:()=>{r(f,n,c)},disabled:!o(f)}});return D.jsx(Vh,S({dense:!0,sx:[{maxHeight:_0,maxWidth:200,overflow:"auto"},...Array.isArray(s.sx)?s.sx:[s.sx]]},s,{children:i.map(l=>D.jsx(g2,{children:D.jsx(jh,S({},l))},l.label))}))}function RSe(e){return e.view!==null}const OSe=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"]},pB,t)},DSe=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,I=M!=null?M:rk(x),R=E!=null?E:P,O=OSe(e),T=(t=I==null?void 0:I.actionBar)!=null?t:MSe,A=Kt({elementType:T,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})}),z=D.jsx(T,S({},A)),N=I==null?void 0:I.toolbar,_=Kt({elementType:N,externalSlotProps:R==null?void 0:R.toolbar,additionalProps:{isLandscape:m,onChange:h,value:p,view:a,onViewChange:f,views:c,disabled:C,readOnly:w,className:O.toolbar},ownerState:S({},e,{wrapperVariant:r})}),$=RSe(_)&&N?D.jsx(N,S({},_)):null,F=b,V=I==null?void 0:I.tabs,L=a&&V?D.jsx(V,S({view:a,onViewChange:f,className:O.tabs},R==null?void 0:R.tabs)):null,B=(n=I==null?void 0:I.shortcuts)!=null?n:$Se,H=Kt({elementType:B,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&&B?D.jsx(B,S({},H)):null;return{toolbar:$,content:F,tabs:L,actionBar:z,shortcuts:K}},ASe=DSe,LSe=e=>{const{isLandscape:t,classes:n}=e;return Te({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},pB,n)},hB=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",[`& .${pC.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${pC.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${pC.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));hB.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 FSe=oe("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),mB=function(t){const n=He({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:s,actionBar:i,shortcuts:l}=ASe(n),{sx:a,className:c,isLandscape:f,ref:p,wrapperVariant:h}=n,y=n,v=LSe(y);return D.jsxs(hB,{ref:p,sx:a,className:be(c,v.root),ownerState:y,children:[f?l:r,f?r:l,D.jsx(FSe,{className:v.contentWrapper,children:h==="desktop"?D.jsxs(u.Fragment,{children:[o,s]}):D.jsxs(u.Fragment,{children:[s,o]})}),i]})},NSe=({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=tm(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}},sk=({props:e,value:t,adapter:n})=>{const r=sB({adapter:n,value:t,props:e});return r!==null?r:NSe({adapter:n,value:t,props:e})},BSe=e=>Ge("MuiPickersSlideTransition",e),ws=We("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),jSe=["children","className","reduceAnimations","slideDirection","transKey","classes"],zSe=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Te(r,BSe,t)},VSe=oe(s2,{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 HSe(e){const t=He({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=ae(t,jSe),l=zSe(t),a=vn();if(o)return D.jsx("div",{className:be(l.root,r),children:n});const c={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return D.jsx(VSe,{className:be(l.root,r),childFactory:f=>u.cloneElement(f,{classNames:c}),role:"presentation",children:D.jsx(gZ,S({mountOnEnter:!0,unmountOnExit:!0,timeout:a.transitions.duration.complex,classNames:c},i,{children:n}),s)})}const gB=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i,timezone:l})=>{const a=Gc();return u.useCallback(c=>sB({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])},USe=e=>Ge("MuiDayCalendar",e);We("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const WSe=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],GSe=["ownerState"],KSe=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"]},USe,t)},vB=(Sh+M0*2)*6,qSe=oe("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),YSe=oe("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),QSe=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})),XSe=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})),ZSe=oe(qn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>S({},e.typography.caption,{width:Sh,height:Sh,padding:0,margin:`0 ${M0}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),JSe=oe("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:vB}),ePe=oe(HSe,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:vB}),tPe=oe("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),nPe=oe("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${M0}px 0`,display:"flex",justifyContent:"center"});function rPe(e){var t,n,r;let{parentProps:o,day:s,focusableDay:i,selectedDays:l,isDateDisabled:a,currentMonthNumber:c,isViewFocused:f}=e,p=ae(e,WSe);const{disabled:h,disableHighlightToday:y,isMonthSwitchingAnimating:v,showDaysOutsideCurrentMonth:m,components:C,componentsProps:w,slots:b,slotProps:x,timezone:P}=o,M=on(),E=Ha(P),I=i!==null&&M.isSameDay(s,i),R=l.some(V=>M.isSameDay(V,s)),O=M.isSameDay(s,E),T=(t=(n=b==null?void 0:b.day)!=null?n:C==null?void 0:C.Day)!=null?t:Axe,A=Kt({elementType:T,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})}),z=ae(A,GSe),N=u.useMemo(()=>h||a(s),[h,a,s]),_=u.useMemo(()=>M.getMonth(s)!==c,[M,s,c]),$=u.useMemo(()=>{const V=M.startOfMonth(M.setMonth(s,c));return m?M.isSameDay(s,M.startOfWeek(V)):M.isSameDay(s,V)},[c,s,m,M]),F=u.useMemo(()=>{const V=M.endOfMonth(M.setMonth(s,c));return m?M.isSameDay(s,M.endOfWeek(V)):M.isSameDay(s,V)},[c,s,m,M]);return D.jsx(T,S({},z,{day:s,disabled:N,autoFocus:f&&I,today:O,outsideCurrentMonth:_,isFirstVisibleCell:$,isLastVisibleCell:F,selected:R,tabIndex:I?0:-1,"aria-selected":R,"aria-current":O?"date":void 0}))}function oPe(e){const t=He({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:I,onFocusedViewChange:R,gridLabelId:O,displayWeekNumber:T,fixedWeekNumber:A,autoFocus:z,timezone:N}=t,_=Ha(N),$=on(),F=KSe(t),L=vn().direction==="rtl",B=E||((ve,Re)=>$.format(Re,"weekdayShort").charAt(0).toUpperCase()),H=gB({shouldDisableDate:x,shouldDisableMonth:P,shouldDisableYear:M,minDate:w,maxDate:b,disablePast:m,disableFuture:C,timezone:N}),K=as(),[Y,J]=Qr({name:"DayCalendar",state:"hasFocus",controlled:I,default:z!=null?z:!1}),[Q,X]=u.useState(()=>i||_),te=qe(ve=>{f||a(ve)}),se=ve=>{H(ve)||(n(ve),X(ve),R==null||R(!0),J(!0))},Z=qe((ve,Re)=>{switch(ve.key){case"ArrowUp":se($.addDays(Re,-7)),ve.preventDefault();break;case"ArrowDown":se($.addDays(Re,7)),ve.preventDefault();break;case"ArrowLeft":{const ie=$.addDays(Re,L?1:-1),ue=$.addMonths(Re,L?1:-1),we=Op({utils:$,date:ie,minDate:L?ie:$.startOfMonth(ue),maxDate:L?$.endOfMonth(ue):ie,isDateDisabled:H,timezone:N});se(we||ie),ve.preventDefault();break}case"ArrowRight":{const ie=$.addDays(Re,L?-1:1),ue=$.addMonths(Re,L?-1:1),we=Op({utils:$,date:ie,minDate:L?$.startOfMonth(ue):ie,maxDate:L?ie:$.endOfMonth(ue),isDateDisabled:H,timezone:N});se(we||ie),ve.preventDefault();break}case"Home":se($.startOfWeek(Re)),ve.preventDefault();break;case"End":se($.endOfWeek(Re)),ve.preventDefault();break;case"PageUp":se($.addMonths(Re,1)),ve.preventDefault();break;case"PageDown":se($.addMonths(Re,-1)),ve.preventDefault();break}}),pe=qe((ve,Re)=>se(Re)),ne=qe((ve,Re)=>{Y&&$.isSameDay(Q,Re)&&(R==null||R(!1))}),re=$.getMonth(o),me=u.useMemo(()=>s.filter(ve=>!!ve).map(ve=>$.startOfDay(ve)),[$,s]),ce=re,xe=u.useMemo(()=>u.createRef(),[ce]),ke=$.startOfWeek(_),fe=u.useMemo(()=>{const ve=$.startOfMonth(o),Re=$.endOfMonth(o);return H(Q)||$.isAfterDay(Q,Re)||$.isBeforeDay(Q,ve)?Op({utils:$,date:Q,minDate:ve,maxDate:Re,disablePast:m,disableFuture:C,isDateDisabled:H,timezone:N}):Q},[o,C,m,Q,H,$,N]),Ie=u.useMemo(()=>{const ve=$.setTimezone(o,N),Re=$.getWeekArray(ve);let ie=$.addMonths(ve,1);for(;A&&Re.length<A;){const ue=$.getWeekArray(ie),we=$.isSameDay(Re[Re.length-1][0],ue[0][0]);ue.slice(we?1:0).forEach(Se=>{Re.length<A&&Re.push(Se)}),ie=$.addMonths(ie,1)}return Re},[o,A,$,N]);return D.jsxs(qSe,{role:"grid","aria-labelledby":O,className:F.root,children:[D.jsxs(YSe,{role:"row",className:F.header,children:[T&&D.jsx(XSe,{variant:"caption",role:"columnheader","aria-label":K.calendarWeekNumberHeaderLabel,className:F.weekNumberLabel,children:K.calendarWeekNumberHeaderText}),ICe($,_).map((ve,Re)=>{var ie;const ue=$.format(ve,"weekdayShort");return D.jsx(QSe,{variant:"caption",role:"columnheader","aria-label":$.format($.addDays(ke,Re),"weekday"),className:F.weekDayLabel,children:(ie=B==null?void 0:B(ue,ve))!=null?ie:ue},ue+Re.toString())})]}),l?D.jsx(JSe,{className:F.loadingContainer,children:h()}):D.jsx(ePe,S({transKey:ce,onExited:c,reduceAnimations:p,slideDirection:y,className:be(r,F.slideTransition)},v,{nodeRef:xe,children:D.jsx(tPe,{ref:xe,role:"rowgroup",className:F.monthContainer,children:Ie.map((ve,Re)=>D.jsxs(nPe,{role:"row",className:F.weekContainer,"aria-rowindex":Re+1,children:[T&&D.jsx(ZSe,{className:F.weekNumber,role:"rowheader","aria-label":K.calendarWeekNumberAriaLabelText($.getWeekNumber(ve[0])),children:K.calendarWeekNumberText($.getWeekNumber(ve[0]))}),ve.map((ie,ue)=>D.jsx(rPe,{parentProps:t,day:ie,selectedDays:me,focusableDay:fe,onKeyDown:Z,onFocus:pe,onBlur:ne,onDaySelect:te,isDateDisabled:H,currentMonthNumber:re,isViewFocused:Y,"aria-colindex":ue+1},ie.toString()))]},`week-${ve[0]}`))})}))]})}const sPe=(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")}},iPe=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=Ha(h),v=on(),m=u.useRef(sPe(!!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=gB({shouldDisableDate:p,minDate:a,maxDate:l,disableFuture:o,disablePast:s,timezone:h}),E=u.useCallback(()=>{b({type:"finishMonthSwitchingAnimation"})},[]),I=qe((R,O)=>{M(R)||b({type:"changeFocusedDay",focusedDay:R,withoutMonthSwitchingAnimation:O})});return{referenceDate:C,calendarState:w,changeMonth:P,changeFocusedDay:I,isDateDisabled:M,onMonthSwitchingAnimationEnd:E,handleChangeMonth:x}},lPe=["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=Kt({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=ae(C,lPe),b=(p=(h=o==null?void 0:o.clearIcon)!=null?h:i==null?void 0:i.ClearIcon)!=null?p:Xwe,x=Kt({elementType:b,externalSlotProps:(y=s==null?void 0:s.clearIcon)!=null?y:l==null?void 0:l.clearIcon,ownerState:{}}),P=S({},n,{endAdornment:D.jsxs(u.Fragment,{children:[e&&D.jsx(xl,{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]})}),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}},cPe=e=>{var t,n,r,o,s,i,l,a;const c=on(),f=em(),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})},uPe=({props:e,inputRef:t})=>{const n=cPe(e),{forwardedProps:r,internalProps:o}=Gxe(n,"date-time");return Hxe({inputRef:t,forwardedProps:r,internalProps:o,valueManager:os,fieldValueManager:txe,validator:sk,valueType:"date-time"})},dPe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],fPe=["inputRef"],pPe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],yB=u.forwardRef(function(t,n){var r,o,s;const i=He({props:t,name:"MuiDateTimeField"}),{components:l,componentsProps:a,slots:c,slotProps:f,InputProps:p,inputProps:h}=i,y=ae(i,dPe),v=i,m=(r=(o=c==null?void 0:c.textField)!=null?o:l==null?void 0:l.TextField)!=null?r:ja,C=Kt({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=ae(C,fPe);b.inputProps=S({},h,b.inputProps),b.InputProps=S({},p,b.InputProps);const x=uPe({props:b,inputRef:w}),{ref:P,onPaste:M,onKeyDown:E,inputMode:I,readOnly:R,clearable:O,onClear:T}=x,A=ae(x,pPe),{InputProps:z,fieldProps:N}=aPe({onClear:T,clearable:O,fieldProps:A,InputProps:A.InputProps,slots:c,slotProps:f,components:l,componentsProps:a});return D.jsx(m,S({ref:n},N,{InputProps:S({},z,{readOnly:R}),inputProps:S({},A.inputProps,{inputMode:I,onPaste:M,onKeyDown:E,ref:P})}))}),hPe=e=>Ge("MuiPickersFadeTransitionGroup",e);We("MuiPickersFadeTransitionGroup",["root"]);const mPe=e=>{const{classes:t}=e;return Te({root:["root"]},hPe,t)},gPe=oe(s2,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function bB(e){const t=He({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=mPe(t),l=vn();return o?n:D.jsx(gPe,{className:be(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 vPe(e){return Ge("MuiPickersMonth",e)}const Eg=We("MuiPickersMonth",["root","monthButton","disabled","selected"]),yPe=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],bPe=e=>{const{disabled:t,selected:n,classes:r}=e;return Te({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},vPe,r)},wPe=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"})),CPe=oe("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Eg.disabled}`]:t.disabled},{[`&.${Eg.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"},[`&.${Eg.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Eg.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),xPe=u.memo(function(t){const n=He({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=ae(n,yPe),C=u.useRef(null),w=bPe(n);return Lt(()=>{if(r){var b;(b=C.current)==null||b.focus()}},[r]),D.jsx(wPe,S({className:w.root,ownerState:n},m,{children:D.jsx(CPe,{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 SPe(e){return Ge("MuiMonthCalendar",e)}We("MuiMonthCalendar",["root"]);const PPe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],EPe=e=>{const{classes:t}=e;return Te({root:["root"]},SPe,t)};function kPe(e,t){const n=on(),r=em(),o=He({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 IPe=oe("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:T0,boxSizing:"border-box"}),MPe=u.forwardRef(function(t,n){const r=kPe(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:I}=r,R=ae(r,PPe),{value:O,handleValueChange:T,timezone:A}=rf({name:"MonthCalendar",timezone:E,value:s,defaultValue:i,onChange:y,valueManager:os}),z=Ha(A),N=Ud(),_=on(),$=u.useMemo(()=>os.getInitialReferenceValue({value:O,utils:_,props:r,timezone:A,referenceDate:l,granularity:ni.month}),[]),F=r,V=EPe(F),L=u.useMemo(()=>_.getMonth(z),[_,z]),B=u.useMemo(()=>O!=null?_.getMonth(O):C?null:_.getMonth($),[O,_,C,$]),[H,K]=u.useState(()=>B||L),[Y,J]=Qr({name:"MonthCalendar",state:"hasFocus",controlled:x,default:w!=null?w:!1}),Q=qe(re=>{J(re),P&&P(re)}),X=u.useCallback(re=>{const me=_.startOfMonth(f&&_.isAfter(z,h)?z:h),ce=_.startOfMonth(c&&_.isBefore(z,p)?z:p),xe=_.startOfMonth(re);return _.isBefore(xe,me)||_.isAfter(xe,ce)?!0:v?v(xe):!1},[c,f,p,h,z,v,_]),te=qe((re,me)=>{if(m)return;const ce=_.setMonth(O!=null?O:$,me);T(ce)}),se=qe(re=>{X(_.setMonth(O!=null?O:$,re))||(K(re),Q(!0),b&&b(re))});u.useEffect(()=>{K(re=>B!==null&&re!==B?B:re)},[B]);const Z=qe((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+(N.direction==="ltr"?-1:1))%12),re.preventDefault();break;case"ArrowRight":se((12+me+(N.direction==="ltr"?1:-1))%12),re.preventDefault();break}}),pe=qe((re,me)=>{se(me)}),ne=qe((re,me)=>{H===me&&Q(!1)});return D.jsx(IPe,S({ref:n,className:be(V.root,o),ownerState:F,role:"radiogroup","aria-labelledby":I},R,{children:JE(_,O!=null?O:$).map(re=>{const me=_.getMonth(re),ce=_.format(re,"monthShort"),xe=_.format(re,"month"),ke=me===B,fe=a||X(re);return D.jsx(xPe,{selected:ke,value:me,onClick:te,onKeyDown:Z,autoFocus:Y&&me===H,disabled:fe,tabIndex:me===H?0:-1,onFocus:pe,onBlur:ne,"aria-current":L===me?"date":void 0,"aria-label":xe,monthsPerRow:M,children:ce},ce)})}))});function TPe(e){return Ge("MuiPickersYear",e)}const kg=We("MuiPickersYear",["root","yearButton","selected","disabled"]),_Pe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],$Pe=e=>{const{disabled:t,selected:n,classes:r}=e;return Te({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},TPe,r)},RPe=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"})),OPe=oe("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${kg.disabled}`]:t.disabled},{[`&.${kg.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"},[`&.${kg.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${kg.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),DPe=u.memo(function(t){const n=He({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=ae(n,_Pe),C=u.useRef(null),w=$Pe(n);return u.useEffect(()=>{r&&C.current.focus()},[r]),D.jsx(RPe,S({className:be(w.root,o),ownerState:n},m,{children:D.jsx(OPe,{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 APe(e){return Ge("MuiYearCalendar",e)}We("MuiYearCalendar",["root"]);const LPe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],FPe=e=>{const{classes:t}=e;return Te({root:["root"]},APe,t)};function NPe(e,t){var n;const r=on(),o=em(),s=He({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 BPe=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:T0,maxHeight:uCe,boxSizing:"border-box",position:"relative"}),jPe=u.forwardRef(function(t,n){const r=NPe(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:I}=r,R=ae(r,LPe),{value:O,handleValueChange:T,timezone:A}=rf({name:"YearCalendar",timezone:E,value:i,defaultValue:l,onChange:v,valueManager:os}),z=Ha(A),N=Ud(),_=on(),$=u.useMemo(()=>os.getInitialReferenceValue({value:O,utils:_,props:r,timezone:A,referenceDate:a,granularity:ni.year}),[]),F=r,V=FPe(F),L=u.useMemo(()=>_.getYear(z),[_,z]),B=u.useMemo(()=>O!=null?_.getYear(O):w?null:_.getYear($),[O,_,w,$]),[H,K]=u.useState(()=>B||L),[Y,J]=Qr({name:"YearCalendar",state:"hasFocus",controlled:x,default:o!=null?o:!1}),Q=qe(ce=>{J(ce),P&&P(ce)}),X=u.useCallback(ce=>{if(p&&_.isBeforeYear(ce,z)||f&&_.isAfterYear(ce,z)||y&&_.isBeforeYear(ce,y)||h&&_.isAfterYear(ce,h))return!0;if(!C)return!1;const xe=_.startOfYear(ce);return C(xe)},[f,p,h,y,z,C,_]),te=qe((ce,xe)=>{if(m)return;const ke=_.setYear(O!=null?O:$,xe);T(ke)}),se=qe(ce=>{X(_.setYear(O!=null?O:$,ce))||(K(ce),Q(!0),b==null||b(ce))});u.useEffect(()=>{K(ce=>B!==null&&ce!==B?B:ce)},[B]);const Z=qe((ce,xe)=>{switch(ce.key){case"ArrowUp":se(xe-M),ce.preventDefault();break;case"ArrowDown":se(xe+M),ce.preventDefault();break;case"ArrowLeft":se(xe+(N.direction==="ltr"?-1:1)),ce.preventDefault();break;case"ArrowRight":se(xe+(N.direction==="ltr"?1:-1)),ce.preventDefault();break}}),pe=qe((ce,xe)=>{se(xe)}),ne=qe((ce,xe)=>{H===xe&&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 xe=ce.offsetHeight,ke=ce.offsetTop,fe=re.current.clientHeight,Ie=re.current.scrollTop,ve=ke+xe;xe>fe||ke<Ie||(re.current.scrollTop=ve-fe/2-xe/2)},[o]),D.jsx(BPe,S({ref:me,className:be(V.root,s),ownerState:F,role:"radiogroup","aria-labelledby":I},R,{children:_.getYearRange(y,h).map(ce=>{const xe=_.getYear(ce),ke=xe===B,fe=c||X(ce);return D.jsx(DPe,{selected:ke,value:xe,onClick:te,onKeyDown:Z,autoFocus:Y&&xe===H,disabled:fe,tabIndex:xe===H?0:-1,onFocus:pe,onBlur:ne,"aria-current":L===xe?"date":void 0,yearsPerRow:M,children:_.format(ce,"year")},_.format(ce,"year"))})}))}),zPe=e=>Ge("MuiPickersCalendarHeader",e),VPe=We("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),HPe=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],UPe=["ownerState"],WPe=e=>{const{classes:t}=e;return Te({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},zPe,t)},GPe=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}),KPe=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})),qPe=oe("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),YPe=oe(xr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>S({marginRight:"auto"},e.view==="year"&&{[`.${VPe.switchViewIcon}`]:{transform:"rotate(180deg)"}})),QPe=oe(Wwe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),XPe=u.forwardRef(function(t,n){var r,o,s,i;const l=as(),a=on(),c=He({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:I,labelId:R,className:O,timezone:T}=c,A=ae(c,HPe),z=c,N=WPe(c),_=(r=(o=f==null?void 0:f.switchViewButton)!=null?o:h==null?void 0:h.SwitchViewButton)!=null?r:YPe,$=Kt({elementType:_,externalSlotProps:p==null?void 0:p.switchViewButton,additionalProps:{size:"small","aria-label":l.calendarViewSwitchingButtonAriaLabel(M)},ownerState:z,className:N.switchViewButton}),F=(s=(i=f==null?void 0:f.switchViewIcon)!=null?i:h==null?void 0:h.SwitchViewIcon)!=null?s:QPe,V=Kt({elementType:F,externalSlotProps:p==null?void 0:p.switchViewIcon,ownerState:void 0,className:N.switchViewIcon}),L=ae(V,UPe),B=()=>x(a.addMonths(y,1),"left"),H=()=>x(a.addMonths(y,-1),"right"),K=aCe(y,{disableFuture:m,maxDate:w,timezone:T}),Y=cCe(y,{disablePast:C,minDate:b,timezone:T}),J=()=>{if(!(I.length===1||!P||v))if(I.length===2)P(I.find(Q=>Q!==M)||I[0]);else{const Q=I.indexOf(M)!==0?0:1;P(I[Q])}};return I.length===1&&I[0]==="year"?null:D.jsxs(GPe,S({},A,{ownerState:z,className:be(O,N.root),ref:n,children:[D.jsxs(KPe,{role:"presentation",onClick:J,ownerState:z,"aria-live":"polite",className:N.labelContainer,children:[D.jsx(bB,{reduceAnimations:E,transKey:a.format(y,"monthAndYear"),children:D.jsx(qPe,{id:R,ownerState:z,className:N.label,children:a.format(y,"monthAndYear")})}),I.length>1&&!v&&D.jsx(_,S({},$,{children:D.jsx(F,S({},L))}))]}),D.jsx(Gd,{in:M==="day",children:D.jsx(H3,{slots:f,slotProps:p,onGoToPrevious:H,isPreviousDisabled:Y,previousLabel:l.previousMonth,onGoToNext:B,isNextDisabled:K,nextLabel:l.nextMonth})})]}))}),ZPe=e=>Ge("MuiDateCalendar",e);We("MuiDateCalendar",["root","viewTransitionContainer"]);const JPe=["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"],e2e=e=>{const{classes:t}=e;return Te({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},ZPe,t)};function t2e(e,t){var n,r,o,s,i,l,a;const c=on(),f=em(),p=aB(),h=He({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 n2e=oe($0,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:_0}),r2e=oe(bB,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),wB=u.forwardRef(function(t,n){var r,o,s;const i=on(),l=Yt(),a=t2e(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:I,view:R,views:O,openTo:T,className:A,disabled:z,readOnly:N,minDate:_,maxDate:$,disableHighlightToday:F,focusedView:V,onFocusedViewChange:L,showDaysOutsideCurrentMonth:B,fixedWeekNumber:H,dayOfWeekFormatter:K,components:Y,componentsProps:J,slots:Q,slotProps:X,loading:te,renderLoading:se,displayWeekNumber:Z,yearsPerRow:pe,monthsPerRow:ne,timezone:re}=a,me=ae(a,JPe),{value:ce,handleValueChange:xe,timezone:ke}=rf({name:"DateCalendar",timezone:re,value:p,defaultValue:h,onChange:w,valueManager:os}),{view:fe,setView:Ie,focusedView:ve,setFocusedView:Re,goToNextView:ie,setValueAndGoToNextView:ue}=nm({view:R,views:O,openTo:T,onChange:xe,onViewChange:f,autoFocus:c,focusedView:V,onFocusedViewChange:L}),{referenceDate:we,calendarState:Se,changeFocusedDay:Me,changeMonth:Oe,handleChangeMonth:Ne,isDateDisabled:Ke,onMonthSwitchingAnimationEnd:Ye}=iPe({value:ce,defaultCalendarMonth:C,referenceDate:y,reduceAnimations:P,onMonthChange:x,minDate:_,maxDate:$,shouldDisableDate:M,disablePast:m,disableFuture:v,timezone:ke}),Fe=z&&ce||_,mt=z&&ce||$,Zt=`${l}-grid-label`,Pt=ve!==null,Ve=(r=(o=Q==null?void 0:Q.calendarHeader)!=null?o:Y==null?void 0:Y.CalendarHeader)!=null?r:XPe,ht=Kt({elementType:Ve,externalSlotProps:(s=X==null?void 0:X.calendarHeader)!=null?s:J==null?void 0:J.calendarHeader,additionalProps:{views:O,view:fe,currentMonth:Se.currentMonth,onViewChange:Ie,onMonthChange:(gt,Rt)=>Ne({newMonth:gt,direction:Rt}),minDate:Fe,maxDate:mt,disabled:z,disablePast:m,disableFuture:v,reduceAnimations:P,timezone:ke,labelId:Zt,slots:Q,slotProps:X},ownerState:a}),Be=qe(gt=>{const Rt=i.startOfMonth(gt),vr=i.endOfMonth(gt),lr=Ke(gt)?Op({utils:i,date:gt,minDate:i.isBefore(_,Rt)?Rt:_,maxDate:i.isAfter($,vr)?vr:$,disablePast:m,disableFuture:v,isDateDisabled:Ke,timezone:ke}):gt;lr?(ue(lr,"finish"),x==null||x(Rt)):(ie(),Oe(Rt)),Me(lr,!0)}),Xe=qe(gt=>{const Rt=i.startOfYear(gt),vr=i.endOfYear(gt),lr=Ke(gt)?Op({utils:i,date:gt,minDate:i.isBefore(_,Rt)?Rt:_,maxDate:i.isAfter($,vr)?vr:$,disablePast:m,disableFuture:v,isDateDisabled:Ke,timezone:ke}):gt;lr?(ue(lr,"finish"),b==null||b(lr)):(ie(),Oe(Rt)),Me(lr,!0)}),vt=qe(gt=>xe(gt&&yS(i,gt,ce!=null?ce:we),"finish",fe));u.useEffect(()=>{ce!=null&&i.isValid(ce)&&Oe(ce)},[ce]);const wt=a,_t=e2e(wt),qt={disablePast:m,disableFuture:v,maxDate:$,minDate:_},Qt={disableHighlightToday:F,readOnly:N,disabled:z,timezone:ke,gridLabelId:Zt},Pn=u.useRef(fe);u.useEffect(()=>{Pn.current!==fe&&(ve===Pn.current&&Re(fe,!0),Pn.current=fe)},[ve,Re,fe]);const bn=u.useMemo(()=>[ce],[ce]);return D.jsxs(n2e,S({ref:n,className:be(_t.root,A),ownerState:wt},me,{children:[D.jsx(Ve,S({},ht)),D.jsx(r2e,{reduceAnimations:P,className:_t.viewTransitionContainer,transKey:fe,ownerState:wt,children:D.jsxs("div",{children:[fe==="year"&&D.jsx(jPe,S({},qt,Qt,{value:ce,onChange:Xe,shouldDisableYear:I,hasFocus:Pt,onFocusedViewChange:gt=>Re("year",gt),yearsPerRow:pe,referenceDate:we})),fe==="month"&&D.jsx(MPe,S({},qt,Qt,{hasFocus:Pt,className:A,value:ce,onChange:Be,shouldDisableMonth:E,onFocusedViewChange:gt=>Re("month",gt),monthsPerRow:ne,referenceDate:we})),fe==="day"&&D.jsx(oPe,S({},Se,qt,Qt,{onMonthSwitchingAnimationEnd:Ye,onFocusedDayChange:Me,reduceAnimations:P,selectedDays:bn,onSelectedDaysChange:vt,shouldDisableDate:M,shouldDisableMonth:E,shouldDisableYear:I,hasFocus:Pt,onFocusedViewChange:gt=>Re("day",gt),showDaysOutsideCurrentMonth:B,fixedWeekNumber:H,dayOfWeekFormatter:K,displayWeekNumber:Z,components:Y,componentsProps:J,slots:Q,slotProps:X,loading:te,renderLoading:se}))]})})]}))}),o2e=["props","getOpenDialogAriaText"],s2e=["ownerState"],i2e=["ownerState"],l2e=e=>{var t,n,r,o,s;let{props:i,getOpenDialogAriaText:l}=e,a=ae(e,o2e);const{slots:c,slotProps:f,className:p,sx:h,format:y,formatDensity:v,timezone:m,name:C,label:w,inputRef:b,readOnly:x,disabled:P,autoFocus:M,localeText:E,reduceAnimations:I}=i,R=on(),O=u.useRef(null),T=u.useRef(null),A=Yt(),z=(t=f==null||(n=f.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:N,actions:_,hasUIView:$,layoutProps:F,renderCurrentView:V,shouldRestoreFocus:L,fieldProps:B}=fB(S({},a,{props:i,inputRef:O,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),H=(r=c.inputAdornment)!=null?r:xl,K=Kt({elementType:H,externalSlotProps:f==null?void 0:f.inputAdornment,additionalProps:{position:"end"},ownerState:i}),Y=ae(K,s2e),J=(o=c.openPickerButton)!=null?o:xr,Q=Kt({elementType:J,externalSlotProps:f==null?void 0:f.openPickerButton,additionalProps:{disabled:P||x,onClick:N?_.onClose:_.onOpen,"aria-label":l(B.value,R),edge:Y.position},ownerState:i}),X=ae(Q,i2e),te=c.openPickerIcon,se=c.field,Z=Kt({elementType:se,externalSlotProps:f==null?void 0:f.field,additionalProps:S({},B,z&&{id:A},{readOnly:x,disabled:P,className:p,sx:h,format:y,formatDensity:v,timezone:m,label:w,name:C,autoFocus:M&&!i.open,focused:N?!0:void 0}),ownerState:i});$&&(Z.InputProps=S({},Z.InputProps,{ref:T,[`${Y.position}Adornment`]:D.jsx(H,S({},Y,{children:D.jsx(J,S({},X,{children:D.jsx(te,S({},f==null?void 0:f.openPickerIcon))}))}))}));const pe=S({textField:c.textField,clearIcon:c.clearIcon,clearButton:c.clearButton},Z.slots),ne=(s=c.layout)!=null?s:mB,re=kt(O,Z.inputRef,b);let me=A;z&&(w?me=`${A}-label`:me=void 0);const ce=S({},f,{toolbar:S({},f==null?void 0:f.toolbar,{titleId:A}),popper:S({"aria-labelledby":me},f==null?void 0:f.popper)});return{renderPicker:()=>D.jsxs(XE,{localeText:E,children:[D.jsx(se,S({},Z,{slots:pe,slotProps:ce,inputRef:re})),D.jsx(iSe,S({role:"dialog",placement:"bottom-start",anchorEl:T.current},_,{open:N,slots:c,slotProps:ce,shouldRestoreFocus:L,reduceAnimations:I,children:D.jsx(ne,S({},F,ce==null?void 0:ce.layout,{slots:c,slotProps:ce,children:V()}))}))]})}},cd=({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:I,components:R,componentsProps:O,slots:T,slotProps:A,loading:z,renderLoading:N,disableHighlightToday:_,readOnly:$,disabled:F,showDaysOutsideCurrentMonth:V,dayOfWeekFormatter:L,sx:B,autoFocus:H,fixedWeekNumber:K,displayWeekNumber:Y,timezone:J})=>D.jsx(wB,{view:e,onViewChange:t,views:n.filter(ld),focusedView:r&&ld(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:I,components:R,componentsProps:O,slots:T,slotProps:A,loading:z,renderLoading:N,disableHighlightToday:_,readOnly:$,disabled:F,showDaysOutsideCurrentMonth:V,dayOfWeekFormatter:L,sx:B,autoFocus:H,fixedWeekNumber:K,displayWeekNumber:Y,timezone:J}),a2e=["props","getOpenDialogAriaText"],c2e=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:s}=e,i=ae(e,a2e);const{slots:l,slotProps:a,className:c,sx:f,format:p,formatDensity:h,timezone:y,name:v,label:m,inputRef:C,readOnly:w,disabled:b,localeText:x}=o,P=on(),M=u.useRef(null),E=Yt(),I=(t=a==null||(n=a.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:R,actions:O,layoutProps:T,renderCurrentView:A,fieldProps:z}=fB(S({},i,{props:o,inputRef:M,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),N=l.field,_=Kt({elementType:N,externalSlotProps:a==null?void 0:a.field,additionalProps:S({},z,I&&{id:E},!(b||w)&&{onClick:O.onOpen,onKeyDown:jxe(O.onOpen)},{readOnly:w!=null?w:!0,disabled:b,className:c,sx:f,format:p,formatDensity:h,timezone:y,label:m,name:v}),ownerState:o});_.inputProps=S({},_.inputProps,{"aria-label":s(z.value,P)});const $=S({textField:l.textField},_.slots),F=(r=l.layout)!=null?r:mB,V=kt(M,_.inputRef,C);let L=E;I&&(m?L=`${E}-label`:L=void 0);const B=S({},a,{toolbar:S({},a==null?void 0:a.toolbar,{titleId:E}),mobilePaper:S({"aria-labelledby":L},a==null?void 0:a.mobilePaper)});return{renderPicker:()=>D.jsxs(XE,{localeText:x,children:[D.jsx(N,S({},_,{slots:$,slotProps:B,inputRef:V})),D.jsx(Yxe,S({},O,{open:R,slots:l,slotProps:B,children:D.jsx(F,S({},T,B==null?void 0:B.layout,{slots:l,slotProps:B,children:A()}))}))]})}},hC=({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:I,readOnly:R,disabled:O,sx:T,autoFocus:A,showViewSwitcher:z,disableIgnoringDatePartForTimeValidation:N,timezone:_})=>D.jsx(lxe,{view:e,onViewChange:t,focusedView:n&&Dd(n)?n:null,onFocusedViewChange:r,views:o.filter(Dd),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:I,readOnly:R,disabled:O,sx:T,autoFocus:A,showViewSwitcher:z,disableIgnoringDatePartForTimeValidation:N,timezone:_}),u2e=({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:I,disabled:R,sx:O,autoFocus:T,disableIgnoringDatePartForTimeValidation:A,timeSteps:z,skipDisabled:N,timezone:_})=>D.jsx(mxe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Dd),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:I,disabled:R,sx:O,autoFocus:T,disableIgnoringDatePartForTimeValidation:A,timeStep:z==null?void 0:z.minutes,skipDisabled:N,timezone:_}),d2e=({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:I,disabled:R,sx:O,autoFocus:T,disableIgnoringDatePartForTimeValidation:A,timeSteps:z,skipDisabled:N,timezone:_})=>D.jsx(Mxe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Dd),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:I,disabled:R,sx:O,autoFocus:T,disableIgnoringDatePartForTimeValidation:A,timeSteps:z,skipDisabled:N,timezone:_}),f2e=["views","format"],CB=(e,t)=>{let{views:n,format:r}=t,o=ae(t,f2e);if(r)return r;const s=[],i=[];if(n.forEach(c=>{Dd(c)?i.push(c):s.push(c)}),i.length===0)return JO(e,S({views:s},o),!1);if(s.length===0)return ZO(e,S({views:i},o));const l=ZO(e,S({views:i},o));return`${JO(e,S({views:s},o),!1)} ${l}`},p2e=(e,t,n)=>n?t.filter(r=>!Ql(r)||r==="hours"):e?[...t,"meridiem"]:t,h2e=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function m2e({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e!=null?e:24,s=S({hours:1,minutes:5,seconds:5},n),i=h2e(s,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:s,shouldRenderTimeInASingleColumn:i,views:p2e(t,r,i)}}function g2e(e){return Ge("MuiDateTimePickerTabs",e)}We("MuiDateTimePickerTabs",["root"]);const v2e=e=>ld(e)?"date":"time",y2e=e=>e==="date"?"day":"hours",b2e=e=>{const{classes:t}=e;return Te({root:["root"]},g2e,t)},w2e=oe(w2,{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}`,[`& .${Zg.indicator}`]:{bottom:"auto",top:0}}})),C2e=function(t){const n=He({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=D.jsx(Ywe,{}),onViewChange:o,timeIcon:s=D.jsx(Qwe,{}),view:i,hidden:l=typeof window=="undefined"||window.innerHeight<667,className:a}=n,c=as(),f=b2e(n),p=(h,y)=>{o(y2e(y))};return l?null:D.jsxs(w2e,{ownerState:n,variant:"fullWidth",value:v2e(i),onChange:p,className:be(a,f.root),children:[D.jsx(Yv,{value:"date","aria-label":c.dateTableLabel,icon:D.jsx(u.Fragment,{children:r})}),D.jsx(Yv,{value:"time","aria-label":c.timeTableLabel,icon:D.jsx(u.Fragment,{children:s})})]})};function x2e(e){return Ge("MuiDateTimePickerToolbar",e)}const mC=We("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),S2e=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],P2e=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,x2e,t)},xB=oe(uSe,{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"}));xB.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 E2e=oe("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),SB=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`})}),k2e=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"}));SB.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 dD=oe(uB,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),I2e=oe("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${mC.ampmLabel}`]:t.ampmLabel},{[`&.${mC.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%"},{[`& .${mC.ampmLabel}`]:{fontSize:17}}));function M2e(e){const t=He({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=ae(t,S2e),C=t,w=on(),{meridiemMode:b,handleMeridiemChange:x}=ZE(o,n,s),P=!!(n&&!r),M=v==="desktop",E=as(),I=vn(),R=P2e(S({},C,{theme:I})),O=A=>n?w.format(A,"hours12h"):w.format(A,"hours24h"),T=u.useMemo(()=>o?c?w.formatByString(o,c):w.format(o,"shortDate"):f,[o,c,f,w]);return D.jsxs(xB,S({toolbarTitle:E.dateTimePickerToolbarTitle,isLandscape:l,className:R.root},m,{ownerState:C,children:[D.jsxs(E2e,{className:R.dateContainer,ownerState:C,children:[p.includes("year")&&D.jsx(Gl,{tabIndex:-1,variant:"subtitle1",onClick:()=>a("year"),selected:i==="year",value:o?w.format(o,"year"):"–"}),p.includes("day")&&D.jsx(Gl,{tabIndex:-1,variant:M?"h5":"h4",onClick:()=>a("day"),selected:i==="day",value:T})]}),D.jsxs(SB,{className:R.timeContainer,ownerState:C,children:[D.jsxs(k2e,{className:R.timeDigitsContainer,ownerState:C,children:[p.includes("hours")&&D.jsx(Gl,{variant:M?"h5":"h3",width:M&&!l?up:void 0,onClick:()=>a("hours"),selected:i==="hours",value:o?O(o):"--"}),p.includes("minutes")&&D.jsxs(u.Fragment,{children:[D.jsx(dD,{variant:M?"h5":"h3",value:":",className:R.separator,ownerState:C}),D.jsx(Gl,{variant:M?"h5":"h3",width:M&&!l?up:void 0,onClick:()=>a("minutes"),selected:i==="minutes",value:o?w.format(o,"minutes"):"--"})]}),p.includes("seconds")&&D.jsxs(u.Fragment,{children:[D.jsx(dD,{variant:M?"h5":"h3",value:":",className:R.separator,ownerState:C}),D.jsx(Gl,{variant:M?"h5":"h3",width:M&&!l?up:void 0,onClick:()=>a("seconds"),selected:i==="seconds",value:o?w.format(o,"seconds"):"--"})]})]}),P&&!M&&D.jsxs(I2e,{className:R.ampmSelection,ownerState:C,children:[D.jsx(Gl,{variant:"subtitle2",selected:b==="am",typographyClassName:R.ampmLabel,value:fl(w,"am"),onClick:y?void 0:()=>x("am"),disabled:h}),D.jsx(Gl,{variant:"subtitle2",selected:b==="pm",typographyClassName:R.ampmLabel,value:fl(w,"pm"),onClick:y?void 0:()=>x("pm"),disabled:h})]}),n&&M&&D.jsx(Gl,{variant:"h5",onClick:()=>a("meridiem"),selected:i==="meridiem",value:o&&b?fl(w,b):"--",width:up})]})]}))}function PB(e,t){var n,r,o,s,i,l,a,c,f,p,h;const y=on(),v=em(),m=He({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:rk(m.components),x=(o=m.slotProps)!=null?o:m.componentsProps;return S({},m,sCe({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:M2e,tabs:C2e},b),slotProps:S({},x,{toolbar:S({ampm:C},x==null?void 0:x.toolbar)})})}const T2e=oe("div")({display:"flex",margin:"0 auto"}),tc=({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:I,ampm:R,onMonthChange:O,monthsPerRow:T,onYearChange:A,yearsPerRow:z,defaultCalendarMonth:N,components:_,componentsProps:$,slots:F,slotProps:V,loading:L,renderLoading:B,disableHighlightToday:H,readOnly:K,disabled:Y,showDaysOutsideCurrentMonth:J,dayOfWeekFormatter:Q,sx:X,autoFocus:te,fixedWeekNumber:se,displayWeekNumber:Z,timezone:pe,disableIgnoringDatePartForTimeValidation:ne,timeSteps:re,skipDisabled:me,timeViewsCount:ce,shouldRenderTimeInASingleColumn:xe})=>{var ke,fe;const Ie=!!((ke=$1((fe=V==null?void 0:V.actionBar)!=null?fe:$==null?void 0:$.actionBar,{}))!=null&&(ke=ke.actions)!=null&&ke.length),ve={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:I,ampm:R,components:_,componentsProps:$,slots:F,slotProps:V,readOnly:K,disabled:Y,autoFocus:te,disableIgnoringDatePartForTimeValidation:ne,timeSteps:re,skipDisabled:me,timezone:pe};return D.jsxs(u.Fragment,{children:[D.jsxs(T2e,{children:[D.jsx(wB,{view:ld(e)?e:"day",onViewChange:t,views:n.filter(ld),focusedView:r&&ld(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:T,onYearChange:A,yearsPerRow:z,defaultCalendarMonth:N,components:_,componentsProps:$,slots:F,slotProps:V,loading:L,renderLoading:B,disableHighlightToday:H,readOnly:K,disabled:Y,showDaysOutsideCurrentMonth:J,dayOfWeekFormatter:Q,sx:X,autoFocus:te,fixedWeekNumber:se,displayWeekNumber:Z,timezone:pe}),ce>0&&D.jsxs(u.Fragment,{children:[D.jsx(ch,{orientation:"vertical"}),xe?u2e(S({},ve,{view:"hours",views:["hours"],focusedView:r&&Ql(r)?"hours":null,sx:S({width:"auto",[`&.${cxe.root}`]:{maxHeight:_0}},Array.isArray(X)?X:[X])})):d2e(S({},ve,{view:Ql(e)?e:"hours",views:n.filter(Ql),focusedView:r&&Ql(r)?r:null,sx:S({borderBottom:0,width:"auto",[`.${yxe.root}`]:{maxHeight:"100%"}},Array.isArray(X)?X:[X])}))]})]}),Ie&&D.jsx(ch,{})]})},EB=u.forwardRef(function(t,n){var r,o,s,i,l,a,c;const f=as(),p=on(),h=PB(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:y,thresholdToRenderTimeInASingleColumn:v,views:m,timeSteps:C}=m2e(h),w=!h.viewRenderers||Object.keys(h.viewRenderers).length===0,b=w?{day:tc,month:tc,year:tc,hours:tc,minutes:tc,seconds:tc,meridiem:tc}:S({day:cd,month:cd,year:cd,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:CB(p,h),views:m,yearsPerRow:(o=h.yearsPerRow)!=null?o:4,ampmInClock:x,timeSteps:C,thresholdToRenderTimeInASingleColumn:v,shouldRenderTimeInASingleColumn:y,slots:S({field:yB,openPickerIcon:qwe},h.slots),slotProps:S({},h.slotProps,{field:I=>{var R;return S({},$1((R=h.slotProps)==null?void 0:R.field,I),lB(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}=l2e({props:M,valueManager:os,valueType:"date-time",getOpenDialogAriaText:(a=(c=M.localeText)==null?void 0:c.openDatePickerDialogue)!=null?a:f.openDatePickerDialogue,validator:sk});return E()});EB.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:QF,label:W.node,loading:W.bool,localeText:W.object,maxDate:W.any,maxDateTime:W.any,maxTime:W.any,minDate:W.any,minDateTime:W.any,minTime:W.any,minutesStep:W.number,monthsPerRow:W.oneOf([3,4]),name:W.string,onAccept:W.func,onChange:W.func,onClose:W.func,onError:W.func,onMonthChange:W.func,onOpen:W.func,onSelectedSectionsChange:W.func,onViewChange:W.func,onYearChange:W.func,open:W.bool,openTo:W.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:W.oneOf(["landscape","portrait"]),readOnly:W.bool,reduceAnimations:W.bool,referenceDate:W.any,renderLoading:W.func,selectedSections:W.oneOfType([W.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),W.number,W.shape({endIndex:W.number.isRequired,startIndex:W.number.isRequired})]),shouldDisableClock:W.func,shouldDisableDate:W.func,shouldDisableMonth:W.func,shouldDisableTime:W.func,shouldDisableYear:W.func,showDaysOutsideCurrentMonth:W.bool,skipDisabled:W.bool,slotProps:W.object,slots:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),thresholdToRenderTimeInASingleColumn:W.number,timeSteps:W.shape({hours:W.number,minutes:W.number,seconds:W.number}),timezone:W.string,value:W.any,view:W.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:W.shape({day:W.func,hours:W.func,meridiem:W.func,minutes:W.func,month:W.func,seconds:W.func,year:W.func}),views:W.arrayOf(W.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:W.oneOf([3,4])};const kB=u.forwardRef(function(t,n){var r,o,s,i,l;const a=as(),c=on(),f=PB(t,"MuiMobileDateTimePicker"),p=S({day:cd,month:cd,year:cd,hours:hC,minutes:hC,seconds:hC},f.viewRenderers),h=(r=f.ampmInClock)!=null?r:!1,y=S({},f,{viewRenderers:p,format:CB(c,f),ampmInClock:h,slots:S({field:yB},f.slots),slotProps:S({},f.slotProps,{field:m=>{var C;return S({},$1((C=f.slotProps)==null?void 0:C.field,m),lB(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}=c2e({props:y,valueManager:os,valueType:"date-time",getOpenDialogAriaText:(i=(l=y.localeText)==null?void 0:l.openDatePickerDialogue)!=null?i:a.openDatePickerDialogue,validator:sk});return v()});kB.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:QF,label:W.node,loading:W.bool,localeText:W.object,maxDate:W.any,maxDateTime:W.any,maxTime:W.any,minDate:W.any,minDateTime:W.any,minTime:W.any,minutesStep:W.number,monthsPerRow:W.oneOf([3,4]),name:W.string,onAccept:W.func,onChange:W.func,onClose:W.func,onError:W.func,onMonthChange:W.func,onOpen:W.func,onSelectedSectionsChange:W.func,onViewChange:W.func,onYearChange:W.func,open:W.bool,openTo:W.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:W.oneOf(["landscape","portrait"]),readOnly:W.bool,reduceAnimations:W.bool,referenceDate:W.any,renderLoading:W.func,selectedSections:W.oneOfType([W.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),W.number,W.shape({endIndex:W.number.isRequired,startIndex:W.number.isRequired})]),shouldDisableClock:W.func,shouldDisableDate:W.func,shouldDisableMonth:W.func,shouldDisableTime:W.func,shouldDisableYear:W.func,showDaysOutsideCurrentMonth:W.bool,slotProps:W.object,slots:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),timezone:W.string,value:W.any,view:W.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:W.shape({day:W.func,hours:W.func,minutes:W.func,month:W.func,seconds:W.func,year:W.func}),views:W.arrayOf(W.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:W.oneOf([3,4])};const _2e=["desktopModeMediaQuery"],$2e=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=zxe}=r,s=ae(r,_2e);return H1(o,{defaultMatches:!0})?D.jsx(EB,S({ref:n},s)):D.jsx(kB,S({ref:n},s))});var IB={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(_){var $=["th","st","nd","rd"],F=_%100;return"["+_+($[(F-20)%10]||$[F]||$[0])+"]"}},x=function(_,$,F){var V=String(_);return!V||V.length>=$?_:""+Array($+1-V.length).join(F)+_},P={s:x,z:function(_){var $=-_.utcOffset(),F=Math.abs($),V=Math.floor(F/60),L=F%60;return($<=0?"+":"-")+x(V,2,"0")+":"+x(L,2,"0")},m:function _($,F){if($.date()<F.date())return-_(F,$);var V=12*(F.year()-$.year())+(F.month()-$.month()),L=$.clone().add(V,p),B=F-L<0,H=$.clone().add(V+(B?-1:1),p);return+(-(V+(F-L)/(B?L-H:H-L))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:p,y,w:f,d:c,D:v,h:a,m:l,s:i,ms:s,Q:h}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},M="en",E={};E[M]=b;var I="$isDayjsObject",R=function(_){return _ instanceof z||!(!_||!_[I])},O=function _($,F,V){var L;if(!$)return M;if(typeof $=="string"){var B=$.toLowerCase();E[B]&&(L=B),F&&(E[B]=F,L=B);var H=$.split("-");if(!L&&H.length>1)return _(H[0])}else{var K=$.name;E[K]=$,L=K}return!V&&L&&(M=L),L||!V&&M},T=function(_,$){if(R(_))return _.clone();var F=typeof $=="object"?$:{};return F.date=_,F.args=arguments,new z(F)},A=P;A.l=O,A.i=R,A.w=function(_,$){return T(_,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var z=function(){function _(F){this.$L=O(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[I]=!0}var $=_.prototype;return $.parse=function(F){this.$d=function(V){var L=V.date,B=V.utc;if(L===null)return new Date(NaN);if(A.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var H=L.match(C);if(H){var K=H[2]-1||0,Y=(H[7]||"0").substring(0,3);return B?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(L)}(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 A},$.isValid=function(){return this.$d.toString()!==m},$.isSame=function(F,V){var L=T(F);return this.startOf(V)<=L&&L<=this.endOf(V)},$.isAfter=function(F,V){return T(F)<this.startOf(V)},$.isBefore=function(F,V){return this.endOf(V)<T(F)},$.$g=function(F,V,L){return A.u(F)?this[V]:this.set(L,F)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(F,V){var L=this,B=!!A.u(V)||V,H=A.p(F),K=function(pe,ne){var re=A.w(L.$u?Date.UTC(L.$y,ne,pe):new Date(L.$y,ne,pe),L);return B?re:re.endOf(c)},Y=function(pe,ne){return A.w(L.toDate()[pe].apply(L.toDate("s"),(B?[0,0,0,0]:[23,59,59,999]).slice(ne)),L)},J=this.$W,Q=this.$M,X=this.$D,te="set"+(this.$u?"UTC":"");switch(H){case y:return B?K(1,0):K(31,11);case p:return B?K(1,Q):K(0,Q+1);case f:var se=this.$locale().weekStart||0,Z=(J<se?J+7:J)-se;return K(B?X-Z:X+(6-Z),Q);case c:case v:return Y(te+"Hours",0);case a:return Y(te+"Minutes",1);case l:return Y(te+"Seconds",2);case i:return Y(te+"Milliseconds",3);default:return this.clone()}},$.endOf=function(F){return this.startOf(F,!1)},$.$set=function(F,V){var L,B=A.p(F),H="set"+(this.$u?"UTC":""),K=(L={},L[c]=H+"Date",L[v]=H+"Date",L[p]=H+"Month",L[y]=H+"FullYear",L[a]=H+"Hours",L[l]=H+"Minutes",L[i]=H+"Seconds",L[s]=H+"Milliseconds",L)[B],Y=B===c?this.$D+(V-this.$W):V;if(B===p||B===y){var J=this.clone().set(v,1);J.$d[K](Y),J.init(),this.$d=J.set(v,Math.min(this.$D,J.daysInMonth())).$d}else K&&this.$d[K](Y);return this.init(),this},$.set=function(F,V){return this.clone().$set(F,V)},$.get=function(F){return this[A.p(F)]()},$.add=function(F,V){var L,B=this;F=Number(F);var H=A.p(V),K=function(Q){var X=T(B);return A.w(X.date(X.date()+Math.round(Q*F)),B)};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=(L={},L[l]=r,L[a]=o,L[i]=n,L)[H]||1,J=this.$d.getTime()+F*Y;return A.w(J,this)},$.subtract=function(F,V){return this.add(-1*F,V)},$.format=function(F){var V=this,L=this.$locale();if(!this.isValid())return L.invalidDate||m;var B=F||"YYYY-MM-DDTHH:mm:ssZ",H=A.z(this),K=this.$H,Y=this.$m,J=this.$M,Q=L.weekdays,X=L.months,te=L.meridiem,se=function(ne,re,me,ce){return ne&&(ne[re]||ne(V,B))||me[re].slice(0,ce)},Z=function(ne){return A.s(K%12||12,ne,"0")},pe=te||function(ne,re,me){var ce=ne<12?"AM":"PM";return me?ce.toLowerCase():ce};return B.replace(w,function(ne,re){return re||function(me){switch(me){case"YY":return String(V.$y).slice(-2);case"YYYY":return A.s(V.$y,4,"0");case"M":return J+1;case"MM":return A.s(J+1,2,"0");case"MMM":return se(L.monthsShort,J,X,3);case"MMMM":return se(X,J);case"D":return V.$D;case"DD":return A.s(V.$D,2,"0");case"d":return String(V.$W);case"dd":return se(L.weekdaysMin,V.$W,Q,2);case"ddd":return se(L.weekdaysShort,V.$W,Q,3);case"dddd":return Q[V.$W];case"H":return String(K);case"HH":return A.s(K,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return pe(K,Y,!0);case"A":return pe(K,Y,!1);case"m":return String(Y);case"mm":return A.s(Y,2,"0");case"s":return String(V.$s);case"ss":return A.s(V.$s,2,"0");case"SSS":return A.s(V.$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,V,L){var B,H=this,K=A.p(V),Y=T(F),J=(Y.utcOffset()-this.utcOffset())*r,Q=this-Y,X=function(){return A.m(H,Y)};switch(K){case y:B=X()/12;break;case p:B=X();break;case h:B=X()/3;break;case f:B=(Q-J)/6048e5;break;case c:B=(Q-J)/864e5;break;case a:B=Q/o;break;case l:B=Q/r;break;case i:B=Q/n;break;default:B=Q}return L?B:A.a(B)},$.daysInMonth=function(){return this.endOf(p).$D},$.$locale=function(){return E[this.$L]},$.locale=function(F,V){if(!F)return this.$L;var L=this.clone(),B=O(F,V,!0);return B&&(L.$L=B),L},$.clone=function(){return A.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()},_}(),N=z.prototype;return T.prototype=N,[["$ms",s],["$s",i],["$m",l],["$H",a],["$W",c],["$M",p],["$y",y],["$D",v]].forEach(function(_){N[_[1]]=function($){return this.$g($,_[0],_[1])}}),T.extend=function(_,$){return _.$i||(_($,z,T),_.$i=!0),T},T.locale=O,T.isDayjs=R,T.unix=function(_){return T(1e3*_)},T.en=E[M],T.Ls=E,T.p={},T})})(IB);var R2e=IB.exports;const $r=pi(R2e);function O2e(o){var s=o,{onChange:e,error:t,helperText:n}=s,r=At(s,["onChange","error","helperText"]);return u.createElement(ze,{},u.createElement($2e,st(ye({},o0(r,i=>i&&i instanceof Date?$r(i):i!=null?i:null)),{sx:ye({width:"100%",color:"error.main"},r.sx),onChange(i){e(i&&new Date(i),{was:r.value,event:void 0})}})),n&&u.createElement(Kd,{error:t},n))}function Eh(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)=>pfe(ye({},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 I;return Ze.defaults(P,(I=fD[x])==null?void 0:I.field)})};i==null||i({isEqual:KN});const[v,m]=u.useState();return u.createElement(u.Fragment,{},e&&u.createElement(Q4,{sx:{ml:1}},e),t&&u.createElement(Kd,{},t),u.createElement(ze,ye({},c),u.createElement(B3,{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=fD[w.$type])==null?void 0:x.column;return ye(ye(ye({field:w.k,headerName:(P=w.headerName)!=null?P:typeof w.label=="string"?w.label:c5(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:HE,title:w,size:"small",onClick:b=>ph({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:z3,title:"Undo",size:"small",onClick:b=>C(v,b)}))},getActions({row:w}){const{$idx:b=w.id}=w,x="Modify";return[u.createElement(Sg,{icon:u.createElement(WE),label:x,title:x,onClick(P){ph({values:w,form:y,title:x}).then(M=>{M&&C(r.map((E,I)=>I===b?M:E),P)})}}),u.createElement(Sg,{icon:u.createElement($l),label:"Delete",showInMenu:l,onClick:P=>C(r.filter((M,E)=>E!==b),P)}),l&&b&&u.createElement(Sg,{icon:u.createElement(qE),label:"Move up",showInMenu:!0,onClick:P=>C(sO(r.slice(),b,b-1),P)}),l&&b<h.length-1&&u.createElement(Sg,{icon:u.createElement(j3),label:"Move down",showInMenu:!0,onClick:P=>C(sO(r.slice(),b,b+1),P)})].filter(Boolean)}}]})));function C(w,b){o(w,{was:r,event:b}),m(r)}}const fD={dateTime:{field:{comp:O2e},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 ik={},D2e=et;Object.defineProperty(ik,"__esModule",{value:!0});var MB=ik.default=void 0,A2e=D2e(tt()),L2e=Je();MB=ik.default=(0,A2e.default)((0,L2e.jsx)("path",{d:"M5 17h14v2H5zm7-12L5.33 15h13.34z"}),"Eject");var lk={},F2e=et;Object.defineProperty(lk,"__esModule",{value:!0});var TB=lk.default=void 0,N2e=F2e(tt()),B2e=Je();TB=lk.default=(0,N2e.default)((0,B2e.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3z"}),"CreateNewFolder");var ak={},j2e=et;Object.defineProperty(ak,"__esModule",{value:!0});var _B=ak.default=void 0,z2e=j2e(tt()),V2e=Je();_B=ak.default=(0,z2e.default)((0,V2e.jsx)("path",{d:"M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z"}),"VerticalAlignTop");const H2e=["element"];function U2e(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}function W2e(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 G2e(e){const t=u.useRef(null);return u.useEffect(()=>{t.current=e},[e]),t.current}const pD=()=>{};function K2e(e){const[,t]=u.useState(),{registerDescendant:n=pD,unregisterDescendant:r=pD,descendants:o=[],parentId:s=null}=u.useContext($B),i=U2e(o,c=>c.element===e.element),l=G2e(o),a=o.some((c,f)=>l&&l[f]&&l[f].element!==c.element);return Lt(()=>{if(e.element)return n(S({},e,{index:i})),()=>{r(e.element)};t({})},[n,r,i,a,e]),{parentId:s,index:i}}function RB(e){const{children:t,id:n}=e,[r,o]=u.useState([]),s=u.useCallback(a=>{let{element:c}=a,f=ae(a,H2e);o(p=>{if(p.length===0)return[S({},f,{element:c,index:0})];const h=W2e(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 OB={instance:null,multiSelect:!1,disabledItemsFocusable:!1,treeId:void 0,icons:{defaultCollapseIcon:null,defaultExpandIcon:null,defaultParentIcon:null,defaultEndIcon:null}},DB=u.createContext(OB),AB=()=>u.useContext(DB);function q2e(e){const{instance:t,multiSelect:n}=AB(),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 Y2e=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],LB=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=ae(t,Y2e),{disabled:y,expanded:v,selected:m,focused:C,handleExpansion:w,handleSelection:b,preventSelection:x}=q2e(c),P=l||i||s,M=I=>{x(I),p&&p(I)},E=I=>{w(I),b(I),f&&f(I)};return D.jsxs("div",S({},h,{className:be(o,r.root,v&&r.expanded,m&&r.selected,C&&r.focused,y&&r.disabled),onClick:E,onMouseDown:M,ref:n,children:[D.jsx("div",{className:r.iconContainer,children:P}),D.jsx("div",{className:r.label,children:a})]}))});function Q2e(e){return Ge("MuiTreeItem",e)}const Kl=We("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),X2e=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],Z2e=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"]},Q2e,t)},J2e=oe("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),eEe=oe(LB,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Kl.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Kl.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"}},[`&.${Kl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Kl.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Kl.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)}},[`&.${Kl.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)}},[`& .${Kl.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Kl.label}`]:S({paddingLeft:4,width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1)})),tEe=oe(Hv,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),CS=u.forwardRef(function(t,n){const r=He({props:t,name:"MuiTreeItem"}),{children:o,className:s,collapseIcon:i,ContentComponent:l=LB,ContentProps:a,endIcon:c,expandIcon:f,disabled:p,icon:h,id:y,label:v,nodeId:m,onClick:C,onMouseDown:w,TransitionComponent:b=Hv,TransitionProps:x}=r,P=ae(r,X2e),{icons:M,multiSelect:E,disabledItemsFocusable:I,treeId:R,instance:O}=AB();let T;y!=null?T=y:R&&m&&(T=`${R}-${m}`);const[A,z]=u.useState(null),N=u.useRef(null),_=kt(z,n),$=u.useMemo(()=>({element:A,id:m}),[m,A]),{index:F,parentId:V}=K2e($),L=!!(Array.isArray(o)?o.length:o),B=O?O.isNodeExpanded(m):!1,H=O?O.isNodeFocused(m):!1,K=O?O.isNodeSelected(m):!1,Y=O?O.isNodeDisabled(m):!1,J=S({},r,{expanded:B,focused:H,selected:K,disabled:Y}),Q=Z2e(J);let X,te;L&&(B?te=i||M.defaultCollapseIcon:te=f||M.defaultExpandIcon),L?X=M.defaultParentIcon:X=c||M.defaultEndIcon,u.useEffect(()=>{if(O&&F!==-1)return O.updateNode({id:m,idAttribute:T,index:F,parentId:V,expandable:L,disabled:p}),()=>O.removeNode(m)},[O,V,F,m,L,p,T]),u.useEffect(()=>{if(O&&v){var pe,ne;return O.mapFirstChar(m,((pe=(ne=N.current)==null?void 0:ne.textContent)!=null?pe:"").substring(0,1).toLowerCase())}},[O,m,v]);let se;E?se=K:K&&(se=!0);function Z(pe){if(pe.target===pe.currentTarget){let re;typeof pe.target.getRootNode=="function"?re=pe.target.getRootNode():re=pn(pe.target),re.getElementById(R).focus({preventScroll:!0})}const ne=!I&&Y;O&&!H&&pe.currentTarget===pe.target&&!ne&&O.focusNode(pe,m)}return D.jsxs(J2e,S({className:be(Q.root,s),role:"treeitem","aria-expanded":L?B:void 0,"aria-selected":se,"aria-disabled":Y||void 0,id:T,tabIndex:-1},P,{ownerState:J,onFocus:Z,ref:_,children:[D.jsx(eEe,S({as:l,ref:N,classes:{root:Q.content,expanded:Q.expanded,selected:Q.selected,focused:Q.focused,disabled:Q.disabled,iconContainer:Q.iconContainer,label:Q.label},label:v,nodeId:m,onClick:C,onMouseDown:w,icon:h,expansionIcon:te,displayIcon:X,ownerState:J},a)),o&&D.jsx(RB,{id:m,children:D.jsx(tEe,S({as:b,unmountOnExit:!0,className:Q.group,in:B,component:"ul",role:"group"},x,{children:o}))})]}))});function nEe(e){return Ge("MuiTreeView",e)}We("MuiTreeView",["root"]);const rEe=(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 oEe{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 gC=(e,t)=>{const n=e.getNode(t),r=e.getNavigableChildrenIds(n.parentId),o=r.indexOf(t);if(o===0)return n.parentId;let s=r[o-1];for(;e.isNodeExpanded(s)&&e.getNavigableChildrenIds(s).length>0;)s=e.getNavigableChildrenIds(s).pop();return s},dp=(e,t)=>{if(e.isNodeExpanded(t)&&e.getNavigableChildrenIds(t).length>0)return e.getNavigableChildrenIds(t)[0];let n=e.getNode(t);for(;n!=null;){const r=e.getNavigableChildrenIds(n.parentId),o=r[r.indexOf(n.id)+1];if(o)return o;n=e.getNode(n.parentId)}return null},xS=e=>{let t=e.getNavigableChildrenIds(null).pop();for(;e.isNodeExpanded(t);)t=e.getNavigableChildrenIds(t).pop();return t},SS=e=>e.getNavigableChildrenIds(null)[0],of=(e,t)=>{Object.assign(e,t)},sEe=e=>e.isPropagationStopped!==void 0,iEe=({instance:e})=>{const[t]=u.useState(()=>new oEe),n=u.useCallback((...o)=>{const[s,i,l={}]=o;l.defaultMuiPrevented=!1,!(sEe(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})},lEe=[iEe],aEe=e=>{const t=[...lEe,...e.plugins],n=t.reduce((v,m)=>m.getDefaultizedParams?m.getDefaultizedParams(v):v,e),r=rEe(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=OB;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 cEe(e){const{value:t,children:n}=e;return D.jsx(DB.Provider,{value:t,children:D.jsx(RB,{children:n})})}const uEe=(e,t,n)=>{e.$$publishEvent(t,n)},dEe=({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,uEe(e,"removeNode",{id:c})},[e]),i=u.useCallback(c=>{if(c==null)return!1;let f=e.getNode(c);if(!f)return!1;if(f.disabled)return!0;for(;f.parentId!=null;)if(f=e.getNode(f.parentId),f.disabled)return!0;return!1},[e]),l=qe(c=>Object.values(n.current).filter(f=>f.parentId===c).sort((f,p)=>f.index-p.index).map(f=>f.id));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})},ck=({instance:e,params:t,models:n})=>{const r=u.useCallback(l=>Array.isArray(n.expanded.value)?n.expanded.value.indexOf(l)!==-1:!1,[n.expanded.value]),o=u.useCallback(l=>{var a;return!!((a=e.getNode(l))!=null&&a.expandable)},[e]),s=qe((l,a)=>{if(a==null)return;let c;n.expanded.value.indexOf(a)!==-1?c=n.expanded.value.filter(f=>f!==a):c=[a].concat(n.expanded.value),t.onNodeToggle&&t.onNodeToggle(l,c),n.expanded.setValue(c)});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))}})};ck.models={expanded:{controlledProp:"expanded",defaultProp:"defaultExpanded"}};const fEe=[];ck.getDefaultizedParams=e=>{var t;return S({},e,{defaultExpanded:(t=e.defaultExpanded)!=null?t:fEe})};const pEe=(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]},uk=({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]=pEe(e,v,m),b=[C];let x=C;for(;x!==w;)x=dp(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:xS(e)})},rangeSelectToFirst:(v,m)=>{r.current||(r.current=m);const C=o.current?r.current:m;e.selectRange(v,{start:C,end:SS(e)})}}),{getRootProps:()=>({"aria-multiselectable":t.multiSelect})}};uk.models={selected:{controlledProp:"selected",defaultProp:"defaultSelected"}};const hEe=[];uk.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?hEe:null})};const hD=1e3;class mEe{constructor(t=hD){this.timeouts=new Map,this.cleanupTimeout=hD,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 vEe{}function yEe(e){let t=0;return function(r,o,s){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new gEe:new mEe);const[i]=u.useState(new vEe),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 bEe={registry:null},wEe=yEe(bEe),dk=({instance:e,params:t,state:n,setState:r,models:o,rootRef:s})=>{const i=qe(y=>{const v=typeof y=="function"?y(n.focusedNodeId):y;r(m=>S({},m,{focusedNodeId:v}))}),l=u.useCallback(y=>n.focusedNodeId===y,[n.focusedNodeId]),a=qe((y,v)=>{v&&(i(v),t.onNodeFocus&&t.onNodeFocus(y,v))});of(e,{isNodeFocused:l,focusNode:a}),wEe(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})}};dk.getInitialState=()=>({focusedNodeId:null});dk.getDefaultizedParams=e=>{var t;return S({},e,{disabledItemsFocusable:(t=e.disabledItemsFocusable)!=null?t:!1})};function CEe(e){return e&&e.length===1&&e.match(/\S/)}function mD(e,t,n){for(let r=t;r<e.length;r+=1)if(n===e[r])return r;return-1}const xEe=({instance:e,params:t,state:n})=>{const o=vn().direction==="rtl",s=u.useRef({}),i=qe((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,dp(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),I=E.parentId?e.isNodeExpanded(E.parentId):!0,R=t.disabledItemsFocusable?!1:e.isNodeDisabled(M);I&&!R&&(x.push(M),P.push(s.current[M]))}),C=x.indexOf(v)+1,C>=x.length&&(C=0),w=mD(P,C,b),w===-1&&(w=mD(P,0,b)),w>-1&&e.focusNode(y,x[w])},f=(y,v)=>{e.isNodeDisabled(dp(e,v))||e.selectRange(y,{end:dp(e,v),current:v},!0)},p=(y,v)=>{e.isNodeDisabled(gC(e,v))||e.selectRange(y,{end:gC(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,dp(e,n.focusedNodeId)),C=!0;break;case"ArrowUp":t.multiSelect&&v.shiftKey&&!t.disableSelection&&p(v,n.focusedNodeId),e.focusNode(v,gC(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,SS(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,xS(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:SS(e),end:xS(e)}),C=!0):!b&&!v.shiftKey&&CEe(w)&&(c(v,n.focusedNodeId,w),C=!0)}C&&(v.preventDefault(),v.stopPropagation())};return{getRootProps:y=>({onKeyDown:h(y)})}},SEe=({instance:e,params:t})=>{const n=Yt(t.id);return{getRootProps:()=>({id:n}),contextValue:{treeId:n,instance:e,multiSelect:t.multiSelect,disabledItemsFocusable:t.disabledItemsFocusable,icons:{defaultCollapseIcon:t.defaultCollapseIcon,defaultEndIcon:t.defaultEndIcon,defaultExpandIcon:t.defaultExpandIcon,defaultParentIcon:t.defaultParentIcon}}}},PEe=[dEe,ck,uk,dk,xEe,SEe],EEe=["disabledItemsFocusable","expanded","defaultExpanded","onNodeToggle","onNodeFocus","disableSelection","defaultSelected","selected","multiSelect","onNodeSelect","id","defaultCollapseIcon","defaultEndIcon","defaultExpandIcon","defaultParentIcon","children"],kEe=e=>{const{classes:t}=e;return Te({root:["root"]},nEe,t)},gD=oe("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0}),FB=u.forwardRef(function(t,n){const r=He({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=ae(s,EEe),{getRootProps:I,contextValue:R}=aEe({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:PEe,rootRef:n}),O=kEe(r),T=Kt({elementType:gD,externalSlotProps:{},externalForwardedProps:E,className:O.root,getSlotProps:I,ownerState:o});return D.jsx(cEe,{value:R,children:D.jsx(gD,S({},T,{children:M}))})});var fk={},IEe=et;Object.defineProperty(fk,"__esModule",{value:!0});var NB=fk.default=void 0,MEe=IEe(tt()),TEe=Je();NB=fk.default=(0,MEe.default)((0,TEe.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");var pk={},_Ee=et;Object.defineProperty(pk,"__esModule",{value:!0});var BB=pk.default=void 0,$Ee=_Ee(tt()),REe=Je();BB=pk.default=(0,$Ee.default)((0,REe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");var hk={},OEe=et;Object.defineProperty(hk,"__esModule",{value:!0});var jB=hk.default=void 0,DEe=OEe(tt()),vD=Je();jB=hk.default=(0,DEe.default)([(0,vD.jsx)("path",{d:"M2 16.5C2 19.54 4.46 22 7.5 22s5.5-2.46 5.5-5.5V10H2zm5.5 2C6.12 18.5 5 17.83 5 17h5c0 .83-1.12 1.5-2.5 1.5M10 13c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m-5 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1"},"0"),(0,vD.jsx)("path",{d:"M11 3v6h3v2.5c0-.83 1.12-1.5 2.5-1.5s2.5.67 2.5 1.5h-5v2.89c.75.38 1.6.61 2.5.61 3.04 0 5.5-2.46 5.5-5.5V3zm3 5.08c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1c0 .56-.45 1-1 1m5 0c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1c0 .56-.45 1-1 1"},"1")],"TheaterComedy");var mk={},AEe=et;Object.defineProperty(mk,"__esModule",{value:!0});var zB=mk.default=void 0,LEe=AEe(tt()),FEe=Je();zB=mk.default=(0,LEe.default)((0,FEe.jsx)("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"Folder");var gk={},NEe=et;Object.defineProperty(gk,"__esModule",{value:!0});var VB=gk.default=void 0,BEe=NEe(tt()),jEe=Je();VB=gk.default=(0,BEe.default)((0,jEe.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link");var vk={},zEe=et;Object.defineProperty(vk,"__esModule",{value:!0});var HB=vk.default=void 0,VEe=zEe(tt()),HEe=Je();HB=vk.default=(0,VEe.default)((0,HEe.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zM6 20V4h7v5h5v11z"}),"InsertDriveFileOutlined");var yk={},UEe=et;Object.defineProperty(yk,"__esModule",{value:!0});var UB=yk.default=void 0,WEe=UEe(tt()),GEe=Je();UB=yk.default=(0,WEe.default)((0,GEe.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"RemoveRedEye");var bk={},KEe=et;Object.defineProperty(bk,"__esModule",{value:!0});var WB=bk.default=void 0,qEe=KEe(tt()),YEe=Je();WB=bk.default=(0,qEe.default)((0,YEe.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-5 14H4v-4h11zm0-5H4V9h11zm5 5h-4V9h4z"}),"Web");var wk={},QEe=et;Object.defineProperty(wk,"__esModule",{value:!0});var GB=wk.default=void 0,XEe=QEe(tt()),ZEe=Je();GB=wk.default=(0,XEe.default)((0,ZEe.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96"}),"Cloud");var Ck={},JEe=et;Object.defineProperty(Ck,"__esModule",{value:!0});var KB=Ck.default=void 0,eke=JEe(tt()),tke=Je();KB=Ck.default=(0,eke.default)((0,tke.jsx)("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"HighlightOff");var xk={},nke=et;Object.defineProperty(xk,"__esModule",{value:!0});var qB=xk.default=void 0;ske(u);var rke=nke(tt()),oke=Je();function YB(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(YB=function(r){return r?n:t})(e)}function ske(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=YB(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var i=o?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(r,s,i):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}qB=xk.default=(0,rke.default)((0,oke.jsx)("path",{d:"M2 3h9v9H2V3m9 19H2v-9h9v9M21 3v9h-9V3h9m0 19h-9v-9h9v9Z"}),"Microsoft");let Ig;function ike(){const{close:e}=po({title:"Add files or folders",dialogProps:{sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){const t=Sk();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(Z6,{from:Ig!=null?Ig: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])));Ig=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 lke(){return rt(this,null,function*(){try{const e=yield Wh("Enter folder name");if(!e)return;const{id:t}=Sk(),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 ake(){return rt(this,null,function*(){try{const{id:e}=Sk(),t=yield ct("add_vfs",{parent:e,name:"new link",url:"https://google.com"});Ra([e+encodeURI(t.name)]),or("Link created","success",{onClose:()=>ny("input[name=url]")})}catch(e){yield Et(e)}})}function Sk(){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,ye({id:a,"aria-controls":i?c:void 0,"aria-haspopup":"true","aria-expanded":i?!0:void 0,onClick:f=>{s(f.currentTarget)}},t)),u.createElement(lN,{id:c,anchorEl:o,open:i,onClose:l,MenuListProps:{"aria-labelledby":a},children:e.map((f,p)=>u.createElement(Pr,st(ye({key:p},f),{onClick(){var h;l(),(h=f.onClick)==null||h.apply(this,arguments)}})))}))}var Pk={},cke=et;Object.defineProperty(Pk,"__esModule",{value:!0});var XB=Pk.default=void 0,uke=cke(tt()),dke=Je();XB=Pk.default=(0,uke.default)((0,dke.jsx)("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"}),"RestartAlt");function PS(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(Uc,st(ye(ye({values:a,set(y,v){c(m=>st(ye({},m),{[v]:y}))},save:n?!1:{onClick:h,sx:Xd(f)}},Array.isArray(p)?{fields:p}:p),o),{barSx:ye({gap:1},o.barSx),addToBar:[u.createElement(dn,{icon:XB,disabled:!f,title:"Reset",onClick(){c(l.data)}}),...o.addToBar||[]]}));function h(){return ct("set_config",{values:a}).then(r).then(l.reload)}}function ES(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=gfe(e),{list:c,loading:f}=El("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(zh,ye({value:e,options:p,isOptionEqualToValue:(h,y)=>h===y||h===y+"/",loading:f,disableClearable:!0,renderInput:h=>u.createElement(ja,st(ye(ye({helperText:n,placeholder:"home",onChange(y){const v=y.target.value;(v.endsWith("/")||!v)&&t(v,{was:e,event:y})},onBlur(y){const v=y.target.value+"/";p.includes(v)&&t(v,{was:e,event:y})}},h),s),{InputLabelProps:ye(ye({shrink:!0},h.InputLabelProps),s.InputLabelProps)})),onChange:(h,y)=>t(y,{was:e,event:h})},o))}function fke({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(HE),items:[{children:"from disk",onClick:ike},{children:"virtual folder",onClick:lke},{children:"web-link",onClick:ake}]},"Add"),u.createElement(_o,{variant:"outlined",onClick:o},"Roots"),h0(()=>Ra()),t&&u.createElement(_o,ye({icon:qB,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 Wh(l,{field:{comp:ES,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(PS,{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:Eh,fields:[{k:"host",label:"Domain/Host",helperText:"Wildcards supported: domain.*|other.*"},{k:"root",label:"Home/Root",comp:ES,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 Ek=Symbol.for("yaml.alias"),kS=Symbol.for("yaml.document"),Sa=Symbol.for("yaml.map"),ZB=Symbol.for("yaml.pair"),kl=Symbol.for("yaml.scalar"),sf=Symbol.for("yaml.seq"),Ns=Symbol.for("yaml.node.type"),Kc=e=>!!e&&typeof e=="object"&&e[Ns]===Ek,lf=e=>!!e&&typeof e=="object"&&e[Ns]===kS,af=e=>!!e&&typeof e=="object"&&e[Ns]===Sa,Fn=e=>!!e&&typeof e=="object"&&e[Ns]===ZB,Sn=e=>!!e&&typeof e=="object"&&e[Ns]===kl,cf=e=>!!e&&typeof e=="object"&&e[Ns]===sf;function zn(e){if(e&&typeof e=="object")switch(e[Ns]){case Sa:case sf:return!0}return!1}function sr(e){if(e&&typeof e=="object")switch(e[Ns]){case Ek:case Sa:case kl:case sf:return!0}return!1}const pke=e=>(Sn(e)||zn(e))&&!!e.anchor,xo=Symbol("break visit"),JB=Symbol("skip children"),Bi=Symbol("remove node");function _a(e,t){const n=e6(t);lf(e)?Gu(null,e.contents,n,Object.freeze([e]))===Bi&&(e.contents=null):Gu(null,e,n,Object.freeze([]))}_a.BREAK=xo;_a.SKIP=JB;_a.REMOVE=Bi;function Gu(e,t,n,r){const o=t6(e,t,n,r);if(sr(o)||Fn(o))return n6(e,r,o),Gu(e,o,n,r);if(typeof o!="symbol"){if(zn(t)){r=Object.freeze(r.concat(t));for(let s=0;s<t.items.length;++s){const i=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=Gu("key",t.key,n,r);if(s===xo)return xo;s===Bi&&(t.key=null);const i=Gu("value",t.value,n,r);if(i===xo)return xo;i===Bi&&(t.value=null)}}return o}function O0(e,t){return rt(this,null,function*(){const n=e6(t);lf(e)?(yield Ku(null,e.contents,n,Object.freeze([e])))===Bi&&(e.contents=null):yield Ku(null,e,n,Object.freeze([]))})}O0.BREAK=xo;O0.SKIP=JB;O0.REMOVE=Bi;function Ku(e,t,n,r){return rt(this,null,function*(){const o=yield t6(e,t,n,r);if(sr(o)||Fn(o))return n6(e,r,o),Ku(e,o,n,r);if(typeof o!="symbol"){if(zn(t)){r=Object.freeze(r.concat(t));for(let s=0;s<t.items.length;++s){const i=yield Ku(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 Ku("key",t.key,n,r);if(s===xo)return xo;s===Bi&&(t.key=null);const i=yield Ku("value",t.value,n,r);if(i===xo)return xo;i===Bi&&(t.value=null)}}return o})}function e6(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 t6(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(Kc(t))return(a=n.Alias)==null?void 0:a.call(n,e,t,r)}function n6(e,t,n){const r=t[t.length-1];if(zn(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=Kc(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const hke={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},mke=e=>e.replace(/[!,[\]{}]/g,t=>hke[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+mke(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&&sr(t.contents)){const s={};_a(t.contents,(i,l)=>{sr(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 r6(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 o6(e){const t=new Set;return _a(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function s6(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function gke(e,t){const n=[],r=new Map;let o=null;return{onAnchor:s=>{n.push(s),o||(o=o6(e));const i=s6(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)||zn(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 qu(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=qu(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=qu(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=qu(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=qu(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||!pke(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 kk{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"?qu(s,{"":l},"",l):l}}class D0 extends kk{constructor(t){super(Ek),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return _a(t,{Node:(r,o)=>{if(o===this)return _a.BREAK;o.anchor===this.source&&(n=o)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:o,maxAliasCount:s}=n,i=this.resolve(o);if(!i){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(a)}let l=r.get(i);if(l||(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=ov(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(r6(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 ov(e,t,n){if(Kc(t)){const r=t.resolve(e),o=n&&r&&n.get(r);return o?o.count*o.aliasCount:0}else if(zn(t)){let r=0;for(const o of t.items){const s=ov(e,o,n);s>r&&(r=s)}return r}else if(Fn(t)){const r=ov(e,t.key,n),o=ov(e,t.value,n);return Math.max(r,o)}return 1}const i6=e=>!e||typeof e!="function"&&typeof e!="object";class $t extends kk{constructor(t){super(kl),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 vke="tag:yaml.org,2002:";function yke(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 kh(e,t,n){var p,h,y;if(lf(e)&&(e=e.contents),sr(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 D0(a.anchor);a={anchor:null,node:null},l.set(e,a)}t!=null&&t.startsWith("!!")&&(t=vke+t.slice(2));let c=yke(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 Cy(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 kh(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const fp=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class A0 extends kk{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=>sr(r)||Fn(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(fp(t))this.add(n);else{const[r,...o]=t,s=this.get(r,!0);if(zn(s))s.addIn(o,n);else if(s===void 0&&this.schema)this.set(r,Cy(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(zn(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:zn(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 zn(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(zn(s))s.setIn(o,n);else if(s===void 0&&this.schema)this.set(r,Cy(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}}A0.maxFlowStringSingleLineLength=60;const bke=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function pl(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const da=(e,t,n)=>e.endsWith(`
|
|
625
|
-
`)?pl(n,t):n.includes(`
|
|
626
|
-
`)?`
|
|
627
|
-
`+pl(n,t):(e.endsWith(" ")?"":" ")+n,l6="flow",IS="block",sv="quoted";function L0(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===IS&&(m=yD(e,m),m!==-1&&(p=m+a));for(let x;x=e[m+=1];){if(n===sv&&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===IS&&(m=yD(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===sv){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===sv&&f[P]&&(b+=`${e[P]}\\`),b+=`
|
|
632
|
-
${t}${e.slice(P+1,M)}`)}return b}function yD(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 F0=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),N0=e=>/^(%|---|\.\.\.)/m.test(e);function wke(e,t,n){if(!t||t<0)return!1;const r=t-n,o=e.length;if(o<=r)return!1;for(let s=0,i=0;s<o;++s)if(e[s]===`
|
|
634
|
-
`){if(s-i>r)return!0;if(i=s+1,o-i<=r)return!1}return!0}function Dp(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(N0(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:L0(i,s,sv,F0(t,!1))}function MS(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|
638
|
-
`)||/[ \t]\n|\n[ \t]/.test(e))return Dp(e,t);const n=t.indent||(N0(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
639
|
-
${n}`)+"'";return t.implicitKey?r:L0(r,n,l6,F0(t,!1))}function Yu(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=Dp;else{const o=e.includes('"'),s=e.includes("'");o&&!s?r=MS:s&&!o?r=Dp:r=n?MS:Dp}return r(e,t)}let TS;try{TS=new RegExp(`(^|(?<!
|
|
640
|
-
))
|
|
641
|
-
+(?!
|
|
642
|
-
|$)`,"g")}catch(e){TS=/\n+(?!\n|$)/g}function iv({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 Yu(n,r);const c=r.indent||(r.forceBlockIndent||N0(n)?" ":""),f=i==="literal"?!0:i==="folded"||t===$t.BLOCK_FOLDED?!1:t===$t.BLOCK_LITERAL?!0:!wke(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(TS,`$&${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=L0(`${b}${n}${y}`,c,IS,F0(r,!0));return`${P}
|
|
651
|
-
${c}${M}`}function Cke(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 Yu(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return l||f||!s.includes(`
|
|
652
|
-
`)?Yu(s,t):iv(e,t,n,r);if(!l&&!f&&o!==$t.PLAIN&&s.includes(`
|
|
653
|
-
`))return iv(e,t,n,r);if(N0(s)){if(a==="")return t.forceBlockIndent=!0,iv(e,t,n,r);if(l&&a===c)return Yu(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 Yu(s,t)}return l?p:L0(p,a,l6,F0(t,!1))}function rm(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?Yu(i.value,t):iv(i,t,n,r);case $t.QUOTE_DOUBLE:return Dp(i.value,t);case $t.QUOTE_SINGLE:return MS(i.value,t);case $t.PLAIN:return Cke(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 a6(e,t){const n=Object.assign({blockQuote:!0,commentString:bke,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 xke(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 Ske(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const o=[],s=(Sn(e)||zn(e))&&e.anchor;s&&r6(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 Ld(e,t,n,r){var a,c;if(Fn(e))return e.toString(t,n,r);if(Kc(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=sr(e)?e:t.doc.createNode(e,{onTagObj:f=>o=f});o||(o=xke(t.doc.schema.tags,s));const i=Ske(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)?rm(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 Pke({key:e,value:t},n,r,o){var I,R;const{allNullValues:s,doc:i,indent:l,indentStep:a,options:{commentString:c,indentSeq:f,simpleKeys:p}}=n;let h=sr(e)&&e.comment||null;if(p){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(zn(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||zn(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=Ld(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;sr(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=Ld(t,n,()=>P=!0,()=>m=!0);let E=" ";if(h||w||b){if(E=w?`
|
|
657
|
-
`:"",b){const O=c(b);E+=`
|
|
658
|
-
${pl(O,n.indent)}`}M===""&&!n.inFlow?E===`
|
|
659
|
-
`&&(E=`
|
|
660
|
-
|
|
661
|
-
`):E+=`
|
|
662
|
-
${n.indent}`}else if(!y&&zn(t)){const O=M[0],T=M.indexOf(`
|
|
663
|
-
`),A=T!==-1,z=(R=(I=n.inFlow)!=null?I:t.flow)!=null?R:t.items.length===0;if(A||!z){let N=!1;if(A&&(O==="&"||O==="!")){let _=M.indexOf(" ");O==="&"&&_!==-1&&_<T&&M[_+1]==="!"&&(_=M.indexOf(" ",_+1)),(_===-1||T<_)&&(N=!0)}N||(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 c6(e,t){(e==="debug"||e==="warn")&&(typeof process!="undefined"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const bD="<<";function u6(e,t,{key:n,value:r}){if(e!=null&&e.doc.schema.merge&&Eke(n))if(r=Kc(r)?r.resolve(e.doc):r,cf(r))for(const o of r.items)vC(e,t,o);else if(Array.isArray(r))for(const o of r)vC(e,t,o);else vC(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=kke(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 Eke=e=>e===bD||Sn(e)&&e.value===bD&&(!e.type||e.type===$t.PLAIN);function vC(e,t,n){const r=e&&Kc(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 kke(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(sr(e)&&n&&n.doc){const r=a6(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)+'..."'),c6(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 Ik(e,t,n){const r=kh(e,void 0,n),o=kh(t,void 0,n);return new Xr(r,o)}class Xr{constructor(t,n=null){Object.defineProperty(this,Ns,{value:ZB}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return sr(n)&&(n=n.clone(t)),sr(r)&&(r=r.clone(t)),new Xr(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return u6(n,r,this)}toString(t,n,r){return t!=null&&t.doc?Pke(this,t,n,r):JSON.stringify(this)}}function d6(e,t,n){var s;return(((s=t.inFlow)!=null?s:e.flow)?Mke:Ike)(e,t,n)}function Ike({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(sr(m))!p&&m.spaceBefore&&h.push(""),xy(n,h,m.commentBefore,p),m.comment&&(C=m.comment);else if(Fn(m)){const b=sr(m.key)?m.key:null;b&&(!p&&b.spaceBefore&&h.push(""),xy(n,h,b.commentBefore,p))}p=!1;let w=Ld(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
|
-
`+pl(c(e),a),l&&l()):p&&i&&i(),y}function Mke({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(sr(b))b.spaceBefore&&y.push(""),xy(n,y,b.commentBefore,!1),b.comment&&(x=b.comment);else if(Fn(b)){const M=sr(b.key)?b.key:null;M&&(M.spaceBefore&&y.push(""),xy(n,y,M.commentBefore,!1),M.comment&&(p=!0));const E=sr(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=Ld(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)>A0.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 xy({indent:e,options:{commentString:t}},n,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){const s=pl(t(r),e);n.push(s.trimStart())}}function dc(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 A0{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(Ik(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=dc(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)&&i6(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=dc(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){var s;const r=dc(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!!dc(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)u6(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})),d6(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 A0{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=Mg(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=Mg(t);if(typeof r!="number")return;const o=this.items[r];return!n&&Sn(o)?o.value:o}has(t){const n=Mg(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=Mg(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[r];Sn(o)&&i6(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?d6(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(kh(l,void 0,r))}}return s}}function Mg(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)},B0={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),rm(e,t,n,r)}},j0={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"&&j0.test.test(e)?e:t.options.nullStr},Mk={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&&Mk.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 f6={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},p6={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)}},h6={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},z0=e=>typeof e=="bigint"||Number.isInteger(e),Tk=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function m6(e,t,n){const{value:r}=e;return z0(r)&&r>=0?n+r.toString(t):mi(e)}const g6={identify:e=>z0(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Tk(e,2,8,n),stringify:e=>m6(e,8,"0o")},v6={identify:z0,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Tk(e,0,10,n),stringify:mi},y6={identify:e=>z0(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Tk(e,2,16,n),stringify:e=>m6(e,16,"0x")},Tke=[uf,df,B0,j0,Mk,g6,v6,y6,f6,p6,h6];function wD(e){return typeof e=="bigint"||Number.isInteger(e)}const Tg=({value:e})=>JSON.stringify(e),_ke=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Tg},{identify:e=>e==null,createNode:()=>new $t(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Tg},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:Tg},{identify:wD,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})=>wD(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:Tg}],$ke={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},Rke=[uf,df].concat(_ke,$ke),_k={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 rm({comment:e,type:t,value:l},r,o,s)}};function b6(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 w6(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(Ik(l,a,n))}return o}const $k={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:b6,createNode:w6};class ud 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=ud.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=w6(t,n,r),s=new this;return s.items=o.items,s}}ud.tag="tag:yaml.org,2002:omap";const Rk={collection:"seq",identify:e=>e instanceof Map,nodeClass:ud,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=b6(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 ud,n)},createNode:(e,t,n)=>ud.from(e,t,n)};function C6({value:e,source:t},n){return t&&(e?x6:S6).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const x6={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:C6},S6={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:C6},Oke={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},Dke={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)}},Ake={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},om=e=>typeof e=="bigint"||Number.isInteger(e);function V0(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 Ok(e,t,n){const{value:r}=e;if(om(r)){const o=r.toString(t);return r<0?"-"+n+o.substr(1):n+o}return mi(e)}const Lke={identify:om,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>V0(e,2,2,n),stringify:e=>Ok(e,2,"0b")},Fke={identify:om,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>V0(e,1,8,n),stringify:e=>Ok(e,8,"0")},Nke={identify:om,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>V0(e,0,10,n),stringify:mi},Bke={identify:om,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>V0(e,2,16,n),stringify:e=>Ok(e,16,"0x")};class dd extends Go{constructor(t){super(t),this.tag=dd.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),dc(this.items,n.key)||this.items.push(n)}get(t,n){const r=dc(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=dc(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(Ik(i,null,r));return s}}dd.tag="tag:yaml.org,2002:set";const Dk={collection:"map",identify:e=>e instanceof Set,nodeClass:dd,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>dd.from(e,t,n),resolve(e,t){if(af(e)){if(e.hasAllNullValues(!0))return Object.assign(new dd,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Ak(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 P6(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 E6={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})=>Ak(e,n),stringify:P6},k6={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=>Ak(e,!1),stringify:P6},H0={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(H0.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=Ak(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$/,"")},CD=[uf,df,B0,j0,x6,S6,Lke,Fke,Nke,Bke,Oke,Dke,Ake,_k,Rk,$k,Dk,E6,k6,H0],xD=new Map([["core",Tke],["failsafe",[uf,df,B0]],["json",Rke],["yaml11",CD],["yaml-1.1",CD]]),SD={binary:_k,bool:Mk,float:h6,floatExp:p6,floatNaN:f6,floatTime:k6,int:v6,intHex:y6,intOct:g6,intTime:E6,map:uf,null:j0,omap:Rk,pairs:$k,seq:df,set:Dk,timestamp:H0},jke={"tag:yaml.org,2002:binary":_k,"tag:yaml.org,2002:omap":Rk,"tag:yaml.org,2002:pairs":$k,"tag:yaml.org,2002:set":Dk,"tag:yaml.org,2002:timestamp":H0};function yC(e,t){let n=xD.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from(xD.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=SD[r];if(o)return o;const s=Object.keys(SD).map(i=>JSON.stringify(i)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${s}`)})}const zke=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class U0{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:o,schema:s,sortMapEntries:i,toStringDefaults:l}){this.compat=Array.isArray(t)?yC(t,"compat"):t?yC(null,t):null,this.merge=!!r,this.name=typeof s=="string"&&s||"core",this.knownTags=o?jke:{},this.tags=yC(n,this.name),this.toStringOptions=l!=null?l:null,Object.defineProperty(this,Sa,{value:uf}),Object.defineProperty(this,kl,{value:B0}),Object.defineProperty(this,sf,{value:df}),this.sortMapEntries=typeof i=="function"?i:i===!0?zke:null}clone(){const t=Object.create(U0.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function Vke(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=a6(e,t),{commentString:s}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const c=s(e.commentBefore);n.unshift(pl(c,""))}let i=!1,l=null;if(e.contents){if(sr(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const p=s(e.contents.commentBefore);n.push(pl(p,""))}o.forceBlockIndent=!!e.comment,l=e.contents.comment}const c=l?void 0:()=>i=!0;let f=Ld(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(Ld(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(pl(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(pl(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:kS});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:kS}});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=sr(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){xu(this.contents)&&this.contents.add(t)}addIn(t,n){xu(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=o6(this);t.anchor=!n||r.has(n)?s6(n||"a",r):n}return new D0(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}=gke(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=kh(t,f,v);return l&&zn(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 xu(this.contents)?this.contents.delete(t):!1}deleteIn(t){return fp(t)?this.contents==null?!1:(this.contents=null,!0):xu(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return zn(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return fp(t)?!n&&Sn(this.contents)?this.contents.value:this.contents:zn(this.contents)?this.contents.getIn(t,n):void 0}has(t){return zn(this.contents)?this.contents.has(t):!1}hasIn(t){return fp(t)?this.contents!==void 0:zn(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=Cy(this.schema,[t],n):xu(this.contents)&&this.contents.set(t,n)}setIn(t,n){fp(t)?this.contents=n:this.contents==null?this.contents=Cy(this.schema,Array.from(t),n):xu(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 U0(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"?qu(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 Vke(this,t)}}function xu(e){if(zn(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Lk extends Error{constructor(t,n,r,o){super(),this.name=t,this.code=r,this.message=o,this.pos=n}}class fc extends Lk{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class I6 extends Lk{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const Sy=(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 Fd(e,{flow:t,indicator:n,next:r,offset:o,onError:s,startOnNewline:i}){let l=!1,a=i,c=i,f="",p="",h=!1,y=!1,v=!1,m=null,C=null,w=null,b=null,x=null;for(const E of e)switch(v&&(E.type!=="space"&&E.type!=="newline"&&E.type!=="comma"&&s(E.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),v=!1),E.type){case"space":!t&&a&&n!=="doc-start"&&E.source[0]===" "&&s(E,"TAB_AS_INDENT","Tabs are not allowed as indentation"),c=!0;break;case"comment":{c||s(E,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const I=E.source.substring(1)||" ";f?f+=p+I:f=I,p="",a=!1;break}case"newline":a?f?f+=E.source:l=!0:p+=E.source,a=!0,h=!0,(m||C)&&(y=!0),c=!0;break;case"anchor":m&&s(E,"MULTIPLE_ANCHORS","A node can have at most one anchor"),E.source.endsWith(":")&&s(E.offset+E.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=E,x===null&&(x=E.offset),a=!1,c=!1,v=!0;break;case"tag":{C&&s(E,"MULTIPLE_TAGS","A node can have at most one tag"),C=E,x===null&&(x=E.offset),a=!1,c=!1,v=!0;break}case n:(m||C)&&s(E,"BAD_PROP_ORDER",`Anchors and tags must be after the ${E.source} indicator`),b&&s(E,"UNEXPECTED_TOKEN",`Unexpected ${E.source} in ${t!=null?t:"collection"}`),b=E,a=!1,c=!1;break;case"comma":if(t){w&&s(E,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),w=E,a=!1,c=!1;break}default:s(E,"UNEXPECTED_TOKEN",`Unexpected ${E.type} token`),a=!1,c=!1}const P=e[e.length-1],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 Ih(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(Ih(t.key)||Ih(t.value))return!0}return!1;default:return!0}}function _S(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&Ih(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function M6(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 PD="All mapping items must start at the same column";function Hke({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=Fd(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",PD)),!w.anchor&&!w.tag&&!m){c=w.end,w.comment&&(l.comment?l.comment+=`
|
|
685
|
-
`+w.comment:l.comment=w.comment);continue}(w.hasNewlineAfterProp||Ih(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",PD);const x=w.end,P=v?e(n,v,w,o):t(n,x,y,null,w,o);n.schema.compat&&_S(r.indent,v,o),M6(n,l.items,P)&&o(x,"DUPLICATE_KEY","Map keys must be unique");const M=Fd(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&&_S(r.indent,C,o),a=E.range[2];const I=new Xr(P,E);n.options.keepSourceTokens&&(I.srcToken=h),l.items.push(I)}else{b&&o(P.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),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 Uke({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=Fd(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&&_S(r.indent,h,o),a=v.range[2],l.items.push(v)}return l.range=[r.offset,a,c!=null?c:a],l}function sm(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 bC="Block collections are not allowed within flow collections",wC=e=>e&&(e.type==="block-map"||e.type==="block-seq");function Wke({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:I}=x,R=Fd(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&&!I){b===0&&R.comma?o(R.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):b<r.items.length-1&&o(R.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),R.comment&&(c.comment?c.comment+=`
|
|
687
|
-
`+R.comment:c.comment=R.comment),p=R.end;continue}!i&&n.options.strict&&Ih(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 T of P)switch(T.type){case"comma":case"space":break;case"comment":O=T.source.substring(1);break e;default:break e}if(O){let T=c.items[c.items.length-1];Fn(T)&&(T=(w=T.value)!=null?w:T.key),T.comment?T.comment+=`
|
|
688
|
-
`+O:T.comment=O,R.comment=R.comment.substring(O.length+1)}}if(!i&&!E&&!R.found){const O=I?e(n,I,R,o):t(n,R.end,E,null,R,o);c.items.push(O),p=O.range[2],wC(I)&&o(O.range,"BLOCK_IN_FLOW",bC)}else{const O=R.end,T=M?e(n,M,R,o):t(n,O,P,null,R,o);wC(M)&&o(T.range,"BLOCK_IN_FLOW",bC);const A=Fd(E!=null?E:[],{flow:l,indicator:"map-value-ind",next:I,offset:T.range[2],onError:o,startOnNewline:!1});if(A.found){if(!i&&!R.found&&n.options.strict){if(E)for(const _ of E){if(_===A.found)break;if(_.type==="newline"){o(_,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}R.start<A.found.offset-1024&&o(A.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else I&&("source"in I&&I.source&&I.source[0]===":"?o(I,"MISSING_CHAR",`Missing space after : in ${l}`):o(A.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const z=I?e(n,I,A,o):A.found?t(n,A.end,E,null,A,o):null;z?wC(I)&&o(z.range,"BLOCK_IN_FLOW",bC):A.comment&&(T.comment?T.comment+=`
|
|
689
|
-
`+A.comment:T.comment=A.comment);const N=new Xr(T,z);if(n.options.keepSourceTokens&&(N.srcToken=x),i){const _=c;M6(n,_.items,T)&&o(O,"DUPLICATE_KEY","Map keys must be unique"),_.items.push(N)}else{const _=new Go(n.schema);_.flow=!0,_.items.push(N),c.items.push(_)}p=z?z.range[2]:A.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=sm(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 CC(e,t,n,r,o,s){const i=n.type==="block-map"?Hke(e,t,n,r,s):n.type==="block-seq"?Uke(e,t,n,r,s):Wke(e,t,n,r,s),l=i.constructor;return o==="!"||o===l.tagName?(i.tag=l.tagName,i):(o&&(i.tag=o),i)}function Gke(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 CC(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),CC(e,t,n,o,s)}const a=CC(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=sr(c)?c:new $t(c);return f.range=a.range,f.tag=s,l!=null&&l.format&&(f.format=l.format),f}function T6(e,t,n){const r=e.offset,o=Kke(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?qke(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 Kke({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 qke(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 _6(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=Yke(s,c);break;case"single-quoted-scalar":l=$t.QUOTE_SINGLE,a=Qke(s,c);break;case"double-quoted-scalar":l=$t.QUOTE_DOUBLE,a=Xke(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=sm(i,f,t,n);return{value:a,type:l,comment:p.comment,range:[r,f,p.offset]}}function Yke(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 Qke(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 Xke(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}=Zke(e,r);n+=s,r=i}else if(o==="\\"){let s=e[++r];const i=Jke[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+=eIe(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 Zke(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 Jke={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
720
|
-
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function eIe(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 R6(e,t,n,r){const{value:o,type:s,comment:i,range:l}=t.type==="block-scalar"?T6(t,e.options.strict,r):_6(t,e.options.strict,r),a=n?e.directives.tagName(n.source,p=>r(n,"TAG_RESOLVE_FAILED",p)):null,c=n&&a?tIe(e.schema,o,a,n,r):t.type==="scalar"?nIe(e,o,t,r):e.schema[kl];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 tIe(e,t,n,r,o){var l;if(n==="!")return e[kl];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[kl])}function nIe({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[kl];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[kl];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 rIe(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 oIe={composeNode:O6,composeEmptyNode:Fk};function O6(e,t,n,r){const{spaceBefore:o,comment:s,anchor:i,tag:l}=n;let a,c=!0;switch(t.type){case"alias":a=sIe(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=R6(e,t,l,r),i&&(a.anchor=i.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":a=Gke(oIe,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=Fk(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 Fk(e,t,n,r,{spaceBefore:o,comment:s,anchor:i,tag:l,end:a},c){const f={type:"scalar",offset:rIe(t,n,r),indent:-1,source:""},p=R6(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 sIe({options:e},{offset:t,source:n,end:r},o){const s=new D0(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=sm(r,i,e.strict,o);return s.range=[t,i,l.offset],l.comment&&(s.comment=l.comment),s}function iIe(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=Fd(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?O6(c,o,f,i):Fk(c,f.end,r,null,f,i);const p=a.contents.range[2],h=sm(s,p,!1,i);return h.comment&&(a.comment=h.comment),a.range=[n,p,h.offset],a}function Qf(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function ED(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 Nk{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,o,s)=>{const i=Qf(n);s?this.warnings.push(new I6(i,r,o)):this.errors.push(new fc(i,r,o))},this.directives=new io({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:o}=ED(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(zn(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:ED(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const o of t)yield*Ae(this.next(o));yield*Ae(this.end(n,r))}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,o)=>{const s=Qf(t);s[0]+=n,this.onError(s,"BAD_DIRECTIVE",r,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=iIe(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 fc(Qf(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new fc(Qf(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=sm(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 fc(Qf(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const r=Object.assign({_directives:this.directives},this.options),o=new 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 lIe(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 fc([l,l+1],s,i)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return _6(e,t,r);case"block-scalar":return T6(e,t,r)}}return null}function aIe(e,t){var c;const{implicitKey:n=!1,indent:r,inFlow:o=!1,offset:s=-1,type:i="PLAIN"}=t,l=rm({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 D6(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 cIe(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=rm({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">":uIe(e,a);break;case'"':xC(e,a,"double-quoted-scalar");break;case"'":xC(e,a,"single-quoted-scalar");break;default:xC(e,a,"scalar")}}function uIe(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}];D6(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 D6(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 xC(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 dIe=e=>"type"in e?Py(e):lv(e);function Py(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=Py(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=lv(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=lv(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=lv(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 lv({start:e,key:t,sep:n,value:r}){let o="";for(const s of e)o+=s.source;if(t&&(o+=Py(t)),n)for(const s of n)o+=s.source;return r&&(o+=Py(r)),o}const $S=Symbol("break visit"),fIe=Symbol("skip children"),A6=Symbol("remove item");function Fc(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),L6(Object.freeze([]),e,t)}Fc.BREAK=$S;Fc.SKIP=fIe;Fc.REMOVE=A6;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 L6(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=L6(Object.freeze(e.concat([[o,i]])),s.items[i],n);if(typeof l=="number")i=l-1;else{if(l===$S)return $S;l===A6&&(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 W0="\uFEFF",G0="",K0="",Mh="",pIe=e=>!!e&&"items"in e,hIe=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function mIe(e){switch(e){case W0:return"<BOM>";case G0:return"<DOC>";case K0:return"<FLOW_END>";case Mh:return"<SCALAR>";default:return JSON.stringify(e)}}function F6(e){switch(e){case W0:return"byte-order-mark";case G0:return"doc-mode";case K0:return"flow-error-end";case Mh: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 gIe=Object.freeze(Object.defineProperty({__proto__:null,BOM:W0,DOCUMENT:G0,FLOW_END:K0,SCALAR:Mh,createScalarToken:aIe,isCollection:pIe,isScalar:hIe,prettyToken:mIe,resolveAsScalar:lIe,setScalarValue:cIe,stringify:dIe,tokenType:F6,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 kD="0123456789ABCDEFabcdef".split(""),vIe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),SC=",[]{}".split(""),yIe=` ,[]{}
|
|
739
|
-
\r `.split(""),PC=e=>!e||yIe.includes(e);class N6{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]===W0&&(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 G0,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(PC)),"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 K0,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(PC)),"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 Mh,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&&SC.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&&SC.includes(o))break;n=r}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield Mh,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(PC)))+(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&&SC.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(vIe.includes(n))n=this.buffer[++t];else if(n==="%"&&kD.includes(this.buffer[t+1])&&kD.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 B6{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 ID(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 j6(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 _g(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 Su(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 MD(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,j6(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 Bk=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 N6,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=F6(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"&&MD(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&&ID(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":{ID(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=_g(this.peek(2)),r=Su(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(j6(n.key)&&!Qs(n.sep,"newline")){const i=Su(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=Su(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=_g(r),s=Su(o);MD(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=_g(t),r=Su(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=_g(t),r=Su(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 z6(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new B6||null,prettyErrors:t}}function bIe(e,t={}){const{lineCounter:n,prettyErrors:r}=z6(t),o=new Bk(n==null?void 0:n.addNewLine),s=new Nk(t),i=Array.from(s.compose(o.parse(e)));if(r&&n)for(const l of i)l.errors.forEach(Sy(e,n)),l.warnings.forEach(Sy(e,n));return i.length>0?i:Object.assign([],{empty:!0},s.streamInfo())}function V6(e,t={}){const{lineCounter:n,prettyErrors:r}=z6(t),o=new Bk(n==null?void 0:n.addNewLine),s=new Nk(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 fc(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(i.errors.forEach(Sy(e,n)),i.warnings.forEach(Sy(e,n))),i}function wIe(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);const o=V6(e,n);if(!o)return null;if(o.warnings.forEach(s=>c6(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 CIe(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 TD=Object.freeze(Object.defineProperty({__proto__:null,Alias:D0,CST:gIe,Composer:Nk,Document:ff,Lexer:N6,LineCounter:B6,Pair:Xr,Parser:Bk,Scalar:$t,Schema:U0,YAMLError:Lk,YAMLMap:Go,YAMLParseError:fc,YAMLSeq:$a,YAMLWarning:I6,isAlias:Kc,isCollection:zn,isDocument:lf,isMap:af,isNode:sr,isPair:Fn,isScalar:Sn,isSeq:cf,parse:wIe,parseAllDocuments:bIe,parseDocument:V6,stringify:CIe,visit:_a,visitAsync:O0},Symbol.toStringTag,{value:"Module"}));var jk={},xIe=et;Object.defineProperty(jk,"__esModule",{value:!0});var zk=jk.default=void 0,SIe=xIe(tt()),PIe=Je();zk=jk.default=(0,SIe.default)((0,PIe.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var Vk={},EIe=et;Object.defineProperty(Vk,"__esModule",{value:!0});var H6=Vk.default=void 0,kIe=EIe(tt()),IIe=Je();H6=Vk.default=(0,kIe.default)((0,IIe.jsx)("path",{d:"M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1zM6 8c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2m0 12c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2m6-7.5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5.5.22.5.5-.22.5-.5.5M19 3l-6 6 2 2 7-7V3z"}),"ContentCut");var Hk={},MIe=et;Object.defineProperty(Hk,"__esModule",{value:!0});var RS=Hk.default=void 0,TIe=MIe(tt()),_Ie=Je();RS=Hk.default=(0,TIe.default)((0,_Ie.jsx)("path",{d:"M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m7 18H5V4h2v3h10V4h2z"}),"ContentPaste");var Uk={},$Ie=et;Object.defineProperty(Uk,"__esModule",{value:!0});var U6=Uk.default=void 0,RIe=$Ie(tt()),OIe=Je();U6=Uk.default=(0,RIe.default)((0,OIe.jsx)("path",{d:"M15 21h-2v-2h2zm-2-7h-2v5h2zm8-2h-2v4h2zm-2-2h-2v2h2zM7 12H5v2h2zm-2-2H3v2h2zm7-5h2V3h-2zm-7.5-.5v3h3v-3zM9 9H3V3h6zm-4.5 7.5v3h3v-3zM9 21H3v-6h6zm7.5-16.5v3h3v-3zM21 9h-6V3h6zm-2 10v-3h-4v2h2v3h4v-2zm-2-7h-4v2h4zm-4-2H7v2h2v2h2v-2h2zm1-1V7h-2V5h-2v4zM6.75 5.25h-1.5v1.5h1.5zm0 12h-1.5v1.5h1.5zm12-12h-1.5v1.5h1.5z"}),"QrCode2");let W6=null;class G6{}G6.render=function(e,t){W6(e,t)};self.QrCreator=G6;(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,I,R){b?(l.lineTo(x+I,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,I=b-1,R=b+1,O=x-1,T=x+1,A=Math.floor(Math.min(.5,Math.max(0,a.R))*h),z=P(b,x),N=P(I,O),_=P(I,x);I=P(I,T);var $=P(b,T);T=P(R,T),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),z?n(m,C,w,M,E,A,!_&&!b,!_&&!$,!x&&!$,!x&&!b):r(m,C,w,M,E,A,_&&b&&N,_&&$&&I,x&&$&&T,x&&b&&R)}return o(c,a),c.fill(),l}var i={minVersion:1,maxVersion:40,ecLevel:"L",left:0,top:0,size:200,fill:"#000",background:null,text:"no text",radius:.5,quiet:0};W6=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 I=0;I<P;I+=1)M[E][I]=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){I=P[M];var R=P[E];if(y[I][R]==null)for(var O=-2;2>=O;O+=1)for(var T=-2;2>=T;T+=1)y[I+O][R+T]=O==-2||O==2||T==-2||T==2||O==0&&T==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 A=0;for(E=M=0,I=Array(b.length),R=Array(b.length),O=0;O<b.length;O+=1){var z=b[O].j,N=b[O].o-z;for(M=Math.max(M,z),E=Math.max(E,N),I[O]=Array(z),T=0;T<I[O].length;T+=1)I[O][T]=255&P.B()[T+A];for(A+=z,T=s.C(N),z=r(I[O],T.b()-1).l(T),R[O]=Array(T.b()-1),T=0;T<R[O].length;T+=1)N=T+z.b()-R[O].length,R[O][T]=0<=N?z.c(N):0}for(T=P=0;T<b.length;T+=1)P+=b[T].o;for(P=Array(P),T=A=0;T<M;T+=1)for(O=0;O<b.length;O+=1)T<I[O].length&&(P[A]=I[O][T],A+=1);for(T=0;T<E;T+=1)for(O=0;O<b.length;O+=1)T<R[O].length&&(P[A]=R[O][T],A+=1);m=P}for(b=m,P=-1,M=v-1,E=7,I=0,x=s.F(x),R=v-1;0<R;R-=2)for(R==6&&--R;;){for(O=0;2>O;O+=1)y[M][R-O]==null&&(T=!1,I<b.length&&(T=(b[I]>>>E&1)==1),x(M,R-O)&&(T=!T),y[M][R-O]=T,--E,E==-1&&(I+=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 DIe=QrCreator,AIe="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept";function LIe({file:e,addToBar:t,statusApi:n}){var $,F,L;const _=e,{parent:r,children:o,isRoot:s,byMasks:i}=_,l=At(_,["parent","children","isRoot","byMasks"]),[a,c]=u.useState(l);u.useEffect(()=>{c(Object.assign(o0(tC,()=>null),l))},[e]);const f=u.useMemo(()=>{let B=e.parent;for(;B;){if(B.default!=null)return B.default;B=B.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=rE(),{movingFile:I}=Vs(),{data:R,element:O}=Qn("get_accounts");if(O||!R)return O;const T=R.list,A=!m&&"Works only on folders with source! ",z={can_read:!v,can_see:!0,can_archive:!v,can_list:h,can_upload:h&&m,can_delete:h&&m};return u.createElement(Uc,{values:a,set(B,H){c(K=>{var Q;const J=H==="source"&&K.name&&((Q=K.source)==null?void 0:Q.endsWith(K.name))?GN(B):K.name;return st(ye({},K),{name:J,[H]:B})})},barSx:ye({gap:2,width:"100%"},E),stickyBar:!0,addToBar:[u.createElement(dn,{icon:H6,disabled:s||I===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(RS)),"info")}}),I&&u.createElement(dn,{icon:RS,disabled:e.type!=="folder"||e.id.startsWith(I)||e.id===I.replace(/[^/]+\/?$/,""),title:I,onClick(){return rn.movingFile="",X6(I,e.id)}}),!s&&u.createElement(dn,{icon:$l,title:"Delete",confirm:"Delete?",onClick:()=>ct("del_vfs",{uris:[e.id]}).then(()=>Ra())}),...s0(t)],onError:Et,save:{sx:Xd(!ty(a,l)),onClick(){return rt(this,null,function*(){const B=Ze.omit(a,["ctime","mtime","size","id"]);B.masks||(B.masks=null),yield ct("set_vfs",{uri:a.id,props:B}),B.name!==e.name&&(rn.selectedFiles[0].id=e.parent.id+B.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:Ap,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:FIe,statusApi:n,xs:12},N("can_read","Who can see but not download will be asked to login"),N("can_see","If you can't see, you may still download with a direct link"),N("can_archive","Should this be included when user downloads as ZIP",{lg:h?!0:12}),N("can_list","Permission to see content of folders",{contentText:"subfolders"}),N("can_delete",[A,"Those who can delete can also rename and cut/move"]),N("can_upload",A,{contentText:"subfolders"}),x&&{k:"size",comp:$p,lg:4,toField:Sl},b&&{k:"ctime",comp:$p,md:6,lg:x&&4,label:"Created",toField:eS},b&&{k:"mtime",comp:$p,md:6,lg:x&&4,label:"Modified",toField:eS},P&&{k:"accept",label:"Accept on upload",placeholder:"anything",xl:M?4:12,helperText:u.createElement(ts,{href:AIe,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:(L=a.default)!=null?L:f,toField:Boolean,fromField:B=>B&&!f?"index.html":B?null:!1,helperText:tr("...instead of showing list of files")},h&&{k:"masks",multiline:!0,toField:TD.stringify,fromField:B=>B?TD.parse(B):void 0,sx:{"& textarea":{fontFamily:"monospace"}},helperText:["Special field, leave empty unless you know what you are doing. YAML syntax. ",xa("Permissions","(examples)")]}]});function N(B,H,K={}){var Q,X;if(!z[B])return null;const Y=[B,...Hc(Ze.map(z,(te,se)=>!te&&se))],J=Ze.difference(Object.keys(tC),Y);return ye({comp:K6,k:B,lg:6,xl:4,parent:r,accounts:T,helperText:H,isDir:h,otherPerms:J.map(te=>({value:te,label:"As "+OS(te)})),label:"Who can "+OS(B),inherit:(X=(Q=e.inherited)==null?void 0:Q[B])!=null?X:tC[B],byMasks:i==null?void 0:i[B],fromField:te=>te!=null?te:null},K)}}function OS(e){const t=e.split("_")[1];return t==="read"?"download":t==="archive"?"zip":t}function K6(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: ")+_D(l!=null?l:r),w=lfe(e),b=w?e.this:e,x=u.useMemo(()=>Hc([{value:null,label:C},{value:!0},{value:!1},{value:"*"},...i,{value:[],label:"Select accounts"}].map(I=>!(a!=null&&a.includes(I.value))&&ye({label:Ze.capitalize(_D(I.value))},I))),[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(ye({},y),{value:M?[]:b!=null?b:null,onChange(I,{event:R}){t(w?E(st(ye({},e),{this:I!=null?I:void 0})):I!=null?I:void 0,{was:e,event:R})},options:x})),u.createElement(Hv,{in:M,timeout:P},M&&u.createElement(p0,{label:o!=null&&o.length?"Accounts for "+y.label:"You didn't create any account yet",value:b,onChange:t,options:(o==null?void 0:o.map(I=>({value:I.username,label:I.username})))||[]})),u.createElement(Kd,{},s,!c&&f&&u.createElement(cl,{sx:{display:"block",mt:-.5},onClick(I){t(w?b:{this:b,children:b==null?!r:void 0},{was:e,event:I})}},w?"Different permission for ":"Same permission for ",p)),!c&&u.createElement(Hv,{in:w,timeout:P},u.createElement(K6,{label:"Permission for "+p,parent:n,inherit:r,accounts:o,otherPerms:i,isDir:f,value:w&&(e==null?void 0:e.children),isChildren:!0,hideValues:[b!=null?b:r,b],onChange(I,{event:R}){w&&t(E(st(ye({},e),{children:I})),{was:e,event:R})}})));function E(I){return I.this===I.children?I.this:I}}function _D(e){return e===!1?"no one":e===!0?"anyone":e==="*"?"any account (login required)":Array.isArray(e)?e.join(", "):typeof e=="string"?"as "+OS(e):"*UNKNOWN*"+JSON.stringify(e)}function FIe({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)=>Efe(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(ye({ref:y},h),{href:a,style:{height:"auto"},target:"frontend"}),a)),[a]);return u.createElement(ze,{display:"flex"},s?u.createElement($p,{label:"Link",value:a||`outside of configured base address (${i})`,error:o,InputProps:{inputComponent:c},end:u.createElement(ze,{},u.createElement(dn,{icon:zk,title:"Copy",disabled:!a,onClick:()=>navigator.clipboard.writeText(a)}),u.createElement(dn,{icon:U6,title:"QR Code",onClick:f}),u.createElement(dn,{icon:WE,title:"Change",onClick(){q6().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{DIe.render({text:y,radius:0,ecLevel:"H",fill:v,background:null,size:300},h)}catch(m){console.error("Error generating QR code:",m)}})}}function q6(){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(q2,{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:tr(`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):or("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(_o,{icon:Uh,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 DS;function NIe(){var P,M,E;const[e]=u.useState(()=>new Map),{vfs:t,selectedFiles:n,movingFile:r}=Vs(),{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 I=f==null?void 0:f.baseUrl,R=(f==null?void 0:f.urls.https)||(f==null?void 0:f.urls.http);return I&&!R.includes(I)?[I,...R]:R},[f]),[h,y]=u.useState(!1);function v(){y(!0)}const m=!n.length||h?null:n.length===1?u.createElement(LIe,{addToBar:a&&[u.createElement(ze,{flex:1}),AS(n[0]),u.createElement(dn,{icon:u0,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:BIe,startIcon:u.createElement($l)},"Remove")),u.createElement(Vh,{dense:!0,disablePadding:!0},n.map(I=>u.createElement(g2,{key:I.id},u.createElement(Di,{primary:I.name,secondary:I.source}))))),[C,w]=u.useState(()=>Ze.noop);if(u.useEffect(()=>{var I;r===((I=n[0])==null?void 0:I.id)&&C()},[r,C]),u.useEffect(()=>{if(a||!m)return;const{close:I}=po({title:n.length>1?"Multiple selection":u.createElement(qr,{},AS(n[0]),n[0].name||"Home"),Content:()=>m,onClose:v});return w(()=>I),I},[a,n]),u.useEffect(()=>{if(rn.vfs=void 0,!o)return;e.clear();const{root:I}=o;if(!I)return;I.isRoot=!0,O(I),rn.vfs=I;const R=DS||rn.selectedFiles.map(T=>T.id);DS=void 0,rn.selectedFiles=Hc(R.map(T=>e.get(T)));function O(T,A="/",z=void 0){if(T.parent=z,T.id=T.isRoot?"/":ci(A,encodeURIComponent(T.name),T.type==="folder"?"/":""),e.set(T.id,T),!!T.children)for(const N of T.children)O(N,T.id,T)}},[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 ",$ue(" or ",p.slice(0,3).map(I=>u.createElement(ts,{href:I,target:"frontend"},I)))]};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(fke,{statusApi:c}),t&&u.createElement(jIe,{id2node:e,statusApi:c,onSelect:()=>y(!1)})),a&&m&&u.createElement(oi,{item:!0,[l]:!0,maxWidth:"100%"},u.createElement(B1,{sx:{overflow:"initial"}},u.createElement(j1,{},m))))}function Ra(e){DS=e,rn.vfs=void 0}function BIe(){return rt(this,null,function*(){const e=rn.selectedFiles;if(e.length&&(yield hr(`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 Y6=zB,Q6=HB;function jIe({id2node:e,statusApi:t,onSelect:n}){const{vfs:r,selectedFiles:o}=Vs(),[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(FB,{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=Hc(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(CS,{ref(I){I==null||I.addEventListener("focusin",R=>R.stopImmediatePropagation())},label:u.createElement(ze,{draggable:!w,onDragStart(){c.current=m},onDragOver(I){if(!b)return;const R=c.current;R!=null&&R.startsWith(m)&&!R.slice(m.length+1).includes("/")||I.preventDefault()},onDrop(){return rt(this,null,function*(){const I=c.current;I&&(yield hr(`Moving ${I} under ${m}`))&&X6(I,m)})},sx:{display:"flex",gap:".5em",lineHeight:"2em",alignItems:"center"}},u.createElement(ze,{display:"flex",flex:0},AS(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($l,"Delete permission"),v.can_upload!==void 0&&Wr(Kh,"Upload permission"),!w&&!v.source&&!v.url&&Wr(GB,"Virtual (no source)"),h(v.can_see)&&Wr(UB,"Restrictions on who can see"),h(v.can_read)&&Wr(g0,"Restrictions on who can download"),v.default&&Wr(WB,"Act as website"),v.masks&&Wr(jB,"Masks"),v.size===-1&&Wr(KB,"Source not found"),Pl(Ze.findKey((P=t.data)==null?void 0:P.roots,I=>I===m.slice(1)),I=>I&&Wr(U1,`home for ${I}`)))),w?"Home":(()=>{var T;const I=(T=v.parent)==null?void 0:T.source,{source:R}=v,O=I&&(R!=null&&R.startsWith(I))?"."+R.slice(I.length):R;return!O||!(R!=null&&R.endsWith(C))||O.length>45?u.createElement(ze,{lineHeight:"1.2em"},C):u.createElement("span",{},u.createElement("span",{style:{opacity:.4}},O.slice(0,-C.length)),O.slice(-C.length))})()),key:C,collapseIcon:u.createElement(BB,{onClick(I){a(l.filter(R=>R!==m)),I.preventDefault(),I.stopPropagation()}}),expandIcon:u.createElement(NB,{onClick(I){a([...l,m]),I.preventDefault(),I.stopPropagation()}}),nodeId:m},w&&!((M=v.children)!=null&&M.length)?u.createElement(CS,{nodeId:"?",label:u.createElement("i",{},"nothing here")}):(E=v.children)==null?void 0:E.map(y))}}function X6(e,t){ct("move_vfs",{from:e,parent:t}).then(()=>{Ra([t+e.slice(1+e.lastIndexOf("/",e.length-2))])},Et)}function AS(e){return e.isRoot?Wr(U1,"home, or root if you like"):e.type==="folder"?Wr(Y6,"Folder"):e.url?Wr(VB,"Web-link"):Wr(Q6,"File")}var $D=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function zIe(e,t){return!!(e===t||$D(e)&&$D(t))}function VIe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!zIe(e[n],t[n]))return!1;return!0}function EC(e,t){t===void 0&&(t=VIe);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 HIe=typeof performance=="object"&&typeof performance.now=="function",RD=HIe?function(){return performance.now()}:function(){return Date.now()};function OD(e){cancelAnimationFrame(e.id)}function UIe(e,t){var n=RD();function r(){RD()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var kC=-1;function DD(e){if(e===void 0&&(e=!1),kC===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),kC=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return kC}var Pu=null;function AD(e){if(e===void 0&&(e=!1),Pu===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?Pu="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Pu="negative":Pu="positive-ascending"),document.body.removeChild(t),Pu}return Pu}var WIe=150,GIe=function(t,n){return t};function KIe(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){_1(h,p);function h(v){var m;return m=p.call(this,v)||this,m._instanceProps=a(m.props,Bx(m)),m._outerRef=void 0,m._resetIsScrollingTimeoutId=null,m.state={instance:Bx(m),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof m.props.initialScrollOffset=="number"?m.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},m._callOnItemsRendered=void 0,m._callOnItemsRendered=EC(function(C,w,b,x){return m.props.onItemsRendered({overscanStartIndex:C,overscanStopIndex:w,visibleStartIndex:b,visibleStopIndex:x})}),m._callOnScroll=void 0,m._callOnScroll=EC(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 I=n(m.props,C,m._instanceProps),R=o(m.props,C,m._instanceProps),O=b==="horizontal"||P==="horizontal",T=b==="rtl",A=O?I:0;M[C]=E={position:"absolute",left:T?void 0:A,right:T?A:void 0,top:O?0:I,height:O?"100%":R,width:O?R:"100%"}}return E},m._getItemStyleCache=void 0,m._getItemStyleCache=EC(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,I=x;if(E==="rtl")switch(AD()){case"negative":I=-x;break;case"positive-descending":I=P-b-x;break}return I=Math.max(0,Math.min(I,P-b)),{isScrolling:!0,scrollDirection:M.scrollOffset<I?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},m._resetIsScrollingDebounced)},m._onScrollVertical=function(C){var w=C.currentTarget,b=w.clientHeight,x=w.scrollHeight,P=w.scrollTop;m.setState(function(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&&OD(m._resetIsScrollingTimeoutId),m._resetIsScrollingTimeoutId=UIe(m._resetIsScrolling,WIe)},m._resetIsScrolling=function(){m._resetIsScrollingTimeoutId=null,m.setState({isScrolling:!1},function(){m._getItemStyleCache(-1,null)})},m}h.getDerivedStateFromProps=function(m,C){return qIe(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?DD():0:M=E.scrollHeight>E.clientHeight?DD():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(AD()){case"negative":M.scrollLeft=-x;break;case"positive-ascending":M.scrollLeft=x;break;default:var E=M.clientWidth,I=M.scrollWidth;M.scrollLeft=I-E-x;break}else M.scrollLeft=x;else M.scrollTop=x}this._callPropsCallbacks()},y.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&OD(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,I=m.itemCount,R=m.itemData,O=m.itemKey,T=O===void 0?GIe:O,A=m.layout,z=m.outerElementType,N=m.outerTagName,_=m.style,$=m.useIsScrolling,F=m.width,V=this.state.isScrolling,L=b==="horizontal"||A==="horizontal",B=L?this._onScrollHorizontal:this._onScrollVertical,H=this._getRangeToRender(),K=H[0],Y=H[1],J=[];if(I>0)for(var Q=K;Q<=Y;Q++)J.push(u.createElement(C,{data:R,key:T(Q,R),index:Q,isScrolling:$?V:void 0,style:this._getItemStyle(Q)}));var X=r(this.props,this._instanceProps);return u.createElement(z||N||"div",{className:w,onScroll:B,ref:this._outerRefSetter,style:S({position:"relative",height:x,width:F,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},_)},u.createElement(M||E||"div",{children:J,ref:P,style:{height:L?"100%":X,pointerEvents:V?"none":void 0,width:L?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,I=M.scrollOffset,R=M.scrollUpdateWasRequested;this._callOnScroll(E,I,R)}},y._getRangeToRender=function(){var m=this.props,C=m.itemCount,w=m.overscanCount,b=this.state,x=b.isScrolling,P=b.scrollDirection,M=b.scrollOffset;if(C===0)return[0,0,0,0];var E=i(this.props,M,this._instanceProps),I=l(this.props,E,M,this._instanceProps),R=!x||P==="backward"?Math.max(1,w):1,O=!x||P==="forward"?Math.max(1,w):1;return[Math.max(0,E-R),Math.max(0,Math.min(C-1,I+O)),E,I]},h}(u.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var qIe=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},YIe=KIe({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 Z6({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(_=>{typeof _.path=="string"&&(l(_.path),f.current=_.path[1]===":")}).finally(()=>c(!0))},[s]);const{list:p,error:h,connecting:y,reload:v}=El(a&&"get_ls",{path:i,files:n,fileMask:o});u.useEffect(()=>{C([]),b("")},[i]);const[m,C]=u.useState([]),[w,b]=u.useState(""),x=u.useMemo(()=>Ze.debounce(_=>b(_)),[]),P=u.useMemo(()=>{const _=new RegExp(Ze.escapeRegExp(w),"i");return $=>_.test($)},[w]),[M,E]=u.useState(0),I=u.useMemo(()=>Ze.sortBy(p.filter(_=>P(_.n)),["k","d"]),[p,P]),R=f.current?"":"/",O=f.current?"\\":"/",T=ufe(O,i),A=i.length<2;return u.createElement(u.Fragment,{},u.createElement(ze,{display:"flex",gap:1},u.createElement(Yn,{title:"root",disabled:A,onClick(){l(R)}},u.createElement(_B)),u.createElement(Yn,{disabled:A,title:"parent folder",onClick(){const _=/[\\/]$/.test(i)?i.slice(0,-1):i,$=Cfe(_)?R:_.slice(0,_.lastIndexOf(O)||1);l($)}},u.createElement(qE)),u.createElement(Wi,{label:"Current path",value:i,InputLabelProps:{shrink:!0},onChange(_){return rt(this,null,function*(){if(!_)return l(R);const $=yield ct("resolve_path",{path:_});if($.isFolder===!1)return n?e([_]):l(_.slice(0,-GN(_)));l($.path)})}})),h?u.createElement(Er,{severity:"error"},e5(h)):u.createElement(u.Fragment,{},u.createElement(ze,{ref(_){if(!_)return;const $=(_==null?void 0:_.clientHeight)-1;$-M>1&&E($)},sx:{flex:1,display:"flex",flexDirection:"column"}},p.length?u.createElement(YIe,{width:"100%",height:M,itemSize:46,itemCount:I.length,overscanCount:5,children({index:_,style:$}){const F=I[_],V=F.k==="d";return u.createElement(Pr,{style:st(ye({},$),{padding:0}),key:F.n,onClick(){V?l(T+F.n):e([T+F.n])}},t&&u.createElement(B4,{checked:m.includes(F.n),disabled:!r&&V,onClick(L){const B=F.n,H=m.filter(K=>K!==B);C(H.length<m.length?H:[...m,B]),L.stopPropagation()}}),u.createElement(ml,{},u.createElement(F.k?Y6:Q6)),u.createElement(Di,{sx:{whiteSpace:"pre-wrap",wordBreak:"break-all"}},F.n),!V&&F.s!==void 0&&u.createElement(qn,{variant:"body2",color:"text.secondary",ml:4,mr:1},Sl(F.s)))}}):u.createElement(Gh,{flex:1,mt:"4em"},y?h5():"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+_):[i])}},n&&(m.length||!r)?`Select (${m.length})`:"Select this folder"),u.createElement(ja,{size:"small",value:w,label:`Filter results (${I.length}${I.length<p.length?"/"+p.length:""})`,onChange(_){x(_.target.value)},sx:{flex:1}}),u.createElement(dn,{icon:TB,doneMessage:!0,title:"Create folder",sx:{mt:"5px"},onClick(){return rt(this,null,function*(){const _=yield Wh("New folder name");if(!_)return!1;yield ct("mkdir",{path:`${i}/${_}`}),v()})}}))))}function Ap(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(ye({},l),{value:e,onChange:t,onTyping:p=>!p.includes(`
|
|
761
|
-
`)&&p,InputProps:{multiline:!0,endAdornment:u.createElement(xl,{position:"end"},u.createElement(dn,{icon:MB,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(Z6,{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 Wk={},QIe=et;Object.defineProperty(Wk,"__esModule",{value:!0});var av=Wk.default=void 0,XIe=QIe(tt()),ZIe=Je();av=Wk.default=(0,XIe.default)((0,ZIe.jsx)("path",{d:"M22 13v3c0 1.1-.9 2-2 2h-3l1 1v2H6v-2l1-1H4c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h8v2H4v11h16v-3zm-7 2-5-5h4V3h2v7h4z"}),"BrowserUpdated");var Gk={},JIe=et;Object.defineProperty(Gk,"__esModule",{value:!0});var J6=Gk.default=void 0,eMe=JIe(tt()),tMe=Je();J6=Gk.default=(0,eMe.default)((0,tMe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var Kk={},nMe=et;Object.defineProperty(Kk,"__esModule",{value:!0});var ej=Kk.default=void 0,rMe=nMe(tt()),oMe=Je();ej=Kk.default=(0,rMe.default)((0,oMe.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"Launch");var qk={},sMe=et;Object.defineProperty(qk,"__esModule",{value:!0});var tj=qk.default=void 0,iMe=sMe(tt()),lMe=Je();tj=qk.default=(0,iMe.default)((0,lMe.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew");function aMe(){var E,I,R,T;const e=" — ",{username:t}=Vs(),{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}=El("get_plugins"),[c,f]=u.useState(!1),{list:p}=El(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=o0(x,z=>z.busy?[`port ${z.port} already used by ${z.busy}${e}choose a `,$g("different port"),` or stop ${z.busy}`]:z.error),M=P&&Hc(Object.entries(P).map(([z,N])=>N&&[tr(`Protocol <u>${z}</u> cannot work: `),N,(Qk(N)||Xk(N))&&[e,u.createElement(cl,{onClick(){ky().then(()=>Hh(999)).then(l.reload).then(r)}},"make one")," or ",e,$g("provide adequate files")]]));return u.createElement(ze,{display:"flex",gap:2,flexDirection:"column",alignItems:"flex-start",height:"100%"},t&&oo("","Welcome "+t),M.length?fh(M.map(z=>oo("error",fh(z)))):oo("success","Server is working"),s?!((I=(E=s.root)==null?void 0:E.children)!=null&&I.length)&&!((R=s.root)!=null&&R.source)?oo("warning","You have no files shared",e,uMe("add some")):oo("",tr("This is the Admin-panel, where you manage your server. Access your files on "),u.createElement(ts,{target:"frontend",href:"../.."},"Front-end",u.createElement(ej,{sx:{verticalAlign:"sub",ml:".2em"}}))):u.createElement(Gv),!b&&oo("warning","Frontend unreachable: ",Ze.map(P,(z,N)=>N+" "+(z?"is in error":"is off")).join(", "),!M.length&&[e,$g("switch http or https on")]),a.find(z=>z.badApi)&&oo("warning","Some plugins may be incompatible"),!(i!=null&&i.adminActualAccess)&&oo("",tr("On <u>localhost</u> you don't need to login"),e,"to access Admin-panel from another computer ",u.createElement(m0,{to:"accounts"},tr("create an account with *admin* permission"))),LS(l,n)&&oo("warning",LS(l,n),e,$g("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 hr("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")),(((T=l.data)==null?void 0:T.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",{},tr("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:r0+"discussions"},"get support")),p.length>0&&oo("success","Updates available for plugin(s): "+p.map(z=>z.id).join(", ")),n.updatePossible==="local"?u.createElement(_o,{icon:av,onClick:()=>IC()},"Update from local file"):h?Pl(Ze.find(h,"isNewer"),z=>!h.length||!n.updatePossible&&!z?oo("","No update available"):z&&!n.updatePossible?oo("success",`Version ${z.name} available`):u.createElement(qr,{vert:!0},h.map(N=>u.createElement(qr,{key:N.name,alignItems:"flex-start",flexWrap:"wrap"},u.createElement(B1,{},u.createElement(j1,{},u.createElement(_o,st(ye({icon:av},!N.isNewer&&N.prerelease&&{color:"warning",variant:"outlined"}),{onClick:()=>IC(N.tag_name)}),ci("Install ",N.name,N.isNewer?"":" (older)")),u.createElement(ze,{mt:1},cMe(N.body)))))))):u.createElement(_o,{variant:"outlined",icon:av,onClick(){return f(!0),ct("check_update").then(z=>y(z.options),Et)},onContextMenu(z){return rt(this,null,function*(){if(z.preventDefault(),!n.updatePossible)return Et("Automatic update is only for binary versions","warning");const N=yield Wh("Enter a link to the zip to install");N&&(yield IC(N))})},title:n.updatePossible&&"Right-click if you want to install a zip"},"Check for updates"))}function cMe(e){return tr(e,{onText:t});function t(n){return nE(n,new RegExp("(?<=^|\\W)#(\\d+)\\b","g"),r=>u.createElement(ts,{href:r0+"issues/"+r[1],target:"_blank"},u.createElement(tj)))}}function IC(e){return rt(this,null,function*(){if(!(yield hr("Installation may take less than a minute, depending on the speed of your server")))return;or("Downloading"),yield ct("update",{tag:e}),or("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 Hh(500);n==null||n.close(),b5(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:J6,info:ry,"":ry,warning:f0,error:d0}[e],{sx:{mr:1,color:e?void 0:"primary.main"}}),...t)}function uMe(e="File System page"){return u.createElement(m0,{to:"fs"},e)}function $g(e="Options page"){return u.createElement(m0,{to:"options"},e)}function LS(e,t){return e.data&&!e.data.proxies&&(t==null?void 0:t.proxyDetected)&&"A proxy was detected but none is configured"}var nj={},dMe=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)},fMe=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]}),pMe=ln&&ln.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),hMe=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)&&fMe(t,e,n);return pMe(t,e),t},mMe=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(nj,"__esModule",{value:!0});var Xf=hMe(u),gMe=13,vMe=9,yMe=8,bMe=89,Rg=90,wMe=77,LD=57,FD=219,ND=222,BD=192,CMe=27,jD=100,xMe=3e3,SMe=typeof window!="undefined"&&"navigator"in window&&/Win/i.test(navigator.platform),MC=typeof window!="undefined"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),cv="npm__react-simple-code-editor__textarea",PMe=`
|
|
762
|
-
/**
|
|
763
|
-
* Reset the text fill color so that placeholder is visible
|
|
764
|
-
*/
|
|
765
|
-
.`.concat(cv,`: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(cv,` {
|
|
779
|
-
color: transparent !important;
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
.`).concat(cv,`::selection {
|
|
783
|
-
background-color: #accef7 !important;
|
|
784
|
-
color: transparent !important;
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
`),EMe=function(e){dMe(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>jD){var h=p-jD;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<xMe){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===CMe&&r.currentTarget.blur();var c=r.currentTarget,f=c.value,p=c.selectionStart,h=c.selectionEnd,y=(i?" ":" ").repeat(s);if(r.keyCode===vMe&&!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(z,N){return N>=m&&N<=C&&z.startsWith(y)?z.substring(y.length):z}).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(_,$){return $>=x&&$<=P?y+_:_}).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===yMe){var E=p!==h,I=f.substring(0,p);if(I.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===gMe){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 T=`
|
|
793
|
-
`+O[0],M=p+T.length;n._applyEdits({value:f.substring(0,p)+T+f.substring(h),selectionStart:M,selectionEnd:M})}}}else if(r.keyCode===LD||r.keyCode===FD||r.keyCode===ND||r.keyCode===BD){var A=void 0;r.keyCode===LD&&r.shiftKey?A=["(",")"]:r.keyCode===FD?r.shiftKey?A=["{","}"]:A=["[","]"]:r.keyCode===ND?r.shiftKey?A=['"','"']:A=["'","'"]:r.keyCode===BD&&!r.shiftKey&&(A=["`","`"]),p!==h&&A&&(r.preventDefault(),n._applyEdits({value:f.substring(0,p)+A[0]+f.substring(p,h)+A[1]+f.substring(h),selectionStart:p,selectionEnd:h+2}))}else(MC?r.metaKey&&r.keyCode===Rg:r.ctrlKey&&r.keyCode===Rg)&&!r.shiftKey&&!r.altKey?(r.preventDefault(),n._undoEdit()):(MC?r.metaKey&&r.keyCode===Rg&&r.shiftKey:SMe?r.ctrlKey&&r.keyCode===bMe:r.ctrlKey&&r.keyCode===Rg&&r.shiftKey)&&!r.altKey?(r.preventDefault(),n._redoEdit()):r.keyCode===wMe&&r.ctrlKey&&(!MC||r.shiftKey)&&(r.preventDefault(),n.setState(function(z){return{capture:!z.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 I=r.preClassName,R=mMe(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},T=l(o);return Xf.createElement("div",wr({},R,{style:wr(wr({},Zf.container),s)}),Xf.createElement("pre",wr({className:I,"aria-hidden":"true",style:wr(wr(wr({},Zf.editor),Zf.highlight),O)},typeof T=="string"?{dangerouslySetInnerHTML:{__html:T+"<br />"}}:{children:T})),Xf.createElement("textarea",{ref:function(A){return n._input=A},style:wr(wr(wr({},Zf.editor),Zf.textarea),O),className:cv+(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}),Xf.createElement("style",{dangerouslySetInnerHTML:{__html:PMe}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(Xf.Component),kMe=nj.default=EMe,Zf={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}};const Yk=u.forwardRef((r,n)=>{var o=r,{style:e}=o,t=At(o,["style"]);return u.createElement(kMe,ye({highlight:Sfe,padding:10,tabSize:4,insertSpaces:!0,ignoreTabKey:!1,style:ye({fontFamily:"ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace",fontSize:"1em",flex:1,background:"#8883",borderBottom:"1px solid #bbb"},e)},t))});function IMe(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(ja,st(ye({multiline:!0,fullWidth:!0,value:l,InputProps:{inputComponent:MMe},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),G1(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 MMe=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(Yk,st(ye({ref:n,padding:2,style:{background:"initial",borderBottom:"initial"}},t),{onValueChange:s=>e({target:{value:s}}),onKeyDown(s){G1(s)==="Enter"&&s.preventDefault()}})))});let Pa,FS;const rj=L2({changes:{}});F2(rn,e=>{e.some(t=>t[1][0]==="config")&&oj()});const Ey={log:"Access",error_log:"Access error",console:"Console"},zD=Wi;function TMe(){var m;const{data:e,reload:t,element:n}=Qn("get_config",{omit:["vfs"]}),r=Vs(),{changes:o}=N2(rj),s=Qn(e&&"get_status"),i=s.data,l=FS=s.reload;u.useEffect(()=>void l(),[e]),u.useEffect(()=>()=>FS=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:zo,min:1,unit:"KB/s",placeholder:"no limit",sm:6},h={comp:zo,min:0,placeholder:"no limit",toField:C=>C||"",sm:4},y=f.https_port>=0;return u.createElement(Uc,{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(c0)},"Reload"),u.createElement(Yn,{component:LP,to:"/edit",startIcon:u.createElement(zE)},a?"Edit config file":"File")],defaults(){return{sm:6}},fields:[{k:"port",comp:HD,md:4,label:"HTTP port",status:(i==null?void 0:i.http)||!0,suggestedPort:80},{k:"https_port",comp:HD,md:4,label:"HTTPS port",status:(i==null?void 0:i.https)||!0,suggestedPort:443,onChange(C){return C>=0&&!y&&!f.cert&&ky().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:Ap,md:4,label:"HTTPS certificate file",helperText:xa("HTTPS#certificate","What is this?"),error:Pl(i==null?void 0:i.https.error,C=>Qk(C)&&(i.https.listening?C:[C," - ",u.createElement(cl,{key:"fix",onClick:ky},"make one")]))},y&&ye({k:"private_key",comp:Ap,md:4,label:"HTTPS private key file"},Pl(i==null?void 0:i.https.error,C=>Xk(C)?{error:!0,helperText:C}:null)),{k:"favicon",comp:Ap,placeholder:"None",fileMask:"*.png|*.ico|*.jpg|*.jpeg|*.gif|*.svg",helperText:"The icon associated to your website"},{k:"allowed_referer",placeholder:"any",label:"Links from other websites",comp:_Me,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(ye({k:"max_kbps"},p),{label:"Limit output",helperText:"Doesn't apply to localhost"}),st(ye({k:"max_kbps_per_ip"},p),{label:"Limit output per-IP"}),st(ye({k:Dn.max_downloads},h),{helperText:"Number of simultaneous downloads"}),st(ye({k:Dn.max_downloads_per_ip},h),{label:"Max downloads per-IP"}),st(ye({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:zo,md:3,min:0,unit:"seconds",placeholder:"Never",helperText:"Leave empty to never delete"},{k:"min_available_mb",comp:zo,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:zo,sm:3,min:5,unit:"seconds",required:!0},{k:"zip_calculate_size_for_seconds",comp:zo,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:zD,label:"Admin-panel accessible from",placeholder:"any address",helperText:u.createElement(u.Fragment,{},"IP address of browser machine. ",u.createElement(pp))},{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:zo,min:0,max:9,label:"How many HTTP proxies between this server and users?",error:LS(f,i),helperText:"Wrong number will prevent detection of users' IP address"},{k:"mime",comp:Eh,label:!1,reorder:!0,prepend:!0,md:6,fields:[{k:"k",label:"File mask",helperText:u.createElement(pp),$width:1,$column:{renderCell:({value:C,id:w})=>u.createElement("code",{},C,C==="*"&&w<Ze.size(f.mime)-1&&Wr(f0,tr("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:Eh,prepend:!0,sm:12,fields:[{k:"ip",label:"Blocked IP",sm:6,required:!0,helperText:u.createElement(pp)},{k:"expire",$type:"dateTime",minDate:new Date,sm:6,helperText:"Leave empty for no expiration"},{k:"comment"}]},{k:"server_code",comp:IMe,sm:12,getError:C=>hfe(()=>new Function(C)&&null,w=>w.message),helperText:tr(`This code works similarly to [a plugin](${r0}blob/main/dev-plugins.md) (with some limitations)`)},u.createElement(VD,{title:"Log"}),{k:"log",label:Ey.log,md:3,helperText:"Requests are logged here"},{k:"error_log",label:Ey.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:zD,label:"Don't log address",md:3,placeholder:"no exception",helperText:u.createElement(pp)},{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(VD,{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:zo,xs:6,sm:4,min:0,max:nfe,label:"Default tiles size",helperText:"Zero = list mode"},{k:"theme",comp:Kr,xs:6,sm:4,options:ofe},{k:"sort_by",comp:Kr,xs:6,sm:4,options:rfe},{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 T,A;if(Ze.isEmpty(o))return or("Nothing to save");const C=window.location,w=["port","https_port"];if(w.every(z=>o[z]!==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=[(T=i==null?void 0:i.http)==null?void 0:T.listening,(A=i==null?void 0:i.https)==null?void 0:A.listening],x=location.protocol==="https:";x&&(w.reverse(),b.reverse());const P=o[w[0]],M=f[w[1]],E=M>0&&b[1],I=x?"http":"https";if(P<0&&!E)return Et("You cannot switch off this port unless you have a working fixed port for "+I,"warning");if(P===0&&!E)return Et("You cannot randomize this port unless you have a working fixed port for "+I,"warning");if(P>0&&!(yield hr("You are changing the port and you may be disconnected")))return;const R="cert"in o||"private_key"in o;if(x&&R&&!(yield hr("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 z=QN(o.listen_interface||C.hostname);return window.location.href=P<=0?`${x?"http:":"https:"}//${z}:${M}${C.pathname}`:`${C.protocol}//${z}:${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),oj(),or("Changes applied","success")})}}function VD({title:e,subtitle:t}){return u.createElement(ch,{},u.createElement("h3",{style:{margin:0}},e),u.createElement(ze,{fontSize:"small"},t))}function oj(){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);rj.changes=e}function Qk(e){return/certificate/.test(e)}function Xk(e){return/private key/.test(e)}function HD({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)||Xk(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(zo,{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 _Me({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(pp)}))}function pp(){return xa("Wildcards","Wildcards supported")}function ky(){return rt(this,null,function*(){return new Promise(e=>{const{close:t}=po({icon:BE,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(m0,{to:"internet",onClick:t},"get a free but proper certificate"),"."),u.createElement(ze,{},"If you don't have a domain ",u.createElement(cl,{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=f5();try{yield Hh(50);const o=yield ct("save_pem",yield $Me({}));r(),yield ct("set_config",{values:o}),Pa&&Object.assign(Pa,o),setTimeout(FS,1e3),Object.assign(rn.config,o),t(),yield Et("Certificate saved","success")}finally{r()}})}})})}function $Me(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 Zk={},RMe=et;Object.defineProperty(Zk,"__esModule",{value:!0});var sj=Zk.default=void 0,OMe=RMe(tt()),DMe=Je();sj=Zk.default=(0,OMe.default)((0,DMe.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"}),"SmartToy");function AMe(){const[e,t]=u.useState(0),n=yfe(Ey),{pause:r,pauseButton:o}=v5(),[s,i]=y5(a=>({title:"Show/hide APIs",icon:sj,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(w2,{value:e,onChange(a,c){t(c)}},n.map(a=>u.createElement(Yv,{label:Ze.get(l,a)||Ey[a],key:a}))),u.createElement(ze,{flex:1}),i,o),u.createElement(LMe,{key:e,pause:r,showApi:s,file:n[e]}))}function LMe({file:e,pause:t,showApi:n}){const[r,o]=u.useState(!1),[s,i]=u.useState(!1),{list:l,error:a,connecting:c}=El("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 "+Sl(h.size,{sep:Wde}):p.status===Qd&&((y=p.uri)!=null&&y.startsWith(Hu+"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(Jh,{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(Hu))},[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(oy,{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(oy,{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})=>Sl(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&&ij(p)},{field:"notes",headerName:"Notes",width:105,hideUnder:"sm",cellClassName:"wrap",renderCell:({value:p})=>p&&tr(p)},{field:"uri",headerName:"URI",flex:2,minWidth:100,mergeRender:{other:"method",fontSize:"small"},renderCell:({value:p,row:h})=>{var b;const[y,v]=dfe("?",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(Hu))return[y,v&&u.createElement(ze,{key:0,component:"span",color:"text.secondary",fontSize:"smaller"},"?",v)];const C=y.slice(Hu.length),w=v&&": "+Array.from(new URLSearchParams(v)).map(x=>{var P;return`${x[0]}=${(P=vfe(x[1]))!=null?P:x[1]}`}).join(" ; ");return"API "+C+w}}]})}function ij(e){const t="https://upload.wikimedia.org/wikipedia/commons/",n=kfe(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(FMe,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 FMe={apple:/Mac OS|iPhone OS/,win:/Windows NT/,android:/Android/,linux:/Linux/};function NMe(){return u.createElement(u.Fragment,{},u.createElement(jMe),u.createElement(zMe))}const BMe=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function jMe(){const{data:e,element:t}=Qn("get_status"),{data:n}=Mue("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:Sl,minWidth:"4em"}),s&&i("got",{render:Sl,minWidth:"4em"}),i("outSpeed",{label:"Output speed",render:NS}),o&&i("inSpeed",{label:"Input speed",render:NS}));function i(a,{label:c,minWidth:f,render:p}={}){let h=Ze.get(e,a);if(h===void 0)return null;typeof h=="string"&&BMe.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(jh,{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 zMe(){var a;const{list:e,error:t,props:n}=El("get_connections"),r=Qn("get_config",{only:[Dn.geo_enable]}),{monitorOnlyFiles:o}=Vs(),{pause:s,pauseButton:i}=v5(),l=u.useMemo(()=>e==null?void 0:e.filter(c=>!o||c.op).map((c,f)=>ye({id:f},c)),[!s&&e,o]);return u.createElement(u.Fragment,{},u.createElement(ze,{display:"flex",alignItems:"center"},u.createElement(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(Jh,{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(oy,{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(m5,{icon:f.archive?k5:f.op==="upload"?Kh:vE,progress:(p=f.opProgress)!=null?p:f.opOffset,offset:f.opOffset,addTitle:f.opTotal&&"Total: "+Sl(f.opTotal),sx:{mr:1}}),f.archive?u.createElement(ze,{},c,u.createElement(ze,{fontSize:"x-small",color:"text.secondary"},f.archive)):Pl(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})=>NS(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})=>Sl(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(g0,"HTTPS",{opacity:.5}))},{field:"agent",headerName:"Agent",hideUnder:"lg",renderCell:({value:c})=>ij(c)}],actionsProps:{hideUnder:"sm"},actions:({row:c})=>[u.createElement(dn,{icon:P5,title:"Disconnect",onClick:()=>ct("disconnect",Ze.pick(c,["ip","port"])).then(()=>or("Disconnection requested"))}),u.createElement(dn,{icon:E5,title:"Block IP",confirm:"Block address "+c.ip,disabled:c.ip===(n==null?void 0:n.you),onClick:()=>VMe(c.ip)})]}))}function VMe(e){return $fe("block",t=>[...t,{ip:e}])}function NS(e){return e===void 0?"":cfe(e*1e3,{digits:1})}var Jk={},HMe=et;Object.defineProperty(Jk,"__esModule",{value:!0});var lj=Jk.default=void 0,UMe=HMe(tt()),WMe=Je();lj=Jk.default=(0,UMe.default)((0,WMe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20m6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9"}),"DoNotDisturb");var eI={},GMe=et;Object.defineProperty(eI,"__esModule",{value:!0});var tI=eI.default=void 0,KMe=GMe(tt()),qMe=Je();tI=eI.default=(0,KMe.default)((0,qMe.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");var nI={},YMe=et;Object.defineProperty(nI,"__esModule",{value:!0});var aj=nI.default=void 0,QMe=YMe(tt()),XMe=Je();aj=nI.default=(0,QMe.default)((0,XMe.jsx)("path",{d:"M17 10.43V2H7v8.43c0 .35.18.68.49.86l4.18 2.51-.99 2.34-3.41.29 2.59 2.24L9.07 22 12 20.23 14.93 22l-.78-3.33 2.59-2.24-3.41-.29-.99-2.34 4.18-2.51c.3-.18.48-.5.48-.86m-4 1.8-1 .6-1-.6V3h2z"}),"MilitaryTech");var rI={},ZMe=et;Object.defineProperty(rI,"__esModule",{value:!0});var cj=rI.default=void 0,JMe=ZMe(tt()),eTe=Je();cj=rI.default=(0,JMe.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 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person");var oI={},tTe=et;Object.defineProperty(oI,"__esModule",{value:!0});var uj=oI.default=void 0,nTe=tTe(tt()),rTe=Je();uj=oI.default=(0,nTe.default)((0,rTe.jsx)("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonAdd");var sI={},oTe=et;Object.defineProperty(sI,"__esModule",{value:!0});var dj=sI.default=void 0,sTe=oTe(tt()),UD=Je();dj=sI.default=(0,sTe.default)([(0,UD.jsx)("path",{d:"M15 2h-3.5l-1-1h-5l-1 1H1v2h14zm1 7c-.7 0-1.37.1-2 .29V5H2v12c0 1.1.9 2 2 2h5.68c1.12 2.36 3.53 4 6.32 4 3.87 0 7-3.13 7-7s-3.13-7-7-7m0 12c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"0"),(0,UD.jsx)("path",{d:"M16.5 12H15v5l3.6 2.1.8-1.2-2.9-1.7z"},"1")],"AutoDelete");function iTe({account:e,done:t,groups:n,addToBar:r,reload:o}){const{username:s}=Vs(),[i,l]=u.useState(e),[a,c]=u.useState([]);u.useEffect(()=>{var v,m;l(e),c(n.filter(C=>C!==e.username)),Mfe()||(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(Uc,{formRef:h,values:i,set(v,m){l(C=>st(ye({},C),{[m]:v}))},barSx:ye({gap:2,width:"100%"},rE()),stickyBar:!0,addToBar:[!f&&u.createElement(dn,st(ye({icon:$l,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:dj,title:"Invalidate past sessions",doneMessage:!0,disabled:e.invalidated,onClick:()=>ct("invalidate_sessions",{username:e.username}).then(o)}),...s0(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"},ye({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:p0,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:ES,helperText:"If you want this account to be redirected to a specific folder/address at login time"}],onError:Et,save:{sx:Xd(!ty(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 BS(i.username,v)}catch(I){throw ct("del_account",{username:i.username}).then(),I}t(E==null?void 0:E.username),or("Account created","success");return}const P=yield ct("set_account",{username:e.username,changes:x});v&&(yield BS(i.username,v)),e.username===s&&(rn.username=i.username),setTimeout(()=>or("Account modified","success"),1),t(P==null?void 0:P.username)})}}})}function BS(e,t){return rt(this,null,function*(){const n=new yc.SRPRoutines(new yc.SRPParameters),r=yield yc.createVerifierAndSalt(n,e,t);return ct("change_srp_others",{username:e,salt:String(r.s),verifier:String(r.v)}).catch(o=>{if(o.code!==Kde)throw o;return ct("change_password_others",{username:e,newPassword:t})})})}const TC={fieldSeparator:",",lineSeparator:`
|
|
795
|
-
`,quote:'"'},Og={field:0,fieldOffset:0,line:0,lineOffset:0,quoted:!1,appendCell:!1,appendField:!1,appendRow:!1};class WD extends Error{constructor(t,n){super(`Invalid CSV at ${t}:${n}`)}}class lTe{constructor(t=TC){wi(this,"_rows",[]);wi(this,"_row",[]);wi(this,"_cell","");wi(this,"_options",TC);wi(this,"_state",ye({},Og));wi(this,"_index",0);wi(this,"_current","");wi(this,"_previous","");wi(this,"_quoteState",ye({},Og));this._options=Object.assign({},TC,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 WD(this._quoteState.line,this._quoteState.lineOffset);return this.makeImmutable(),this._rows}get rows(){return this._rows}get json(){if(this.rows.length>0){const t=this.rows[0].filter(n=>typeof n=="string");return Object.freeze(this.rows.filter((n,r)=>n&&r>0).map(n=>{const r={};return t.forEach((o,s)=>{r[o]=n[s]}),Object.freeze(r)}))}return Object.freeze([])}handleNext(){this.handleQuote()||this.handleFieldSeparator()||this.handleLineSeparator(),this.processState()}handleQuote(){return this._current===this._options.quote?(this._quoteState=ye({},this._state),this._previous==="\\"?this.handleQuoteEscaped():this.handleQuoteNotEscaped(),!0):!1}handleQuoteEscaped(){this._cell=this._cell.slice(0,Math.max(0,this._cell.length-1))}handleQuoteNotEscaped(){if(this._cell.length===0||this._state.quoted)this._state.quoted=!this._state.quoted;else throw new WD(this._state.line,this._state.lineOffset);this._state.appendCell=!1}handleFieldSeparator(){return this._current===this._options.fieldSeparator?(this._state.quoted||(this._state.appendCell=!1,this._state.appendField=!0),!0):!1}handleLineSeparator(){return this._current===this._options.lineSeparator?(this._state.quoted||(this._state.appendCell=!1,this._state.appendField=!0,this._state.appendRow=!0),!0):!1}processState(){this._state.appendCell&&(this._cell+=this._current),this._state.appendField&&(this.addField(this.fieldValue(this._cell),this._row,this._state),this._cell=""),this._state.appendRow&&(this.addRow(this._row,this._rows,this._state),this._row=[]),this._state.lineOffset++,this._state.fieldOffset++}fieldValue(t){return t}addField(t,n,r){n.push(t),r.field++,r.fieldOffset=-1,r.appendField=!1}addRow(t,n,r){n.push(t),r.field=0,r.line++,r.lineOffset=-1,r.appendRow=!1}makeImmutable(){this.rows.forEach(t=>{t.forEach(n=>Object.freeze(n)),Object.freeze(t)}),Object.freeze(this._rows)}reset(){this._rows=[],this._row=[],this._cell="",this._state=ye({},Og),this._index=0,this._current="",this._previous="",this._quoteState=ye({},Og)}}function aTe(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 lTe().parse(r.trim()),i={comp:zo,min:1,max:9,xs:6,typing:!0},l={skipFirstLines:0,usernameColumn:1,passwordColumn:2,groupColumn:3,redirectColumn:4,overwriteExistingAccounts:!1},a=yield ph({title:"Import accounts from CSV",dialogProps:{maxWidth:"sm"},values:l,form:p=>{const h=s[p.skipFirstLines||0],y=f(h,ye(ye({},l),p));return{save:{startIcon:u.createElement(Kh),children:"Go"},fields:[u.createElement(ze,{p:1},"Total lines:",s.length),{k:"skipFirstLines",comp:zo,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(ye({k:"usernameColumn"},i),{helperText:u.createElement(u.Fragment,{},"First username: ",y.u)}),st(ye({k:"passwordColumn"},i),{helperText:u.createElement(u.Fragment,{},"First password: ",y.p)}),st(ye({k:"groupColumn"},i),{helperText:u.createElement(u.Fragment,{},"First group: ",y.g)}),st(ye({k:"redirectColumn"},i),{helperText:u.createElement(u.Fragment,{},"First redirect: ",y.r)})]}}});if(!a)return;const{close:c}=po({title:"Importing...",Content(){const[p,h]=u.useState(0),[y,v]=u.useState();return u.useEffect(()=>{let m=!1;return setTimeout(()=>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 I=f(E,a);v(I),h(M++/x),yield ct("add_account",{username:I.u,belongs:(P=I.g)==null?void 0:P.split(","),redirect:I.r,overwrite:a.overwriteExistingAccounts}).then(()=>{if(I.p)return BS(I.u,I.p)},R=>{if(R.code===qde)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(m5,{icon:tI,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 cTe(){const{username:e}=Vs(),{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($l)},"Remove")),u.createElement(Vh,{},o.map(v=>u.createElement(g2,{key:v},u.createElement(Di,{},v))))):Pl(a||{username:"",hasPassword:o==="new-user",adminActualAccess:!1,invalidated:!0},v=>u.createElement(iTe,{account:v,groups:l.filter(m=>!m.hasPassword).map(m=>m.username),addToBar:f&&[u.createElement(ze,{flex:1}),GD(v,{fontSize:"large",sx:{p:1}}),u.createElement(dn,{icon:u0,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(uj),items:[{children:"user",onClick:()=>s("new-user")},{children:"group",onClick:()=>s("new-group")},{children:"from CSV",onClick:()=>aTe(n)}]},"Add"),h0(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"},tr`To access administration <u>remotely</u> you will need to create a user account with admin permission`),u.createElement(FB,{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(CS,{key:v.username,nodeId:v.username,label:u.createElement(ze,{sx:{display:"flex",flexWrap:"wrap",padding:".2em 0",gap:".5em",alignItems:"center"}},GD(v),v.adminActualAccess&&Wr(aj,"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(B1,{},u.createElement(j1,{},p))));function h(){s([])}function y(){return rt(this,null,function*(){if(!(o.length>Ze.pull(o,e).length&&!(yield hr(`Will delete the rest but not current account (${e})`)))&&o.length&&(yield hr(`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 GD(e,t={}){return u.createElement(u.Fragment,{},u.createElement(e.hasPassword?cj:tI,t),e.disabled&&u.createElement(lj))}var iI={},uTe=et;Object.defineProperty(iI,"__esModule",{value:!0});var fj=iI.default=void 0,dTe=uTe(tt()),fTe=Je();fj=iI.default=(0,dTe.default)((0,fTe.jsx)("path",{d:"M13 3h-2v10h2zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83"}),"PowerSettingsNew");function pTe(){const{element:e}=Qn("get_config",{only:[]}),{username:t}=Vs();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(_o,{icon:k2,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(_o,{icon:fj,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 hTe(){const{list:e,error:t,connecting:n,reload:r}=El("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(Kh),onClick:i},"Add"),u.createElement(ze,{flex:1}),u.createElement(mTe,{langs:o})),u.createElement(Jh,{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:$l,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(),or("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(),or("Loaded")}catch(c){yield Et(c)}}),{accept:".json"})}}function mTe({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 lI={},gTe=et;Object.defineProperty(lI,"__esModule",{value:!0});var jS=lI.default=void 0,vTe=gTe(tt()),yTe=Je();jS=lI.default=(0,vTe.default)((0,yTe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m4 14H8V8h8z"}),"StopCircle");var aI={},bTe=et;Object.defineProperty(aI,"__esModule",{value:!0});var pj=aI.default=void 0,wTe=bTe(tt()),CTe=Je();pj=aI.default=(0,wTe.default)((0,CTe.jsx)("path",{d:"M16 18v2H8v-2zM11 7.99V16h2V7.99h3L12 4 8 7.99z"}),"Upgrade");function KD({updates:e}){const{list:t,updateEntry:n,error:r,updateList:o,initializing:s}=El(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(Jh,{error:i0(r,bj),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:hj,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:pj,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!==Jx?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}),or("Plugin updated")})}})]:[u.createElement(dn,l.started?{icon:jS,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}),or("Plugin stopped",u.createElement(jS,{color:"warning"}))})}}:{icon:a0,title:`Start ${a}`,size:i,onClick:()=>gj(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 ph({title:`Options for ${a}`,form:w=>({before:u.createElement(ze,{mx:2,mb:3},l.description),fields:mj(l.config),save:{children:"Save and close"},barSx:{gap:1},addToBar:[u.createElement(_o,{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),or("Configuration saved")})}})}}),u.createElement(dn,{icon:$l,title:"Uninstall",size:i,confirm:"Remove?",onClick(){return rt(this,null,function*(){yield ct("uninstall_plugin",{id:a}),or("Plugin uninstalled")})}})]})}function hj({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?Pl(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(d0,{fontSize:"small",color:s?"warning":"error",sx:{ml:-.5,mr:.5}})})}}function mj(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=xTe[r];return a===Eh&&(s=mj(s)),o!==void 0&&r==="boolean"&&(l.placeholder=`Default value is ${JSON.stringify(o)}`),ye({k:t,comp:a,fields:s},l)})}const xTe={string:Wi,number:zo,boolean:An,select:Kr,multiselect:p0,array:Eh,real_path:Ap};function gj(e){return rt(this,null,function*(){try{return yield ct("start_plugin",{id:e}),or("Plugin started",u.createElement(a0,{color:"success"})),!0}catch(t){Et(`Plugin ${e} didn't start, with error: ${String((t==null?void 0:t.message)||t)}`,"error")}})}var cI={},STe=et;Object.defineProperty(cI,"__esModule",{value:!0});var vj=cI.default=void 0,PTe=STe(tt()),ETe=Je();vj=cI.default=(0,PTe.default)((0,ETe.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search");function kTe(){const[e,t]=u.useState(""),n=D2(e,1e3),{list:r,error:o,initializing:s}=El("get_online_plugins",{text:n}),i=Vs();return u.createElement(u.Fragment,{},u.createElement(Wi,{value:e,onChange:t,start:u.createElement(vj),typing:!0,label:"Search text"}),u.createElement(Jh,{error:i0(o,bj),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:hj,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:vE,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 hr("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!==Jx)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 hr(`Plugin ${a} downloaded`,{confirmText:"Start"}))&&(yield gj(f.id))}catch(f){let p=!1;if(f.code===Jx)for(const h of f.cause)h.error==="missing"&&(or("Installing dependency: "+h.repo),yield l(h.repo),p=!0);if(p)return l(a,c);throw f}})}}const yj={Installed:KD,"Search online|Search":kTe,"Check updates|Updates":()=>u.createElement(KD,{updates:!0})},ITe=Object.keys(yj),MTe=Object.values(yj),bj={ENOTFOUND:"Cannot reach github.com"};function TTe(){const[e,t]=u.useState(0),n=!Xo("sm");return u.createElement(u.Fragment,{},u.createElement(w2,{value:e,onChange(r,o){t(o)}},ITe.map(r=>u.createElement(Yv,{key:r,label:r.split("|").slice(n?-1:0)[0]}))),u.createElement(MTe[e]))}const _Te={top:"Top of HTML Body",bottom:"Bottom of HTML Body"};function $Te(){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:(_Te[h]||ci("HTTP ",Xde[h])||Ze.startCase(h))+((y=o[h])!=null&&y.trim()?" *":"")}})},[D2(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"},tr("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}),h0(t),u.createElement(dn,{icon:Uh,title:`Save
|
|
796
|
-
(ctrl+enter)`,sx:Xd(c),onClick:f})),u.createElement(Yk,{value:(o==null?void 0:o[n])||"",style:{background:"#8881"},onValueChange(p){s(h=>st(ye({},h),{[n]:p}))},onKeyDown(p){["s","Enter"].includes(G1(p))&&(f().then(),p.preventDefault())}}));function f(){return ct("set_custom_html",{sections:o}).then(()=>l(o))}}var uI={},RTe=et;Object.defineProperty(uI,"__esModule",{value:!0});var wj=uI.default=void 0,OTe=RTe(tt()),Dg=Je();wj=uI.default=(0,OTe.default)([(0,Dg.jsx)("path",{d:"M17 11h2v2h-2v2h2v2h-2v2h4V5h-9v1.4l5 3.57zm0-4h2v2h-2z",opacity:".3"},"0"),(0,Dg.jsx)("path",{d:"M10 3v1.97l.96.69L12 6.4V5h9v14h-4v2h6V3z"},"1"),(0,Dg.jsx)("path",{d:"M3 12v7h2v-5h6v5h2v-7L8 8.5z",opacity:".3"},"2"),(0,Dg.jsx)("path",{d:"M17 7h2v2h-2zm0 4h2v2h-2zm0 4h2v2h-2zM1 11v10h6v-5h2v5h6V11L8 6zm12 8h-2v-5H5v5H3v-7l5-3.5 5 3.5z"},"3")],"HomeWorkTwoTone");var dI={},DTe=et;Object.defineProperty(dI,"__esModule",{value:!0});var Cj=dI.default=void 0,ATe=DTe(tt()),qD=Je();Cj=dI.default=(0,ATe.default)([(0,qD.jsx)("path",{d:"M14.99 4.59V5c0 1.1-.9 2-2 2h-2v2c0 .55-.45 1-1 1h-2v2h6c.55 0 1 .45 1 1v3h1c.89 0 1.64.59 1.9 1.4C19.19 15.98 20 14.08 20 12c0-3.35-2.08-6.23-5.01-7.41M8.99 16v-1l-4.78-4.78C4.08 10.79 4 11.39 4 12c0 4.07 3.06 7.43 6.99 7.93V18c-1.1 0-2-.9-2-2",opacity:".3"},"0"),(0,qD.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1.01 17.93C7.06 19.43 4 16.07 4 12c0-.61.08-1.21.21-1.78L8.99 15v1c0 1.1.9 2 2 2zm6.9-2.53c-.26-.81-1-1.4-1.9-1.4h-1v-3c0-.55-.45-1-1-1h-6v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41C17.92 5.77 20 8.65 20 12c0 2.08-.81 3.98-2.11 5.4"},"1")],"PublicTwoTone");var fI={},LTe=et;Object.defineProperty(fI,"__esModule",{value:!0});var xj=fI.default=void 0,FTe=LTe(tt()),YD=Je();xj=fI.default=(0,FTe.default)([(0,YD.jsx)("path",{d:"M15 15H5v4h14v-4zm-7 3H6v-2h2zm3.5 0h-2v-2h2zm3.5 0h-2v-2h2z",opacity:".3"},"0"),(0,YD.jsx)("path",{d:"M16 4.2c1.5 0 3 .6 4.2 1.7l.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2m-3.3 2.5.8.8c.7-.7 1.6-1 2.5-1s1.8.3 2.5 1l.8-.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4M19 13h-2V9h-2v4H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2m0 6H5v-4h14zM6 16h2v2H6zm3.5 0h2v2h-2zm3.5 0h2v2h-2z"},"1")],"RouterTwoTone");var pI={},NTe=et;Object.defineProperty(pI,"__esModule",{value:!0});var Sj=pI.default=void 0,BTe=NTe(tt()),jTe=Je();Sj=pI.default=(0,BTe.default)((0,jTe.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var hI={},zTe=et;Object.defineProperty(hI,"__esModule",{value:!0});var Pj=hI.default=void 0,VTe=zTe(tt()),HTe=Je();Pj=hI.default=(0,VTe.default)((0,HTe.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage");const QD=p5.filter(e=>Epe.includes(e.code)),XD="https://portforward.com/",_C=1080,$C=`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 UTe(){var R,O,T,A;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=Pl([(O=(R=i.data)==null?void 0:R.http)==null?void 0:O.error,(A=(T=i.data)==null?void 0:T.https)==null?void 0:A.error],([z,N])=>z&&N?"error":z||N?"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 z=u.useMemo(()=>Ze.sortBy(QD,"name").map(N=>({value:N.code,label:N.name})),[QD]);return u.createElement(OC,{title:"Geo IP",icon:Qv},u.createElement(PS,{keys:[Dn.geo_enable,Dn.geo_allow,Dn.geo_list,Dn.geo_allow_unknown],form:N=>{var _;return{fields:[{k:Dn.geo_enable,comp:An,label:"Enable",helperText:"Necessary database will be downloaded every month (2MB)"},...N[Dn.geo_enable]?[{k:Dn.geo_allow,comp:Kr,label:"Rule",options:{"no restriction":null,"block selected countries":!1,"allow selected countries":!0}},N[Dn.geo_allow]!=null&&{k:Dn.geo_list,comp:p0,label:`Selected countries (${((_=N[Dn.geo_list])==null?void 0:_.length)||0})`,placeholder:"none",options:z,renderOption:$=>u.createElement(oy,{code:$.value,long:!0}),clearable:!0,getError:$=>N[Dn.geo_allow]&&!($!=null&&$.length)&&"Cannot be empty"},N[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[z,N]=u.useState(),_=Qn("get_cert");if(u.useEffect(()=>{ct("get_config",{only:["acme_domain","acme_email","acme_renew"]}).then(N)},[]),!i||!z)return u.createElement(zi);const{https:$}=i.data||{},F=($==null?void 0:$.port)===Ude,V=$==null?void 0:$.error;return c.element||i.element||u.createElement(OC,{title:"HTTPS",icon:g0,color:$!=null&&$.listening&&!V?"success":"warning"},V?u.createElement(Er,{severity:"warning"},V):F&&u.createElement(cl,{onClick:w},"Not enabled"),_.element||Pl(_.data,B=>{var H,K;return B.none?u.createElement(cl,{onClick:()=>ky().then(_.reload)},"No certificate configured"):u.createElement(ze,{},u.createElement(BE,{fontSize:"small",sx:{mr:1,verticalAlign:"middle"}}),"Current certificate",u.createElement("ul",{},u.createElement("li",{},"Domain: ",((H=B.altNames)==null?void 0:H.join(" + "))||"-"),u.createElement("li",{},"Issuer: ",((K=B.issuer)==null?void 0:K.O)||u.createElement("i",{},"self-signed")),u.createElement("li",{},"Validity: ",["validFrom","validTo"].map(Y=>eS(B[Y])).join(" – "))))}),u.createElement(ch),u.createElement(Uc,{gap:1,gridProps:{rowSpacing:1},values:z,set(B,H){N(K=>{const Y=st(ye({},K),{[H]:B});return ct("set_config",{values:Y}),Y})},fields:[tr("Generate certificate using [Let's Encrypt](https://letsencrypt.org)"),{k:"acme_domain",label:"Domain for certificate",sm:6,required:!0,helperText:tr(`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:!z.acme_domain}],save:{children:"Request",startIcon:u.createElement(Sj),onClick(){return rt(this,null,function*(){var J;const[B,...H]=z.acme_domain.split(",");B===((J=_.data.subject)==null?void 0:J.CN)&&Number(new Date(_.data.validTo))-Date.now()>=30*tfe&&!(yield hr("Your certificate is still good",{confirmText:"Make a new one anyway"}))||!(yield hr("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:B}).catch(Q=>hr(String(Q),{confirmText:"Continue anyway"})))===!1||(yield ct("make_cert",{domain:B,altNames:H,email:z.acme_email},{timeout:2e4}).then(()=>rt(this,null,function*(){yield Et("Certificate created","success"),F&&(yield w()),_.reload()}),Et))})}}}))}function w(){return rt(this,null,function*(){if(!(yield hr(`HTTPS is currently disabled.
|
|
798
|
-
Full configuration is available in the Options page.`,{confirmText:"Enable it"})))return;const z=f5();try{yield ct("set_config",{values:{https_port:443}}),yield Hh(1e3),i.reload()}finally{z()}})}function b(){var $;const z=($=l.data)==null?void 0:$.base_url,N=z&&new URL(z).hostname,_=!wfe(N)&&N;return l.element||u.createElement(OC,{icon:Qv,title:"Address / Domain"},u.createElement(qr,{flexWrap:"wrap"},z||"Automatic, not configured",u.createElement(qr,{},u.createElement(_o,{size:"small",variant:"outlined",onClick:()=>void q6().then(l.reload)},"Change"),_&&u.createElement(_o,{size:"small",variant:"outlined",onClick:()=>ct("check_domain",{domain:_}).then(()=>Et("Domain seems ok","success"))},"Check"))),u.createElement(PS,{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(zi);const z=f==null?void 0:f.publicIps.includes(f==null?void 0:f.localIp);return u.createElement(qr,{justifyContent:"space-around"},u.createElement(RC,{name:"Server",icon:z?Pj:wj,color:a,ip:f==null?void 0:f.localIp,below:p&&u.createElement(ze,{fontSize:"smaller"},"port ",p)}),!z&&u.createElement(ZD),!z&&u.createElement(RC,{name:"Router",icon:xj,ip:f==null?void 0:f.gatewayIp,color:(f==null?void 0:f.mapped)&&(h?"warning":"success"),below:o?u.createElement(Gv,{sx:{height:"1em"}}):u.createElement(cl,{fontSize:"smaller",display:"block",onClick:M},"port ",h?"is wrong":(f==null?void 0:f.externalPort)||"unknown")}),u.createElement(ZD),u.createElement(RC,{name:"Internet",icon:Cj,ip:f==null?void 0:f.publicIps,color:e?"success":e===!1?"error":y?"warning":void 0,below:n?u.createElement(Gv,{sx:{height:"1em"}}):u.createElement(ze,{fontSize:"smaller"},y&&u.createElement(cl,{display:"block",onClick:()=>Et($C,"warning")},"Double NAT"),e?"Working!":e===!1?"Failed!":""," ",(f==null?void 0:f.publicIps.length)>0&&f.internalPort&&u.createElement(cl,{onClick:()=>P()},"Verify"))}))}function P(z=!1){return rt(this,null,function*(){var _;yield c.loading;const N=c.getData();if(N&&(t(void 0),!(!z&&!(yield hr("This test will check if your server is working properly on the Internet"))))){r(!0);try{const $=(_=l.data)==null?void 0:_.base_url,F=$&&(yield ct("self_check",{url:$}).catch(()=>Et(tr(`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(tr(`Your configured address ${$} doesn't seem to work 😰
|
|
800
|
-
still, we are going to test your IP address 🤞`),"warning"));const V=yield ct("self_check",{});if(V.some(K=>K.success)){t(!0);const K=F.success===!1&&tr(`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",{},...V.map(Y=>u.createElement("li",{},Y.url)))),K?"warning":"success")}if(t(!1),h)return E().then(v);if(y)return Et($C,"warning");const L="We couldn't reach your server from the Internet. ";if(N.upnp&&!N.mapped)return hr(L+"Try port-forwarding on your router",{confirmText:"Fix it"}).then(K=>rt(this,null,function*(){if(K){try{yield I(N.internalPort,"","")}catch(Y){yield I(_C,"")}or("Port forwarded, now we verify again","success"),v()}}));const B=yield ct("get_config",{only:[Dn.geo_enable,Dn.geo_allow]}),{close:H}=Et(u.createElement(ze,{},L+"Possible causes:",u.createElement("ul",{},B[Dn.geo_enable]&&B[Dn.geo_allow]!=null&&u.createElement("li",{},"You may be blocking a country from where the test is performed"),!N.upnp&&u.createElement("li",{},"Your router may need to be configured. ",u.createElement(ts,{href:XD,target:"help"},"How?")),u.createElement("li",{},"There could be a firewall, try configuring or disabling it."),(N.externalPort||N.internalPort)<=1024&&u.createElement("li",{},"Your Internet Provider may be blocking ports under 1024. ",N.upnp&&u.createElement(Yn,{size:"small",onClick(){H(),I(_C).then(v)}},"Try "+_C)),N.mapped&&u.createElement("li",{},"A bug in your modem/router, try rebooting it."),u.createElement("li",{},$C))),"warning")}catch($){Et($)}finally{r(!1)}}})}function M(){return rt(this,null,function*(){if(!f)return;if(h)return(yield hr(`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},tr(`We cannot help you configuring your router because UPnP is not available.
|
|
803
|
-
Find more help [on this website](${XD}).`)),"info");const z=yield Wh(tr(`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:zo},addToBar:f.mapped&&[u.createElement(Yn,{color:"warning",onClick:N},"Remove")],dialogProps:{sx:{maxWidth:"20em"}}});z&&(yield I(Number(z),"Port forwarded"));function N(){Vi(),I(0,"Port removed")}})}function E(){return f!=null&&f.externalPort?I(f.externalPort,"Forwarding corrected"):Et("externalPort not found","error")}function I(z,N="",_="Operation failed"){return rt(this,null,function*(){s(!0);try{yield ct("map_port",{external:z}),c.reload(),N&&or(N,"success"),t(void 0)}catch($){if(_){const F=z&&Math.min(z,f.internalPort)<1024,V=_+(F?". Some routers refuse to work with ports under 1024.":"");yield Et(V,"error")}throw $}finally{s(!1)}})}}function ZD(){return u.createElement(ze,{flex:1,className:"animated-dashed-line"})}function RC({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"},s0(r).join(`
|
|
805
|
-
`)||"unknown"),o)}function OC({title:e,icon:t,color:n,children:r}){return u.createElement(B1,{},u.createElement(j1,{},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 uv=[{path:"",icon:U1,label:"Home",comp:aMe},{path:"fs",icon:yN,label:"Shared files",comp:NIe},{path:"accounts",icon:CN,comp:cTe},{path:"options",icon:$2,comp:TMe},{path:"internet",icon:Qv,comp:UTe},{path:"monitoring",icon:xN,comp:NMe,noPaddingOnMobile:!0},{path:"logs",icon:wN,comp:AMe,noPaddingOnMobile:!0},{path:"language",icon:SN,comp:hTe},{path:"plugins",icon:bN,comp:TTe,noPaddingOnMobile:!0},{path:"html",icon:PN,label:"Custom HTML",comp:$Te},{path:"logout",icon:k2,comp:pTe}];function JD({onSelect:e}){const{VERSION:t}=l0(),n="hfs-logo.svg",r=W1().height<700;return u.createElement(ze,{display:"flex",flexDirection:"column",bgcolor:"primary.main",minHeight:"100%"},u.createElement(Vh,{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"},nE(t||"",/-/,()=>u.createElement("br"))),r&&u.createElement("img",{src:n,style:{height:"2.5em"}})),uv.map(o=>u.createElement(kie,{key:o.path,to:o.path,component:cq,onClick:e,style:({isActive:s})=>s?{textDecoration:"underline"}:{},children:void 0},o.icon&&u.createElement(ml,{sx:{color:"primary.contrastText",minWidth:48}},u.createElement(o.icon)),u.createElement(Di,{sx:{whiteSpace:"nowrap"},primary:Ej(o)}))),!r&&u.createElement(ze,{sx:{flex:1,opacity:.7,background:`url(${n}) no-repeat bottom`,backgroundSize:"contain",margin:2}})))}function Ej(e){var t;return e&&((t=e.label)!=null?t:Ze.capitalize(e.path))}function WTe({children:e}){const{loginRequired:t}=Vs();return t===n0?u.createElement(Gh,{},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(GTe):u.createElement(u.Fragment,{},e)}function GTe(){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(Gh,{},u.createElement(Uc,{formRef:o,values:e,set(a,c){t(f=>st(ye({},f),{[c]:a}))},fields:[{k:"username",autoComplete:"username",autoFocus:!0,required:!0},{k:"password",type:"password",autoComplete:"current-password",required:!0}],addToBar:[n&&u.createElement(Er,{severity:"error",sx:{flex:1}},n)],saveOnEnter:!0,save:{children:"Enter",startIcon:null,onClick(){return rt(this,null,function*(){try{r(""),yield KTe(e.username,e.password)}catch(a){r(String(a))}})}}}))}function KTe(e,t){return rt(this,null,function*(){const n=yield fde(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,kj(n)})}const kj=Tfe(rn);kj(l0().session);var mI={},qTe=et;Object.defineProperty(mI,"__esModule",{value:!0});var Ij=mI.default=void 0,YTe=qTe(tt()),QTe=Je();Ij=mI.default=(0,YTe.default)((0,QTe.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var Mj={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)}}})})(Mj);var XTe=Mj.exports;const ZTe=pi(XTe);var Tj={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,T,A){var z=A&&A.toUpperCase();return T||w[A]||n[A]||w[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(N,_,$){return _||$.slice(1)})})).match(r),x=b.length,P=0;P<x;P+=1){var M=b[P],E=y[M],I=E&&E[0],R=E&&E[1];b[P]=R?{regex:I,parser:R}:M.replace(/^\[|\]$/g,"")}return function(O){for(var T={},A=0,z=0;A<x;A+=1){var N=b[A];if(typeof N=="string")z+=N.length;else{var _=N.regex,$=N.parser,F=O.slice(z),V=_.exec(F)[0];$.call(T,V),O=O.replace(V,"")}}return function(L){var B=L.afternoon;if(B!==void 0){var H=L.hours;B?H<12&&(L.hours+=12):H===12&&(L.hours=0),delete L.afternoon}}(T),T}}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,I=P.args;this.$u=E;var R=I[1];if(typeof R=="string"){var O=I[2]===!0,T=I[3]===!0,A=O||T,z=I[2];T&&(z=I[2]),l=this.$locale(),!O&&z&&(l=w.Ls[z]),this.$d=function(F,V,L){try{if(["x","X"].indexOf(V)>-1)return new Date((V==="X"?1e3:1)*F);var B=v(V)(F),H=B.year,K=B.month,Y=B.day,J=B.hours,Q=B.minutes,X=B.seconds,te=B.milliseconds,se=B.zone,Z=new Date,pe=Y||(H||K?1:Z.getDate()),ne=H||Z.getFullYear(),re=0;H&&!K||(re=K>0?K-1:Z.getMonth());var me=J||0,ce=Q||0,xe=X||0,ke=te||0;return se?new Date(Date.UTC(ne,re,pe,me,ce,xe,ke+60*se.offset*1e3)):L?new Date(Date.UTC(ne,re,pe,me,ce,xe,ke)):new Date(ne,re,pe,me,ce,xe,ke)}catch(fe){return new Date("")}}(M,R,E),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),A&&M!=this.format(R)&&(this.$d=new Date("")),l={}}else if(R instanceof Array)for(var N=R.length,_=1;_<=N;_+=1){I[1]=R[_-1];var $=w.apply(this,I);if($.isValid()){this.$d=$.$d,this.$L=$.$L,this.init();break}_===N&&(this.$d=new Date(""))}else x.call(this,P)}}})})(Tj);var JTe=Tj.exports;const e_e=pi(JTe);var _j={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)}}})})(_j);var t_e=_j.exports;const n_e=pi(t_e);var $j={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))}}})})($j);var r_e=$j.exports;const o_e=pi(r_e);$r.extend(e_e);$r.extend(n_e);$r.extend(o_e);const s_e=dB(["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"]),i_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"},l_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"},DC=["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
|
-
`),eA=["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
|
-
`),a_e=(e,t)=>t?(...n)=>e(...n).locale(t):e;class c_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=i_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(DC);return $r.utc(s)},this.createTZDate=(s,i)=>{if(!this.hasUTCPlugin())throw new Error(DC);if(!this.hasTimezonePlugin())throw new Error(eA);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&&(s_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(DC);return s.utc()}if(i==="system")return s.local();if(!this.hasTimezonePlugin()){if(i==="default")return s;throw new Error(eA)}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=a_e((o=this.rawDayJsInstance)!=null?o:$r,t),this.locale=t,this.formats=S({},l_e,n),$r.extend(ZTe)}}function u_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(_o,{icon:zk,onClick:f},"Copy excluding passwords"),l?u.createElement(u.Fragment,{},h0(t),u.createElement(dn,{icon:Uh,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(_o,{icon:zE,variant:"outlined",labelFrom:"sm",onClick(){a(!0),setTimeout(()=>ny("main textarea"),500)}},"Edit"),u.createElement(ze,{flex:1,minWidth:"fit-content"},u.createElement($p,{label:"File path",value:e==null?void 0:e.fullPath}))),n||r!==void 0&&u.createElement(Rue,{margin:10},u.createElement(Yk,{value:r,disabled:!l,style:{background:"#8881"},onValueChange:o,onKeyDown(p){["s","Enter"].includes(G1(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,"")),or("copied"))}}function d_e(){return u.createElement(oZ,{theme:Spe()},u.createElement(f_e,{},u.createElement(XE,{dateAdapter:c_e},u.createElement(WTe,{},u.createElement(iq,{},u.createElement(nde,{style:{display:"flex",flexDirection:"column",minHeight:"100%",flex:1,maxWidth:"100%"}},u.createElement(p_e)))))))}function f_e(e){return u.createElement(ze,ye({sx:{bgcolor:"background.default",color:"text.primary",flex:1}},e))}function p_e(){const e=Vd().pathname.slice(1),t=uv.find(a=>a.path===e);let{title:n}=Vs();n=t&&(t.title||Ej(t))||n;const[r,o]=u.useState(!1),s=Xo("lg"),i=t!=null&&t.noPaddingOnMobile?0:1,l=xF();return _N("keydown",({key:a,ctrlKey:c})=>{var h;if(!c)return;const f=Number(i0(a,{0:10}));if(!f)return;const p=(h=uv[f-1])==null?void 0:h.path;p!==void 0&&l(p||"/")}),u.createElement(u.Fragment,{},u.createElement(Oue,{},u.createElement("h1",{},"Admin-panel")),!s&&u.createElement(h_e,{title:n,openMenu:()=>o(!0)}),!s&&u.createElement($oe,{anchor:"left",open:r,onClose(){o(!1)}},u.createElement(JD,{onSelect:()=>o(!1)})),u.createElement(ze,{display:"flex",flex:1},s&&u.createElement(JD),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(JK,{},uv.map((a,c)=>u.createElement(Tx,{key:c,path:a.path,element:u.createElement(a.comp)})),u.createElement(Tx,{path:"edit",element:u.createElement(u_e)})))))}function h_e({title:e,openMenu:t}){return u.createElement(OJ,{position:"sticky",sx:{mb:2}},u.createElement(hN,{},u.createElement(xr,{size:"large",edge:"start",color:"inherit",sx:{mr:2},"aria-label":"menu",onClick:t},u.createElement(Ij)),u.createElement(ze,{component:"h2",m:0},e)))}_fe();pF(document.getElementById("root")).render(u.createElement(u.StrictMode,{},u.createElement(d_e)));export{ln as c,pi as g};
|