hfs 0.47.2 → 0.48.0-alpha1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/assets/index-12bfad23.js +520 -0
- package/admin/assets/{index-62247236.css → index-5f04953d.css} +1 -1
- package/{frontend/assets/sha512-108e3b0a.js → admin/assets/sha512-888f0eaa.js} +1 -1
- package/admin/index.html +2 -2
- package/frontend/assets/index-05dfd82f.css +1 -0
- package/frontend/assets/{index-7eec0199.js → index-12411ff6.js} +15 -15
- package/{admin/assets/sha512-0935647a.js → frontend/assets/sha512-549e6c3a.js} +1 -1
- package/frontend/index.html +2 -2
- package/package.json +20 -13
- package/plugins/vhosting/plugin.js +15 -15
- package/src/adminApis.js +4 -2
- package/src/api.auth.js +0 -3
- package/src/api.file_list.js +8 -7
- package/src/api.lang.js +1 -1
- package/src/api.net.js +133 -0
- package/src/api.plugins.js +31 -36
- package/src/api.vfs.js +1 -1
- package/src/apiMiddleware.js +22 -20
- package/src/config.js +2 -16
- package/src/const.js +4 -2
- package/src/cross.js +221 -0
- package/src/customHtml.js +7 -22
- package/src/debounceAsync.js +12 -9
- package/src/frontEndApis.js +2 -4
- package/src/github.js +86 -40
- package/src/langs/embedded.js +2 -1
- package/src/langs/hfs-lang-de.json +131 -0
- package/src/langs/hfs-lang-it.json +1 -1
- package/src/listen.js +49 -40
- package/src/log.js +3 -3
- package/src/middlewares.js +9 -6
- package/src/misc.js +33 -137
- package/src/plugins.js +46 -26
- package/src/update.js +1 -1
- package/src/util-http.js +11 -8
- package/src/util-os.js +1 -1
- package/admin/assets/index-ca5ac85e.js +0 -518
- package/frontend/assets/index-0ea37f5f.css +0 -1
- package/src/util-generators.js +0 -31
|
@@ -1,518 +0,0 @@
|
|
|
1
|
-
var E9=Object.defineProperty,P9=Object.defineProperties;var I9=Object.getOwnPropertyDescriptors;var Mh=Object.getOwnPropertySymbols;var Ak=Object.prototype.hasOwnProperty,Nk=Object.prototype.propertyIsEnumerable;var Gi=Math.pow,Y0=(e,t,n)=>t in e?E9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ee=(e,t)=>{for(var n in t||(t={}))Ak.call(t,n)&&Y0(e,n,t[n]);if(Mh)for(var n of Mh(t))Nk.call(t,n)&&Y0(e,n,t[n]);return e},$t=(e,t)=>P9(e,I9(t));var nn=(e,t)=>{var n={};for(var r in e)Ak.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Mh)for(var r of Mh(e))t.indexOf(r)<0&&Nk.call(e,r)&&(n[r]=e[r]);return n};var Ki=(e,t,n)=>(Y0(e,typeof t!="symbol"?t+"":t,n),n);var mt=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(d){o(d)}},s=c=>{try{a(n.throw(c))}catch(d){o(d)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});function k9(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Sn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function mp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function kM(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var _M={exports:{}},jt={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var gp=Symbol.for("react.element"),_9=Symbol.for("react.portal"),$9=Symbol.for("react.fragment"),R9=Symbol.for("react.strict_mode"),M9=Symbol.for("react.profiler"),T9=Symbol.for("react.provider"),O9=Symbol.for("react.context"),F9=Symbol.for("react.forward_ref"),L9=Symbol.for("react.suspense"),A9=Symbol.for("react.memo"),N9=Symbol.for("react.lazy"),Dk=Symbol.iterator;function D9(e){return e===null||typeof e!="object"?null:(e=Dk&&e[Dk]||e["@@iterator"],typeof e=="function"?e:null)}var $M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},RM=Object.assign,MM={};function Gu(e,t,n){this.props=e,this.context=t,this.refs=MM,this.updater=n||$M}Gu.prototype.isReactComponent={};Gu.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")};Gu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function TM(){}TM.prototype=Gu.prototype;function lC(e,t,n){this.props=e,this.context=t,this.refs=MM,this.updater=n||$M}var aC=lC.prototype=new TM;aC.constructor=lC;RM(aC,Gu.prototype);aC.isPureReactComponent=!0;var Bk=Array.isArray,OM=Object.prototype.hasOwnProperty,cC={current:null},FM={key:!0,ref:!0,__self:!0,__source:!0};function LM(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)OM.call(t,r)&&!FM.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var c=Array(a),d=0;d<a;d++)c[d]=arguments[d+2];o.children=c}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:gp,type:e,key:i,ref:s,props:o,_owner:cC.current}}function B9(e,t){return{$$typeof:gp,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function uC(e){return typeof e=="object"&&e!==null&&e.$$typeof===gp}function z9(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var zk=/\/+/g;function Q0(e,t){return typeof e=="object"&&e!==null&&e.key!=null?z9(""+e.key):t.toString(36)}function mm(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case gp:case _9:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Q0(s,0):r,Bk(o)?(n="",e!=null&&(n=e.replace(zk,"$&/")+"/"),mm(o,t,n,"",function(d){return d})):o!=null&&(uC(o)&&(o=B9(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(zk,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Bk(e))for(var a=0;a<e.length;a++){i=e[a];var c=r+Q0(i,a);s+=mm(i,t,n,c,o)}else if(c=D9(e),typeof c=="function")for(e=c.call(e),a=0;!(i=e.next()).done;)i=i.value,c=r+Q0(i,a++),s+=mm(i,t,n,c,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Th(e,t,n){if(e==null)return e;var r=[],o=0;return mm(e,r,"","",function(i){return t.call(n,i,o++)}),r}function j9(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 Gr={current:null},gm={transition:null},H9={ReactCurrentDispatcher:Gr,ReactCurrentBatchConfig:gm,ReactCurrentOwner:cC};jt.Children={map:Th,forEach:function(e,t,n){Th(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Th(e,function(){t++}),t},toArray:function(e){return Th(e,function(t){return t})||[]},only:function(e){if(!uC(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};jt.Component=Gu;jt.Fragment=$9;jt.Profiler=M9;jt.PureComponent=lC;jt.StrictMode=R9;jt.Suspense=L9;jt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H9;jt.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=RM({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=cC.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(c in t)OM.call(t,c)&&!FM.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&a!==void 0?a[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){a=Array(c);for(var d=0;d<c;d++)a[d]=arguments[d+2];r.children=a}return{$$typeof:gp,type:e.type,key:o,ref:i,props:r,_owner:s}};jt.createContext=function(e){return e={$$typeof:O9,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:T9,_context:e},e.Consumer=e};jt.createElement=LM;jt.createFactory=function(e){var t=LM.bind(null,e);return t.type=e,t};jt.createRef=function(){return{current:null}};jt.forwardRef=function(e){return{$$typeof:F9,render:e}};jt.isValidElement=uC;jt.lazy=function(e){return{$$typeof:N9,_payload:{_status:-1,_result:e},_init:j9}};jt.memo=function(e,t){return{$$typeof:A9,type:e,compare:t===void 0?null:t}};jt.startTransition=function(e){var t=gm.transition;gm.transition={};try{e()}finally{gm.transition=t}};jt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};jt.useCallback=function(e,t){return Gr.current.useCallback(e,t)};jt.useContext=function(e){return Gr.current.useContext(e)};jt.useDebugValue=function(){};jt.useDeferredValue=function(e){return Gr.current.useDeferredValue(e)};jt.useEffect=function(e,t){return Gr.current.useEffect(e,t)};jt.useId=function(){return Gr.current.useId()};jt.useImperativeHandle=function(e,t,n){return Gr.current.useImperativeHandle(e,t,n)};jt.useInsertionEffect=function(e,t){return Gr.current.useInsertionEffect(e,t)};jt.useLayoutEffect=function(e,t){return Gr.current.useLayoutEffect(e,t)};jt.useMemo=function(e,t){return Gr.current.useMemo(e,t)};jt.useReducer=function(e,t,n){return Gr.current.useReducer(e,t,n)};jt.useRef=function(e){return Gr.current.useRef(e)};jt.useState=function(e){return Gr.current.useState(e)};jt.useSyncExternalStore=function(e,t,n){return Gr.current.useSyncExternalStore(e,t,n)};jt.useTransition=function(){return Gr.current.useTransition()};jt.version="18.2.0";_M.exports=jt;var u=_M.exports;const Io=mp(u),La=k9({__proto__:null,default:Io},[u]);var AM={exports:{}},No={},NM={exports:{}},DM={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* scheduler.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/(function(e){function t(A,H){var W=A.length;A.push(H);e:for(;0<W;){var K=W-1>>>1,Y=A[K];if(0<o(Y,H))A[K]=H,A[W]=Y,W=K;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var H=A[0],W=A.pop();if(W!==H){A[0]=W;e:for(var K=0,Y=A.length,ie=Y>>>1;K<ie;){var re=2*(K+1)-1,de=A[re],se=re+1,le=A[se];if(0>o(de,W))se<Y&&0>o(le,de)?(A[K]=le,A[se]=W,K=se):(A[K]=de,A[re]=W,K=re);else if(se<Y&&0>o(le,W))A[K]=le,A[se]=W,K=se;else break e}}return H}function o(A,H){var W=A.sortIndex-H.sortIndex;return W!==0?W:A.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var c=[],d=[],p=1,h=null,m=3,g=!1,y=!1,v=!1,S=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(A){for(var H=n(d);H!==null;){if(H.callback===null)r(d);else if(H.startTime<=A)r(d),H.sortIndex=H.expirationTime,t(c,H);else break;H=n(d)}}function P(A){if(v=!1,x(A),!y)if(n(c)!==null)y=!0,z(_);else{var H=n(d);H!==null&&V(P,H.startTime-A)}}function _(A,H){y=!1,v&&(v=!1,w(R),R=-1),g=!0;var W=m;try{for(x(H),h=n(c);h!==null&&(!(h.expirationTime>H)||A&&!O());){var K=h.callback;if(typeof K=="function"){h.callback=null,m=h.priorityLevel;var Y=K(h.expirationTime<=H);H=e.unstable_now(),typeof Y=="function"?h.callback=Y:h===n(c)&&r(c),x(H)}else r(c);h=n(c)}if(h!==null)var ie=!0;else{var re=n(d);re!==null&&V(P,re.startTime-H),ie=!1}return ie}finally{h=null,m=W,g=!1}}var k=!1,I=null,R=-1,L=5,N=-1;function O(){return!(e.unstable_now()-N<L)}function D(){if(I!==null){var A=e.unstable_now();N=A;var H=!0;try{H=I(!0,A)}finally{H?B():(k=!1,I=null)}}else k=!1}var B;if(typeof C=="function")B=function(){C(D)};else if(typeof MessageChannel!="undefined"){var M=new MessageChannel,F=M.port2;M.port1.onmessage=D,B=function(){F.postMessage(null)}}else B=function(){S(D,0)};function z(A){I=A,k||(k=!0,B())}function V(A,H){R=S(function(){A(e.unstable_now())},H)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(A){A.callback=null},e.unstable_continueExecution=function(){y||g||(y=!0,z(_))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(A){switch(m){case 1:case 2:case 3:var H=3;break;default:H=m}var W=m;m=H;try{return A()}finally{m=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,H){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var W=m;m=A;try{return H()}finally{m=W}},e.unstable_scheduleCallback=function(A,H,W){var K=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?K+W:K):W=K,A){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=W+Y,A={id:p++,callback:H,priorityLevel:A,startTime:W,expirationTime:Y,sortIndex:-1},W>K?(A.sortIndex=W,t(d,A),n(c)===null&&A===n(d)&&(v?(w(R),R=-1):v=!0,V(P,W-K))):(A.sortIndex=Y,t(c,A),y||g||(y=!0,z(_))),A},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(A){var H=m;return function(){var W=m;m=H;try{return A.apply(this,arguments)}finally{m=W}}}})(DM);NM.exports=DM;var V9=NM.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 BM=u,To=V9;function Te(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var zM=new Set,$f={};function tc(e,t){xu(e,t),xu(e+"Capture",t)}function xu(e,t){for($f[e]=t,e=0;e<t.length;e++)zM.add(t[e])}var js=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),fb=Object.prototype.hasOwnProperty,U9=/^[: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]*$/,jk={},Hk={};function W9(e){return fb.call(Hk,e)?!0:fb.call(jk,e)?!1:U9.test(e)?Hk[e]=!0:(jk[e]=!0,!1)}function G9(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 K9(e,t,n,r){if(t===null||typeof t=="undefined"||G9(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 Kr(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Sr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Sr[e]=new Kr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Sr[t]=new Kr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Sr[e]=new Kr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Sr[e]=new Kr(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){Sr[e]=new Kr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Sr[e]=new Kr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Sr[e]=new Kr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Sr[e]=new Kr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Sr[e]=new Kr(e,5,!1,e.toLowerCase(),null,!1,!1)});var dC=/[\-:]([a-z])/g;function fC(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(dC,fC);Sr[t]=new Kr(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(dC,fC);Sr[t]=new Kr(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(dC,fC);Sr[t]=new Kr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Sr[e]=new Kr(e,1,!1,e.toLowerCase(),null,!1,!1)});Sr.xlinkHref=new Kr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Sr[e]=new Kr(e,1,!1,e.toLowerCase(),null,!0,!0)});function pC(e,t,n,r){var o=Sr.hasOwnProperty(t)?Sr[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(K9(t,n,o,r)&&(n=null),r||o===null?W9(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Qs=BM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Oh=Symbol.for("react.element"),Uc=Symbol.for("react.portal"),Wc=Symbol.for("react.fragment"),hC=Symbol.for("react.strict_mode"),pb=Symbol.for("react.profiler"),jM=Symbol.for("react.provider"),HM=Symbol.for("react.context"),mC=Symbol.for("react.forward_ref"),hb=Symbol.for("react.suspense"),mb=Symbol.for("react.suspense_list"),gC=Symbol.for("react.memo"),vl=Symbol.for("react.lazy"),VM=Symbol.for("react.offscreen"),Vk=Symbol.iterator;function Rd(e){return e===null||typeof e!="object"?null:(e=Vk&&e[Vk]||e["@@iterator"],typeof e=="function"?e:null)}var zn=Object.assign,X0;function Zd(e){if(X0===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);X0=t&&t[1]||""}return`
|
|
26
|
-
`+X0+e}var J0=!1;function Z0(e,t){if(!e||J0)return"";J0=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var o=d.stack.split(`
|
|
27
|
-
`),i=r.stack.split(`
|
|
28
|
-
`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var c=`
|
|
29
|
-
`+o[s].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=s&&0<=a);break}}}finally{J0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Zd(e):""}function q9(e){switch(e.tag){case 5:return Zd(e.type);case 16:return Zd("Lazy");case 13:return Zd("Suspense");case 19:return Zd("SuspenseList");case 0:case 2:case 15:return e=Z0(e.type,!1),e;case 11:return e=Z0(e.type.render,!1),e;case 1:return e=Z0(e.type,!0),e;default:return""}}function gb(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 Wc:return"Fragment";case Uc:return"Portal";case pb:return"Profiler";case hC:return"StrictMode";case hb:return"Suspense";case mb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case HM:return(e.displayName||"Context")+".Consumer";case jM:return(e._context.displayName||"Context")+".Provider";case mC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case gC:return t=e.displayName||null,t!==null?t:gb(e.type)||"Memo";case vl:t=e._payload,e=e._init;try{return gb(e(t))}catch(n){}}return null}function Y9(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 gb(t);case 8:return t===hC?"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 Vl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function UM(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Q9(e){var t=UM(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fh(e){e._valueTracker||(e._valueTracker=Q9(e))}function WM(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=UM(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Vm(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 vb(e,t){var n=t.checked;return zn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function Uk(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Vl(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 GM(e,t){t=t.checked,t!=null&&pC(e,"checked",t,!1)}function yb(e,t){GM(e,t);var n=Vl(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")?bb(e,t.type,n):t.hasOwnProperty("defaultValue")&&bb(e,t.type,Vl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wk(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 bb(e,t,n){(t!=="number"||Vm(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ef=Array.isArray;function au(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=""+Vl(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 wb(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Te(91));return zn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Gk(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Te(92));if(ef(n)){if(1<n.length)throw Error(Te(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Vl(n)}}function KM(e,t){var n=Vl(t.value),r=Vl(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 Kk(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function qM(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 Cb(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?qM(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Lh,YM=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(Lh=Lh||document.createElement("div"),Lh.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Lh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Rf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var uf={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},X9=["Webkit","ms","Moz","O"];Object.keys(uf).forEach(function(e){X9.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),uf[t]=uf[e]})});function QM(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||uf.hasOwnProperty(e)&&uf[e]?(""+t).trim():t+"px"}function XM(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=QM(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var J9=zn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xb(e,t){if(t){if(J9[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Te(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Te(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Te(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Te(62))}}function Sb(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 Eb=null;function vC(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pb=null,cu=null,uu=null;function qk(e){if(e=bp(e)){if(typeof Pb!="function")throw Error(Te(280));var t=e.stateNode;t&&(t=Yg(t),Pb(e.stateNode,e.type,t))}}function JM(e){cu?uu?uu.push(e):uu=[e]:cu=e}function ZM(){if(cu){var e=cu,t=uu;if(uu=cu=null,qk(e),t)for(e=0;e<t.length;e++)qk(t[e])}}function eT(e,t){return e(t)}function tT(){}var e1=!1;function nT(e,t,n){if(e1)return e(t,n);e1=!0;try{return eT(e,t,n)}finally{e1=!1,(cu!==null||uu!==null)&&(tT(),ZM())}}function Mf(e,t){var n=e.stateNode;if(n===null)return null;var r=Yg(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Te(231,t,typeof n));return n}var Ib=!1;if(js)try{var Md={};Object.defineProperty(Md,"passive",{get:function(){Ib=!0}}),window.addEventListener("test",Md,Md),window.removeEventListener("test",Md,Md)}catch(e){Ib=!1}function Z9(e,t,n,r,o,i,s,a,c){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(p){this.onError(p)}}var df=!1,Um=null,Wm=!1,kb=null,eH={onError:function(e){df=!0,Um=e}};function tH(e,t,n,r,o,i,s,a,c){df=!1,Um=null,Z9.apply(eH,arguments)}function nH(e,t,n,r,o,i,s,a,c){if(tH.apply(this,arguments),df){if(df){var d=Um;df=!1,Um=null}else throw Error(Te(198));Wm||(Wm=!0,kb=d)}}function nc(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function rT(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 Yk(e){if(nc(e)!==e)throw Error(Te(188))}function rH(e){var t=e.alternate;if(!t){if(t=nc(e),t===null)throw Error(Te(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Yk(o),e;if(i===r)return Yk(o),t;i=i.sibling}throw Error(Te(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(Te(189))}}if(n.alternate!==r)throw Error(Te(190))}if(n.tag!==3)throw Error(Te(188));return n.stateNode.current===n?e:t}function oT(e){return e=rH(e),e!==null?iT(e):null}function iT(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=iT(e);if(t!==null)return t;e=e.sibling}return null}var sT=To.unstable_scheduleCallback,Qk=To.unstable_cancelCallback,oH=To.unstable_shouldYield,iH=To.unstable_requestPaint,Yn=To.unstable_now,sH=To.unstable_getCurrentPriorityLevel,yC=To.unstable_ImmediatePriority,lT=To.unstable_UserBlockingPriority,Gm=To.unstable_NormalPriority,lH=To.unstable_LowPriority,aT=To.unstable_IdlePriority,Wg=null,rs=null;function aH(e){if(rs&&typeof rs.onCommitFiberRoot=="function")try{rs.onCommitFiberRoot(Wg,e,void 0,(e.current.flags&128)===128)}catch(t){}}var Li=Math.clz32?Math.clz32:dH,cH=Math.log,uH=Math.LN2;function dH(e){return e>>>=0,e===0?32:31-(cH(e)/uH|0)|0}var Ah=64,Nh=4194304;function tf(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 Km(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=tf(a):(i&=s,i!==0&&(r=tf(i)))}else s=n&~o,s!==0?r=tf(s):i!==0&&(r=tf(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Li(t),o=1<<n,r|=e[n],t&=~o;return r}function fH(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 pH(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-Li(i),a=1<<s,c=o[s];c===-1?(!(a&n)||a&r)&&(o[s]=fH(a,t)):c<=t&&(e.expiredLanes|=a),i&=~a}}function _b(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function cT(){var e=Ah;return Ah<<=1,!(Ah&4194240)&&(Ah=64),e}function t1(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Li(t),e[t]=n}function hH(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-Li(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function bC(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Li(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var sn=0;function uT(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var dT,wC,fT,pT,hT,$b=!1,Dh=[],Ml=null,Tl=null,Ol=null,Tf=new Map,Of=new Map,xl=[],mH="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 Xk(e,t){switch(e){case"focusin":case"focusout":Ml=null;break;case"dragenter":case"dragleave":Tl=null;break;case"mouseover":case"mouseout":Ol=null;break;case"pointerover":case"pointerout":Tf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Of.delete(t.pointerId)}}function Td(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=bp(t),t!==null&&wC(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function gH(e,t,n,r,o){switch(t){case"focusin":return Ml=Td(Ml,e,t,n,r,o),!0;case"dragenter":return Tl=Td(Tl,e,t,n,r,o),!0;case"mouseover":return Ol=Td(Ol,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Tf.set(i,Td(Tf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Of.set(i,Td(Of.get(i)||null,e,t,n,r,o)),!0}return!1}function mT(e){var t=xa(e.target);if(t!==null){var n=nc(t);if(n!==null){if(t=n.tag,t===13){if(t=rT(n),t!==null){e.blockedOn=t,hT(e.priority,function(){fT(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 vm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Rb(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Eb=r,n.target.dispatchEvent(r),Eb=null}else return t=bp(n),t!==null&&wC(t),e.blockedOn=n,!1;t.shift()}return!0}function Jk(e,t,n){vm(e)&&n.delete(t)}function vH(){$b=!1,Ml!==null&&vm(Ml)&&(Ml=null),Tl!==null&&vm(Tl)&&(Tl=null),Ol!==null&&vm(Ol)&&(Ol=null),Tf.forEach(Jk),Of.forEach(Jk)}function Od(e,t){e.blockedOn===t&&(e.blockedOn=null,$b||($b=!0,To.unstable_scheduleCallback(To.unstable_NormalPriority,vH)))}function Ff(e){function t(o){return Od(o,e)}if(0<Dh.length){Od(Dh[0],e);for(var n=1;n<Dh.length;n++){var r=Dh[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ml!==null&&Od(Ml,e),Tl!==null&&Od(Tl,e),Ol!==null&&Od(Ol,e),Tf.forEach(t),Of.forEach(t),n=0;n<xl.length;n++)r=xl[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<xl.length&&(n=xl[0],n.blockedOn===null);)mT(n),n.blockedOn===null&&xl.shift()}var du=Qs.ReactCurrentBatchConfig,qm=!0;function yH(e,t,n,r){var o=sn,i=du.transition;du.transition=null;try{sn=1,CC(e,t,n,r)}finally{sn=o,du.transition=i}}function bH(e,t,n,r){var o=sn,i=du.transition;du.transition=null;try{sn=4,CC(e,t,n,r)}finally{sn=o,du.transition=i}}function CC(e,t,n,r){if(qm){var o=Rb(e,t,n,r);if(o===null)d1(e,t,r,Ym,n),Xk(e,r);else if(gH(o,e,t,n,r))r.stopPropagation();else if(Xk(e,r),t&4&&-1<mH.indexOf(e)){for(;o!==null;){var i=bp(o);if(i!==null&&dT(i),i=Rb(e,t,n,r),i===null&&d1(e,t,r,Ym,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else d1(e,t,r,null,n)}}var Ym=null;function Rb(e,t,n,r){if(Ym=null,e=vC(r),e=xa(e),e!==null)if(t=nc(e),t===null)e=null;else if(n=t.tag,n===13){if(e=rT(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 Ym=e,null}function gT(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(sH()){case yC:return 1;case lT:return 4;case Gm:case lH:return 16;case aT:return 536870912;default:return 16}default:return 16}}var Pl=null,xC=null,ym=null;function vT(){if(ym)return ym;var e,t=xC,n=t.length,r,o="value"in Pl?Pl.value:Pl.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return ym=o.slice(e,1<r?1-r:void 0)}function bm(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 Bh(){return!0}function Zk(){return!1}function Do(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Bh:Zk,this.isPropagationStopped=Zk,this}return zn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Bh)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Bh)},persist:function(){},isPersistent:Bh}),t}var Ku={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},SC=Do(Ku),yp=zn({},Ku,{view:0,detail:0}),wH=Do(yp),n1,r1,Fd,Gg=zn({},yp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:EC,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!==Fd&&(Fd&&e.type==="mousemove"?(n1=e.screenX-Fd.screenX,r1=e.screenY-Fd.screenY):r1=n1=0,Fd=e),n1)},movementY:function(e){return"movementY"in e?e.movementY:r1}}),e2=Do(Gg),CH=zn({},Gg,{dataTransfer:0}),xH=Do(CH),SH=zn({},yp,{relatedTarget:0}),o1=Do(SH),EH=zn({},Ku,{animationName:0,elapsedTime:0,pseudoElement:0}),PH=Do(EH),IH=zn({},Ku,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),kH=Do(IH),_H=zn({},Ku,{data:0}),t2=Do(_H),$H={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},RH={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"},MH={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function TH(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=MH[e])?!!t[e]:!1}function EC(){return TH}var OH=zn({},yp,{key:function(e){if(e.key){var t=$H[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bm(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?RH[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:EC,charCode:function(e){return e.type==="keypress"?bm(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bm(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),FH=Do(OH),LH=zn({},Gg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),n2=Do(LH),AH=zn({},yp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:EC}),NH=Do(AH),DH=zn({},Ku,{propertyName:0,elapsedTime:0,pseudoElement:0}),BH=Do(DH),zH=zn({},Gg,{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}),jH=Do(zH),HH=[9,13,27,32],PC=js&&"CompositionEvent"in window,ff=null;js&&"documentMode"in document&&(ff=document.documentMode);var VH=js&&"TextEvent"in window&&!ff,yT=js&&(!PC||ff&&8<ff&&11>=ff),r2=String.fromCharCode(32),o2=!1;function bT(e,t){switch(e){case"keyup":return HH.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wT(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Gc=!1;function UH(e,t){switch(e){case"compositionend":return wT(t);case"keypress":return t.which!==32?null:(o2=!0,r2);case"textInput":return e=t.data,e===r2&&o2?null:e;default:return null}}function WH(e,t){if(Gc)return e==="compositionend"||!PC&&bT(e,t)?(e=vT(),ym=xC=Pl=null,Gc=!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 yT&&t.locale!=="ko"?null:t.data;default:return null}}var GH={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 i2(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!GH[e.type]:t==="textarea"}function CT(e,t,n,r){JM(r),t=Qm(t,"onChange"),0<t.length&&(n=new SC("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var pf=null,Lf=null;function KH(e){TT(e,0)}function Kg(e){var t=Yc(e);if(WM(t))return e}function qH(e,t){if(e==="change")return t}var xT=!1;if(js){var i1;if(js){var s1="oninput"in document;if(!s1){var s2=document.createElement("div");s2.setAttribute("oninput","return;"),s1=typeof s2.oninput=="function"}i1=s1}else i1=!1;xT=i1&&(!document.documentMode||9<document.documentMode)}function l2(){pf&&(pf.detachEvent("onpropertychange",ST),Lf=pf=null)}function ST(e){if(e.propertyName==="value"&&Kg(Lf)){var t=[];CT(t,Lf,e,vC(e)),nT(KH,t)}}function YH(e,t,n){e==="focusin"?(l2(),pf=t,Lf=n,pf.attachEvent("onpropertychange",ST)):e==="focusout"&&l2()}function QH(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Kg(Lf)}function XH(e,t){if(e==="click")return Kg(t)}function JH(e,t){if(e==="input"||e==="change")return Kg(t)}function ZH(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Di=typeof Object.is=="function"?Object.is:ZH;function Af(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(!fb.call(t,o)||!Di(e[o],t[o]))return!1}return!0}function a2(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function c2(e,t){var n=a2(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=a2(n)}}function ET(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ET(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function PT(){for(var e=window,t=Vm();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=Vm(e.document)}return t}function IC(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 e8(e){var t=PT(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ET(n.ownerDocument.documentElement,n)){if(r!==null&&IC(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=c2(n,i);var s=c2(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var t8=js&&"documentMode"in document&&11>=document.documentMode,Kc=null,Mb=null,hf=null,Tb=!1;function u2(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tb||Kc==null||Kc!==Vm(r)||(r=Kc,"selectionStart"in r&&IC(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}),hf&&Af(hf,r)||(hf=r,r=Qm(Mb,"onSelect"),0<r.length&&(t=new SC("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Kc)))}function zh(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var qc={animationend:zh("Animation","AnimationEnd"),animationiteration:zh("Animation","AnimationIteration"),animationstart:zh("Animation","AnimationStart"),transitionend:zh("Transition","TransitionEnd")},l1={},IT={};js&&(IT=document.createElement("div").style,"AnimationEvent"in window||(delete qc.animationend.animation,delete qc.animationiteration.animation,delete qc.animationstart.animation),"TransitionEvent"in window||delete qc.transitionend.transition);function qg(e){if(l1[e])return l1[e];if(!qc[e])return e;var t=qc[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in IT)return l1[e]=t[n];return e}var kT=qg("animationend"),_T=qg("animationiteration"),$T=qg("animationstart"),RT=qg("transitionend"),MT=new Map,d2="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 ea(e,t){MT.set(e,t),tc(t,[e])}for(var a1=0;a1<d2.length;a1++){var c1=d2[a1],n8=c1.toLowerCase(),r8=c1[0].toUpperCase()+c1.slice(1);ea(n8,"on"+r8)}ea(kT,"onAnimationEnd");ea(_T,"onAnimationIteration");ea($T,"onAnimationStart");ea("dblclick","onDoubleClick");ea("focusin","onFocus");ea("focusout","onBlur");ea(RT,"onTransitionEnd");xu("onMouseEnter",["mouseout","mouseover"]);xu("onMouseLeave",["mouseout","mouseover"]);xu("onPointerEnter",["pointerout","pointerover"]);xu("onPointerLeave",["pointerout","pointerover"]);tc("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));tc("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));tc("onBeforeInput",["compositionend","keypress","textInput","paste"]);tc("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));tc("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));tc("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var nf="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(" "),o8=new Set("cancel close invalid load scroll toggle".split(" ").concat(nf));function f2(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,nH(r,t,void 0,e),e.currentTarget=null}function TT(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],c=a.instance,d=a.currentTarget;if(a=a.listener,c!==i&&o.isPropagationStopped())break e;f2(o,a,d),i=c}else for(s=0;s<r.length;s++){if(a=r[s],c=a.instance,d=a.currentTarget,a=a.listener,c!==i&&o.isPropagationStopped())break e;f2(o,a,d),i=c}}}if(Wm)throw e=kb,Wm=!1,kb=null,e}function Cn(e,t){var n=t[Nb];n===void 0&&(n=t[Nb]=new Set);var r=e+"__bubble";n.has(r)||(OT(t,e,2,!1),n.add(r))}function u1(e,t,n){var r=0;t&&(r|=4),OT(n,e,r,t)}var jh="_reactListening"+Math.random().toString(36).slice(2);function Nf(e){if(!e[jh]){e[jh]=!0,zM.forEach(function(n){n!=="selectionchange"&&(o8.has(n)||u1(n,!1,e),u1(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[jh]||(t[jh]=!0,u1("selectionchange",!1,t))}}function OT(e,t,n,r){switch(gT(t)){case 1:var o=yH;break;case 4:o=bH;break;default:o=CC}n=o.bind(null,t,n,e),o=void 0,!Ib||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 d1(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var c=s.tag;if((c===3||c===4)&&(c=s.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;s=s.return}for(;a!==null;){if(s=xa(a),s===null)return;if(c=s.tag,c===5||c===6){r=i=s;continue e}a=a.parentNode}}r=r.return}nT(function(){var d=i,p=vC(n),h=[];e:{var m=MT.get(e);if(m!==void 0){var g=SC,y=e;switch(e){case"keypress":if(bm(n)===0)break e;case"keydown":case"keyup":g=FH;break;case"focusin":y="focus",g=o1;break;case"focusout":y="blur",g=o1;break;case"beforeblur":case"afterblur":g=o1;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=e2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=xH;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=NH;break;case kT:case _T:case $T:g=PH;break;case RT:g=BH;break;case"scroll":g=wH;break;case"wheel":g=jH;break;case"copy":case"cut":case"paste":g=kH;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=n2}var v=(t&4)!==0,S=!v&&e==="scroll",w=v?m!==null?m+"Capture":null:m;v=[];for(var C=d,x;C!==null;){x=C;var P=x.stateNode;if(x.tag===5&&P!==null&&(x=P,w!==null&&(P=Mf(C,w),P!=null&&v.push(Df(C,P,x)))),S)break;C=C.return}0<v.length&&(m=new g(m,y,null,n,p),h.push({event:m,listeners:v}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",m&&n!==Eb&&(y=n.relatedTarget||n.fromElement)&&(xa(y)||y[Hs]))break e;if((g||m)&&(m=p.window===p?p:(m=p.ownerDocument)?m.defaultView||m.parentWindow:window,g?(y=n.relatedTarget||n.toElement,g=d,y=y?xa(y):null,y!==null&&(S=nc(y),y!==S||y.tag!==5&&y.tag!==6)&&(y=null)):(g=null,y=d),g!==y)){if(v=e2,P="onMouseLeave",w="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(v=n2,P="onPointerLeave",w="onPointerEnter",C="pointer"),S=g==null?m:Yc(g),x=y==null?m:Yc(y),m=new v(P,C+"leave",g,n,p),m.target=S,m.relatedTarget=x,P=null,xa(p)===d&&(v=new v(w,C+"enter",y,n,p),v.target=x,v.relatedTarget=S,P=v),S=P,g&&y)t:{for(v=g,w=y,C=0,x=v;x;x=Ec(x))C++;for(x=0,P=w;P;P=Ec(P))x++;for(;0<C-x;)v=Ec(v),C--;for(;0<x-C;)w=Ec(w),x--;for(;C--;){if(v===w||w!==null&&v===w.alternate)break t;v=Ec(v),w=Ec(w)}v=null}else v=null;g!==null&&p2(h,m,g,v,!1),y!==null&&S!==null&&p2(h,S,y,v,!0)}}e:{if(m=d?Yc(d):window,g=m.nodeName&&m.nodeName.toLowerCase(),g==="select"||g==="input"&&m.type==="file")var _=qH;else if(i2(m))if(xT)_=JH;else{_=QH;var k=YH}else(g=m.nodeName)&&g.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(_=XH);if(_&&(_=_(e,d))){CT(h,_,n,p);break e}k&&k(e,m,d),e==="focusout"&&(k=m._wrapperState)&&k.controlled&&m.type==="number"&&bb(m,"number",m.value)}switch(k=d?Yc(d):window,e){case"focusin":(i2(k)||k.contentEditable==="true")&&(Kc=k,Mb=d,hf=null);break;case"focusout":hf=Mb=Kc=null;break;case"mousedown":Tb=!0;break;case"contextmenu":case"mouseup":case"dragend":Tb=!1,u2(h,n,p);break;case"selectionchange":if(t8)break;case"keydown":case"keyup":u2(h,n,p)}var I;if(PC)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 Gc?bT(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(yT&&n.locale!=="ko"&&(Gc||R!=="onCompositionStart"?R==="onCompositionEnd"&&Gc&&(I=vT()):(Pl=p,xC="value"in Pl?Pl.value:Pl.textContent,Gc=!0)),k=Qm(d,R),0<k.length&&(R=new t2(R,e,null,n,p),h.push({event:R,listeners:k}),I?R.data=I:(I=wT(n),I!==null&&(R.data=I)))),(I=VH?UH(e,n):WH(e,n))&&(d=Qm(d,"onBeforeInput"),0<d.length&&(p=new t2("onBeforeInput","beforeinput",null,n,p),h.push({event:p,listeners:d}),p.data=I))}TT(h,t)})}function Df(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qm(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Mf(e,n),i!=null&&r.unshift(Df(e,i,o)),i=Mf(e,t),i!=null&&r.push(Df(e,i,o))),e=e.return}return r}function Ec(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function p2(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,c=a.alternate,d=a.stateNode;if(c!==null&&c===r)break;a.tag===5&&d!==null&&(a=d,o?(c=Mf(n,i),c!=null&&s.unshift(Df(n,c,a))):o||(c=Mf(n,i),c!=null&&s.push(Df(n,c,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var i8=/\r\n?/g,s8=/\u0000|\uFFFD/g;function h2(e){return(typeof e=="string"?e:""+e).replace(i8,`
|
|
30
|
-
`).replace(s8,"")}function Hh(e,t,n){if(t=h2(t),h2(e)!==t&&n)throw Error(Te(425))}function Xm(){}var Ob=null,Fb=null;function Lb(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 Ab=typeof setTimeout=="function"?setTimeout:void 0,l8=typeof clearTimeout=="function"?clearTimeout:void 0,m2=typeof Promise=="function"?Promise:void 0,a8=typeof queueMicrotask=="function"?queueMicrotask:typeof m2!="undefined"?function(e){return m2.resolve(null).then(e).catch(c8)}:Ab;function c8(e){setTimeout(function(){throw e})}function f1(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),Ff(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Ff(t)}function Fl(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 g2(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var qu=Math.random().toString(36).slice(2),ts="__reactFiber$"+qu,Bf="__reactProps$"+qu,Hs="__reactContainer$"+qu,Nb="__reactEvents$"+qu,u8="__reactListeners$"+qu,d8="__reactHandles$"+qu;function xa(e){var t=e[ts];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Hs]||n[ts]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=g2(e);e!==null;){if(n=e[ts])return n;e=g2(e)}return t}e=n,n=e.parentNode}return null}function bp(e){return e=e[ts]||e[Hs],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Yc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Te(33))}function Yg(e){return e[Bf]||null}var Db=[],Qc=-1;function ta(e){return{current:e}}function En(e){0>Qc||(e.current=Db[Qc],Db[Qc]=null,Qc--)}function gn(e,t){Qc++,Db[Qc]=e.current,e.current=t}var Ul={},Fr=ta(Ul),io=ta(!1),Aa=Ul;function Su(e,t){var n=e.type.contextTypes;if(!n)return Ul;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function so(e){return e=e.childContextTypes,e!=null}function Jm(){En(io),En(Fr)}function v2(e,t,n){if(Fr.current!==Ul)throw Error(Te(168));gn(Fr,t),gn(io,n)}function FT(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Te(108,Y9(e)||"Unknown",o));return zn({},n,r)}function Zm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ul,Aa=Fr.current,gn(Fr,e),gn(io,io.current),!0}function y2(e,t,n){var r=e.stateNode;if(!r)throw Error(Te(169));n?(e=FT(e,t,Aa),r.__reactInternalMemoizedMergedChildContext=e,En(io),En(Fr),gn(Fr,e)):En(io),gn(io,n)}var Fs=null,Qg=!1,p1=!1;function LT(e){Fs===null?Fs=[e]:Fs.push(e)}function f8(e){Qg=!0,LT(e)}function na(){if(!p1&&Fs!==null){p1=!0;var e=0,t=sn;try{var n=Fs;for(sn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Fs=null,Qg=!1}catch(o){throw Fs!==null&&(Fs=Fs.slice(e+1)),sT(yC,na),o}finally{sn=t,p1=!1}}return null}var Xc=[],Jc=0,eg=null,tg=0,oi=[],ii=0,Na=null,Ls=1,As="";function ga(e,t){Xc[Jc++]=tg,Xc[Jc++]=eg,eg=e,tg=t}function AT(e,t,n){oi[ii++]=Ls,oi[ii++]=As,oi[ii++]=Na,Na=e;var r=Ls;e=As;var o=32-Li(r)-1;r&=~(1<<o),n+=1;var i=32-Li(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Ls=1<<32-Li(t)+o|n<<o|r,As=i+e}else Ls=1<<i|n<<o|r,As=e}function kC(e){e.return!==null&&(ga(e,1),AT(e,1,0))}function _C(e){for(;e===eg;)eg=Xc[--Jc],Xc[Jc]=null,tg=Xc[--Jc],Xc[Jc]=null;for(;e===Na;)Na=oi[--ii],oi[ii]=null,As=oi[--ii],oi[ii]=null,Ls=oi[--ii],oi[ii]=null}var _o=null,ko=null,Mn=!1,$i=null;function NT(e,t){var n=si(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 b2(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,_o=e,ko=Fl(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,_o=e,ko=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Na!==null?{id:Ls,overflow:As}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=si(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,_o=e,ko=null,!0):!1;default:return!1}}function Bb(e){return(e.mode&1)!==0&&(e.flags&128)===0}function zb(e){if(Mn){var t=ko;if(t){var n=t;if(!b2(e,t)){if(Bb(e))throw Error(Te(418));t=Fl(n.nextSibling);var r=_o;t&&b2(e,t)?NT(r,n):(e.flags=e.flags&-4097|2,Mn=!1,_o=e)}}else{if(Bb(e))throw Error(Te(418));e.flags=e.flags&-4097|2,Mn=!1,_o=e}}}function w2(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;_o=e}function Vh(e){if(e!==_o)return!1;if(!Mn)return w2(e),Mn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Lb(e.type,e.memoizedProps)),t&&(t=ko)){if(Bb(e))throw DT(),Error(Te(418));for(;t;)NT(e,t),t=Fl(t.nextSibling)}if(w2(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Te(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ko=Fl(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ko=null}}else ko=_o?Fl(e.stateNode.nextSibling):null;return!0}function DT(){for(var e=ko;e;)e=Fl(e.nextSibling)}function Eu(){ko=_o=null,Mn=!1}function $C(e){$i===null?$i=[e]:$i.push(e)}var p8=Qs.ReactCurrentBatchConfig;function Ii(e,t){if(e&&e.defaultProps){t=zn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var ng=ta(null),rg=null,Zc=null,RC=null;function MC(){RC=Zc=rg=null}function TC(e){var t=ng.current;En(ng),e._currentValue=t}function jb(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 fu(e,t){rg=e,RC=Zc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(oo=!0),e.firstContext=null)}function fi(e){var t=e._currentValue;if(RC!==e)if(e={context:e,memoizedValue:t,next:null},Zc===null){if(rg===null)throw Error(Te(308));Zc=e,rg.dependencies={lanes:0,firstContext:e}}else Zc=Zc.next=e;return t}var Sa=null;function OC(e){Sa===null?Sa=[e]:Sa.push(e)}function BT(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,OC(t)):(n.next=o.next,o.next=n),t.interleaved=n,Vs(e,r)}function Vs(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 yl=!1;function FC(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zT(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 Ds(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ll(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Gt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Vs(e,n)}return o=r.interleaved,o===null?(t.next=t,OC(r)):(t.next=o.next,o.next=t),r.interleaved=t,Vs(e,n)}function wm(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,bC(e,n)}}function C2(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function og(e,t,n,r){var o=e.updateQueue;yl=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var c=a,d=c.next;c.next=null,s===null?i=d:s.next=d,s=c;var p=e.alternate;p!==null&&(p=p.updateQueue,a=p.lastBaseUpdate,a!==s&&(a===null?p.firstBaseUpdate=d:a.next=d,p.lastBaseUpdate=c))}if(i!==null){var h=o.baseState;s=0,p=d=c=null,a=i;do{var m=a.lane,g=a.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,v=a;switch(m=t,g=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){h=y.call(g,h,m);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,m=typeof y=="function"?y.call(g,h,m):y,m==null)break e;h=zn({},h,m);break e;case 2:yl=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[a]:m.push(a))}else g={eventTime:g,lane:m,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(d=p=g,c=h):p=p.next=g,s|=m;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;m=a,a=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(1);if(p===null&&(c=h),o.baseState=c,o.firstBaseUpdate=d,o.lastBaseUpdate=p,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Ba|=s,e.lanes=s,e.memoizedState=h}}function x2(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(Te(191,o));o.call(r)}}}var jT=new BM.Component().refs;function Hb(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:zn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xg={isMounted:function(e){return(e=e._reactInternals)?nc(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Vr(),o=Nl(e),i=Ds(r,o);i.payload=t,n!=null&&(i.callback=n),t=Ll(e,i,o),t!==null&&(Ai(t,e,o,r),wm(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Vr(),o=Nl(e),i=Ds(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ll(e,i,o),t!==null&&(Ai(t,e,o,r),wm(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Vr(),r=Nl(e),o=Ds(n,r);o.tag=2,t!=null&&(o.callback=t),t=Ll(e,o,r),t!==null&&(Ai(t,e,r,n),wm(t,e,r))}};function S2(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!Af(n,r)||!Af(o,i):!0}function HT(e,t,n){var r=!1,o=Ul,i=t.contextType;return typeof i=="object"&&i!==null?i=fi(i):(o=so(t)?Aa:Fr.current,r=t.contextTypes,i=(r=r!=null)?Su(e,o):Ul),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Xg,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function E2(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&&Xg.enqueueReplaceState(t,t.state,null)}function Vb(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=jT,FC(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=fi(i):(i=so(t)?Aa:Fr.current,o.context=Su(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Hb(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Xg.enqueueReplaceState(o,o.state,null),og(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Ld(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Te(309));var r=n.stateNode}if(!r)throw Error(Te(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;a===jT&&(a=o.refs={}),s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(Te(284));if(!n._owner)throw Error(Te(290,e))}return e}function Uh(e,t){throw e=Object.prototype.toString.call(t),Error(Te(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function P2(e){var t=e._init;return t(e._payload)}function VT(e){function t(w,C){if(e){var x=w.deletions;x===null?(w.deletions=[C],w.flags|=16):x.push(C)}}function n(w,C){if(!e)return null;for(;C!==null;)t(w,C),C=C.sibling;return null}function r(w,C){for(w=new Map;C!==null;)C.key!==null?w.set(C.key,C):w.set(C.index,C),C=C.sibling;return w}function o(w,C){return w=Dl(w,C),w.index=0,w.sibling=null,w}function i(w,C,x){return w.index=x,e?(x=w.alternate,x!==null?(x=x.index,x<C?(w.flags|=2,C):x):(w.flags|=2,C)):(w.flags|=1048576,C)}function s(w){return e&&w.alternate===null&&(w.flags|=2),w}function a(w,C,x,P){return C===null||C.tag!==6?(C=w1(x,w.mode,P),C.return=w,C):(C=o(C,x),C.return=w,C)}function c(w,C,x,P){var _=x.type;return _===Wc?p(w,C,x.props.children,P,x.key):C!==null&&(C.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===vl&&P2(_)===C.type)?(P=o(C,x.props),P.ref=Ld(w,C,x),P.return=w,P):(P=Im(x.type,x.key,x.props,null,w.mode,P),P.ref=Ld(w,C,x),P.return=w,P)}function d(w,C,x,P){return C===null||C.tag!==4||C.stateNode.containerInfo!==x.containerInfo||C.stateNode.implementation!==x.implementation?(C=C1(x,w.mode,P),C.return=w,C):(C=o(C,x.children||[]),C.return=w,C)}function p(w,C,x,P,_){return C===null||C.tag!==7?(C=$a(x,w.mode,P,_),C.return=w,C):(C=o(C,x),C.return=w,C)}function h(w,C,x){if(typeof C=="string"&&C!==""||typeof C=="number")return C=w1(""+C,w.mode,x),C.return=w,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Oh:return x=Im(C.type,C.key,C.props,null,w.mode,x),x.ref=Ld(w,null,C),x.return=w,x;case Uc:return C=C1(C,w.mode,x),C.return=w,C;case vl:var P=C._init;return h(w,P(C._payload),x)}if(ef(C)||Rd(C))return C=$a(C,w.mode,x,null),C.return=w,C;Uh(w,C)}return null}function m(w,C,x,P){var _=C!==null?C.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return _!==null?null:a(w,C,""+x,P);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Oh:return x.key===_?c(w,C,x,P):null;case Uc:return x.key===_?d(w,C,x,P):null;case vl:return _=x._init,m(w,C,_(x._payload),P)}if(ef(x)||Rd(x))return _!==null?null:p(w,C,x,P,null);Uh(w,x)}return null}function g(w,C,x,P,_){if(typeof P=="string"&&P!==""||typeof P=="number")return w=w.get(x)||null,a(C,w,""+P,_);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case Oh:return w=w.get(P.key===null?x:P.key)||null,c(C,w,P,_);case Uc:return w=w.get(P.key===null?x:P.key)||null,d(C,w,P,_);case vl:var k=P._init;return g(w,C,x,k(P._payload),_)}if(ef(P)||Rd(P))return w=w.get(x)||null,p(C,w,P,_,null);Uh(C,P)}return null}function y(w,C,x,P){for(var _=null,k=null,I=C,R=C=0,L=null;I!==null&&R<x.length;R++){I.index>R?(L=I,I=null):L=I.sibling;var N=m(w,I,x[R],P);if(N===null){I===null&&(I=L);break}e&&I&&N.alternate===null&&t(w,I),C=i(N,C,R),k===null?_=N:k.sibling=N,k=N,I=L}if(R===x.length)return n(w,I),Mn&&ga(w,R),_;if(I===null){for(;R<x.length;R++)I=h(w,x[R],P),I!==null&&(C=i(I,C,R),k===null?_=I:k.sibling=I,k=I);return Mn&&ga(w,R),_}for(I=r(w,I);R<x.length;R++)L=g(I,w,R,x[R],P),L!==null&&(e&&L.alternate!==null&&I.delete(L.key===null?R:L.key),C=i(L,C,R),k===null?_=L:k.sibling=L,k=L);return e&&I.forEach(function(O){return t(w,O)}),Mn&&ga(w,R),_}function v(w,C,x,P){var _=Rd(x);if(typeof _!="function")throw Error(Te(150));if(x=_.call(x),x==null)throw Error(Te(151));for(var k=_=null,I=C,R=C=0,L=null,N=x.next();I!==null&&!N.done;R++,N=x.next()){I.index>R?(L=I,I=null):L=I.sibling;var O=m(w,I,N.value,P);if(O===null){I===null&&(I=L);break}e&&I&&O.alternate===null&&t(w,I),C=i(O,C,R),k===null?_=O:k.sibling=O,k=O,I=L}if(N.done)return n(w,I),Mn&&ga(w,R),_;if(I===null){for(;!N.done;R++,N=x.next())N=h(w,N.value,P),N!==null&&(C=i(N,C,R),k===null?_=N:k.sibling=N,k=N);return Mn&&ga(w,R),_}for(I=r(w,I);!N.done;R++,N=x.next())N=g(I,w,R,N.value,P),N!==null&&(e&&N.alternate!==null&&I.delete(N.key===null?R:N.key),C=i(N,C,R),k===null?_=N:k.sibling=N,k=N);return e&&I.forEach(function(D){return t(w,D)}),Mn&&ga(w,R),_}function S(w,C,x,P){if(typeof x=="object"&&x!==null&&x.type===Wc&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Oh:e:{for(var _=x.key,k=C;k!==null;){if(k.key===_){if(_=x.type,_===Wc){if(k.tag===7){n(w,k.sibling),C=o(k,x.props.children),C.return=w,w=C;break e}}else if(k.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===vl&&P2(_)===k.type){n(w,k.sibling),C=o(k,x.props),C.ref=Ld(w,k,x),C.return=w,w=C;break e}n(w,k);break}else t(w,k);k=k.sibling}x.type===Wc?(C=$a(x.props.children,w.mode,P,x.key),C.return=w,w=C):(P=Im(x.type,x.key,x.props,null,w.mode,P),P.ref=Ld(w,C,x),P.return=w,w=P)}return s(w);case Uc:e:{for(k=x.key;C!==null;){if(C.key===k)if(C.tag===4&&C.stateNode.containerInfo===x.containerInfo&&C.stateNode.implementation===x.implementation){n(w,C.sibling),C=o(C,x.children||[]),C.return=w,w=C;break e}else{n(w,C);break}else t(w,C);C=C.sibling}C=C1(x,w.mode,P),C.return=w,w=C}return s(w);case vl:return k=x._init,S(w,C,k(x._payload),P)}if(ef(x))return y(w,C,x,P);if(Rd(x))return v(w,C,x,P);Uh(w,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,C!==null&&C.tag===6?(n(w,C.sibling),C=o(C,x),C.return=w,w=C):(n(w,C),C=w1(x,w.mode,P),C.return=w,w=C),s(w)):n(w,C)}return S}var Pu=VT(!0),UT=VT(!1),wp={},os=ta(wp),zf=ta(wp),jf=ta(wp);function Ea(e){if(e===wp)throw Error(Te(174));return e}function LC(e,t){switch(gn(jf,t),gn(zf,e),gn(os,wp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Cb(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Cb(t,e)}En(os),gn(os,t)}function Iu(){En(os),En(zf),En(jf)}function WT(e){Ea(jf.current);var t=Ea(os.current),n=Cb(t,e.type);t!==n&&(gn(zf,e),gn(os,n))}function AC(e){zf.current===e&&(En(os),En(zf))}var Nn=ta(0);function ig(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 h1=[];function NC(){for(var e=0;e<h1.length;e++)h1[e]._workInProgressVersionPrimary=null;h1.length=0}var Cm=Qs.ReactCurrentDispatcher,m1=Qs.ReactCurrentBatchConfig,Da=0,Bn=null,nr=null,fr=null,sg=!1,mf=!1,Hf=0,h8=0;function Ir(){throw Error(Te(321))}function DC(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 BC(e,t,n,r,o,i){if(Da=i,Bn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Cm.current=e===null||e.memoizedState===null?y8:b8,e=n(r,o),mf){i=0;do{if(mf=!1,Hf=0,25<=i)throw Error(Te(301));i+=1,fr=nr=null,t.updateQueue=null,Cm.current=w8,e=n(r,o)}while(mf)}if(Cm.current=lg,t=nr!==null&&nr.next!==null,Da=0,fr=nr=Bn=null,sg=!1,t)throw Error(Te(300));return e}function zC(){var e=Hf!==0;return Hf=0,e}function Yi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fr===null?Bn.memoizedState=fr=e:fr=fr.next=e,fr}function pi(){if(nr===null){var e=Bn.alternate;e=e!==null?e.memoizedState:null}else e=nr.next;var t=fr===null?Bn.memoizedState:fr.next;if(t!==null)fr=t,nr=e;else{if(e===null)throw Error(Te(310));nr=e,e={memoizedState:nr.memoizedState,baseState:nr.baseState,baseQueue:nr.baseQueue,queue:nr.queue,next:null},fr===null?Bn.memoizedState=fr=e:fr=fr.next=e}return fr}function Vf(e,t){return typeof t=="function"?t(e):t}function g1(e){var t=pi(),n=t.queue;if(n===null)throw Error(Te(311));n.lastRenderedReducer=e;var r=nr,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,c=null,d=i;do{var p=d.lane;if((Da&p)===p)c!==null&&(c=c.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var h={lane:p,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};c===null?(a=c=h,s=r):c=c.next=h,Bn.lanes|=p,Ba|=p}d=d.next}while(d!==null&&d!==i);c===null?s=r:c.next=a,Di(r,t.memoizedState)||(oo=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Bn.lanes|=i,Ba|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function v1(e){var t=pi(),n=t.queue;if(n===null)throw Error(Te(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);Di(i,t.memoizedState)||(oo=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function GT(){}function KT(e,t){var n=Bn,r=pi(),o=t(),i=!Di(r.memoizedState,o);if(i&&(r.memoizedState=o,oo=!0),r=r.queue,jC(QT.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||fr!==null&&fr.memoizedState.tag&1){if(n.flags|=2048,Uf(9,YT.bind(null,n,r,o,t),void 0,null),pr===null)throw Error(Te(349));Da&30||qT(n,t,o)}return o}function qT(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Bn.updateQueue,t===null?(t={lastEffect:null,stores:null},Bn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function YT(e,t,n,r){t.value=n,t.getSnapshot=r,XT(t)&&JT(e)}function QT(e,t,n){return n(function(){XT(t)&&JT(e)})}function XT(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Di(e,n)}catch(r){return!0}}function JT(e){var t=Vs(e,1);t!==null&&Ai(t,e,1,-1)}function I2(e){var t=Yi();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vf,lastRenderedState:e},t.queue=e,e=e.dispatch=v8.bind(null,Bn,e),[t.memoizedState,e]}function Uf(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Bn.updateQueue,t===null?(t={lastEffect:null,stores:null},Bn.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function ZT(){return pi().memoizedState}function xm(e,t,n,r){var o=Yi();Bn.flags|=e,o.memoizedState=Uf(1|t,n,void 0,r===void 0?null:r)}function Jg(e,t,n,r){var o=pi();r=r===void 0?null:r;var i=void 0;if(nr!==null){var s=nr.memoizedState;if(i=s.destroy,r!==null&&DC(r,s.deps)){o.memoizedState=Uf(t,n,i,r);return}}Bn.flags|=e,o.memoizedState=Uf(1|t,n,i,r)}function k2(e,t){return xm(8390656,8,e,t)}function jC(e,t){return Jg(2048,8,e,t)}function eO(e,t){return Jg(4,2,e,t)}function tO(e,t){return Jg(4,4,e,t)}function nO(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 rO(e,t,n){return n=n!=null?n.concat([e]):null,Jg(4,4,nO.bind(null,t,e),n)}function HC(){}function oO(e,t){var n=pi();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&DC(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function iO(e,t){var n=pi();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&DC(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function sO(e,t,n){return Da&21?(Di(n,t)||(n=cT(),Bn.lanes|=n,Ba|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,oo=!0),e.memoizedState=n)}function m8(e,t){var n=sn;sn=n!==0&&4>n?n:4,e(!0);var r=m1.transition;m1.transition={};try{e(!1),t()}finally{sn=n,m1.transition=r}}function lO(){return pi().memoizedState}function g8(e,t,n){var r=Nl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},aO(e))cO(t,n);else if(n=BT(e,t,n,r),n!==null){var o=Vr();Ai(n,e,r,o),uO(n,t,r)}}function v8(e,t,n){var r=Nl(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(aO(e))cO(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Di(a,s)){var c=t.interleaved;c===null?(o.next=o,OC(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch(d){}finally{}n=BT(e,t,o,r),n!==null&&(o=Vr(),Ai(n,e,r,o),uO(n,t,r))}}function aO(e){var t=e.alternate;return e===Bn||t!==null&&t===Bn}function cO(e,t){mf=sg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function uO(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bC(e,n)}}var lg={readContext:fi,useCallback:Ir,useContext:Ir,useEffect:Ir,useImperativeHandle:Ir,useInsertionEffect:Ir,useLayoutEffect:Ir,useMemo:Ir,useReducer:Ir,useRef:Ir,useState:Ir,useDebugValue:Ir,useDeferredValue:Ir,useTransition:Ir,useMutableSource:Ir,useSyncExternalStore:Ir,useId:Ir,unstable_isNewReconciler:!1},y8={readContext:fi,useCallback:function(e,t){return Yi().memoizedState=[e,t===void 0?null:t],e},useContext:fi,useEffect:k2,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,xm(4194308,4,nO.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xm(4194308,4,e,t)},useInsertionEffect:function(e,t){return xm(4,2,e,t)},useMemo:function(e,t){var n=Yi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Yi();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=g8.bind(null,Bn,e),[r.memoizedState,e]},useRef:function(e){var t=Yi();return e={current:e},t.memoizedState=e},useState:I2,useDebugValue:HC,useDeferredValue:function(e){return Yi().memoizedState=e},useTransition:function(){var e=I2(!1),t=e[0];return e=m8.bind(null,e[1]),Yi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Bn,o=Yi();if(Mn){if(n===void 0)throw Error(Te(407));n=n()}else{if(n=t(),pr===null)throw Error(Te(349));Da&30||qT(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,k2(QT.bind(null,r,i,e),[e]),r.flags|=2048,Uf(9,YT.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Yi(),t=pr.identifierPrefix;if(Mn){var n=As,r=Ls;n=(r&~(1<<32-Li(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Hf++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=h8++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},b8={readContext:fi,useCallback:oO,useContext:fi,useEffect:jC,useImperativeHandle:rO,useInsertionEffect:eO,useLayoutEffect:tO,useMemo:iO,useReducer:g1,useRef:ZT,useState:function(){return g1(Vf)},useDebugValue:HC,useDeferredValue:function(e){var t=pi();return sO(t,nr.memoizedState,e)},useTransition:function(){var e=g1(Vf)[0],t=pi().memoizedState;return[e,t]},useMutableSource:GT,useSyncExternalStore:KT,useId:lO,unstable_isNewReconciler:!1},w8={readContext:fi,useCallback:oO,useContext:fi,useEffect:jC,useImperativeHandle:rO,useInsertionEffect:eO,useLayoutEffect:tO,useMemo:iO,useReducer:v1,useRef:ZT,useState:function(){return v1(Vf)},useDebugValue:HC,useDeferredValue:function(e){var t=pi();return nr===null?t.memoizedState=e:sO(t,nr.memoizedState,e)},useTransition:function(){var e=v1(Vf)[0],t=pi().memoizedState;return[e,t]},useMutableSource:GT,useSyncExternalStore:KT,useId:lO,unstable_isNewReconciler:!1};function ku(e,t){try{var n="",r=t;do n+=q9(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
31
|
-
Error generating stack: `+i.message+`
|
|
32
|
-
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function y1(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function Ub(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var C8=typeof WeakMap=="function"?WeakMap:Map;function dO(e,t,n){n=Ds(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){cg||(cg=!0,ew=r),Ub(e,t)},n}function fO(e,t,n){n=Ds(-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(){Ub(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ub(e,t),typeof r!="function"&&(Al===null?Al=new Set([this]):Al.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function _2(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new C8;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=L8.bind(null,e,t,n),t.then(e,e))}function $2(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 R2(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=Ds(-1,1),t.tag=2,Ll(n,t,1))),n.lanes|=1),e)}var x8=Qs.ReactCurrentOwner,oo=!1;function Br(e,t,n,r){t.child=e===null?UT(t,null,n,r):Pu(t,e.child,n,r)}function M2(e,t,n,r,o){n=n.render;var i=t.ref;return fu(t,o),r=BC(e,t,n,r,i,o),n=zC(),e!==null&&!oo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Us(e,t,o)):(Mn&&n&&kC(t),t.flags|=1,Br(e,t,r,o),t.child)}function T2(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!QC(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,pO(e,t,i,r,o)):(e=Im(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Af,n(s,r)&&e.ref===t.ref)return Us(e,t,o)}return t.flags|=1,e=Dl(i,r),e.ref=t.ref,e.return=t,t.child=e}function pO(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Af(i,r)&&e.ref===t.ref)if(oo=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(oo=!0);else return t.lanes=e.lanes,Us(e,t,o)}return Wb(e,t,n,r,o)}function hO(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},gn(tu,wo),wo|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,gn(tu,wo),wo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,gn(tu,wo),wo|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,gn(tu,wo),wo|=r;return Br(e,t,o,n),t.child}function mO(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Wb(e,t,n,r,o){var i=so(n)?Aa:Fr.current;return i=Su(t,i),fu(t,o),n=BC(e,t,n,r,i,o),r=zC(),e!==null&&!oo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Us(e,t,o)):(Mn&&r&&kC(t),t.flags|=1,Br(e,t,n,o),t.child)}function O2(e,t,n,r,o){if(so(n)){var i=!0;Zm(t)}else i=!1;if(fu(t,o),t.stateNode===null)Sm(e,t),HT(t,n,r),Vb(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var c=s.context,d=n.contextType;typeof d=="object"&&d!==null?d=fi(d):(d=so(n)?Aa:Fr.current,d=Su(t,d));var p=n.getDerivedStateFromProps,h=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||c!==d)&&E2(t,s,r,d),yl=!1;var m=t.memoizedState;s.state=m,og(t,r,s,o),c=t.memoizedState,a!==r||m!==c||io.current||yl?(typeof p=="function"&&(Hb(t,n,p,r),c=t.memoizedState),(a=yl||S2(t,n,a,r,m,c,d))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=d,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,zT(e,t),a=t.memoizedProps,d=t.type===t.elementType?a:Ii(t.type,a),s.props=d,h=t.pendingProps,m=s.context,c=n.contextType,typeof c=="object"&&c!==null?c=fi(c):(c=so(n)?Aa:Fr.current,c=Su(t,c));var g=n.getDerivedStateFromProps;(p=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||m!==c)&&E2(t,s,r,c),yl=!1,m=t.memoizedState,s.state=m,og(t,r,s,o);var y=t.memoizedState;a!==h||m!==y||io.current||yl?(typeof g=="function"&&(Hb(t,n,g,r),y=t.memoizedState),(d=yl||S2(t,n,d,r,m,y,c)||!1)?(p||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,y,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,y,c)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),s.props=r,s.state=y,s.context=c,r=d):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Gb(e,t,n,r,i,o)}function Gb(e,t,n,r,o,i){mO(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&y2(t,n,!1),Us(e,t,i);r=t.stateNode,x8.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Pu(t,e.child,null,i),t.child=Pu(t,null,a,i)):Br(e,t,a,i),t.memoizedState=r.state,o&&y2(t,n,!0),t.child}function gO(e){var t=e.stateNode;t.pendingContext?v2(e,t.pendingContext,t.pendingContext!==t.context):t.context&&v2(e,t.context,!1),LC(e,t.containerInfo)}function F2(e,t,n,r,o){return Eu(),$C(o),t.flags|=256,Br(e,t,n,r),t.child}var Kb={dehydrated:null,treeContext:null,retryLane:0};function qb(e){return{baseLanes:e,cachePool:null,transitions:null}}function vO(e,t,n){var r=t.pendingProps,o=Nn.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),gn(Nn,o&1),e===null)return zb(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=tv(s,r,0,null),e=$a(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=qb(n),t.memoizedState=Kb,e):VC(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return S8(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var c={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Dl(o,c),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=Dl(a,i):(i=$a(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?qb(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Kb,r}return i=e.child,e=i.sibling,r=Dl(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function VC(e,t){return t=tv({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Wh(e,t,n,r){return r!==null&&$C(r),Pu(t,e.child,null,n),e=VC(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function S8(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=y1(Error(Te(422))),Wh(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=tv({mode:"visible",children:r.children},o,0,null),i=$a(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Pu(t,e.child,null,s),t.child.memoizedState=qb(s),t.memoizedState=Kb,i);if(!(t.mode&1))return Wh(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(Te(419)),r=y1(i,r,void 0),Wh(e,t,s,r)}if(a=(s&e.childLanes)!==0,oo||a){if(r=pr,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Vs(e,o),Ai(r,e,o,-1))}return YC(),r=y1(Error(Te(421))),Wh(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=A8.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ko=Fl(o.nextSibling),_o=t,Mn=!0,$i=null,e!==null&&(oi[ii++]=Ls,oi[ii++]=As,oi[ii++]=Na,Ls=e.id,As=e.overflow,Na=t),t=VC(t,r.children),t.flags|=4096,t)}function L2(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),jb(e.return,t,n)}function b1(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function yO(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Br(e,t,r.children,n),r=Nn.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&&L2(e,n,t);else if(e.tag===19)L2(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(gn(Nn,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&&ig(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),b1(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&ig(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}b1(t,!0,n,null,i);break;case"together":b1(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Sm(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Us(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ba|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Te(153));if(t.child!==null){for(e=t.child,n=Dl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Dl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function E8(e,t,n){switch(t.tag){case 3:gO(t),Eu();break;case 5:WT(t);break;case 1:so(t.type)&&Zm(t);break;case 4:LC(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;gn(ng,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(gn(Nn,Nn.current&1),t.flags|=128,null):n&t.child.childLanes?vO(e,t,n):(gn(Nn,Nn.current&1),e=Us(e,t,n),e!==null?e.sibling:null);gn(Nn,Nn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return yO(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),gn(Nn,Nn.current),r)break;return null;case 22:case 23:return t.lanes=0,hO(e,t,n)}return Us(e,t,n)}var bO,Yb,wO,CO;bO=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}};Yb=function(){};wO=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ea(os.current);var i=null;switch(n){case"input":o=vb(e,o),r=vb(e,r),i=[];break;case"select":o=zn({},o,{value:void 0}),r=zn({},r,{value:void 0}),i=[];break;case"textarea":o=wb(e,o),r=wb(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Xm)}xb(n,r);var s;n=null;for(d in o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&o[d]!=null)if(d==="style"){var a=o[d];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&($f.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in r){var c=r[d];if(a=o!=null?o[d]:void 0,r.hasOwnProperty(d)&&c!==a&&(c!=null||a!=null))if(d==="style")if(a){for(s in a)!a.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&a[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(i||(i=[]),i.push(d,n)),n=c;else d==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,a=a?a.__html:void 0,c!=null&&a!==c&&(i=i||[]).push(d,c)):d==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(d,""+c):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&($f.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&Cn("scroll",e),i||a===c||(i=[])):(i=i||[]).push(d,c))}n&&(i=i||[]).push("style",n);var d=i;(t.updateQueue=d)&&(t.flags|=4)}};CO=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ad(e,t){if(!Mn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function kr(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 P8(e,t,n){var r=t.pendingProps;switch(_C(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return kr(t),null;case 1:return so(t.type)&&Jm(),kr(t),null;case 3:return r=t.stateNode,Iu(),En(io),En(Fr),NC(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Vh(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,$i!==null&&(rw($i),$i=null))),Yb(e,t),kr(t),null;case 5:AC(t);var o=Ea(jf.current);if(n=t.type,e!==null&&t.stateNode!=null)wO(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Te(166));return kr(t),null}if(e=Ea(os.current),Vh(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[ts]=t,r[Bf]=i,e=(t.mode&1)!==0,n){case"dialog":Cn("cancel",r),Cn("close",r);break;case"iframe":case"object":case"embed":Cn("load",r);break;case"video":case"audio":for(o=0;o<nf.length;o++)Cn(nf[o],r);break;case"source":Cn("error",r);break;case"img":case"image":case"link":Cn("error",r),Cn("load",r);break;case"details":Cn("toggle",r);break;case"input":Uk(r,i),Cn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Cn("invalid",r);break;case"textarea":Gk(r,i),Cn("invalid",r)}xb(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Hh(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Hh(r.textContent,a,e),o=["children",""+a]):$f.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Cn("scroll",r)}switch(n){case"input":Fh(r),Wk(r,i,!0);break;case"textarea":Fh(r),Kk(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Xm)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=qM(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[ts]=t,e[Bf]=r,bO(e,t,!1,!1),t.stateNode=e;e:{switch(s=Sb(n,r),n){case"dialog":Cn("cancel",e),Cn("close",e),o=r;break;case"iframe":case"object":case"embed":Cn("load",e),o=r;break;case"video":case"audio":for(o=0;o<nf.length;o++)Cn(nf[o],e);o=r;break;case"source":Cn("error",e),o=r;break;case"img":case"image":case"link":Cn("error",e),Cn("load",e),o=r;break;case"details":Cn("toggle",e),o=r;break;case"input":Uk(e,r),o=vb(e,r),Cn("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=zn({},r,{value:void 0}),Cn("invalid",e);break;case"textarea":Gk(e,r),o=wb(e,r),Cn("invalid",e);break;default:o=r}xb(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var c=a[i];i==="style"?XM(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&YM(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Rf(e,c):typeof c=="number"&&Rf(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&($f.hasOwnProperty(i)?c!=null&&i==="onScroll"&&Cn("scroll",e):c!=null&&pC(e,i,c,s))}switch(n){case"input":Fh(e),Wk(e,r,!1);break;case"textarea":Fh(e),Kk(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Vl(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?au(e,!!r.multiple,i,!1):r.defaultValue!=null&&au(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Xm)}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 kr(t),null;case 6:if(e&&t.stateNode!=null)CO(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Te(166));if(n=Ea(jf.current),Ea(os.current),Vh(t)){if(r=t.stateNode,n=t.memoizedProps,r[ts]=t,(i=r.nodeValue!==n)&&(e=_o,e!==null))switch(e.tag){case 3:Hh(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Hh(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ts]=t,t.stateNode=r}return kr(t),null;case 13:if(En(Nn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Mn&&ko!==null&&t.mode&1&&!(t.flags&128))DT(),Eu(),t.flags|=98560,i=!1;else if(i=Vh(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(Te(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Te(317));i[ts]=t}else Eu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;kr(t),i=!1}else $i!==null&&(rw($i),$i=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Nn.current&1?rr===0&&(rr=3):YC())),t.updateQueue!==null&&(t.flags|=4),kr(t),null);case 4:return Iu(),Yb(e,t),e===null&&Nf(t.stateNode.containerInfo),kr(t),null;case 10:return TC(t.type._context),kr(t),null;case 17:return so(t.type)&&Jm(),kr(t),null;case 19:if(En(Nn),i=t.memoizedState,i===null)return kr(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)Ad(i,!1);else{if(rr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=ig(e),s!==null){for(t.flags|=128,Ad(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return gn(Nn,Nn.current&1|2),t.child}e=e.sibling}i.tail!==null&&Yn()>_u&&(t.flags|=128,r=!0,Ad(i,!1),t.lanes=4194304)}else{if(!r)if(e=ig(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ad(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Mn)return kr(t),null}else 2*Yn()-i.renderingStartTime>_u&&n!==1073741824&&(t.flags|=128,r=!0,Ad(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Yn(),t.sibling=null,n=Nn.current,gn(Nn,r?n&1|2:n&1),t):(kr(t),null);case 22:case 23:return qC(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?wo&1073741824&&(kr(t),t.subtreeFlags&6&&(t.flags|=8192)):kr(t),null;case 24:return null;case 25:return null}throw Error(Te(156,t.tag))}function I8(e,t){switch(_C(t),t.tag){case 1:return so(t.type)&&Jm(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Iu(),En(io),En(Fr),NC(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return AC(t),null;case 13:if(En(Nn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Te(340));Eu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return En(Nn),null;case 4:return Iu(),null;case 10:return TC(t.type._context),null;case 22:case 23:return qC(),null;case 24:return null;default:return null}}var Gh=!1,Rr=!1,k8=typeof WeakSet=="function"?WeakSet:Set,Qe=null;function eu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Wn(e,t,r)}else n.current=null}function Qb(e,t,n){try{n()}catch(r){Wn(e,t,r)}}var A2=!1;function _8(e,t){if(Ob=qm,e=PT(),IC(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(P){n=null;break e}var s=0,a=-1,c=-1,d=0,p=0,h=e,m=null;t:for(;;){for(var g;h!==n||o!==0&&h.nodeType!==3||(a=s+o),h!==i||r!==0&&h.nodeType!==3||(c=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(g=h.firstChild)!==null;)m=h,h=g;for(;;){if(h===e)break t;if(m===n&&++d===o&&(a=s),m===i&&++p===r&&(c=s),(g=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=g}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fb={focusedElem:e,selectionRange:n},qm=!1,Qe=t;Qe!==null;)if(t=Qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Qe=e;else for(;Qe!==null;){t=Qe;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,S=y.memoizedState,w=t.stateNode,C=w.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ii(t.type,v),S);w.__reactInternalSnapshotBeforeUpdate=C}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Te(163))}}catch(P){Wn(t,t.return,P)}if(e=t.sibling,e!==null){e.return=t.return,Qe=e;break}Qe=t.return}return y=A2,A2=!1,y}function gf(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Qb(t,n,i)}o=o.next}while(o!==r)}}function Zg(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 Xb(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 xO(e){var t=e.alternate;t!==null&&(e.alternate=null,xO(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ts],delete t[Bf],delete t[Nb],delete t[u8],delete t[d8])),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 SO(e){return e.tag===5||e.tag===3||e.tag===4}function N2(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||SO(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 Jb(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=Xm));else if(r!==4&&(e=e.child,e!==null))for(Jb(e,t,n),e=e.sibling;e!==null;)Jb(e,t,n),e=e.sibling}function Zb(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(Zb(e,t,n),e=e.sibling;e!==null;)Zb(e,t,n),e=e.sibling}var br=null,_i=!1;function cl(e,t,n){for(n=n.child;n!==null;)EO(e,t,n),n=n.sibling}function EO(e,t,n){if(rs&&typeof rs.onCommitFiberUnmount=="function")try{rs.onCommitFiberUnmount(Wg,n)}catch(a){}switch(n.tag){case 5:Rr||eu(n,t);case 6:var r=br,o=_i;br=null,cl(e,t,n),br=r,_i=o,br!==null&&(_i?(e=br,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):br.removeChild(n.stateNode));break;case 18:br!==null&&(_i?(e=br,n=n.stateNode,e.nodeType===8?f1(e.parentNode,n):e.nodeType===1&&f1(e,n),Ff(e)):f1(br,n.stateNode));break;case 4:r=br,o=_i,br=n.stateNode.containerInfo,_i=!0,cl(e,t,n),br=r,_i=o;break;case 0:case 11:case 14:case 15:if(!Rr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Qb(n,t,s),o=o.next}while(o!==r)}cl(e,t,n);break;case 1:if(!Rr&&(eu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Wn(n,t,a)}cl(e,t,n);break;case 21:cl(e,t,n);break;case 22:n.mode&1?(Rr=(r=Rr)||n.memoizedState!==null,cl(e,t,n),Rr=r):cl(e,t,n);break;default:cl(e,t,n)}}function D2(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new k8),t.forEach(function(r){var o=N8.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ei(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:br=a.stateNode,_i=!1;break e;case 3:br=a.stateNode.containerInfo,_i=!0;break e;case 4:br=a.stateNode.containerInfo,_i=!0;break e}a=a.return}if(br===null)throw Error(Te(160));EO(i,s,o),br=null,_i=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(d){Wn(o,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)PO(t,e),t=t.sibling}function PO(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ei(t,e),qi(e),r&4){try{gf(3,e,e.return),Zg(3,e)}catch(v){Wn(e,e.return,v)}try{gf(5,e,e.return)}catch(v){Wn(e,e.return,v)}}break;case 1:Ei(t,e),qi(e),r&512&&n!==null&&eu(n,n.return);break;case 5:if(Ei(t,e),qi(e),r&512&&n!==null&&eu(n,n.return),e.flags&32){var o=e.stateNode;try{Rf(o,"")}catch(v){Wn(e,e.return,v)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&GM(o,i),Sb(a,s);var d=Sb(a,i);for(s=0;s<c.length;s+=2){var p=c[s],h=c[s+1];p==="style"?XM(o,h):p==="dangerouslySetInnerHTML"?YM(o,h):p==="children"?Rf(o,h):pC(o,p,h,d)}switch(a){case"input":yb(o,i);break;case"textarea":KM(o,i);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?au(o,!!i.multiple,g,!1):m!==!!i.multiple&&(i.defaultValue!=null?au(o,!!i.multiple,i.defaultValue,!0):au(o,!!i.multiple,i.multiple?[]:"",!1))}o[Bf]=i}catch(v){Wn(e,e.return,v)}}break;case 6:if(Ei(t,e),qi(e),r&4){if(e.stateNode===null)throw Error(Te(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(v){Wn(e,e.return,v)}}break;case 3:if(Ei(t,e),qi(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ff(t.containerInfo)}catch(v){Wn(e,e.return,v)}break;case 4:Ei(t,e),qi(e);break;case 13:Ei(t,e),qi(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(GC=Yn())),r&4&&D2(e);break;case 22:if(p=n!==null&&n.memoizedState!==null,e.mode&1?(Rr=(d=Rr)||p,Ei(t,e),Rr=d):Ei(t,e),qi(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!p&&e.mode&1)for(Qe=e,p=e.child;p!==null;){for(h=Qe=p;Qe!==null;){switch(m=Qe,g=m.child,m.tag){case 0:case 11:case 14:case 15:gf(4,m,m.return);break;case 1:eu(m,m.return);var y=m.stateNode;if(typeof y.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(v){Wn(r,n,v)}}break;case 5:eu(m,m.return);break;case 22:if(m.memoizedState!==null){z2(h);continue}}g!==null?(g.return=m,Qe=g):z2(h)}p=p.sibling}e:for(p=null,h=e;;){if(h.tag===5){if(p===null){p=h;try{o=h.stateNode,d?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=h.stateNode,c=h.memoizedProps.style,s=c!=null&&c.hasOwnProperty("display")?c.display:null,a.style.display=QM("display",s))}catch(v){Wn(e,e.return,v)}}}else if(h.tag===6){if(p===null)try{h.stateNode.nodeValue=d?"":h.memoizedProps}catch(v){Wn(e,e.return,v)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;p===h&&(p=null),h=h.return}p===h&&(p=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Ei(t,e),qi(e),r&4&&D2(e);break;case 21:break;default:Ei(t,e),qi(e)}}function qi(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(SO(n)){var r=n;break e}n=n.return}throw Error(Te(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Rf(o,""),r.flags&=-33);var i=N2(e);Zb(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=N2(e);Jb(e,a,s);break;default:throw Error(Te(161))}}catch(c){Wn(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $8(e,t,n){Qe=e,IO(e)}function IO(e,t,n){for(var r=(e.mode&1)!==0;Qe!==null;){var o=Qe,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Gh;if(!s){var a=o.alternate,c=a!==null&&a.memoizedState!==null||Rr;a=Gh;var d=Rr;if(Gh=s,(Rr=c)&&!d)for(Qe=o;Qe!==null;)s=Qe,c=s.child,s.tag===22&&s.memoizedState!==null?j2(o):c!==null?(c.return=s,Qe=c):j2(o);for(;i!==null;)Qe=i,IO(i),i=i.sibling;Qe=o,Gh=a,Rr=d}B2(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,Qe=i):B2(e)}}function B2(e){for(;Qe!==null;){var t=Qe;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Rr||Zg(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Rr)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ii(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&x2(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}x2(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var p=d.memoizedState;if(p!==null){var h=p.dehydrated;h!==null&&Ff(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Te(163))}Rr||t.flags&512&&Xb(t)}catch(m){Wn(t,t.return,m)}}if(t===e){Qe=null;break}if(n=t.sibling,n!==null){n.return=t.return,Qe=n;break}Qe=t.return}}function z2(e){for(;Qe!==null;){var t=Qe;if(t===e){Qe=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Qe=n;break}Qe=t.return}}function j2(e){for(;Qe!==null;){var t=Qe;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Zg(4,t)}catch(c){Wn(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){Wn(t,o,c)}}var i=t.return;try{Xb(t)}catch(c){Wn(t,i,c)}break;case 5:var s=t.return;try{Xb(t)}catch(c){Wn(t,s,c)}}}catch(c){Wn(t,t.return,c)}if(t===e){Qe=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Qe=a;break}Qe=t.return}}var R8=Math.ceil,ag=Qs.ReactCurrentDispatcher,UC=Qs.ReactCurrentOwner,ai=Qs.ReactCurrentBatchConfig,Gt=0,pr=null,Zn=null,xr=0,wo=0,tu=ta(0),rr=0,Wf=null,Ba=0,ev=0,WC=0,vf=null,eo=null,GC=0,_u=1/0,Os=null,cg=!1,ew=null,Al=null,Kh=!1,Il=null,ug=0,yf=0,tw=null,Em=-1,Pm=0;function Vr(){return Gt&6?Yn():Em!==-1?Em:Em=Yn()}function Nl(e){return e.mode&1?Gt&2&&xr!==0?xr&-xr:p8.transition!==null?(Pm===0&&(Pm=cT()),Pm):(e=sn,e!==0||(e=window.event,e=e===void 0?16:gT(e.type)),e):1}function Ai(e,t,n,r){if(50<yf)throw yf=0,tw=null,Error(Te(185));vp(e,n,r),(!(Gt&2)||e!==pr)&&(e===pr&&(!(Gt&2)&&(ev|=n),rr===4&&Sl(e,xr)),lo(e,r),n===1&&Gt===0&&!(t.mode&1)&&(_u=Yn()+500,Qg&&na()))}function lo(e,t){var n=e.callbackNode;pH(e,t);var r=Km(e,e===pr?xr:0);if(r===0)n!==null&&Qk(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Qk(n),t===1)e.tag===0?f8(H2.bind(null,e)):LT(H2.bind(null,e)),a8(function(){!(Gt&6)&&na()}),n=null;else{switch(uT(r)){case 1:n=yC;break;case 4:n=lT;break;case 16:n=Gm;break;case 536870912:n=aT;break;default:n=Gm}n=FO(n,kO.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function kO(e,t){if(Em=-1,Pm=0,Gt&6)throw Error(Te(327));var n=e.callbackNode;if(pu()&&e.callbackNode!==n)return null;var r=Km(e,e===pr?xr:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=dg(e,r);else{t=r;var o=Gt;Gt|=2;var i=$O();(pr!==e||xr!==t)&&(Os=null,_u=Yn()+500,_a(e,t));do try{O8();break}catch(a){_O(e,a)}while(1);MC(),ag.current=i,Gt=o,Zn!==null?t=0:(pr=null,xr=0,t=rr)}if(t!==0){if(t===2&&(o=_b(e),o!==0&&(r=o,t=nw(e,o))),t===1)throw n=Wf,_a(e,0),Sl(e,r),lo(e,Yn()),n;if(t===6)Sl(e,r);else{if(o=e.current.alternate,!(r&30)&&!M8(o)&&(t=dg(e,r),t===2&&(i=_b(e),i!==0&&(r=i,t=nw(e,i))),t===1))throw n=Wf,_a(e,0),Sl(e,r),lo(e,Yn()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(Te(345));case 2:va(e,eo,Os);break;case 3:if(Sl(e,r),(r&130023424)===r&&(t=GC+500-Yn(),10<t)){if(Km(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Vr(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ab(va.bind(null,e,eo,Os),t);break}va(e,eo,Os);break;case 4:if(Sl(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-Li(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Yn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*R8(r/1960))-r,10<r){e.timeoutHandle=Ab(va.bind(null,e,eo,Os),r);break}va(e,eo,Os);break;case 5:va(e,eo,Os);break;default:throw Error(Te(329))}}}return lo(e,Yn()),e.callbackNode===n?kO.bind(null,e):null}function nw(e,t){var n=vf;return e.current.memoizedState.isDehydrated&&(_a(e,t).flags|=256),e=dg(e,t),e!==2&&(t=eo,eo=n,t!==null&&rw(t)),e}function rw(e){eo===null?eo=e:eo.push.apply(eo,e)}function M8(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Di(i(),o))return!1}catch(s){return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Sl(e,t){for(t&=~WC,t&=~ev,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Li(t),r=1<<n;e[n]=-1,t&=~r}}function H2(e){if(Gt&6)throw Error(Te(327));pu();var t=Km(e,0);if(!(t&1))return lo(e,Yn()),null;var n=dg(e,t);if(e.tag!==0&&n===2){var r=_b(e);r!==0&&(t=r,n=nw(e,r))}if(n===1)throw n=Wf,_a(e,0),Sl(e,t),lo(e,Yn()),n;if(n===6)throw Error(Te(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,va(e,eo,Os),lo(e,Yn()),null}function KC(e,t){var n=Gt;Gt|=1;try{return e(t)}finally{Gt=n,Gt===0&&(_u=Yn()+500,Qg&&na())}}function za(e){Il!==null&&Il.tag===0&&!(Gt&6)&&pu();var t=Gt;Gt|=1;var n=ai.transition,r=sn;try{if(ai.transition=null,sn=1,e)return e()}finally{sn=r,ai.transition=n,Gt=t,!(Gt&6)&&na()}}function qC(){wo=tu.current,En(tu)}function _a(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,l8(n)),Zn!==null)for(n=Zn.return;n!==null;){var r=n;switch(_C(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Jm();break;case 3:Iu(),En(io),En(Fr),NC();break;case 5:AC(r);break;case 4:Iu();break;case 13:En(Nn);break;case 19:En(Nn);break;case 10:TC(r.type._context);break;case 22:case 23:qC()}n=n.return}if(pr=e,Zn=e=Dl(e.current,null),xr=wo=t,rr=0,Wf=null,WC=ev=Ba=0,eo=vf=null,Sa!==null){for(t=0;t<Sa.length;t++)if(n=Sa[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}Sa=null}return e}function _O(e,t){do{var n=Zn;try{if(MC(),Cm.current=lg,sg){for(var r=Bn.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}sg=!1}if(Da=0,fr=nr=Bn=null,mf=!1,Hf=0,UC.current=null,n===null||n.return===null){rr=1,Wf=t,Zn=null;break}e:{var i=e,s=n.return,a=n,c=t;if(t=xr,a.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=c,p=a,h=p.tag;if(!(p.mode&1)&&(h===0||h===11||h===15)){var m=p.alternate;m?(p.updateQueue=m.updateQueue,p.memoizedState=m.memoizedState,p.lanes=m.lanes):(p.updateQueue=null,p.memoizedState=null)}var g=$2(s);if(g!==null){g.flags&=-257,R2(g,s,a,i,t),g.mode&1&&_2(i,d,t),t=g,c=d;var y=t.updateQueue;if(y===null){var v=new Set;v.add(c),t.updateQueue=v}else y.add(c);break e}else{if(!(t&1)){_2(i,d,t),YC();break e}c=Error(Te(426))}}else if(Mn&&a.mode&1){var S=$2(s);if(S!==null){!(S.flags&65536)&&(S.flags|=256),R2(S,s,a,i,t),$C(ku(c,a));break e}}i=c=ku(c,a),rr!==4&&(rr=2),vf===null?vf=[i]:vf.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var w=dO(i,c,t);C2(i,w);break e;case 1:a=c;var C=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof C.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Al===null||!Al.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var P=fO(i,a,t);C2(i,P);break e}}i=i.return}while(i!==null)}MO(n)}catch(_){t=_,Zn===n&&n!==null&&(Zn=n=n.return);continue}break}while(1)}function $O(){var e=ag.current;return ag.current=lg,e===null?lg:e}function YC(){(rr===0||rr===3||rr===2)&&(rr=4),pr===null||!(Ba&268435455)&&!(ev&268435455)||Sl(pr,xr)}function dg(e,t){var n=Gt;Gt|=2;var r=$O();(pr!==e||xr!==t)&&(Os=null,_a(e,t));do try{T8();break}catch(o){_O(e,o)}while(1);if(MC(),Gt=n,ag.current=r,Zn!==null)throw Error(Te(261));return pr=null,xr=0,rr}function T8(){for(;Zn!==null;)RO(Zn)}function O8(){for(;Zn!==null&&!oH();)RO(Zn)}function RO(e){var t=OO(e.alternate,e,wo);e.memoizedProps=e.pendingProps,t===null?MO(e):Zn=t,UC.current=null}function MO(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=I8(n,t),n!==null){n.flags&=32767,Zn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{rr=6,Zn=null;return}}else if(n=P8(n,t,wo),n!==null){Zn=n;return}if(t=t.sibling,t!==null){Zn=t;return}Zn=t=e}while(t!==null);rr===0&&(rr=5)}function va(e,t,n){var r=sn,o=ai.transition;try{ai.transition=null,sn=1,F8(e,t,n,r)}finally{ai.transition=o,sn=r}return null}function F8(e,t,n,r){do pu();while(Il!==null);if(Gt&6)throw Error(Te(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Te(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(hH(e,i),e===pr&&(Zn=pr=null,xr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Kh||(Kh=!0,FO(Gm,function(){return pu(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=ai.transition,ai.transition=null;var s=sn;sn=1;var a=Gt;Gt|=4,UC.current=null,_8(e,n),PO(n,e),e8(Fb),qm=!!Ob,Fb=Ob=null,e.current=n,$8(n),iH(),Gt=a,sn=s,ai.transition=i}else e.current=n;if(Kh&&(Kh=!1,Il=e,ug=o),i=e.pendingLanes,i===0&&(Al=null),aH(n.stateNode),lo(e,Yn()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(cg)throw cg=!1,e=ew,ew=null,e;return ug&1&&e.tag!==0&&pu(),i=e.pendingLanes,i&1?e===tw?yf++:(yf=0,tw=e):yf=0,na(),null}function pu(){if(Il!==null){var e=uT(ug),t=ai.transition,n=sn;try{if(ai.transition=null,sn=16>e?16:e,Il===null)var r=!1;else{if(e=Il,Il=null,ug=0,Gt&6)throw Error(Te(331));var o=Gt;for(Gt|=4,Qe=e.current;Qe!==null;){var i=Qe,s=i.child;if(Qe.flags&16){var a=i.deletions;if(a!==null){for(var c=0;c<a.length;c++){var d=a[c];for(Qe=d;Qe!==null;){var p=Qe;switch(p.tag){case 0:case 11:case 15:gf(8,p,i)}var h=p.child;if(h!==null)h.return=p,Qe=h;else for(;Qe!==null;){p=Qe;var m=p.sibling,g=p.return;if(xO(p),p===d){Qe=null;break}if(m!==null){m.return=g,Qe=m;break}Qe=g}}}var y=i.alternate;if(y!==null){var v=y.child;if(v!==null){y.child=null;do{var S=v.sibling;v.sibling=null,v=S}while(v!==null)}}Qe=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,Qe=s;else e:for(;Qe!==null;){if(i=Qe,i.flags&2048)switch(i.tag){case 0:case 11:case 15:gf(9,i,i.return)}var w=i.sibling;if(w!==null){w.return=i.return,Qe=w;break e}Qe=i.return}}var C=e.current;for(Qe=C;Qe!==null;){s=Qe;var x=s.child;if(s.subtreeFlags&2064&&x!==null)x.return=s,Qe=x;else e:for(s=C;Qe!==null;){if(a=Qe,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Zg(9,a)}}catch(_){Wn(a,a.return,_)}if(a===s){Qe=null;break e}var P=a.sibling;if(P!==null){P.return=a.return,Qe=P;break e}Qe=a.return}}if(Gt=o,na(),rs&&typeof rs.onPostCommitFiberRoot=="function")try{rs.onPostCommitFiberRoot(Wg,e)}catch(_){}r=!0}return r}finally{sn=n,ai.transition=t}}return!1}function V2(e,t,n){t=ku(n,t),t=dO(e,t,1),e=Ll(e,t,1),t=Vr(),e!==null&&(vp(e,1,t),lo(e,t))}function Wn(e,t,n){if(e.tag===3)V2(e,e,n);else for(;t!==null;){if(t.tag===3){V2(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Al===null||!Al.has(r))){e=ku(n,e),e=fO(t,e,1),t=Ll(t,e,1),e=Vr(),t!==null&&(vp(t,1,e),lo(t,e));break}}t=t.return}}function L8(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Vr(),e.pingedLanes|=e.suspendedLanes&n,pr===e&&(xr&n)===n&&(rr===4||rr===3&&(xr&130023424)===xr&&500>Yn()-GC?_a(e,0):WC|=n),lo(e,t)}function TO(e,t){t===0&&(e.mode&1?(t=Nh,Nh<<=1,!(Nh&130023424)&&(Nh=4194304)):t=1);var n=Vr();e=Vs(e,t),e!==null&&(vp(e,t,n),lo(e,n))}function A8(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),TO(e,n)}function N8(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Te(314))}r!==null&&r.delete(t),TO(e,n)}var OO;OO=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||io.current)oo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return oo=!1,E8(e,t,n);oo=!!(e.flags&131072)}else oo=!1,Mn&&t.flags&1048576&&AT(t,tg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Sm(e,t),e=t.pendingProps;var o=Su(t,Fr.current);fu(t,n),o=BC(null,t,r,e,o,n);var i=zC();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,so(r)?(i=!0,Zm(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,FC(t),o.updater=Xg,t.stateNode=o,o._reactInternals=t,Vb(t,r,e,n),t=Gb(null,t,r,!0,i,n)):(t.tag=0,Mn&&i&&kC(t),Br(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Sm(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=B8(r),e=Ii(r,e),o){case 0:t=Wb(null,t,r,e,n);break e;case 1:t=O2(null,t,r,e,n);break e;case 11:t=M2(null,t,r,e,n);break e;case 14:t=T2(null,t,r,Ii(r.type,e),n);break e}throw Error(Te(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ii(r,o),Wb(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ii(r,o),O2(e,t,r,o,n);case 3:e:{if(gO(t),e===null)throw Error(Te(387));r=t.pendingProps,i=t.memoizedState,o=i.element,zT(e,t),og(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ku(Error(Te(423)),t),t=F2(e,t,r,n,o);break e}else if(r!==o){o=ku(Error(Te(424)),t),t=F2(e,t,r,n,o);break e}else for(ko=Fl(t.stateNode.containerInfo.firstChild),_o=t,Mn=!0,$i=null,n=UT(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Eu(),r===o){t=Us(e,t,n);break e}Br(e,t,r,n)}t=t.child}return t;case 5:return WT(t),e===null&&zb(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Lb(r,o)?s=null:i!==null&&Lb(r,i)&&(t.flags|=32),mO(e,t),Br(e,t,s,n),t.child;case 6:return e===null&&zb(t),null;case 13:return vO(e,t,n);case 4:return LC(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Pu(t,null,r,n):Br(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ii(r,o),M2(e,t,r,o,n);case 7:return Br(e,t,t.pendingProps,n),t.child;case 8:return Br(e,t,t.pendingProps.children,n),t.child;case 12:return Br(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,gn(ng,r._currentValue),r._currentValue=s,i!==null)if(Di(i.value,s)){if(i.children===o.children&&!io.current){t=Us(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Ds(-1,n&-n),c.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var p=d.pending;p===null?c.next=c:(c.next=p.next,p.next=c),d.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),jb(i.return,n,t),a.lanes|=n;break}c=c.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(Te(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),jb(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Br(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,fu(t,n),o=fi(o),r=r(o),t.flags|=1,Br(e,t,r,n),t.child;case 14:return r=t.type,o=Ii(r,t.pendingProps),o=Ii(r.type,o),T2(e,t,r,o,n);case 15:return pO(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ii(r,o),Sm(e,t),t.tag=1,so(r)?(e=!0,Zm(t)):e=!1,fu(t,n),HT(t,r,o),Vb(t,r,o,n),Gb(null,t,r,!0,e,n);case 19:return yO(e,t,n);case 22:return hO(e,t,n)}throw Error(Te(156,t.tag))};function FO(e,t){return sT(e,t)}function D8(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 si(e,t,n,r){return new D8(e,t,n,r)}function QC(e){return e=e.prototype,!(!e||!e.isReactComponent)}function B8(e){if(typeof e=="function")return QC(e)?1:0;if(e!=null){if(e=e.$$typeof,e===mC)return 11;if(e===gC)return 14}return 2}function Dl(e,t){var n=e.alternate;return n===null?(n=si(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 Im(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")QC(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Wc:return $a(n.children,o,i,t);case hC:s=8,o|=8;break;case pb:return e=si(12,n,t,o|2),e.elementType=pb,e.lanes=i,e;case hb:return e=si(13,n,t,o),e.elementType=hb,e.lanes=i,e;case mb:return e=si(19,n,t,o),e.elementType=mb,e.lanes=i,e;case VM:return tv(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case jM:s=10;break e;case HM:s=9;break e;case mC:s=11;break e;case gC:s=14;break e;case vl:s=16,r=null;break e}throw Error(Te(130,e==null?e:typeof e,""))}return t=si(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function $a(e,t,n,r){return e=si(7,e,r,t),e.lanes=n,e}function tv(e,t,n,r){return e=si(22,e,r,t),e.elementType=VM,e.lanes=n,e.stateNode={isHidden:!1},e}function w1(e,t,n){return e=si(6,e,null,t),e.lanes=n,e}function C1(e,t,n){return t=si(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function z8(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=t1(0),this.expirationTimes=t1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=t1(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function XC(e,t,n,r,o,i,s,a,c){return e=new z8(e,t,n,a,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=si(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},FC(i),e}function j8(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Uc,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function LO(e){if(!e)return Ul;e=e._reactInternals;e:{if(nc(e)!==e||e.tag!==1)throw Error(Te(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(so(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Te(171))}if(e.tag===1){var n=e.type;if(so(n))return FT(e,n,t)}return t}function AO(e,t,n,r,o,i,s,a,c){return e=XC(n,r,!0,e,o,i,s,a,c),e.context=LO(null),n=e.current,r=Vr(),o=Nl(n),i=Ds(r,o),i.callback=t!=null?t:null,Ll(n,i,o),e.current.lanes=o,vp(e,o,r),lo(e,r),e}function nv(e,t,n,r){var o=t.current,i=Vr(),s=Nl(o);return n=LO(n),t.context===null?t.context=n:t.pendingContext=n,t=Ds(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ll(o,t,s),e!==null&&(Ai(e,o,s,i),wm(e,o,s)),s}function fg(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 U2(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function JC(e,t){U2(e,t),(e=e.alternate)&&U2(e,t)}function H8(){return null}var NO=typeof reportError=="function"?reportError:function(e){console.error(e)};function ZC(e){this._internalRoot=e}rv.prototype.render=ZC.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Te(409));nv(e,t,null,null)};rv.prototype.unmount=ZC.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;za(function(){nv(null,e,null,null)}),t[Hs]=null}};function rv(e){this._internalRoot=e}rv.prototype.unstable_scheduleHydration=function(e){if(e){var t=pT();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xl.length&&t!==0&&t<xl[n].priority;n++);xl.splice(n,0,e),n===0&&mT(e)}};function ex(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ov(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function W2(){}function V8(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var d=fg(s);i.call(d)}}var s=AO(t,r,e,0,null,!1,!1,"",W2);return e._reactRootContainer=s,e[Hs]=s.current,Nf(e.nodeType===8?e.parentNode:e),za(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var d=fg(c);a.call(d)}}var c=XC(e,0,!1,null,null,!1,!1,"",W2);return e._reactRootContainer=c,e[Hs]=c.current,Nf(e.nodeType===8?e.parentNode:e),za(function(){nv(t,c,n,r)}),c}function iv(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var c=fg(s);a.call(c)}}nv(t,s,e,o)}else s=V8(n,t,e,o,r);return fg(s)}dT=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=tf(t.pendingLanes);n!==0&&(bC(t,n|1),lo(t,Yn()),!(Gt&6)&&(_u=Yn()+500,na()))}break;case 13:za(function(){var r=Vs(e,1);if(r!==null){var o=Vr();Ai(r,e,1,o)}}),JC(e,1)}};wC=function(e){if(e.tag===13){var t=Vs(e,134217728);if(t!==null){var n=Vr();Ai(t,e,134217728,n)}JC(e,134217728)}};fT=function(e){if(e.tag===13){var t=Nl(e),n=Vs(e,t);if(n!==null){var r=Vr();Ai(n,e,t,r)}JC(e,t)}};pT=function(){return sn};hT=function(e,t){var n=sn;try{return sn=e,t()}finally{sn=n}};Pb=function(e,t,n){switch(t){case"input":if(yb(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=Yg(r);if(!o)throw Error(Te(90));WM(r),yb(r,o)}}}break;case"textarea":KM(e,n);break;case"select":t=n.value,t!=null&&au(e,!!n.multiple,t,!1)}};eT=KC;tT=za;var U8={usingClientEntryPoint:!1,Events:[bp,Yc,Yg,JM,ZM,KC]},Nd={findFiberByHostInstance:xa,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},W8={bundleType:Nd.bundleType,version:Nd.version,rendererPackageName:Nd.rendererPackageName,rendererConfig:Nd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Qs.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=oT(e),e===null?null:e.stateNode},findFiberByHostInstance:Nd.findFiberByHostInstance||H8,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 qh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qh.isDisabled&&qh.supportsFiber)try{Wg=qh.inject(W8),rs=qh}catch(e){}}No.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U8;No.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ex(t))throw Error(Te(200));return j8(e,t,null,n)};No.createRoot=function(e,t){if(!ex(e))throw Error(Te(299));var n=!1,r="",o=NO;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=XC(e,1,!1,null,null,n,!1,r,o),e[Hs]=t.current,Nf(e.nodeType===8?e.parentNode:e),new ZC(t)};No.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Te(188)):(e=Object.keys(e).join(","),Error(Te(268,e)));return e=oT(t),e=e===null?null:e.stateNode,e};No.flushSync=function(e){return za(e)};No.hydrate=function(e,t,n){if(!ov(t))throw Error(Te(200));return iv(null,e,t,!0,n)};No.hydrateRoot=function(e,t,n){if(!ex(e))throw Error(Te(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=NO;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=AO(t,null,e,1,n!=null?n:null,o,!1,i,s),e[Hs]=t.current,Nf(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 rv(t)};No.render=function(e,t,n){if(!ov(t))throw Error(Te(200));return iv(null,e,t,!1,n)};No.unmountComponentAtNode=function(e){if(!ov(e))throw Error(Te(40));return e._reactRootContainer?(za(function(){iv(null,null,e,!1,function(){e._reactRootContainer=null,e[Hs]=null})}),!0):!1};No.unstable_batchedUpdates=KC;No.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ov(n))throw Error(Te(200));if(e==null||e._reactInternals===void 0)throw Error(Te(38));return iv(e,t,n,!1,r)};No.version="18.2.0-next-9e3b772b8-20220608";function DO(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(DO)}catch(e){console.error(e)}}DO(),AM.exports=No;var Yu=AM.exports;const Yh=mp(Yu);var BO,G2=Yu;BO=G2.createRoot,G2.hydrateRoot;const G8="modulepreload",K8=function(e){return"/"+e},K2={},q8=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=K8(i),i in K2)return;K2[i]=!0;const s=i.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!r)for(let p=o.length-1;p>=0;p--){const h=o[p];if(h.href===i&&(!s||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const d=document.createElement("link");if(d.rel=s?"stylesheet":G8,s||(d.as="script",d.crossOrigin=""),d.href=i,document.head.appendChild(d),s)return new Promise((p,h)=>{d.addEventListener("load",p),d.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};var IM;if(!((IM=window.crypto)!=null&&IM.subtle)){let t;console.debug("poly subtle");const e={digest(n,r){return mt(this,null,function*(){if(n!=="SHA-512")return alert(n+" required but not supported");const i=(yield q8(()=>import("./sha512-0935647a.js").then(s=>s.s),[])).default.arrayBuffer;return i(r)})}};window.crypto||(window.crypto={subtle:e}),crypto.subtle||(crypto.subtle=e)}/**
|
|
33
|
-
* @remix-run/router v1.5.0
|
|
34
|
-
*
|
|
35
|
-
* Copyright (c) Remix Software Inc.
|
|
36
|
-
*
|
|
37
|
-
* This source code is licensed under the MIT license found in the
|
|
38
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
39
|
-
*
|
|
40
|
-
* @license MIT
|
|
41
|
-
*/function Gf(){return Gf=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},Gf.apply(this,arguments)}var kl;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(kl||(kl={}));const q2="popstate";function Y8(e){e===void 0&&(e={});function t(o,i){let{pathname:s="/",search:a="",hash:c=""}=rc(o.location.hash.substr(1));return ow("",{pathname:s,search:a,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(o,i){let s=o.document.querySelector("base"),a="";if(s&&s.getAttribute("href")){let c=o.location.href,d=c.indexOf("#");a=d===-1?c:c.slice(0,d)}return a+"#"+(typeof i=="string"?i:pg(i))}function r(o,i){sv(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return X8(t,n,r,e)}function ir(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function sv(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function Q8(){return Math.random().toString(36).substr(2,8)}function Y2(e,t){return{usr:e.state,key:e.key,idx:t}}function ow(e,t,n,r){return n===void 0&&(n=null),Gf({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?rc(t):t,{state:n,key:t&&t.key||r||Q8()})}function pg(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function rc(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function X8(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=kl.Pop,c=null,d=p();d==null&&(d=0,s.replaceState(Gf({},s.state,{idx:d}),""));function p(){return(s.state||{idx:null}).idx}function h(){a=kl.Pop;let S=p(),w=S==null?null:S-d;d=S,c&&c({action:a,location:v.location,delta:w})}function m(S,w){a=kl.Push;let C=ow(v.location,S,w);n&&n(C,S),d=p()+1;let x=Y2(C,d),P=v.createHref(C);try{s.pushState(x,"",P)}catch(_){o.location.assign(P)}i&&c&&c({action:a,location:v.location,delta:1})}function g(S,w){a=kl.Replace;let C=ow(v.location,S,w);n&&n(C,S),d=p();let x=Y2(C,d),P=v.createHref(C);s.replaceState(x,"",P),i&&c&&c({action:a,location:v.location,delta:0})}function y(S){let w=o.location.origin!=="null"?o.location.origin:o.location.href,C=typeof S=="string"?S:pg(S);return ir(w,"No window.location.(origin|href) available to create URL for href: "+C),new URL(C,w)}let v={get action(){return a},get location(){return e(o,s)},listen(S){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(q2,h),c=S,()=>{o.removeEventListener(q2,h),c=null}},createHref(S){return t(o,S)},createURL:y,encodeLocation(S){let w=y(S);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:m,replace:g,go(S){return s.go(S)}};return v}var Q2;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Q2||(Q2={}));function J8(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?rc(t):t,o=tx(r.pathname||"/",n);if(o==null)return null;let i=zO(e);Z8(i);let s=null;for(let a=0;s==null&&a<i.length;++a)s=aV(i[a],dV(o));return s}function zO(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,s,a)=>{let c={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};c.relativePath.startsWith("/")&&(ir(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let d=Bl([r,c.relativePath]),p=n.concat(c);i.children&&i.children.length>0&&(ir(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),zO(i.children,t,p,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:sV(d,i.index),routesMeta:p})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let c of jO(i.path))o(i,s,c)}),t}function jO(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=jO(r.join("/")),a=[];return a.push(...s.map(c=>c===""?i:[i,c].join("/"))),o&&a.push(...s),a.map(c=>e.startsWith("/")&&c===""?"/":c)}function Z8(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:lV(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const eV=/^:\w+$/,tV=3,nV=2,rV=1,oV=10,iV=-2,X2=e=>e==="*";function sV(e,t){let n=e.split("/"),r=n.length;return n.some(X2)&&(r+=iV),t&&(r+=nV),n.filter(o=>!X2(o)).reduce((o,i)=>o+(eV.test(i)?tV:i===""?rV:oV),r)}function lV(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 aV(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let s=0;s<n.length;++s){let a=n[s],c=s===n.length-1,d=o==="/"?t:t.slice(o.length)||"/",p=cV({path:a.relativePath,caseSensitive:a.caseSensitive,end:c},d);if(!p)return null;Object.assign(r,p.params);let h=a.route;i.push({params:r,pathname:Bl([o,p.pathname]),pathnameBase:mV(Bl([o,p.pathnameBase])),route:h}),p.pathnameBase!=="/"&&(o=Bl([o,p.pathnameBase]))}return i}function cV(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=uV(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((d,p,h)=>{if(p==="*"){let m=a[h]||"";s=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}return d[p]=fV(a[h]||"",p),d},{}),pathname:i,pathnameBase:s,pattern:e}}function uV(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),sv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(s,a)=>(r.push(a),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function dV(e){try{return decodeURI(e)}catch(t){return sv(!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 fV(e,t){try{return decodeURIComponent(e)}catch(n){return sv(!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 tx(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 pV(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?rc(e):e;return{pathname:n?n.startsWith("/")?n:hV(n,t):t,search:gV(r),hash:vV(o)}}function hV(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 x1(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 HO(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function VO(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=rc(e):(o=Gf({},e),ir(!o.pathname||!o.pathname.includes("?"),x1("?","pathname","search",o)),ir(!o.pathname||!o.pathname.includes("#"),x1("#","pathname","hash",o)),ir(!o.search||!o.search.includes("#"),x1("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(r||s==null)a=n;else{let h=t.length-1;if(s.startsWith("..")){let m=s.split("/");for(;m[0]==="..";)m.shift(),h-=1;o.pathname=m.join("/")}a=h>=0?t[h]:"/"}let c=pV(o,a),d=s&&s!=="/"&&s.endsWith("/"),p=(i||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||p)&&(c.pathname+="/"),c}const Bl=e=>e.join("/").replace(/\/\/+/g,"/"),mV=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),gV=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,vV=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function yV(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const UO=["post","put","patch","delete"];new Set(UO);const bV=["get",...UO];new Set(bV);/**
|
|
42
|
-
* React Router v6.10.0
|
|
43
|
-
*
|
|
44
|
-
* Copyright (c) Remix Software Inc.
|
|
45
|
-
*
|
|
46
|
-
* This source code is licensed under the MIT license found in the
|
|
47
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
48
|
-
*
|
|
49
|
-
* @license MIT
|
|
50
|
-
*/function wV(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const CV=typeof Object.is=="function"?Object.is:wV,{useState:xV,useEffect:SV,useLayoutEffect:EV,useDebugValue:PV}=La;function IV(e,t,n){const r=t(),[{inst:o},i]=xV({inst:{value:r,getSnapshot:t}});return EV(()=>{o.value=r,o.getSnapshot=t,S1(o)&&i({inst:o})},[e,r,t]),SV(()=>(S1(o)&&i({inst:o}),e(()=>{S1(o)&&i({inst:o})})),[e]),PV(r),r}function S1(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!CV(n,r)}catch(r){return!0}}function kV(e,t,n){return t()}const _V=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",$V=!_V,RV=$V?kV:IV;"useSyncExternalStore"in La&&(e=>e.useSyncExternalStore)(La);const WO=u.createContext(null),nx=u.createContext(null),Qu=u.createContext(null),lv=u.createContext(null),Xu=u.createContext({outlet:null,matches:[]}),GO=u.createContext(null);function iw(){return iw=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},iw.apply(this,arguments)}function MV(e,t){let{relative:n}=t===void 0?{}:t;Cp()||ir(!1);let{basename:r,navigator:o}=u.useContext(Qu),{hash:i,pathname:s,search:a}=rx(e,{relative:n}),c=s;return r!=="/"&&(c=s==="/"?r:Bl([r,s])),o.createHref({pathname:c,search:a,hash:i})}function Cp(){return u.useContext(lv)!=null}function Ju(){return Cp()||ir(!1),u.useContext(lv).location}function TV(){Cp()||ir(!1);let{basename:e,navigator:t}=u.useContext(Qu),{matches:n}=u.useContext(Xu),{pathname:r}=Ju(),o=JSON.stringify(HO(n).map(a=>a.pathnameBase)),i=u.useRef(!1);return u.useEffect(()=>{i.current=!0}),u.useCallback(function(a,c){if(c===void 0&&(c={}),!i.current)return;if(typeof a=="number"){t.go(a);return}let d=VO(a,JSON.parse(o),r,c.relative==="path");e!=="/"&&(d.pathname=d.pathname==="/"?e:Bl([e,d.pathname])),(c.replace?t.replace:t.push)(d,c.state,c)},[e,t,o,r])}function rx(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=u.useContext(Xu),{pathname:o}=Ju(),i=JSON.stringify(HO(r).map(s=>s.pathnameBase));return u.useMemo(()=>VO(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function OV(e,t){Cp()||ir(!1);let{navigator:n}=u.useContext(Qu),r=u.useContext(nx),{matches:o}=u.useContext(Xu),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let a=i?i.pathnameBase:"/";i&&i.route;let c=Ju(),d;if(t){var p;let v=typeof t=="string"?rc(t):t;a==="/"||(p=v.pathname)!=null&&p.startsWith(a)||ir(!1),d=v}else d=c;let h=d.pathname||"/",m=a==="/"?h:h.slice(a.length)||"/",g=J8(e,{pathname:m}),y=NV(g&&g.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:Bl([a,n.encodeLocation?n.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?a:Bl([a,n.encodeLocation?n.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,r||void 0);return t&&y?u.createElement(lv.Provider,{value:{location:iw({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:kl.Pop}},y):y}function FV(){let e=jV(),t=yV(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),n?u.createElement("pre",{style:o},n):null,i)}class LV extends u.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?u.createElement(Xu.Provider,{value:this.props.routeContext},u.createElement(GO.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function AV(e){let{routeContext:t,match:n,children:r}=e,o=u.useContext(WO);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement(Xu.Provider,{value:t},r)}function NV(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,o=n==null?void 0:n.errors;if(o!=null){let i=r.findIndex(s=>s.route.id&&(o==null?void 0:o[s.route.id]));i>=0||ir(!1),r=r.slice(0,Math.min(r.length,i+1))}return r.reduceRight((i,s,a)=>{let c=s.route.id?o==null?void 0:o[s.route.id]:null,d=null;n&&(s.route.ErrorBoundary?d=u.createElement(s.route.ErrorBoundary,null):s.route.errorElement?d=s.route.errorElement:d=u.createElement(FV,null));let p=t.concat(r.slice(0,a+1)),h=()=>{let m=i;return c?m=d:s.route.Component?m=u.createElement(s.route.Component,null):s.route.element&&(m=s.route.element),u.createElement(AV,{match:s,routeContext:{outlet:i,matches:p},children:m})};return n&&(s.route.ErrorBoundary||s.route.errorElement||a===0)?u.createElement(LV,{location:n.location,component:d,error:c,children:h(),routeContext:{outlet:null,matches:p}}):h()},null)}var J2;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(J2||(J2={}));var hg;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(hg||(hg={}));function DV(e){let t=u.useContext(nx);return t||ir(!1),t}function BV(e){let t=u.useContext(Xu);return t||ir(!1),t}function zV(e){let t=BV(),n=t.matches[t.matches.length-1];return n.route.id||ir(!1),n.route.id}function jV(){var e;let t=u.useContext(GO),n=DV(hg.UseRouteError),r=zV(hg.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function KO(e){ir(!1)}function HV(e){let{basename:t="/",children:n=null,location:r,navigationType:o=kl.Pop,navigator:i,static:s=!1}=e;Cp()&&ir(!1);let a=t.replace(/^\/*/,"/"),c=u.useMemo(()=>({basename:a,navigator:i,static:s}),[a,i,s]);typeof r=="string"&&(r=rc(r));let{pathname:d="/",search:p="",hash:h="",state:m=null,key:g="default"}=r,y=u.useMemo(()=>{let v=tx(d,a);return v==null?null:{location:{pathname:v,search:p,hash:h,state:m,key:g},navigationType:o}},[a,d,p,h,m,g,o]);return y==null?null:u.createElement(Qu.Provider,{value:c},u.createElement(lv.Provider,{children:n,value:y}))}function VV(e){let{children:t,location:n}=e,r=u.useContext(WO),o=r&&!t?r.router.routes:sw(t);return OV(o,n)}var Z2;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(Z2||(Z2={}));new Promise(()=>{});function sw(e,t){t===void 0&&(t=[]);let n=[];return u.Children.forEach(e,(r,o)=>{if(!u.isValidElement(r))return;let i=[...t,o];if(r.type===u.Fragment){n.push.apply(n,sw(r.props.children,i));return}r.type!==KO&&ir(!1),!r.props.index||!r.props.children||ir(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=sw(r.props.children,i)),n.push(s)}),n}/**
|
|
51
|
-
* React Router DOM v6.10.0
|
|
52
|
-
*
|
|
53
|
-
* Copyright (c) Remix Software Inc.
|
|
54
|
-
*
|
|
55
|
-
* This source code is licensed under the MIT license found in the
|
|
56
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
57
|
-
*
|
|
58
|
-
* @license MIT
|
|
59
|
-
*/function mg(){return mg=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},mg.apply(this,arguments)}function qO(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function UV(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function WV(e,t){return e.button===0&&(!t||t==="_self")&&!UV(e)}const GV=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],KV=["aria-current","caseSensitive","className","end","style","to","children"];function qV(e){let{basename:t,children:n,window:r}=e,o=u.useRef();o.current==null&&(o.current=Y8({window:r,v5Compat:!0}));let i=o.current,[s,a]=u.useState({action:i.action,location:i.location});return u.useLayoutEffect(()=>i.listen(a),[i]),u.createElement(HV,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i})}const YV=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",QV=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,YO=u.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:c,to:d,preventScrollReset:p}=t,h=qO(t,GV),{basename:m}=u.useContext(Qu),g,y=!1;if(typeof d=="string"&&QV.test(d)&&(g=d,YV)){let C=new URL(window.location.href),x=d.startsWith("//")?new URL(C.protocol+d):new URL(d),P=tx(x.pathname,m);x.origin===C.origin&&P!=null?d=P+x.search+x.hash:y=!0}let v=MV(d,{relative:o}),S=JV(d,{replace:s,state:a,target:c,preventScrollReset:p,relative:o});function w(C){r&&r(C),C.defaultPrevented||S(C)}return u.createElement("a",mg({},h,{href:g||v,onClick:y||i?r:w,ref:n,target:c}))}),XV=u.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:a,to:c,children:d}=t,p=qO(t,KV),h=rx(c,{relative:p.relative}),m=Ju(),g=u.useContext(nx),{navigator:y}=u.useContext(Qu),v=y.encodeLocation?y.encodeLocation(h).pathname:h.pathname,S=m.pathname,w=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;o||(S=S.toLowerCase(),w=w?w.toLowerCase():null,v=v.toLowerCase());let C=S===v||!s&&S.startsWith(v)&&S.charAt(v.length)==="/",x=w!=null&&(w===v||!s&&w.startsWith(v)&&w.charAt(v.length)==="/"),P=C?r:void 0,_;typeof i=="function"?_=i({isActive:C,isPending:x}):_=[i,C?"active":null,x?"pending":null].filter(Boolean).join(" ");let k=typeof a=="function"?a({isActive:C,isPending:x}):a;return u.createElement(YO,mg({},p,{"aria-current":P,className:_,ref:n,style:k,to:c}),typeof d=="function"?d({isActive:C,isPending:x}):d)});var e_;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(e_||(e_={}));var t_;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(t_||(t_={}));function JV(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s}=t===void 0?{}:t,a=TV(),c=Ju(),d=rx(e,{relative:s});return u.useCallback(p=>{if(WV(p,n)){p.preventDefault();let h=r!==void 0?r:pg(c)===pg(d);a(e,{replace:h,state:o,preventScrollReset:i,relative:s})}},[c,a,d,r,o,n,e,i,s])}const ZV={black:"#000",white:"#fff"},Kf=ZV,e7={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"},Pc=e7,t7={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"},Ic=t7,n7={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"},kc=n7,r7={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},_c=r7,o7={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},$c=o7,i7={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"},Dd=i7,s7={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"},l7=s7;function a7(e,t){return()=>null}function E(){return E=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},E.apply(this,arguments)}function Ca(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function QO(e){if(!Ca(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=QO(e[n])}),t}function ci(e,t,n={clone:!0}){const r=n.clone?E({},e):e;return Ca(e)&&Ca(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Ca(t[o])&&o in e&&Ca(e[o])?r[o]=ci(e[o],t[o],n):n.clone?r[o]=Ca(t[o])?QO(t[o]):t[o]:r[o]=t[o])}),r}var XO={exports:{}},c7="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",u7=c7,d7=u7;function JO(){}function ZO(){}ZO.resetWarningCache=JO;var f7=function(){function e(r,o,i,s,a,c){if(c!==d7){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ZO,resetWarningCache:JO};return n.PropTypes=n,n};XO.exports=f7();var p7=XO.exports;const ae=mp(p7);function Wl(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var dn={};/**
|
|
60
|
-
* @license React
|
|
61
|
-
* react-is.production.min.js
|
|
62
|
-
*
|
|
63
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
64
|
-
*
|
|
65
|
-
* This source code is licensed under the MIT license found in the
|
|
66
|
-
* LICENSE file in the root directory of this source tree.
|
|
67
|
-
*/var ox=Symbol.for("react.element"),ix=Symbol.for("react.portal"),av=Symbol.for("react.fragment"),cv=Symbol.for("react.strict_mode"),uv=Symbol.for("react.profiler"),dv=Symbol.for("react.provider"),fv=Symbol.for("react.context"),h7=Symbol.for("react.server_context"),pv=Symbol.for("react.forward_ref"),hv=Symbol.for("react.suspense"),mv=Symbol.for("react.suspense_list"),gv=Symbol.for("react.memo"),vv=Symbol.for("react.lazy"),m7=Symbol.for("react.offscreen"),eF;eF=Symbol.for("react.module.reference");function yi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ox:switch(e=e.type,e){case av:case uv:case cv:case hv:case mv:return e;default:switch(e=e&&e.$$typeof,e){case h7:case fv:case pv:case vv:case gv:case dv:return e;default:return t}}case ix:return t}}}dn.ContextConsumer=fv;dn.ContextProvider=dv;dn.Element=ox;dn.ForwardRef=pv;dn.Fragment=av;dn.Lazy=vv;dn.Memo=gv;dn.Portal=ix;dn.Profiler=uv;dn.StrictMode=cv;dn.Suspense=hv;dn.SuspenseList=mv;dn.isAsyncMode=function(){return!1};dn.isConcurrentMode=function(){return!1};dn.isContextConsumer=function(e){return yi(e)===fv};dn.isContextProvider=function(e){return yi(e)===dv};dn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ox};dn.isForwardRef=function(e){return yi(e)===pv};dn.isFragment=function(e){return yi(e)===av};dn.isLazy=function(e){return yi(e)===vv};dn.isMemo=function(e){return yi(e)===gv};dn.isPortal=function(e){return yi(e)===ix};dn.isProfiler=function(e){return yi(e)===uv};dn.isStrictMode=function(e){return yi(e)===cv};dn.isSuspense=function(e){return yi(e)===hv};dn.isSuspenseList=function(e){return yi(e)===mv};dn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===av||e===uv||e===cv||e===hv||e===mv||e===m7||typeof e=="object"&&e!==null&&(e.$$typeof===vv||e.$$typeof===gv||e.$$typeof===dv||e.$$typeof===fv||e.$$typeof===pv||e.$$typeof===eF||e.getModuleId!==void 0)};dn.typeOf=yi;function ue(e){if(typeof e!="string")throw new Error(Wl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function lw(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Ws(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function g7(e,t){return()=>null}function bf(e,t){return u.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function vn(e){return e&&e.ownerDocument||document}function Oo(e){return vn(e).defaultView||window}function v7(e,t){return()=>null}function qf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const y7=typeof window!="undefined"?u.useLayoutEffect:u.useEffect,ln=y7;let n_=0;function b7(e){const[t,n]=u.useState(e),r=e||t;return u.useEffect(()=>{t==null&&(n_+=1,n(`mui-${n_}`))},[t]),r}const r_=La["useId".toString()];function on(e){if(r_!==void 0){const t=r_();return e!=null?e:t}return b7(e)}function w7(e,t,n,r,o){return null}function is({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=u.useRef(e!==void 0),[i,s]=u.useState(t),a=o?e:i,c=u.useCallback(d=>{o||s(d)},[]);return[a,c]}function Pn(e){const t=u.useRef(e);return ln(()=>{t.current=e}),u.useCallback((...n)=>(0,t.current)(...n),[])}function Vt(...e){return u.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{qf(n,t)})},e)}let yv=!0,aw=!1,o_;const C7={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 x7(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&C7[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function S7(e){e.metaKey||e.altKey||e.ctrlKey||(yv=!0)}function E1(){yv=!1}function E7(){this.visibilityState==="hidden"&&aw&&(yv=!0)}function P7(e){e.addEventListener("keydown",S7,!0),e.addEventListener("mousedown",E1,!0),e.addEventListener("pointerdown",E1,!0),e.addEventListener("touchstart",E1,!0),e.addEventListener("visibilitychange",E7,!0)}function I7(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return yv||x7(t)}function bv(){const e=u.useCallback(o=>{o!=null&&P7(o.ownerDocument)},[]),t=u.useRef(!1);function n(){return t.current?(aw=!0,window.clearTimeout(o_),o_=window.setTimeout(()=>{aw=!1},100),t.current=!1,!0):!1}function r(o){return I7(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function tF(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Rc;function nF(){if(Rc)return Rc;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),Rc="reverse",e.scrollLeft>0?Rc="default":(e.scrollLeft=1,e.scrollLeft===0&&(Rc="negative")),document.body.removeChild(e),Rc}function i_(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(nF()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const k7=e=>{const t=u.useRef({});return u.useEffect(()=>{t.current=e}),t.current},sx=k7;function lx(e,t){const n=E({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=E({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=E({},i),Object.keys(o).forEach(s=>{n[r][s]=lx(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Me(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const s_=e=>e,_7=()=>{let e=s_;return{configure(t){e=t},generate(t){return e(t)},reset(){e=s_}}},$7=_7(),ax=$7,R7={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Je(e,t,n="Mui"){const r=R7[t];return r?`${n}-${r}`:`${ax.generate(e)}-${t}`}function Xe(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Je(e,o,n)}),r}const ja="$$material";function ne(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function rF(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var M7=/^((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)-.*))$/,T7=rF(function(e){return M7.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function O7(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 F7(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 L7=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(F7(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=O7(o);try{i.insertRule(r,i.cssRules.length)}catch(s){}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),_r="-ms-",gg="-moz-",Yt="-webkit-",oF="comm",cx="rule",ux="decl",A7="@import",iF="@keyframes",N7=Math.abs,wv=String.fromCharCode,D7=Object.assign;function B7(e,t){return Cr(e,0)^45?(((t<<2^Cr(e,0))<<2^Cr(e,1))<<2^Cr(e,2))<<2^Cr(e,3):0}function sF(e){return e.trim()}function z7(e,t){return(e=t.exec(e))?e[0]:e}function Xt(e,t,n){return e.replace(t,n)}function cw(e,t){return e.indexOf(t)}function Cr(e,t){return e.charCodeAt(t)|0}function Yf(e,t,n){return e.slice(t,n)}function Xi(e){return e.length}function dx(e){return e.length}function Qh(e,t){return t.push(e),e}function j7(e,t){return e.map(t).join("")}var Cv=1,$u=1,lF=0,uo=0,Jn=0,Zu="";function xv(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Cv,column:$u,length:s,return:""}}function Bd(e,t){return D7(xv("",null,null,"",null,null,0),e,{length:-e.length},t)}function H7(){return Jn}function V7(){return Jn=uo>0?Cr(Zu,--uo):0,$u--,Jn===10&&($u=1,Cv--),Jn}function $o(){return Jn=uo<lF?Cr(Zu,uo++):0,$u++,Jn===10&&($u=1,Cv++),Jn}function ss(){return Cr(Zu,uo)}function km(){return uo}function xp(e,t){return Yf(Zu,e,t)}function Qf(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 aF(e){return Cv=$u=1,lF=Xi(Zu=e),uo=0,[]}function cF(e){return Zu="",e}function _m(e){return sF(xp(uo-1,uw(e===91?e+2:e===40?e+1:e)))}function U7(e){for(;(Jn=ss())&&Jn<33;)$o();return Qf(e)>2||Qf(Jn)>3?"":" "}function W7(e,t){for(;--t&&$o()&&!(Jn<48||Jn>102||Jn>57&&Jn<65||Jn>70&&Jn<97););return xp(e,km()+(t<6&&ss()==32&&$o()==32))}function uw(e){for(;$o();)switch(Jn){case e:return uo;case 34:case 39:e!==34&&e!==39&&uw(Jn);break;case 40:e===41&&uw(e);break;case 92:$o();break}return uo}function G7(e,t){for(;$o()&&e+Jn!==47+10;)if(e+Jn===42+42&&ss()===47)break;return"/*"+xp(t,uo-1)+"*"+wv(e===47?e:$o())}function K7(e){for(;!Qf(ss());)$o();return xp(e,uo)}function q7(e){return cF($m("",null,null,null,[""],e=aF(e),0,[0],e))}function $m(e,t,n,r,o,i,s,a,c){for(var d=0,p=0,h=s,m=0,g=0,y=0,v=1,S=1,w=1,C=0,x="",P=o,_=i,k=r,I=x;S;)switch(y=C,C=$o()){case 40:if(y!=108&&Cr(I,h-1)==58){cw(I+=Xt(_m(C),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:I+=_m(C);break;case 9:case 10:case 13:case 32:I+=U7(y);break;case 92:I+=W7(km()-1,7);continue;case 47:switch(ss()){case 42:case 47:Qh(Y7(G7($o(),km()),t,n),c);break;default:I+="/"}break;case 123*v:a[d++]=Xi(I)*w;case 125*v:case 59:case 0:switch(C){case 0:case 125:S=0;case 59+p:g>0&&Xi(I)-h&&Qh(g>32?a_(I+";",r,n,h-1):a_(Xt(I," ","")+";",r,n,h-2),c);break;case 59:I+=";";default:if(Qh(k=l_(I,t,n,d,p,o,a,x,P=[],_=[],h),i),C===123)if(p===0)$m(I,t,k,k,P,i,h,a,_);else switch(m===99&&Cr(I,3)===110?100:m){case 100:case 109:case 115:$m(e,k,k,r&&Qh(l_(e,k,k,0,0,o,a,x,o,P=[],h),_),o,_,h,a,r?P:_);break;default:$m(I,k,k,k,[""],_,0,a,_)}}d=p=g=0,v=w=1,x=I="",h=s;break;case 58:h=1+Xi(I),g=y;default:if(v<1){if(C==123)--v;else if(C==125&&v++==0&&V7()==125)continue}switch(I+=wv(C),C*v){case 38:w=p>0?1:(I+="\f",-1);break;case 44:a[d++]=(Xi(I)-1)*w,w=1;break;case 64:ss()===45&&(I+=_m($o())),m=ss(),p=h=Xi(x=I+=K7(km())),C++;break;case 45:y===45&&Xi(I)==2&&(v=0)}}return i}function l_(e,t,n,r,o,i,s,a,c,d,p){for(var h=o-1,m=o===0?i:[""],g=dx(m),y=0,v=0,S=0;y<r;++y)for(var w=0,C=Yf(e,h+1,h=N7(v=s[y])),x=e;w<g;++w)(x=sF(v>0?m[w]+" "+C:Xt(C,/&\f/g,m[w])))&&(c[S++]=x);return xv(e,t,n,o===0?cx:a,c,d,p)}function Y7(e,t,n){return xv(e,t,n,oF,wv(H7()),Yf(e,2,-2),0)}function a_(e,t,n,r){return xv(e,t,n,ux,Yf(e,0,r),Yf(e,r+1,-1),r)}function hu(e,t){for(var n="",r=dx(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Q7(e,t,n,r){switch(e.type){case A7:case ux:return e.return=e.return||e.value;case oF:return"";case iF:return e.return=e.value+"{"+hu(e.children,r)+"}";case cx:e.value=e.props.join(",")}return Xi(n=hu(e.children,r))?e.return=e.value+"{"+n+"}":""}function X7(e){var t=dx(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}function J7(e){return function(t){t.root||(t=t.return)&&e(t)}}var Z7=function(t,n,r){for(var o=0,i=0;o=i,i=ss(),o===38&&i===12&&(n[r]=1),!Qf(i);)$o();return xp(t,uo)},eU=function(t,n){var r=-1,o=44;do switch(Qf(o)){case 0:o===38&&ss()===12&&(n[r]=1),t[r]+=Z7(uo-1,n,r);break;case 2:t[r]+=_m(o);break;case 4:if(o===44){t[++r]=ss()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=wv(o)}while(o=$o());return t},tU=function(t,n){return cF(eU(aF(t),n))},c_=new WeakMap,nU=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!c_.get(r))&&!o){c_.set(t,!0);for(var i=[],s=tU(n,i),a=r.props,c=0,d=0;c<s.length;c++)for(var p=0;p<a.length;p++,d++)t.props[d]=i[c]?s[c].replace(/&\f/g,a[p]):a[p]+" "+s[c]}}},rU=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function uF(e,t){switch(B7(e,t)){case 5103:return Yt+"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 Yt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Yt+e+gg+e+_r+e+e;case 6828:case 4268:return Yt+e+_r+e+e;case 6165:return Yt+e+_r+"flex-"+e+e;case 5187:return Yt+e+Xt(e,/(\w+).+(:[^]+)/,Yt+"box-$1$2"+_r+"flex-$1$2")+e;case 5443:return Yt+e+_r+"flex-item-"+Xt(e,/flex-|-self/,"")+e;case 4675:return Yt+e+_r+"flex-line-pack"+Xt(e,/align-content|flex-|-self/,"")+e;case 5548:return Yt+e+_r+Xt(e,"shrink","negative")+e;case 5292:return Yt+e+_r+Xt(e,"basis","preferred-size")+e;case 6060:return Yt+"box-"+Xt(e,"-grow","")+Yt+e+_r+Xt(e,"grow","positive")+e;case 4554:return Yt+Xt(e,/([^-])(transform)/g,"$1"+Yt+"$2")+e;case 6187:return Xt(Xt(Xt(e,/(zoom-|grab)/,Yt+"$1"),/(image-set)/,Yt+"$1"),e,"")+e;case 5495:case 3959:return Xt(e,/(image-set\([^]*)/,Yt+"$1$`$1");case 4968:return Xt(Xt(e,/(.+:)(flex-)?(.*)/,Yt+"box-pack:$3"+_r+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Yt+e+e;case 4095:case 3583:case 4068:case 2532:return Xt(e,/(.+)-inline(.+)/,Yt+"$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(Xi(e)-1-t>6)switch(Cr(e,t+1)){case 109:if(Cr(e,t+4)!==45)break;case 102:return Xt(e,/(.+:)(.+)-([^]+)/,"$1"+Yt+"$2-$3$1"+gg+(Cr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cw(e,"stretch")?uF(Xt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Cr(e,t+1)!==115)break;case 6444:switch(Cr(e,Xi(e)-3-(~cw(e,"!important")&&10))){case 107:return Xt(e,":",":"+Yt)+e;case 101:return Xt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Yt+(Cr(e,14)===45?"inline-":"")+"box$3$1"+Yt+"$2$3$1"+_r+"$2box$3")+e}break;case 5936:switch(Cr(e,t+11)){case 114:return Yt+e+_r+Xt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Yt+e+_r+Xt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Yt+e+_r+Xt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Yt+e+_r+e+e}return e}var oU=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case ux:t.return=uF(t.value,t.length);break;case iF:return hu([Bd(t,{value:Xt(t.value,"@","@"+Yt)})],o);case cx:if(t.length)return j7(t.props,function(i){switch(z7(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hu([Bd(t,{props:[Xt(i,/:(read-\w+)/,":"+gg+"$1")]})],o);case"::placeholder":return hu([Bd(t,{props:[Xt(i,/:(plac\w+)/,":"+Yt+"input-$1")]}),Bd(t,{props:[Xt(i,/:(plac\w+)/,":"+gg+"$1")]}),Bd(t,{props:[Xt(i,/:(plac\w+)/,_r+"input-$1")]})],o)}return""})}},iU=[oU],sU=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var S=v.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||iU,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var S=v.getAttribute("data-emotion").split(" "),w=1;w<S.length;w++)i[S[w]]=!0;a.push(v)});var c,d=[nU,rU];{var p,h=[Q7,J7(function(v){p.insert(v)})],m=X7(d.concat(o,h)),g=function(S){return hu(q7(S),m)};c=function(S,w,C,x){p=C,g(S?S+"{"+w.styles+"}":w.styles),x&&(y.inserted[w.name]=!0)}}var y={key:n,sheet:new L7({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return y.sheet.hydrate(a),y},dF={exports:{}},an={};/** @license React v16.13.1
|
|
68
|
-
* react-is.production.min.js
|
|
69
|
-
*
|
|
70
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
71
|
-
*
|
|
72
|
-
* This source code is licensed under the MIT license found in the
|
|
73
|
-
* LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/var mr=typeof Symbol=="function"&&Symbol.for,fx=mr?Symbol.for("react.element"):60103,px=mr?Symbol.for("react.portal"):60106,Sv=mr?Symbol.for("react.fragment"):60107,Ev=mr?Symbol.for("react.strict_mode"):60108,Pv=mr?Symbol.for("react.profiler"):60114,Iv=mr?Symbol.for("react.provider"):60109,kv=mr?Symbol.for("react.context"):60110,hx=mr?Symbol.for("react.async_mode"):60111,_v=mr?Symbol.for("react.concurrent_mode"):60111,$v=mr?Symbol.for("react.forward_ref"):60112,Rv=mr?Symbol.for("react.suspense"):60113,lU=mr?Symbol.for("react.suspense_list"):60120,Mv=mr?Symbol.for("react.memo"):60115,Tv=mr?Symbol.for("react.lazy"):60116,aU=mr?Symbol.for("react.block"):60121,cU=mr?Symbol.for("react.fundamental"):60117,uU=mr?Symbol.for("react.responder"):60118,dU=mr?Symbol.for("react.scope"):60119;function Bo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case fx:switch(e=e.type,e){case hx:case _v:case Sv:case Pv:case Ev:case Rv:return e;default:switch(e=e&&e.$$typeof,e){case kv:case $v:case Tv:case Mv:case Iv:return e;default:return t}}case px:return t}}}function fF(e){return Bo(e)===_v}an.AsyncMode=hx;an.ConcurrentMode=_v;an.ContextConsumer=kv;an.ContextProvider=Iv;an.Element=fx;an.ForwardRef=$v;an.Fragment=Sv;an.Lazy=Tv;an.Memo=Mv;an.Portal=px;an.Profiler=Pv;an.StrictMode=Ev;an.Suspense=Rv;an.isAsyncMode=function(e){return fF(e)||Bo(e)===hx};an.isConcurrentMode=fF;an.isContextConsumer=function(e){return Bo(e)===kv};an.isContextProvider=function(e){return Bo(e)===Iv};an.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===fx};an.isForwardRef=function(e){return Bo(e)===$v};an.isFragment=function(e){return Bo(e)===Sv};an.isLazy=function(e){return Bo(e)===Tv};an.isMemo=function(e){return Bo(e)===Mv};an.isPortal=function(e){return Bo(e)===px};an.isProfiler=function(e){return Bo(e)===Pv};an.isStrictMode=function(e){return Bo(e)===Ev};an.isSuspense=function(e){return Bo(e)===Rv};an.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Sv||e===_v||e===Pv||e===Ev||e===Rv||e===lU||typeof e=="object"&&e!==null&&(e.$$typeof===Tv||e.$$typeof===Mv||e.$$typeof===Iv||e.$$typeof===kv||e.$$typeof===$v||e.$$typeof===cU||e.$$typeof===uU||e.$$typeof===dU||e.$$typeof===aU)};an.typeOf=Bo;dF.exports=an;var fU=dF.exports,pF=fU,pU={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},hU={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},hF={};hF[pF.ForwardRef]=pU;hF[pF.Memo]=hU;var mU=!0;function gU(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var mF=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||mU===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},gF=function(t,n,r){mF(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function vU(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 yU={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},bU=/[A-Z]|^ms/g,wU=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vF=function(t){return t.charCodeAt(1)===45},u_=function(t){return t!=null&&typeof t!="boolean"},P1=rF(function(e){return vF(e)?e:e.replace(bU,"-$&").toLowerCase()}),d_=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(wU,function(r,o,i){return Ji={name:o,styles:i,next:Ji},o})}return yU[t]!==1&&!vF(t)&&typeof n=="number"&&n!==0?n+"px":n};function Xf(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 Ji={name:n.name,styles:n.styles,next:Ji},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Ji={name:r.name,styles:r.styles,next:Ji},r=r.next;var o=n.styles+";";return o}return CU(e,t,n)}case"function":{if(e!==void 0){var i=Ji,s=n(e);return Ji=i,Xf(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function CU(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Xf(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object")t!=null&&t[s]!==void 0?r+=i+"{"+t[s]+"}":u_(s)&&(r+=P1(i)+":"+d_(i,s)+";");else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var a=0;a<s.length;a++)u_(s[a])&&(r+=P1(i)+":"+d_(i,s[a])+";");else{var c=Xf(e,t,s);switch(i){case"animation":case"animationName":{r+=P1(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var f_=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ji,mx=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";Ji=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=Xf(r,n,s)):i+=s[0];for(var a=1;a<t.length;a++)i+=Xf(r,n,t[a]),o&&(i+=s[a]);f_.lastIndex=0;for(var c="",d;(d=f_.exec(i))!==null;)c+="-"+d[1];var p=vU(i)+c;return{name:p,styles:i,next:Ji}},xU=function(t){return t()},yF=La["useInsertionEffect"]?La["useInsertionEffect"]:!1,SU=yF||xU,p_=yF||u.useLayoutEffect,bF=u.createContext(typeof HTMLElement!="undefined"?sU({key:"css"}):null);bF.Provider;var wF=function(t){return u.forwardRef(function(n,r){var o=u.useContext(bF);return t(n,o,r)})},Ov=u.createContext({}),EU=wF(function(e,t){var n=e.styles,r=mx([n],void 0,u.useContext(Ov)),o=u.useRef();return p_(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,c=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),c!==null&&(a=!0,c.setAttribute("data-emotion",i),s.hydrate([c])),o.current=[s,a],function(){s.flush()}},[t]),p_(function(){var i=o.current,s=i[0],a=i[1];if(a){i[1]=!1;return}if(r.next!==void 0&&gF(t,r.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function Gl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return mx(t)}var vs=function(){var t=Gl.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_"}}},PU=T7,IU=function(t){return t!=="theme"},h_=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?PU:IU},m_=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},kU=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return mF(n,r,o),SU(function(){return gF(n,r,o)}),null},_U=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=m_(t,n,r),c=a||h_(o),d=!c("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{h.push(p[0][0]);for(var m=p.length,g=1;g<m;g++)h.push(p[g],p[0][g])}var y=wF(function(v,S,w){var C=d&&v.as||o,x="",P=[],_=v;if(v.theme==null){_={};for(var k in v)_[k]=v[k];_.theme=u.useContext(Ov)}typeof v.className=="string"?x=gU(S.registered,P,v.className):v.className!=null&&(x=v.className+" ");var I=mx(h.concat(P),S.registered,_);x+=S.key+"-"+I.name,s!==void 0&&(x+=" "+s);var R=d&&a===void 0?h_(C):c,L={};for(var N in v)d&&N==="as"||R(N)&&(L[N]=v[N]);return L.className=x,L.ref=w,u.createElement(u.Fragment,null,u.createElement(kU,{cache:S,serialized:I,isStringTag:typeof C=="string"}),u.createElement(C,L))});return y.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=o,y.__emotion_styles=h,y.__emotion_forwardProp=a,Object.defineProperty(y,"toString",{value:function(){return"."+s}}),y.withComponent=function(v,S){return e(v,E({},n,S,{shouldForwardProp:m_(y,S,!0)})).apply(void 0,h)},y}};const $U=_U;var RU=["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"],dw=$U.bind();RU.forEach(function(e){dw[e]=dw(e)});const MU=dw;var I1={exports:{}},zd={};/**
|
|
75
|
-
* @license React
|
|
76
|
-
* react-jsx-runtime.production.min.js
|
|
77
|
-
*
|
|
78
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
79
|
-
*
|
|
80
|
-
* This source code is licensed under the MIT license found in the
|
|
81
|
-
* LICENSE file in the root directory of this source tree.
|
|
82
|
-
*/var g_;function TU(){if(g_)return zd;g_=1;var e=u,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(a,c,d){var p,h={},m=null,g=null;d!==void 0&&(m=""+d),c.key!==void 0&&(m=""+c.key),c.ref!==void 0&&(g=c.ref);for(p in c)r.call(c,p)&&!i.hasOwnProperty(p)&&(h[p]=c[p]);if(a&&a.defaultProps)for(p in c=a.defaultProps,c)h[p]===void 0&&(h[p]=c[p]);return{$$typeof:t,type:a,key:m,ref:g,props:h,_owner:o.current}}return zd.Fragment=n,zd.jsx=s,zd.jsxs=s,zd}var v_;function st(){return v_||(v_=1,I1.exports=TU()),I1.exports}var T=st();function OU(e){return e==null||Object.keys(e).length===0}function FU(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(OU(o)?n:o):t;return T.jsx(EU,{styles:r})}/**
|
|
83
|
-
* @mui/styled-engine v5.12.0
|
|
84
|
-
*
|
|
85
|
-
* @license MIT
|
|
86
|
-
* This source code is licensed under the MIT license found in the
|
|
87
|
-
* LICENSE file in the root directory of this source tree.
|
|
88
|
-
*/function CF(e,t){return MU(e,t)}const LU=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},AU=["values","unit","step"],NU=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)=>E({},n,{[r.key]:r.val}),{})};function DU(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ne(e,AU),i=NU(t),s=Object.keys(i);function a(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function d(m,g){const y=s.indexOf(g);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:g)-r/100}${n})`}function p(m){return s.indexOf(m)+1<s.length?d(m,s[s.indexOf(m)+1]):a(m)}function h(m){const g=s.indexOf(m);return g===0?a(s[1]):g===s.length-1?c(s[g]):d(m,s[s.indexOf(m)+1]).replace("@media","@media not all and")}return E({keys:s,values:i,up:a,down:c,between:d,only:p,not:h,unit:n},o)}const BU={borderRadius:4},zU=BU;function wf(e,t){return t?ci(e,t,{clone:!1}):e}const gx={xs:0,sm:600,md:900,lg:1200,xl:1536},y_={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${gx[e]}px)`};function hi(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||y_;return t.reduce((s,a,c)=>(s[i.up(i.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const i=r.breakpoints||y_;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||gx).indexOf(a)!==-1){const c=i.up(a);s[c]=n(t[a],a)}else{const c=a;s[c]=t[c]}return s},{})}return n(t)}function jU(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function HU(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function VU(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function Fv({values:e,breakpoints:t,base:n}){const r=n||VU(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((s,a,c)=>(Array.isArray(e)?(s[a]=e[c]!=null?e[c]:e[i],i=c):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[i],i=a):s[a]=e,s),{})}function Ru(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function vg(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Ru(e,n)||r,t&&(o=t(o,r,e)),o}function Jt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],c=s.theme,d=Ru(c,r)||{};return hi(s,a,h=>{let m=vg(d,o,h);return h===m&&typeof h=="string"&&(m=vg(d,o,`${t}${h==="default"?"":ue(h)}`,h)),n===!1?m:{[n]:m}})};return i.propTypes={},i.filterProps=[t],i}function UU(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const WU={m:"margin",p:"padding"},GU={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},b_={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},KU=UU(e=>{if(e.length>2)if(b_[e])e=b_[e];else return[e];const[t,n]=e.split(""),r=WU[t],o=GU[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),vx=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],yx=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...vx,...yx];function Sp(e,t,n,r){var o;const i=(o=Ru(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function xF(e){return Sp(e,"spacing",8)}function Ep(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 qU(e,t){return n=>e.reduce((r,o)=>(r[o]=Ep(t,n),r),{})}function YU(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=KU(n),i=qU(o,r),s=e[n];return hi(e,s,i)}function SF(e,t){const n=xF(e.theme);return Object.keys(e).map(r=>YU(e,t,r,n)).reduce(wf,{})}function Vn(e){return SF(e,vx)}Vn.propTypes={};Vn.filterProps=vx;function Un(e){return SF(e,yx)}Un.propTypes={};Un.filterProps=yx;function QU(e=8){if(e.mui)return e;const t=xF({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Lv(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?wf(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function ns(e){return typeof e!="number"?e:`${e}px solid`}const XU=Jt({prop:"border",themeKey:"borders",transform:ns}),JU=Jt({prop:"borderTop",themeKey:"borders",transform:ns}),ZU=Jt({prop:"borderRight",themeKey:"borders",transform:ns}),eW=Jt({prop:"borderBottom",themeKey:"borders",transform:ns}),tW=Jt({prop:"borderLeft",themeKey:"borders",transform:ns}),nW=Jt({prop:"borderColor",themeKey:"palette"}),rW=Jt({prop:"borderTopColor",themeKey:"palette"}),oW=Jt({prop:"borderRightColor",themeKey:"palette"}),iW=Jt({prop:"borderBottomColor",themeKey:"palette"}),sW=Jt({prop:"borderLeftColor",themeKey:"palette"}),Av=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Sp(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ep(t,r)});return hi(e,e.borderRadius,n)}return null};Av.propTypes={};Av.filterProps=["borderRadius"];Lv(XU,JU,ZU,eW,tW,nW,rW,oW,iW,sW,Av);const Nv=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Sp(e.theme,"spacing",8),n=r=>({gap:Ep(t,r)});return hi(e,e.gap,n)}return null};Nv.propTypes={};Nv.filterProps=["gap"];const Dv=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Sp(e.theme,"spacing",8),n=r=>({columnGap:Ep(t,r)});return hi(e,e.columnGap,n)}return null};Dv.propTypes={};Dv.filterProps=["columnGap"];const Bv=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Sp(e.theme,"spacing",8),n=r=>({rowGap:Ep(t,r)});return hi(e,e.rowGap,n)}return null};Bv.propTypes={};Bv.filterProps=["rowGap"];const lW=Jt({prop:"gridColumn"}),aW=Jt({prop:"gridRow"}),cW=Jt({prop:"gridAutoFlow"}),uW=Jt({prop:"gridAutoColumns"}),dW=Jt({prop:"gridAutoRows"}),fW=Jt({prop:"gridTemplateColumns"}),pW=Jt({prop:"gridTemplateRows"}),hW=Jt({prop:"gridTemplateAreas"}),mW=Jt({prop:"gridArea"});Lv(Nv,Dv,Bv,lW,aW,cW,uW,dW,fW,pW,hW,mW);function mu(e,t){return t==="grey"?t:e}const gW=Jt({prop:"color",themeKey:"palette",transform:mu}),vW=Jt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:mu}),yW=Jt({prop:"backgroundColor",themeKey:"palette",transform:mu});Lv(gW,vW,yW);function Eo(e){return e<=1&&e!==0?`${e*100}%`:e}const bW=Jt({prop:"width",transform:Eo}),bx=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o,i;return{maxWidth:((r=e.theme)==null||(o=r.breakpoints)==null||(i=o.values)==null?void 0:i[n])||gx[n]||Eo(n)}};return hi(e,e.maxWidth,t)}return null};bx.filterProps=["maxWidth"];const wW=Jt({prop:"minWidth",transform:Eo}),CW=Jt({prop:"height",transform:Eo}),xW=Jt({prop:"maxHeight",transform:Eo}),SW=Jt({prop:"minHeight",transform:Eo});Jt({prop:"size",cssProperty:"width",transform:Eo});Jt({prop:"size",cssProperty:"height",transform:Eo});const EW=Jt({prop:"boxSizing"});Lv(bW,bx,wW,CW,xW,SW,EW);const PW={border:{themeKey:"borders",transform:ns},borderTop:{themeKey:"borders",transform:ns},borderRight:{themeKey:"borders",transform:ns},borderBottom:{themeKey:"borders",transform:ns},borderLeft:{themeKey:"borders",transform:ns},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Av},color:{themeKey:"palette",transform:mu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:mu},backgroundColor:{themeKey:"palette",transform:mu},p:{style:Un},pt:{style:Un},pr:{style:Un},pb:{style:Un},pl:{style:Un},px:{style:Un},py:{style:Un},padding:{style:Un},paddingTop:{style:Un},paddingRight:{style:Un},paddingBottom:{style:Un},paddingLeft:{style:Un},paddingX:{style:Un},paddingY:{style:Un},paddingInline:{style:Un},paddingInlineStart:{style:Un},paddingInlineEnd:{style:Un},paddingBlock:{style:Un},paddingBlockStart:{style:Un},paddingBlockEnd:{style:Un},m:{style:Vn},mt:{style:Vn},mr:{style:Vn},mb:{style:Vn},ml:{style:Vn},mx:{style:Vn},my:{style:Vn},margin:{style:Vn},marginTop:{style:Vn},marginRight:{style:Vn},marginBottom:{style:Vn},marginLeft:{style:Vn},marginX:{style:Vn},marginY:{style:Vn},marginInline:{style:Vn},marginInlineStart:{style:Vn},marginInlineEnd:{style:Vn},marginBlock:{style:Vn},marginBlockStart:{style:Vn},marginBlockEnd:{style:Vn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Nv},rowGap:{style:Bv},columnGap:{style:Dv},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Eo},maxWidth:{style:bx},minWidth:{transform:Eo},height:{transform:Eo},maxHeight:{transform:Eo},minHeight:{transform:Eo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},zv=PW;function IW(...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 kW(e,t){return typeof e=="function"?e(t):e}function _W(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:c=n,themeKey:d,transform:p,style:h}=a;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const m=Ru(o,d)||{};return h?h(s):hi(s,r,y=>{let v=vg(m,p,y);return y===v&&typeof y=="string"&&(v=vg(m,p,`${n}${y==="default"?"":ue(y)}`,y)),c===!1?v:{[c]:v}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:zv;function a(c){let d=c;if(typeof c=="function")d=c(i);else if(typeof c!="object")return c;if(!d)return null;const p=jU(i.breakpoints),h=Object.keys(p);let m=p;return Object.keys(d).forEach(g=>{const y=kW(d[g],i);if(y!=null)if(typeof y=="object")if(s[g])m=wf(m,e(g,y,i,s));else{const v=hi({theme:i},y,S=>({[g]:S}));IW(v,y)?m[g]=t({sx:y,theme:i}):m=wf(m,v)}else m=wf(m,e(g,y,i,s))}),HU(h,m)}return Array.isArray(o)?o.map(a):a(o)}return t}const EF=_W();EF.filterProps=["sx"];const jv=EF,$W=["breakpoints","palette","spacing","shape"];function wx(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=ne(e,$W),a=DU(n),c=QU(o);let d=ci({breakpoints:a,direction:"ltr",components:{},palette:E({mode:"light"},r),spacing:c,shape:E({},zU,i)},s);return d=t.reduce((p,h)=>ci(p,h),d),d.unstable_sxConfig=E({},zv,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(h){return jv({sx:h,theme:this})},d}function RW(e){return Object.keys(e).length===0}function Hv(e=null){const t=u.useContext(Ov);return!t||RW(t)?e:t}const MW=wx();function Pp(e=MW){return Hv(e)}function TW({styles:e,themeId:t,defaultTheme:n={}}){const r=Pp(n),o=typeof e=="function"?e(t&&r[t]||r):e;return T.jsx(FU,{styles:o})}const OW=["sx"],FW=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:zv;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Cx(e){const{sx:t}=e,n=ne(e,OW),{systemProps:r,otherProps:o}=FW(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return Ca(a)?E({},r,a):r}:i=E({},r,t),E({},o,{sx:i})}function PF(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=PF(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function he(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=PF(e))&&(r&&(r+=" "),r+=t);return r}const LW=["className","component"];function AW(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=CF("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(jv);return u.forwardRef(function(c,d){const p=Pp(n),h=Cx(c),{className:m,component:g="div"}=h,y=ne(h,LW);return T.jsx(i,E({as:g,ref:d,className:he(m,o?o(r):r),theme:t&&p[t]||p},y))})}const NW=["variant"];function w_(e){return e.length===0}function IF(e){const{variant:t}=e,n=ne(e,NW);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=w_(r)?e[o]:ue(e[o]):r+=`${w_(r)?o:ue(o)}${ue(e[o].toString())}`}),r}const DW=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function BW(e){return Object.keys(e).length===0}function zW(e){return typeof e=="string"&&e.charCodeAt(0)>96}const jW=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,HW=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(o=>{const i=IF(o.props);r[i]=o.style}),r},VW=(e,t,n,r)=>{var o,i;const{ownerState:s={}}=e,a=[],c=n==null||(o=n.components)==null||(i=o[r])==null?void 0:i.variants;return c&&c.forEach(d=>{let p=!0;Object.keys(d.props).forEach(h=>{s[h]!==d.props[h]&&e[h]!==d.props[h]&&(p=!1)}),p&&a.push(t[IF(d.props)])}),a};function Cf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const UW=wx();function jd({defaultTheme:e,theme:t,themeId:n}){return BW(t)?e:t[n]||t}function kF(e={}){const{themeId:t,defaultTheme:n=UW,rootShouldForwardProp:r=Cf,slotShouldForwardProp:o=Cf}=e,i=s=>jv(E({},s,{theme:jd(E({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{LU(s,P=>P.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:c,slot:d,skipVariantsResolver:p,skipSx:h,overridesResolver:m}=a,g=ne(a,DW),y=p!==void 0?p:d&&d!=="Root"||!1,v=h||!1;let S,w=Cf;d==="Root"?w=r:d?w=o:zW(s)&&(w=void 0);const C=CF(s,E({shouldForwardProp:w,label:S},g)),x=(P,..._)=>{const k=_?_.map(N=>typeof N=="function"&&N.__emotion_real!==N?O=>N(E({},O,{theme:jd(E({},O,{defaultTheme:n,themeId:t}))})):N):[];let I=P;c&&m&&k.push(N=>{const O=jd(E({},N,{defaultTheme:n,themeId:t})),D=jW(c,O);if(D){const B={};return Object.entries(D).forEach(([M,F])=>{B[M]=typeof F=="function"?F(E({},N,{theme:O})):F}),m(N,B)}return null}),c&&!y&&k.push(N=>{const O=jd(E({},N,{defaultTheme:n,themeId:t}));return VW(N,HW(c,O),O,c)}),v||k.push(i);const R=k.length-_.length;if(Array.isArray(P)&&R>0){const N=new Array(R).fill("");I=[...P,...N],I.raw=[...P.raw,...N]}else typeof P=="function"&&P.__emotion_real!==P&&(I=N=>P(E({},N,{theme:jd(E({},N,{defaultTheme:n,themeId:t}))})));const L=C(I,...k);return s.muiName&&(L.muiName=s.muiName),L};return C.withConfig&&(x.withConfig=C.withConfig),x}}const WW=kF(),gr=WW;function _F(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:lx(t.components[n].defaultProps,r)}function GW({props:e,name:t,defaultTheme:n,themeId:r}){let o=Pp(n);return r&&(o=o[r]||o),_F({theme:o,name:t,props:e})}function xx(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function KW(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 Ha(e){if(e.type)return e;if(e.charAt(0)==="#")return Ha(KW(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Wl(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(Wl(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function Vv(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function qW(e){e=Ha(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(d,p=(d+n/30)%12)=>o-i*Math.max(Math.min(p-3,9-p,1),-1);let a="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",c.push(t[3])),Vv({type:a,values:c})}function C_(e){e=Ha(e);let t=e.type==="hsl"||e.type==="hsla"?Ha(qW(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:Gi((n+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function YW(e,t){const n=C_(e),r=C_(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ut(e,t){return e=Ha(e),t=xx(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Vv(e)}function Va(e,t){if(e=Ha(e),t=xx(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 Vv(e)}function Ua(e,t){if(e=Ha(e),t=xx(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 Vv(e)}const QW=u.createContext(null),$F=QW;function RF(){return u.useContext($F)}const XW=typeof Symbol=="function"&&Symbol.for,JW=XW?Symbol.for("mui.nested"):"__THEME_NESTED__";function ZW(e,t){return typeof t=="function"?t(e):E({},e,t)}function eG(e){const{children:t,theme:n}=e,r=RF(),o=u.useMemo(()=>{const i=r===null?n:ZW(r,n);return i!=null&&(i[JW]=r!==null),i},[n,r]);return T.jsx($F.Provider,{value:o,children:t})}const x_={};function S_(e,t,n,r=!1){return u.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),s=e?E({},t,{[e]:i}):i;return r?()=>s:s}return e?E({},t,{[e]:n}):E({},t,n)},[e,t,n,r])}function tG(e){const{children:t,theme:n,themeId:r}=e,o=Hv(x_),i=RF()||x_,s=S_(r,o,n),a=S_(r,i,n,!0);return T.jsx(eG,{theme:a,children:T.jsx(Ov.Provider,{value:s,children:t})})}function nG(e,t){return E({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const rG=["mode","contrastThreshold","tonalOffset"],E_={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:Kf.white,default:Kf.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}},k1={text:{primary:Kf.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:Kf.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 P_(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ua(e.main,o):t==="dark"&&(e.dark=Va(e.main,i)))}function oG(e="light"){return e==="dark"?{main:kc[200],light:kc[50],dark:kc[400]}:{main:kc[700],light:kc[400],dark:kc[800]}}function iG(e="light"){return e==="dark"?{main:Ic[200],light:Ic[50],dark:Ic[400]}:{main:Ic[500],light:Ic[300],dark:Ic[700]}}function sG(e="light"){return e==="dark"?{main:Pc[500],light:Pc[300],dark:Pc[700]}:{main:Pc[700],light:Pc[400],dark:Pc[800]}}function lG(e="light"){return e==="dark"?{main:_c[400],light:_c[300],dark:_c[700]}:{main:_c[700],light:_c[500],dark:_c[900]}}function aG(e="light"){return e==="dark"?{main:$c[400],light:$c[300],dark:$c[700]}:{main:$c[800],light:$c[500],dark:$c[900]}}function cG(e="light"){return e==="dark"?{main:Dd[400],light:Dd[300],dark:Dd[700]}:{main:"#ed6c02",light:Dd[500],dark:Dd[900]}}function uG(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ne(e,rG),i=e.primary||oG(t),s=e.secondary||iG(t),a=e.error||sG(t),c=e.info||lG(t),d=e.success||aG(t),p=e.warning||cG(t);function h(v){return YW(v,k1.text.primary)>=n?k1.text.primary:E_.text.primary}const m=({color:v,name:S,mainShade:w=500,lightShade:C=300,darkShade:x=700})=>{if(v=E({},v),!v.main&&v[w]&&(v.main=v[w]),!v.hasOwnProperty("main"))throw new Error(Wl(11,S?` (${S})`:"",w));if(typeof v.main!="string")throw new Error(Wl(12,S?` (${S})`:"",JSON.stringify(v.main)));return P_(v,"light",C,r),P_(v,"dark",x,r),v.contrastText||(v.contrastText=h(v.main)),v},g={dark:k1,light:E_};return ci(E({common:E({},Kf),mode:t,primary:m({color:i,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:a,name:"error"}),warning:m({color:p,name:"warning"}),info:m({color:c,name:"info"}),success:m({color:d,name:"success"}),grey:l7,contrastThreshold:n,getContrastText:h,augmentColor:m,tonalOffset:r},g[t]),o)}const dG=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function fG(e){return Math.round(e*1e5)/1e5}const I_={textTransform:"uppercase"},k_='"Roboto", "Helvetica", "Arial", sans-serif';function pG(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=k_,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:p,pxToRem:h}=n,m=ne(n,dG),g=o/14,y=h||(w=>`${w/d*g}rem`),v=(w,C,x,P,_)=>E({fontFamily:r,fontWeight:w,fontSize:y(C),lineHeight:x},r===k_?{letterSpacing:`${fG(P/C)}em`}:{},_,p),S={h1:v(i,96,1.167,-1.5),h2:v(i,60,1.2,-.5),h3:v(s,48,1.167,0),h4:v(s,34,1.235,.25),h5:v(s,24,1.334,0),h6:v(a,20,1.6,.15),subtitle1:v(s,16,1.75,.15),subtitle2:v(a,14,1.57,.1),body1:v(s,16,1.5,.15),body2:v(s,14,1.43,.15),button:v(a,14,1.75,.4,I_),caption:v(s,12,1.66,.4),overline:v(s,12,2.66,1,I_),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ci(E({htmlFontSize:d,pxToRem:y,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:c},S),m,{clone:!1})}const hG=.2,mG=.14,gG=.12;function Rn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${hG})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${mG})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${gG})`].join(",")}const vG=["none",Rn(0,2,1,-1,0,1,1,0,0,1,3,0),Rn(0,3,1,-2,0,2,2,0,0,1,5,0),Rn(0,3,3,-2,0,3,4,0,0,1,8,0),Rn(0,2,4,-1,0,4,5,0,0,1,10,0),Rn(0,3,5,-1,0,5,8,0,0,1,14,0),Rn(0,3,5,-1,0,6,10,0,0,1,18,0),Rn(0,4,5,-2,0,7,10,1,0,2,16,1),Rn(0,5,5,-3,0,8,10,1,0,3,14,2),Rn(0,5,6,-3,0,9,12,1,0,3,16,2),Rn(0,6,6,-3,0,10,14,1,0,4,18,3),Rn(0,6,7,-4,0,11,15,1,0,4,20,3),Rn(0,7,8,-4,0,12,17,2,0,5,22,4),Rn(0,7,8,-4,0,13,19,2,0,5,24,4),Rn(0,7,9,-4,0,14,21,2,0,5,26,4),Rn(0,8,9,-5,0,15,22,2,0,6,28,5),Rn(0,8,10,-5,0,16,24,2,0,6,30,5),Rn(0,8,11,-5,0,17,26,2,0,6,32,5),Rn(0,9,11,-5,0,18,28,2,0,7,34,6),Rn(0,9,12,-6,0,19,29,2,0,7,36,6),Rn(0,10,13,-6,0,20,31,3,0,8,38,7),Rn(0,10,13,-6,0,21,33,3,0,8,40,7),Rn(0,10,14,-6,0,22,35,3,0,8,42,7),Rn(0,11,14,-7,0,23,36,3,0,9,44,8),Rn(0,11,15,-7,0,24,38,3,0,9,46,8)],yG=vG,bG=["duration","easing","delay"],wG={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)"},MF={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function __(e){return`${Math.round(e)}ms`}function CG(e){if(!e)return 0;const t=e/36;return Math.round((4+15*Gi(t,.25)+t/5)*10)}function xG(e){const t=E({},wG,e.easing),n=E({},MF,e.duration);return E({getAutoHeightDuration:CG,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:c=0}=i;return ne(i,bG),(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof s=="string"?s:__(s)} ${a} ${typeof c=="string"?c:__(c)}`).join(",")}},e,{easing:t,duration:n})}const SG={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},EG=SG,PG=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Sx(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=ne(e,PG);if(e.vars)throw new Error(Wl(18));const a=uG(r),c=wx(e);let d=ci(c,{mixins:nG(c.breakpoints,n),palette:a,shadows:yG.slice(),typography:pG(a,i),transitions:xG(o),zIndex:E({},EG)});return d=ci(d,s),d=t.reduce((p,h)=>ci(p,h),d),d.unstable_sxConfig=E({},zv,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(h){return jv({sx:h,theme:this})},d}function IG(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function kG(e){return parseFloat(e)}const _G=Sx(),Uv=_G;function sr(){const e=Pp(Uv);return e[ja]||e}function tt({props:e,name:t}){return GW({props:e,name:t,defaultTheme:Uv,themeId:ja})}const zo=e=>Cf(e)&&e!=="classes",$G=Cf,RG=kF({themeId:ja,defaultTheme:Uv,rootShouldForwardProp:zo}),oe=RG,MG=["theme"];function TG(e){let{theme:t}=e,n=ne(e,MG);const r=t[ja];return T.jsx(tG,E({},n,{themeId:r?ja:void 0,theme:r||t}))}const OG=e=>{let t;return e<1?t=5.11916*Gi(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},$_=OG;function Wa(e){return typeof e=="string"}function rf(e,t,n){return e===void 0||Wa(e)?t:E({},t,{ownerState:E({},t.ownerState,n)})}const FG={disableDefaultClasses:!1},LG=u.createContext(FG);function TF(e){const{disableDefaultClasses:t}=u.useContext(LG);return n=>t?"":e(n)}function AG(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 fw(e,t){return typeof e=="function"?e(t):e}function R_(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 NG(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const g=he(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),y=E({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=E({},n,o,r);return g.length>0&&(v.className=g),Object.keys(y).length>0&&(v.style=y),{props:v,internalRef:void 0}}const s=AG(E({},o,r)),a=R_(r),c=R_(o),d=t(s),p=he(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),h=E({},d==null?void 0:d.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=E({},d,n,c,a);return p.length>0&&(m.className=p),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:d.ref}}const DG=["elementType","externalSlotProps","ownerState"];function Gs(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=ne(e,DG),s=fw(r,o),{props:a,internalRef:c}=NG(E({},i,{externalSlotProps:s})),d=Vt(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return rf(n,E({},a,{ref:d}),o)}function BG(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=sx({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!o&&(s=!0);const{badgeContent:a,max:c=r}=s?i:e,d=a&&Number(a)>c?`${c}+`:a;return{badgeContent:a,invisible:s,max:c,displayValue:d}}function M_(e){return e.substring(2).toLowerCase()}function zG(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function OF(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,s=u.useRef(!1),a=u.useRef(null),c=u.useRef(!1),d=u.useRef(!1);u.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const p=Vt(t.ref,a),h=Pn(y=>{const v=d.current;d.current=!1;const S=vn(a.current);if(!c.current||!a.current||"clientX"in y&&zG(y,S))return;if(s.current){s.current=!1;return}let w;y.composedPath?w=y.composedPath().indexOf(a.current)>-1:w=!S.documentElement.contains(y.target)||a.current.contains(y.target),!w&&(n||!v)&&o(y)}),m=y=>v=>{d.current=!0;const S=t.props[y];S&&S(v)},g={ref:p};return i!==!1&&(g[i]=m(i)),u.useEffect(()=>{if(i!==!1){const y=M_(i),v=vn(a.current),S=()=>{s.current=!0};return v.addEventListener(y,h),v.addEventListener("touchmove",S),()=>{v.removeEventListener(y,h),v.removeEventListener("touchmove",S)}}},[h,i]),r!==!1&&(g[r]=m(r)),u.useEffect(()=>{if(r!==!1){const y=M_(r),v=vn(a.current);return v.addEventListener(y,h),()=>{v.removeEventListener(y,h)}}},[h,r]),T.jsx(u.Fragment,{children:u.cloneElement(t,g)})}const jG=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function HG(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 VG(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 UG(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||VG(e))}function WG(e){const t=[],n=[];return Array.from(e.querySelectorAll(jG)).forEach((r,o)=>{const i=HG(r);i===-1||!UG(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function GG(){return!0}function FF(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=WG,isEnabled:s=GG,open:a}=e,c=u.useRef(!1),d=u.useRef(null),p=u.useRef(null),h=u.useRef(null),m=u.useRef(null),g=u.useRef(!1),y=u.useRef(null),v=Vt(t.ref,y),S=u.useRef(null);u.useEffect(()=>{!a||!y.current||(g.current=!n)},[n,a]),u.useEffect(()=>{if(!a||!y.current)return;const x=vn(y.current);return y.current.contains(x.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),g.current&&y.current.focus()),()=>{o||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[a]),u.useEffect(()=>{if(!a||!y.current)return;const x=vn(y.current),P=I=>{const{current:R}=y;if(R!==null){if(!x.hasFocus()||r||!s()||c.current){c.current=!1;return}if(!R.contains(x.activeElement)){if(I&&m.current!==I.target||x.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!g.current)return;let O=[];if((x.activeElement===d.current||x.activeElement===p.current)&&(O=i(y.current)),O.length>0){var L,N;const D=!!((L=S.current)!=null&&L.shiftKey&&((N=S.current)==null?void 0:N.key)==="Tab"),B=O[0],M=O[O.length-1];typeof B!="string"&&typeof M!="string"&&(D?M.focus():B.focus())}else R.focus()}}},_=I=>{S.current=I,!(r||!s()||I.key!=="Tab")&&x.activeElement===y.current&&I.shiftKey&&(c.current=!0,p.current&&p.current.focus())};x.addEventListener("focusin",P),x.addEventListener("keydown",_,!0);const k=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&P(null)},50);return()=>{clearInterval(k),x.removeEventListener("focusin",P),x.removeEventListener("keydown",_,!0)}},[n,r,o,s,a,i]);const w=x=>{h.current===null&&(h.current=x.relatedTarget),g.current=!0,m.current=x.target;const P=t.props.onFocus;P&&P(x)},C=x=>{h.current===null&&(h.current=x.relatedTarget),g.current=!0};return T.jsxs(u.Fragment,{children:[T.jsx("div",{tabIndex:a?0:-1,onFocus:C,ref:d,"data-testid":"sentinelStart"}),u.cloneElement(t,{ref:v,onFocus:w}),T.jsx("div",{tabIndex:a?0:-1,onFocus:C,ref:p,"data-testid":"sentinelEnd"})]})}var ao="top",mi="bottom",gi="right",co="left",Ex="auto",Ip=[ao,mi,gi,co],Mu="start",Jf="end",KG="clippingParents",LF="viewport",Hd="popper",qG="reference",T_=Ip.reduce(function(e,t){return e.concat([t+"-"+Mu,t+"-"+Jf])},[]),AF=[].concat(Ip,[Ex]).reduce(function(e,t){return e.concat([t,t+"-"+Mu,t+"-"+Jf])},[]),YG="beforeRead",QG="read",XG="afterRead",JG="beforeMain",ZG="main",eK="afterMain",tK="beforeWrite",nK="write",rK="afterWrite",oK=[YG,QG,XG,JG,ZG,eK,tK,nK,rK];function ps(e){return e?(e.nodeName||"").toLowerCase():null}function Fo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ga(e){var t=Fo(e).Element;return e instanceof t||e instanceof Element}function ui(e){var t=Fo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Px(e){if(typeof ShadowRoot=="undefined")return!1;var t=Fo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function iK(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!ui(i)||!ps(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function sK(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(c,d){return c[d]="",c},{});!ui(o)||!ps(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const lK={name:"applyStyles",enabled:!0,phase:"write",fn:iK,effect:sK,requires:["computeStyles"]};function ls(e){return e.split("-")[0]}var Ra=Math.max,yg=Math.min,Tu=Math.round;function pw(){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 NF(){return!/^((?!chrome|android).)*safari/i.test(pw())}function Ou(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&ui(e)&&(o=e.offsetWidth>0&&Tu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Tu(r.height)/e.offsetHeight||1);var s=Ga(e)?Fo(e):window,a=s.visualViewport,c=!NF()&&n,d=(r.left+(c&&a?a.offsetLeft:0))/o,p=(r.top+(c&&a?a.offsetTop:0))/i,h=r.width/o,m=r.height/i;return{width:h,height:m,top:p,right:d+h,bottom:p+m,left:d,x:d,y:p}}function Ix(e){var t=Ou(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 DF(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Px(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ks(e){return Fo(e).getComputedStyle(e)}function aK(e){return["table","td","th"].indexOf(ps(e))>=0}function ra(e){return((Ga(e)?e.ownerDocument:e.document)||window.document).documentElement}function Wv(e){return ps(e)==="html"?e:e.assignedSlot||e.parentNode||(Px(e)?e.host:null)||ra(e)}function O_(e){return!ui(e)||Ks(e).position==="fixed"?null:e.offsetParent}function cK(e){var t=/firefox/i.test(pw()),n=/Trident/i.test(pw());if(n&&ui(e)){var r=Ks(e);if(r.position==="fixed")return null}var o=Wv(e);for(Px(o)&&(o=o.host);ui(o)&&["html","body"].indexOf(ps(o))<0;){var i=Ks(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function kp(e){for(var t=Fo(e),n=O_(e);n&&aK(n)&&Ks(n).position==="static";)n=O_(n);return n&&(ps(n)==="html"||ps(n)==="body"&&Ks(n).position==="static")?t:n||cK(e)||t}function kx(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xf(e,t,n){return Ra(e,yg(t,n))}function uK(e,t,n){var r=xf(e,t,n);return r>n?n:r}function BF(){return{top:0,right:0,bottom:0,left:0}}function zF(e){return Object.assign({},BF(),e)}function jF(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var dK=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,zF(typeof t!="number"?t:jF(t,Ip))};function fK(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=ls(n.placement),c=kx(a),d=[co,gi].indexOf(a)>=0,p=d?"height":"width";if(!(!i||!s)){var h=dK(o.padding,n),m=Ix(i),g=c==="y"?ao:co,y=c==="y"?mi:gi,v=n.rects.reference[p]+n.rects.reference[c]-s[c]-n.rects.popper[p],S=s[c]-n.rects.reference[c],w=kp(i),C=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,x=v/2-S/2,P=h[g],_=C-m[p]-h[y],k=C/2-m[p]/2+x,I=xf(P,k,_),R=c;n.modifiersData[r]=(t={},t[R]=I,t.centerOffset=I-k,t)}}function pK(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)||DF(t.elements.popper,o)&&(t.elements.arrow=o))}const hK={name:"arrow",enabled:!0,phase:"main",fn:fK,effect:pK,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fu(e){return e.split("-")[1]}var mK={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gK(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Tu(n*o)/o||0,y:Tu(r*o)/o||0}}function F_(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=e.isFixed,m=s.x,g=m===void 0?0:m,y=s.y,v=y===void 0?0:y,S=typeof p=="function"?p({x:g,y:v}):{x:g,y:v};g=S.x,v=S.y;var w=s.hasOwnProperty("x"),C=s.hasOwnProperty("y"),x=co,P=ao,_=window;if(d){var k=kp(n),I="clientHeight",R="clientWidth";if(k===Fo(n)&&(k=ra(n),Ks(k).position!=="static"&&a==="absolute"&&(I="scrollHeight",R="scrollWidth")),k=k,o===ao||(o===co||o===gi)&&i===Jf){P=mi;var L=h&&k===_&&_.visualViewport?_.visualViewport.height:k[I];v-=L-r.height,v*=c?1:-1}if(o===co||(o===ao||o===mi)&&i===Jf){x=gi;var N=h&&k===_&&_.visualViewport?_.visualViewport.width:k[R];g-=N-r.width,g*=c?1:-1}}var O=Object.assign({position:a},d&&mK),D=p===!0?gK({x:g,y:v},Fo(n)):{x:g,y:v};if(g=D.x,v=D.y,c){var B;return Object.assign({},O,(B={},B[P]=C?"0":"",B[x]=w?"0":"",B.transform=(_.devicePixelRatio||1)<=1?"translate("+g+"px, "+v+"px)":"translate3d("+g+"px, "+v+"px, 0)",B))}return Object.assign({},O,(t={},t[P]=C?v+"px":"",t[x]=w?g+"px":"",t.transform="",t))}function vK(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,c=a===void 0?!0:a,d={placement:ls(t.placement),variation:Fu(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,F_(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,F_(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const yK={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vK,data:{}};var Xh={passive:!0};function bK(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,c=Fo(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(p){p.addEventListener("scroll",n.update,Xh)}),a&&c.addEventListener("resize",n.update,Xh),function(){i&&d.forEach(function(p){p.removeEventListener("scroll",n.update,Xh)}),a&&c.removeEventListener("resize",n.update,Xh)}}const wK={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:bK,data:{}};var CK={left:"right",right:"left",bottom:"top",top:"bottom"};function Rm(e){return e.replace(/left|right|bottom|top/g,function(t){return CK[t]})}var xK={start:"end",end:"start"};function L_(e){return e.replace(/start|end/g,function(t){return xK[t]})}function _x(e){var t=Fo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function $x(e){return Ou(ra(e)).left+_x(e).scrollLeft}function SK(e,t){var n=Fo(e),r=ra(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;var d=NF();(d||!d&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a+$x(e),y:c}}function EK(e){var t,n=ra(e),r=_x(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ra(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ra(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+$x(e),c=-r.scrollTop;return Ks(o||n).direction==="rtl"&&(a+=Ra(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:c}}function Rx(e){var t=Ks(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function HF(e){return["html","body","#document"].indexOf(ps(e))>=0?e.ownerDocument.body:ui(e)&&Rx(e)?e:HF(Wv(e))}function Sf(e,t){var n;t===void 0&&(t=[]);var r=HF(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Fo(r),s=o?[i].concat(i.visualViewport||[],Rx(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Sf(Wv(s)))}function hw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function PK(e,t){var n=Ou(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 A_(e,t,n){return t===LF?hw(SK(e,n)):Ga(t)?PK(t,n):hw(EK(ra(e)))}function IK(e){var t=Sf(Wv(e)),n=["absolute","fixed"].indexOf(Ks(e).position)>=0,r=n&&ui(e)?kp(e):e;return Ga(r)?t.filter(function(o){return Ga(o)&&DF(o,r)&&ps(o)!=="body"}):[]}function kK(e,t,n,r){var o=t==="clippingParents"?IK(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(c,d){var p=A_(e,d,r);return c.top=Ra(p.top,c.top),c.right=yg(p.right,c.right),c.bottom=yg(p.bottom,c.bottom),c.left=Ra(p.left,c.left),c},A_(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function VF(e){var t=e.reference,n=e.element,r=e.placement,o=r?ls(r):null,i=r?Fu(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case ao:c={x:s,y:t.y-n.height};break;case mi:c={x:s,y:t.y+t.height};break;case gi:c={x:t.x+t.width,y:a};break;case co:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var d=o?kx(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(i){case Mu:c[d]=c[d]-(t[p]/2-n[p]/2);break;case Jf:c[d]=c[d]+(t[p]/2-n[p]/2);break}}return c}function Zf(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,c=a===void 0?KG:a,d=n.rootBoundary,p=d===void 0?LF:d,h=n.elementContext,m=h===void 0?Hd:h,g=n.altBoundary,y=g===void 0?!1:g,v=n.padding,S=v===void 0?0:v,w=zF(typeof S!="number"?S:jF(S,Ip)),C=m===Hd?qG:Hd,x=e.rects.popper,P=e.elements[y?C:m],_=kK(Ga(P)?P:P.contextElement||ra(e.elements.popper),c,p,s),k=Ou(e.elements.reference),I=VF({reference:k,element:x,strategy:"absolute",placement:o}),R=hw(Object.assign({},x,I)),L=m===Hd?R:k,N={top:_.top-L.top+w.top,bottom:L.bottom-_.bottom+w.bottom,left:_.left-L.left+w.left,right:L.right-_.right+w.right},O=e.modifiersData.offset;if(m===Hd&&O){var D=O[o];Object.keys(N).forEach(function(B){var M=[gi,mi].indexOf(B)>=0?1:-1,F=[ao,mi].indexOf(B)>=0?"y":"x";N[B]+=D[F]*M})}return N}function _K(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?AF:c,p=Fu(r),h=p?a?T_:T_.filter(function(y){return Fu(y)===p}):Ip,m=h.filter(function(y){return d.indexOf(y)>=0});m.length===0&&(m=h);var g=m.reduce(function(y,v){return y[v]=Zf(e,{placement:v,boundary:o,rootBoundary:i,padding:s})[ls(v)],y},{});return Object.keys(g).sort(function(y,v){return g[y]-g[v]})}function $K(e){if(ls(e)===Ex)return[];var t=Rm(e);return[L_(e),t,L_(t)]}function RK(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,c=n.fallbackPlacements,d=n.padding,p=n.boundary,h=n.rootBoundary,m=n.altBoundary,g=n.flipVariations,y=g===void 0?!0:g,v=n.allowedAutoPlacements,S=t.options.placement,w=ls(S),C=w===S,x=c||(C||!y?[Rm(S)]:$K(S)),P=[S].concat(x).reduce(function(re,de){return re.concat(ls(de)===Ex?_K(t,{placement:de,boundary:p,rootBoundary:h,padding:d,flipVariations:y,allowedAutoPlacements:v}):de)},[]),_=t.rects.reference,k=t.rects.popper,I=new Map,R=!0,L=P[0],N=0;N<P.length;N++){var O=P[N],D=ls(O),B=Fu(O)===Mu,M=[ao,mi].indexOf(D)>=0,F=M?"width":"height",z=Zf(t,{placement:O,boundary:p,rootBoundary:h,altBoundary:m,padding:d}),V=M?B?gi:co:B?mi:ao;_[F]>k[F]&&(V=Rm(V));var A=Rm(V),H=[];if(i&&H.push(z[D]<=0),a&&H.push(z[V]<=0,z[A]<=0),H.every(function(re){return re})){L=O,R=!1;break}I.set(O,H)}if(R)for(var W=y?3:1,K=function(de){var se=P.find(function(le){var ke=I.get(le);if(ke)return ke.slice(0,de).every(function(ve){return ve})});if(se)return L=se,"break"},Y=W;Y>0;Y--){var ie=K(Y);if(ie==="break")break}t.placement!==L&&(t.modifiersData[r]._skip=!0,t.placement=L,t.reset=!0)}}const MK={name:"flip",enabled:!0,phase:"main",fn:RK,requiresIfExists:["offset"],data:{_skip:!1}};function N_(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 D_(e){return[ao,gi,mi,co].some(function(t){return e[t]>=0})}function TK(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Zf(t,{elementContext:"reference"}),a=Zf(t,{altBoundary:!0}),c=N_(s,r),d=N_(a,o,i),p=D_(c),h=D_(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const OK={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:TK};function FK(e,t,n){var r=ls(e),o=[co,ao].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[co,gi].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function LK(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=AF.reduce(function(p,h){return p[h]=FK(h,t.rects,i),p},{}),a=s[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=s}const AK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:LK};function NK(e){var t=e.state,n=e.name;t.modifiersData[n]=VF({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const DK={name:"popperOffsets",enabled:!0,phase:"read",fn:NK,data:{}};function BK(e){return e==="x"?"y":"x"}function zK(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.padding,m=n.tether,g=m===void 0?!0:m,y=n.tetherOffset,v=y===void 0?0:y,S=Zf(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:p}),w=ls(t.placement),C=Fu(t.placement),x=!C,P=kx(w),_=BK(P),k=t.modifiersData.popperOffsets,I=t.rects.reference,R=t.rects.popper,L=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,N=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(k){if(i){var B,M=P==="y"?ao:co,F=P==="y"?mi:gi,z=P==="y"?"height":"width",V=k[P],A=V+S[M],H=V-S[F],W=g?-R[z]/2:0,K=C===Mu?I[z]:R[z],Y=C===Mu?-R[z]:-I[z],ie=t.elements.arrow,re=g&&ie?Ix(ie):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:BF(),se=de[M],le=de[F],ke=xf(0,I[z],re[z]),ve=x?I[z]/2-W-ke-se-N.mainAxis:K-ke-se-N.mainAxis,Pe=x?-I[z]/2+W+ke+le+N.mainAxis:Y+ke+le+N.mainAxis,ee=t.elements.arrow&&kp(t.elements.arrow),_e=ee?P==="y"?ee.clientTop||0:ee.clientLeft||0:0,Re=(B=O==null?void 0:O[P])!=null?B:0,Se=V+ve-Re-_e,pe=V+Pe-Re,be=xf(g?yg(A,Se):A,V,g?Ra(H,pe):H);k[P]=be,D[P]=be-V}if(a){var te,Oe=P==="x"?ao:co,Ye=P==="x"?mi:gi,Ke=k[_],Ue=_==="y"?"height":"width",De=Ke+S[Oe],dt=Ke-S[Ye],vt=[ao,co].indexOf(w)!==-1,ct=(te=O==null?void 0:O[_])!=null?te:0,Pt=vt?De:Ke-I[Ue]-R[Ue]-ct+N.altAxis,yt=vt?Ke+I[Ue]+R[Ue]-ct-N.altAxis:dt,Ae=g&&vt?uK(Pt,Ke,yt):xf(g?Pt:De,Ke,g?yt:dt);k[_]=Ae,D[_]=Ae-Ke}t.modifiersData[r]=D}}const jK={name:"preventOverflow",enabled:!0,phase:"main",fn:zK,requiresIfExists:["offset"]};function HK(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function VK(e){return e===Fo(e)||!ui(e)?_x(e):HK(e)}function UK(e){var t=e.getBoundingClientRect(),n=Tu(t.width)/e.offsetWidth||1,r=Tu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function WK(e,t,n){n===void 0&&(n=!1);var r=ui(t),o=ui(t)&&UK(t),i=ra(t),s=Ou(e,o,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((ps(t)!=="body"||Rx(i))&&(a=VK(t)),ui(t)?(c=Ou(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=$x(i))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function GK(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function KK(e){var t=GK(e);return oK.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function qK(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function YK(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 B_={placement:"bottom",modifiers:[],strategy:"absolute"};function z_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function QK(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?B_:o;return function(a,c,d){d===void 0&&(d=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},B_,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],m=!1,g={state:p,setOptions:function(w){var C=typeof w=="function"?w(p.options):w;v(),p.options=Object.assign({},i,p.options,C),p.scrollParents={reference:Ga(a)?Sf(a):a.contextElement?Sf(a.contextElement):[],popper:Sf(c)};var x=KK(YK([].concat(r,p.options.modifiers)));return p.orderedModifiers=x.filter(function(P){return P.enabled}),y(),g.update()},forceUpdate:function(){if(!m){var w=p.elements,C=w.reference,x=w.popper;if(z_(C,x)){p.rects={reference:WK(C,kp(x),p.options.strategy==="fixed"),popper:Ix(x)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(N){return p.modifiersData[N.name]=Object.assign({},N.data)});for(var P=0;P<p.orderedModifiers.length;P++){if(p.reset===!0){p.reset=!1,P=-1;continue}var _=p.orderedModifiers[P],k=_.fn,I=_.options,R=I===void 0?{}:I,L=_.name;typeof k=="function"&&(p=k({state:p,options:R,name:L,instance:g})||p)}}}},update:qK(function(){return new Promise(function(S){g.forceUpdate(),S(p)})}),destroy:function(){v(),m=!0}};if(!z_(a,c))return g;g.setOptions(d).then(function(S){!m&&d.onFirstUpdate&&d.onFirstUpdate(S)});function y(){p.orderedModifiers.forEach(function(S){var w=S.name,C=S.options,x=C===void 0?{}:C,P=S.effect;if(typeof P=="function"){var _=P({state:p,name:w,instance:g,options:x}),k=function(){};h.push(_||k)}})}function v(){h.forEach(function(S){return S()}),h=[]}return g}}var XK=[wK,DK,yK,lK,AK,MK,jK,hK,OK],JK=QK({defaultModifiers:XK});function ZK(e){return typeof e=="function"?e():e}const eq=u.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=u.useState(null),c=Vt(u.isValidElement(r)?r.ref:null,n);if(ln(()=>{i||a(ZK(o)||document.body)},[o,i]),ln(()=>{if(s&&!i)return qf(n,s),()=>{qf(n,null)}},[n,s,i]),i){if(u.isValidElement(r)){const d={ref:c};return u.cloneElement(r,d)}return T.jsx(u.Fragment,{children:r})}return T.jsx(u.Fragment,{children:s&&Yu.createPortal(r,s)})}),UF=eq;function tq(e){return Je("MuiPopper",e)}Xe("MuiPopper",["root"]);const nq=["anchorEl","children","component","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],rq=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function oq(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 mw(e){return typeof e=="function"?e():e}function iq(e){return e.nodeType!==void 0}const sq=()=>Me({root:["root"]},TF(tq)),lq={},aq=u.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,component:s,direction:a,disablePortal:c,modifiers:d,open:p,placement:h,popperOptions:m,popperRef:g,slotProps:y={},slots:v={},TransitionProps:S}=t,w=ne(t,nq),C=u.useRef(null),x=Vt(C,n),P=u.useRef(null),_=Vt(P,g),k=u.useRef(_);ln(()=>{k.current=_},[_]),u.useImperativeHandle(g,()=>P.current,[]);const I=oq(h,a),[R,L]=u.useState(I),[N,O]=u.useState(mw(o));u.useEffect(()=>{P.current&&P.current.forceUpdate()}),u.useEffect(()=>{o&&O(mw(o))},[o]),ln(()=>{if(!N||!p)return;const z=H=>{L(H.placement)};let V=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{z(H)}}];d!=null&&(V=V.concat(d)),m&&m.modifiers!=null&&(V=V.concat(m.modifiers));const A=JK(N,C.current,E({placement:I},m,{modifiers:V}));return k.current(A),()=>{A.destroy(),k.current(null)}},[N,c,d,p,m,I]);const D={placement:R};S!==null&&(D.TransitionProps=S);const B=sq(),M=(r=s!=null?s:v.root)!=null?r:"div",F=Gs({elementType:M,externalSlotProps:y.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:B.root});return T.jsx(M,E({},F,{children:typeof i=="function"?i(D):i}))}),cq=u.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:c=!1,modifiers:d,open:p,placement:h="bottom",popperOptions:m=lq,popperRef:g,style:y,transition:v=!1,slotProps:S={},slots:w={}}=t,C=ne(t,rq),[x,P]=u.useState(!0),_=()=>{P(!1)},k=()=>{P(!0)};if(!c&&!p&&(!v||x))return null;let I;if(i)I=i;else if(r){const N=mw(r);I=N&&iq(N)?vn(N).body:vn(null).body}const R=!p&&c&&(!v||x)?"none":void 0,L=v?{in:p,onEnter:_,onExited:k}:void 0;return T.jsx(UF,{disablePortal:a,container:I,children:T.jsx(aq,E({anchorEl:r,direction:s,disablePortal:a,modifiers:d,ref:n,open:v?!x:p,placement:h,popperOptions:m,popperRef:g,slotProps:S,slots:w},C,{style:E({position:"fixed",top:0,left:0,display:R},y),TransitionProps:L,children:o}))})}),uq=cq;function dq(e){const t=vn(e);return t.body===e?Oo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ef(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function j_(e){return parseInt(Oo(e).getComputedStyle(e).paddingRight,10)||0}function fq(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 H_(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,c=!fq(s);a&&c&&Ef(s,o)})}function _1(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function pq(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(dq(r)){const s=tF(vn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${j_(r)+s}px`;const a=vn(r).querySelectorAll(".mui-fixed");[].forEach.call(a,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${j_(c)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=vn(r).body;else{const s=r.parentElement,a=Oo(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function hq(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class mq{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&&Ef(t.modalRef,!1);const o=hq(n);H_(n,t.mount,t.modalRef,o,!0);const i=_1(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=_1(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=pq(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=_1(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Ef(t.modalRef,n),H_(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&Ef(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function gq(e){return Je("MuiModal",e)}Xe("MuiModal",["root","hidden","backdrop"]);const vq=["children","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],yq=e=>{const{open:t,exited:n}=e;return Me({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},TF(gq))};function bq(e){return typeof e=="function"?e():e}function wq(e){return e?e.props.hasOwnProperty("in"):!1}const Cq=new mq,xq=u.forwardRef(function(t,n){var r,o;const{children:i,closeAfterTransition:s=!1,component:a,container:c,disableAutoFocus:d=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:h=!1,disablePortal:m=!1,disableRestoreFocus:g=!1,disableScrollLock:y=!1,hideBackdrop:v=!1,keepMounted:S=!1,manager:w=Cq,onBackdropClick:C,onClose:x,onKeyDown:P,open:_,onTransitionEnter:k,onTransitionExited:I,slotProps:R={},slots:L={}}=t,N=ne(t,vq),[O,D]=u.useState(!_),B=u.useRef({}),M=u.useRef(null),F=u.useRef(null),z=Vt(F,n),V=wq(i),A=(r=t["aria-hidden"])!=null?r:!0,H=()=>vn(M.current),W=()=>(B.current.modalRef=F.current,B.current.mountNode=M.current,B.current),K=()=>{w.mount(W(),{disableScrollLock:y}),F.current&&(F.current.scrollTop=0)},Y=Pn(()=>{const te=bq(c)||H().body;w.add(W(),te),F.current&&K()}),ie=u.useCallback(()=>w.isTopModal(W()),[w]),re=Pn(te=>{M.current=te,!(!te||!F.current)&&(_&&ie()?K():Ef(F.current,A))}),de=u.useCallback(()=>{w.remove(W(),A)},[w,A]);u.useEffect(()=>()=>{de()},[de]),u.useEffect(()=>{_?Y():(!V||!s)&&de()},[_,de,V,s,Y]);const se=E({},t,{closeAfterTransition:s,disableAutoFocus:d,disableEnforceFocus:p,disableEscapeKeyDown:h,disablePortal:m,disableRestoreFocus:g,disableScrollLock:y,exited:O,hideBackdrop:v,keepMounted:S}),le=yq(se),ke=()=>{D(!1),k&&k()},ve=()=>{D(!0),I&&I(),s&&de()},Pe=te=>{te.target===te.currentTarget&&(C&&C(te),x&&x(te,"backdropClick"))},ee=te=>{P&&P(te),!(te.key!=="Escape"||!ie())&&(h||(te.stopPropagation(),x&&x(te,"escapeKeyDown")))},_e={};i.props.tabIndex===void 0&&(_e.tabIndex="-1"),V&&(_e.onEnter=lw(ke,i.props.onEnter),_e.onExited=lw(ve,i.props.onExited));const Re=(o=a!=null?a:L.root)!=null?o:"div",Se=Gs({elementType:Re,externalSlotProps:R.root,externalForwardedProps:N,additionalProps:{ref:z,role:"presentation",onKeyDown:ee},className:le.root,ownerState:se}),pe=L.backdrop,be=Gs({elementType:pe,externalSlotProps:R.backdrop,additionalProps:{"aria-hidden":!0,onClick:Pe,open:_},className:le.backdrop,ownerState:se});return!S&&!_&&(!V||O)?null:T.jsx(UF,{ref:re,container:c,disablePortal:m,children:T.jsxs(Re,E({},Se,{children:[!v&&pe?T.jsx(pe,E({},be)):null,T.jsx(FF,{disableEnforceFocus:p,disableAutoFocus:d,disableRestoreFocus:g,isEnabled:ie,open:_,children:u.cloneElement(i,_e)})]}))})}),Sq=xq,Eq=["onChange","maxRows","minRows","style","value"];function Jh(e){return parseInt(e,10)||0}const Pq={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function V_(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Iq=u.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a}=t,c=ne(t,Eq),{current:d}=u.useRef(a!=null),p=u.useRef(null),h=Vt(n,p),m=u.useRef(null),g=u.useRef(0),[y,v]=u.useState({outerHeightStyle:0}),S=u.useCallback(()=>{const _=p.current,I=Oo(_).getComputedStyle(_);if(I.width==="0px")return{outerHeightStyle:0};const R=m.current;R.style.width=I.width,R.value=_.value||t.placeholder||"x",R.value.slice(-1)===`
|
|
89
|
-
`&&(R.value+=" ");const L=I.boxSizing,N=Jh(I.paddingBottom)+Jh(I.paddingTop),O=Jh(I.borderBottomWidth)+Jh(I.borderTopWidth),D=R.scrollHeight;R.value="x";const B=R.scrollHeight;let M=D;i&&(M=Math.max(Number(i)*B,M)),o&&(M=Math.min(Number(o)*B,M)),M=Math.max(M,B);const F=M+(L==="border-box"?N+O:0),z=Math.abs(M-D)<=1;return{outerHeightStyle:F,overflow:z}},[o,i,t.placeholder]),w=(_,k)=>{const{outerHeightStyle:I,overflow:R}=k;return g.current<20&&(I>0&&Math.abs((_.outerHeightStyle||0)-I)>1||_.overflow!==R)?(g.current+=1,{overflow:R,outerHeightStyle:I}):_},C=u.useCallback(()=>{const _=S();V_(_)||v(k=>w(k,_))},[S]),x=()=>{const _=S();V_(_)||Yu.flushSync(()=>{v(k=>w(k,_))})};u.useEffect(()=>{const _=Ws(()=>{g.current=0,p.current&&x()});let k;const I=p.current,R=Oo(I);return R.addEventListener("resize",_),typeof ResizeObserver!="undefined"&&(k=new ResizeObserver(_),k.observe(I)),()=>{_.clear(),R.removeEventListener("resize",_),k&&k.disconnect()}}),ln(()=>{C()}),u.useEffect(()=>{g.current=0},[a]);const P=_=>{g.current=0,d||C(),r&&r(_)};return T.jsxs(u.Fragment,{children:[T.jsx("textarea",E({value:a,onChange:P,ref:h,rows:i,style:E({height:y.outerHeightStyle,overflow:y.overflow?"hidden":void 0},s)},c)),T.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:E({},Pq.shadow,s,{padding:0})})]})}),kq=Iq;function U_(e){return typeof e.normalize!="undefined"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function WF(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:s=!1}=e;return(a,{inputValue:c,getOptionLabel:d})=>{let p=s?c.trim():c;n&&(p=p.toLowerCase()),t&&(p=U_(p));const h=p?a.filter(m=>{let g=(i||d)(m);return n&&(g=g.toLowerCase()),t&&(g=U_(g)),o==="start"?g.indexOf(p)===0:g.indexOf(p)>-1}):a;return typeof r=="number"?h.slice(0,r):h}}function $1(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const _q=WF(),W_=5,$q=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function Rq(e){const{unstable_isActiveElementInListbox:t=$q,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:s=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:c=!1,componentName:d="useAutocomplete",defaultValue:p=e.multiple?[]:null,disableClearable:h=!1,disableCloseOnSelect:m=!1,disabled:g,disabledItemsFocusable:y=!1,disableListWrap:v=!1,filterOptions:S=_q,filterSelectedOptions:w=!1,freeSolo:C=!1,getOptionDisabled:x,getOptionLabel:P=we=>{var me;return(me=we.label)!=null?me:we},groupBy:_,handleHomeEndKeys:k=!e.freeSolo,id:I,includeInputInList:R=!1,inputValue:L,isOptionEqualToValue:N=(we,me)=>we===me,multiple:O=!1,onChange:D,onClose:B,onHighlightChange:M,onInputChange:F,onOpen:z,open:V,openOnFocus:A=!1,options:H,readOnly:W=!1,selectOnFocus:K=!e.freeSolo,value:Y}=e,ie=on(I);let re=P;re=we=>{const me=P(we);return typeof me!="string"?String(me):me};const de=u.useRef(!1),se=u.useRef(!0),le=u.useRef(null),ke=u.useRef(null),[ve,Pe]=u.useState(null),[ee,_e]=u.useState(-1),Re=o?0:-1,Se=u.useRef(Re),[pe,be]=is({controlled:Y,default:p,name:d}),[te,Oe]=is({controlled:L,default:"",name:d,state:"inputValue"}),[Ye,Ke]=u.useState(!1),Ue=u.useCallback((we,me)=>{if(!(O?pe.length<me.length:me!==null)&&!a)return;let pt;if(O)pt="";else if(me==null)pt="";else{const Wt=re(me);pt=typeof Wt=="string"?Wt:""}te!==pt&&(Oe(pt),F&&F(we,pt,"reset"))},[re,te,O,F,Oe,a,pe]),[De,dt]=is({controlled:V,default:!1,name:d,state:"open"}),[vt,ct]=u.useState(!0),Pt=!O&&pe!=null&&te===re(pe),yt=De&&!W,Ae=yt?S(H.filter(we=>!(w&&(O?pe:[pe]).some(me=>me!==null&&N(we,me)))),{inputValue:Pt&&vt?"":te,getOptionLabel:re}):[],Le=sx({filteredOptions:Ae,value:pe});u.useEffect(()=>{const we=pe!==Le.value;Ye&&!we||C&&!we||Ue(null,pe)},[pe,Ue,Ye,Le.value,C]);const Be=De&&Ae.length>0&&!W,Ze=Pn(we=>{we===-1?le.current.focus():ve.querySelector(`[data-tag-index="${we}"]`).focus()});u.useEffect(()=>{O&&ee>pe.length-1&&(_e(-1),Ze(-1))},[pe,O,ee,Ze]);function Ie(we,me){if(!ke.current||we===-1)return-1;let We=we;for(;;){if(me==="next"&&We===Ae.length||me==="previous"&&We===-1)return-1;const pt=ke.current.querySelector(`[data-option-index="${We}"]`),Wt=y?!1:!pt||pt.disabled||pt.getAttribute("aria-disabled")==="true";if(pt&&!pt.hasAttribute("tabindex")||Wt)We+=me==="next"?1:-1;else return We}}const Fe=Pn(({event:we,index:me,reason:We="auto"})=>{if(Se.current=me,me===-1?le.current.removeAttribute("aria-activedescendant"):le.current.setAttribute("aria-activedescendant",`${ie}-option-${me}`),M&&M(we,me===-1?null:Ae[me],We),!ke.current)return;const pt=ke.current.querySelector(`[role="option"].${n}-focused`);pt&&(pt.classList.remove(`${n}-focused`),pt.classList.remove(`${n}-focusVisible`));const Wt=ke.current.parentElement.querySelector('[role="listbox"]');if(!Wt)return;if(me===-1){Wt.scrollTop=0;return}const Fn=ke.current.querySelector(`[data-option-index="${me}"]`);if(Fn&&(Fn.classList.add(`${n}-focused`),We==="keyboard"&&Fn.classList.add(`${n}-focusVisible`),Wt.scrollHeight>Wt.clientHeight&&We!=="mouse")){const Ln=Fn,xt=Wt.clientHeight+Wt.scrollTop,cr=Ln.offsetTop+Ln.offsetHeight;cr>xt?Wt.scrollTop=cr-Wt.clientHeight:Ln.offsetTop-Ln.offsetHeight*(_?1.3:0)<Wt.scrollTop&&(Wt.scrollTop=Ln.offsetTop-Ln.offsetHeight*(_?1.3:0))}}),Ve=Pn(({event:we,diff:me,direction:We="next",reason:pt="auto"})=>{if(!yt)return;const Fn=Ie((()=>{const Ln=Ae.length-1;if(me==="reset")return Re;if(me==="start")return 0;if(me==="end")return Ln;const xt=Se.current+me;return xt<0?xt===-1&&R?-1:v&&Se.current!==-1||Math.abs(me)>1?0:Ln:xt>Ln?xt===Ln+1&&R?-1:v||Math.abs(me)>1?Ln:0:xt})(),We);if(Fe({index:Fn,reason:pt,event:we}),r&&me!=="reset")if(Fn===-1)le.current.value=te;else{const Ln=re(Ae[Fn]);le.current.value=Ln,Ln.toLowerCase().indexOf(te.toLowerCase())===0&&te.length>0&&le.current.setSelectionRange(te.length,Ln.length)}}),nt=()=>{const we=(me,We)=>{const pt=me?re(me):"",Wt=We?re(We):"";return pt===Wt};if(Se.current!==-1&&Le.filteredOptions&&Le.filteredOptions.length!==Ae.length&&(O?pe.length===Le.value.length&&Le.value.every((me,We)=>re(pe[We])===re(me)):we(Le.value,pe))){const me=Le.filteredOptions[Se.current];if(me&&Ae.some(pt=>re(pt)===re(me)))return!0}return!1},ht=u.useCallback(()=>{if(!yt||nt())return;const we=O?pe[0]:pe;if(Ae.length===0||we==null){Ve({diff:"reset"});return}if(ke.current){if(we!=null){const me=Ae[Se.current];if(O&&me&&$1(pe,pt=>N(me,pt))!==-1)return;const We=$1(Ae,pt=>N(pt,we));We===-1?Ve({diff:"reset"}):Fe({index:We});return}if(Se.current>=Ae.length-1){Fe({index:Ae.length-1});return}Fe({index:Se.current})}},[Ae.length,O?!1:pe,w,Ve,Fe,yt,te,O]),Zt=Pn(we=>{qf(ke,we),we&&ht()});u.useEffect(()=>{ht()},[ht]);const kn=we=>{De||(dt(!0),ct(!0),z&&z(we))},On=(we,me)=>{De&&(dt(!1),B&&B(we,me))},Xn=(we,me,We,pt)=>{if(O){if(pe.length===me.length&&pe.every((Wt,Fn)=>Wt===me[Fn]))return}else if(pe===me)return;D&&D(we,me,We,pt),be(me)},lr=u.useRef(!1),ar=(we,me,We="selectOption",pt="options")=>{let Wt=We,Fn=me;if(O){Fn=Array.isArray(pe)?pe.slice():[];const Ln=$1(Fn,xt=>N(me,xt));Ln===-1?Fn.push(me):pt!=="freeSolo"&&(Fn.splice(Ln,1),Wt="removeOption")}Ue(we,Fn),Xn(we,Fn,Wt,{option:me}),!m&&(!we||!we.ctrlKey&&!we.metaKey)&&On(we,Wt),(s===!0||s==="touch"&&lr.current||s==="mouse"&&!lr.current)&&le.current.blur()};function bn(we,me){if(we===-1)return-1;let We=we;for(;;){if(me==="next"&&We===pe.length||me==="previous"&&We===-1)return-1;const pt=ve.querySelector(`[data-tag-index="${We}"]`);if(!pt||!pt.hasAttribute("tabindex")||pt.disabled||pt.getAttribute("aria-disabled")==="true")We+=me==="next"?1:-1;else return We}}const en=(we,me)=>{if(!O)return;te===""&&On(we,"toggleInput");let We=ee;ee===-1?te===""&&me==="previous"&&(We=pe.length-1):(We+=me==="next"?1:-1,We<0&&(We=0),We===pe.length&&(We=-1)),We=bn(We,me),_e(We),Ze(We)},jn=we=>{de.current=!0,Oe(""),F&&F(we,"","clear"),Xn(we,O?[]:null,"clear")},Vo=we=>me=>{if(we.onKeyDown&&we.onKeyDown(me),!me.defaultMuiPrevented&&(ee!==-1&&["ArrowLeft","ArrowRight"].indexOf(me.key)===-1&&(_e(-1),Ze(-1)),me.which!==229))switch(me.key){case"Home":yt&&k&&(me.preventDefault(),Ve({diff:"start",direction:"next",reason:"keyboard",event:me}));break;case"End":yt&&k&&(me.preventDefault(),Ve({diff:"end",direction:"previous",reason:"keyboard",event:me}));break;case"PageUp":me.preventDefault(),Ve({diff:-W_,direction:"previous",reason:"keyboard",event:me}),kn(me);break;case"PageDown":me.preventDefault(),Ve({diff:W_,direction:"next",reason:"keyboard",event:me}),kn(me);break;case"ArrowDown":me.preventDefault(),Ve({diff:1,direction:"next",reason:"keyboard",event:me}),kn(me);break;case"ArrowUp":me.preventDefault(),Ve({diff:-1,direction:"previous",reason:"keyboard",event:me}),kn(me);break;case"ArrowLeft":en(me,"previous");break;case"ArrowRight":en(me,"next");break;case"Enter":if(Se.current!==-1&&yt){const We=Ae[Se.current],pt=x?x(We):!1;if(me.preventDefault(),pt)return;ar(me,We,"selectOption"),r&&le.current.setSelectionRange(le.current.value.length,le.current.value.length)}else C&&te!==""&&Pt===!1&&(O&&me.preventDefault(),ar(me,te,"createOption","freeSolo"));break;case"Escape":yt?(me.preventDefault(),me.stopPropagation(),On(me,"escape")):c&&(te!==""||O&&pe.length>0)&&(me.preventDefault(),me.stopPropagation(),jn(me));break;case"Backspace":if(O&&!W&&te===""&&pe.length>0){const We=ee===-1?pe.length-1:ee,pt=pe.slice();pt.splice(We,1),Xn(me,pt,"removeOption",{option:pe[We]})}break;case"Delete":if(O&&!W&&te===""&&pe.length>0&&ee!==-1){const We=ee,pt=pe.slice();pt.splice(We,1),Xn(me,pt,"removeOption",{option:pe[We]})}break}},Hi=we=>{Ke(!0),A&&!de.current&&kn(we)},ws=we=>{if(t(ke)){le.current.focus();return}Ke(!1),se.current=!0,de.current=!1,i&&Se.current!==-1&&yt?ar(we,Ae[Se.current],"blur"):i&&C&&te!==""?ar(we,te,"blur","freeSolo"):a&&Ue(we,pe),On(we,"blur")},Cs=we=>{const me=we.target.value;te!==me&&(Oe(me),ct(!1),F&&F(we,me,"input")),me===""?!h&&!O&&Xn(we,null,"clear"):kn(we)},ce=we=>{const me=Number(we.currentTarget.getAttribute("data-option-index"));Se.current!==me&&Fe({event:we,index:me,reason:"mouse"})},ge=we=>{Fe({event:we,index:Number(we.currentTarget.getAttribute("data-option-index")),reason:"touch"}),lr.current=!0},Ne=we=>{const me=Number(we.currentTarget.getAttribute("data-option-index"));ar(we,Ae[me],"selectOption"),lr.current=!1},ft=we=>me=>{const We=pe.slice();We.splice(we,1),Xn(me,We,"removeOption",{option:pe[we]})},it=we=>{De?On(we,"toggleInput"):kn(we)},He=we=>{we.target.getAttribute("id")!==ie&&we.preventDefault()},Ct=()=>{le.current.focus(),K&&se.current&&le.current.selectionEnd-le.current.selectionStart===0&&le.current.select(),se.current=!1},Ut=we=>{(te===""||!De)&&it(we)};let _n=C&&te.length>0;_n=_n||(O?pe.length>0:pe!==null);let fo=Ae;return _&&(fo=Ae.reduce((we,me,We)=>{const pt=_(me);return we.length>0&&we[we.length-1].group===pt?we[we.length-1].options.push(me):we.push({key:We,index:We,group:pt,options:[me]}),we},[])),g&&Ye&&ws(),{getRootProps:(we={})=>E({"aria-owns":Be?`${ie}-listbox`:null},we,{onKeyDown:Vo(we),onMouseDown:He,onClick:Ct}),getInputLabelProps:()=>({id:`${ie}-label`,htmlFor:ie}),getInputProps:()=>({id:ie,value:te,onBlur:ws,onFocus:Hi,onChange:Cs,onMouseDown:Ut,"aria-activedescendant":yt?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Be?`${ie}-listbox`:void 0,"aria-expanded":Be,autoComplete:"off",ref:le,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:g}),getClearProps:()=>({tabIndex:-1,onClick:jn}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:it}),getTagProps:({index:we})=>E({key:we,"data-tag-index":we,tabIndex:-1},!W&&{onDelete:ft(we)}),getListboxProps:()=>({role:"listbox",id:`${ie}-listbox`,"aria-labelledby":`${ie}-label`,ref:Zt,onMouseDown:we=>{we.preventDefault()}}),getOptionProps:({index:we,option:me})=>{const We=(O?pe:[pe]).some(Wt=>Wt!=null&&N(me,Wt)),pt=x?x(me):!1;return{key:re(me),tabIndex:-1,role:"option",id:`${ie}-option-${we}`,onMouseMove:ce,onClick:Ne,onTouchStart:ge,"data-option-index":we,"aria-disabled":pt,"aria-selected":We}},id:ie,inputValue:te,value:pe,dirty:_n,expanded:yt&&ve,popupOpen:yt,focused:Ye||ee!==-1,anchorEl:ve,setAnchorEl:Pe,focusedTag:ee,groupedOptions:fo}}function Mq(e){return Je("MuiSvgIcon",e)}Xe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Tq=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Oq=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ue(t)}`,`fontSize${ue(n)}`]};return Me(o,Mq,r)},Fq=oe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ue(n.color)}`],t[`fontSize${ue(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,a,c,d,p,h,m,g,y,v,S,w,C;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(i=o.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(a=s.pxToRem)==null?void 0:a.call(s,20))||"1.25rem",medium:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,24))||"1.5rem",large:((p=e.typography)==null||(h=p.pxToRem)==null?void 0:h.call(p,35))||"2.1875rem"}[t.fontSize],color:(m=(g=(e.vars||e).palette)==null||(y=g[t.color])==null?void 0:y.main)!=null?m:{action:(v=(e.vars||e).palette)==null||(S=v.action)==null?void 0:S.active,disabled:(w=(e.vars||e).palette)==null||(C=w.action)==null?void 0:C.disabled,inherit:void 0}[t.color]}}),GF=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:h,viewBox:m="0 0 24 24"}=r,g=ne(r,Tq),y=E({},r,{color:s,component:a,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:m}),v={};p||(v.viewBox=m);const S=Oq(y);return T.jsxs(Fq,E({as:a,className:he(S.root,i),focusable:"false",color:d,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},v,g,{ownerState:y,children:[o,h?T.jsx("title",{children:h}):null]}))});GF.muiName="SvgIcon";const G_=GF;function _t(e,t){function n(r,o){return T.jsx(G_,E({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=G_.muiName,u.memo(u.forwardRef(n))}const Lq={configure:e=>{ax.configure(e)}},Aq=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ue,createChainedFunction:lw,createSvgIcon:_t,debounce:Ws,deprecatedPropType:g7,isMuiElement:bf,ownerDocument:vn,ownerWindow:Oo,requirePropFactory:v7,setRef:qf,unstable_ClassNameGenerator:Lq,unstable_useEnhancedEffect:ln,unstable_useId:on,unsupportedProp:w7,useControlled:is,useEventCallback:Pn,useForkRef:Vt,useIsFocusVisible:bv},Symbol.toStringTag,{value:"Module"}));function gw(e,t){return gw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},gw(e,t)}function Mx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gw(e,t)}const K_={disabled:!1},bg=Io.createContext(null);var Nq=function(t){return t.scrollTop},of="unmounted",ya="exited",ba="entering",Dc="entered",vw="exiting",Xs=function(e){Mx(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?a?(c=ya,i.appearStatus=ba):c=Dc:r.unmountOnExit||r.mountOnEnter?c=of:c=ya,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===of?{status:ya}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==ba&&s!==Dc&&(i=ba):(s===ba||s===Dc)&&(i=vw)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ba){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Yh.findDOMNode(this);s&&Nq(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ya&&this.setState({status:of})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,c=this.props.nodeRef?[a]:[Yh.findDOMNode(this),a],d=c[0],p=c[1],h=this.getTimeouts(),m=a?h.appear:h.enter;if(!o&&!s||K_.disabled){this.safeSetState({status:Dc},function(){i.props.onEntered(d)});return}this.props.onEnter(d,p),this.safeSetState({status:ba},function(){i.props.onEntering(d,p),i.onTransitionEnd(m,function(){i.safeSetState({status:Dc},function(){i.props.onEntered(d,p)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Yh.findDOMNode(this);if(!i||K_.disabled){this.safeSetState({status:ya},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:vw},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:ya},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Yh.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=c[0],p=c[1];this.props.addEndListener(d,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===of)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=ne(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Io.createElement(bg.Provider,{value:null},typeof s=="function"?s(o,a):Io.cloneElement(Io.Children.only(s),a))},t}(Io.Component);Xs.contextType=bg;Xs.propTypes={};function Mc(){}Xs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Mc,onEntering:Mc,onEntered:Mc,onExit:Mc,onExiting:Mc,onExited:Mc};Xs.UNMOUNTED=of;Xs.EXITED=ya;Xs.ENTERING=ba;Xs.ENTERED=Dc;Xs.EXITING=vw;const Gv=Xs;function yw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tx(e,t){var n=function(i){return t&&u.isValidElement(i)?t(i):i},r=Object.create(null);return e&&u.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Dq(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var c in t){if(r[c])for(s=0;s<r[c].length;s++){var d=r[c][s];a[r[c][s]]=n(d)}a[c]=n(c)}for(s=0;s<o.length;s++)a[o[s]]=n(o[s]);return a}function Pa(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Bq(e,t){return Tx(e.children,function(n){return u.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Pa(n,"appear",e),enter:Pa(n,"enter",e),exit:Pa(n,"exit",e)})})}function zq(e,t,n){var r=Tx(e.children),o=Dq(t,r);return Object.keys(o).forEach(function(i){var s=o[i];if(u.isValidElement(s)){var a=i in t,c=i in r,d=t[i],p=u.isValidElement(d)&&!d.props.in;c&&(!a||p)?o[i]=u.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Pa(s,"exit",e),enter:Pa(s,"enter",e)}):!c&&a&&!p?o[i]=u.cloneElement(s,{in:!1}):c&&a&&u.isValidElement(d)&&(o[i]=u.cloneElement(s,{onExited:n.bind(null,s),in:d.props.in,exit:Pa(s,"exit",e),enter:Pa(s,"enter",e)}))}}),o}var jq=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Hq={component:"div",childFactory:function(t){return t}},Ox=function(e){Mx(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=i.handleExited.bind(yw(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var s=i.children,a=i.handleExited,c=i.firstRender;return{children:c?Bq(o,a):zq(o,s,a),firstRender:!1}},n.handleExited=function(o,i){var s=Tx(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(a){var c=E({},a.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,i=o.component,s=o.childFactory,a=ne(o,["component","childFactory"]),c=this.state.contextValue,d=jq(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,i===null?Io.createElement(bg.Provider,{value:c},d):Io.createElement(bg.Provider,{value:c},Io.createElement(i,a,d))},t}(Io.Component);Ox.propTypes={};Ox.defaultProps=Hq;const Vq=Ox,Fx=e=>e.scrollTop;function Kl(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}function Uq(e){return Je("MuiCollapse",e)}Xe("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Wq=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],Gq=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Me(r,Uq,n)},Kq=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})=>E({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&E({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),qq=oe("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>E({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Yq=oe("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>E({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),KF=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:s,collapsedSize:a="0px",component:c,easing:d,in:p,onEnter:h,onEntered:m,onEntering:g,onExit:y,onExited:v,onExiting:S,orientation:w="vertical",style:C,timeout:x=MF.standard,TransitionComponent:P=Gv}=r,_=ne(r,Wq),k=E({},r,{orientation:w,collapsedSize:a}),I=Gq(k),R=sr(),L=u.useRef(),N=u.useRef(null),O=u.useRef(),D=typeof a=="number"?`${a}px`:a,B=w==="horizontal",M=B?"width":"height";u.useEffect(()=>()=>{clearTimeout(L.current)},[]);const F=u.useRef(null),z=Vt(n,F),V=se=>le=>{if(se){const ke=F.current;le===void 0?se(ke):se(ke,le)}},A=()=>N.current?N.current[B?"clientWidth":"clientHeight"]:0,H=V((se,le)=>{N.current&&B&&(N.current.style.position="absolute"),se.style[M]=D,h&&h(se,le)}),W=V((se,le)=>{const ke=A();N.current&&B&&(N.current.style.position="");const{duration:ve,easing:Pe}=Kl({style:C,timeout:x,easing:d},{mode:"enter"});if(x==="auto"){const ee=R.transitions.getAutoHeightDuration(ke);se.style.transitionDuration=`${ee}ms`,O.current=ee}else se.style.transitionDuration=typeof ve=="string"?ve:`${ve}ms`;se.style[M]=`${ke}px`,se.style.transitionTimingFunction=Pe,g&&g(se,le)}),K=V((se,le)=>{se.style[M]="auto",m&&m(se,le)}),Y=V(se=>{se.style[M]=`${A()}px`,y&&y(se)}),ie=V(v),re=V(se=>{const le=A(),{duration:ke,easing:ve}=Kl({style:C,timeout:x,easing:d},{mode:"exit"});if(x==="auto"){const Pe=R.transitions.getAutoHeightDuration(le);se.style.transitionDuration=`${Pe}ms`,O.current=Pe}else se.style.transitionDuration=typeof ke=="string"?ke:`${ke}ms`;se.style[M]=D,se.style.transitionTimingFunction=ve,S&&S(se)}),de=se=>{x==="auto"&&(L.current=setTimeout(se,O.current||0)),o&&o(F.current,se)};return T.jsx(P,E({in:p,onEnter:H,onEntered:K,onEntering:W,onExit:Y,onExited:ie,onExiting:re,addEndListener:de,nodeRef:F,timeout:x==="auto"?null:x},_,{children:(se,le)=>T.jsx(Kq,E({as:c,className:he(I.root,s,{entered:I.entered,exited:!p&&D==="0px"&&I.hidden}[se]),style:E({[B?"minWidth":"minHeight"]:D},C),ownerState:E({},k,{state:se}),ref:z},le,{children:T.jsx(qq,{ownerState:E({},k,{state:se}),className:I.wrapper,ref:N,children:T.jsx(Yq,{ownerState:E({},k,{state:se}),className:I.wrapperInner,children:i})})}))}))});KF.muiSupportAuto=!0;const wg=KF;function Qq(e){return Je("MuiPaper",e)}Xe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Xq=["className","component","elevation","square","variant"],Jq=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Me(i,Qq,o)},Zq=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 E({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"&&E({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ut("#fff",$_(t.elevation))}, ${ut("#fff",$_(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),eY=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:c="elevation"}=r,d=ne(r,Xq),p=E({},r,{component:i,elevation:s,square:a,variant:c}),h=Jq(p);return T.jsx(Zq,E({as:i,ownerState:p,className:he(h.root,o),ref:n},d))}),bi=eY;function tY(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:c,timeout:d}=e,[p,h]=u.useState(!1),m=he(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},y=he(n.child,p&&n.childLeaving,r&&n.childPulsate);return!a&&!p&&h(!0),u.useEffect(()=>{if(!a&&c!=null){const v=setTimeout(c,d);return()=>{clearTimeout(v)}}},[c,a,d]),T.jsx("span",{className:m,style:g,children:T.jsx("span",{className:y})})}const nY=Xe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ti=nY,rY=["center","classes","className"];let Kv=e=>e,q_,Y_,Q_,X_;const bw=550,oY=80,iY=vs(q_||(q_=Kv`
|
|
90
|
-
0% {
|
|
91
|
-
transform: scale(0);
|
|
92
|
-
opacity: 0.1;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
100% {
|
|
96
|
-
transform: scale(1);
|
|
97
|
-
opacity: 0.3;
|
|
98
|
-
}
|
|
99
|
-
`)),sY=vs(Y_||(Y_=Kv`
|
|
100
|
-
0% {
|
|
101
|
-
opacity: 1;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
100% {
|
|
105
|
-
opacity: 0;
|
|
106
|
-
}
|
|
107
|
-
`)),lY=vs(Q_||(Q_=Kv`
|
|
108
|
-
0% {
|
|
109
|
-
transform: scale(1);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
50% {
|
|
113
|
-
transform: scale(0.92);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
100% {
|
|
117
|
-
transform: scale(1);
|
|
118
|
-
}
|
|
119
|
-
`)),aY=oe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),cY=oe(tY,{name:"MuiTouchRipple",slot:"Ripple"})(X_||(X_=Kv`
|
|
120
|
-
opacity: 0;
|
|
121
|
-
position: absolute;
|
|
122
|
-
|
|
123
|
-
&.${0} {
|
|
124
|
-
opacity: 0.3;
|
|
125
|
-
transform: scale(1);
|
|
126
|
-
animation-name: ${0};
|
|
127
|
-
animation-duration: ${0}ms;
|
|
128
|
-
animation-timing-function: ${0};
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
&.${0} {
|
|
132
|
-
animation-duration: ${0}ms;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
& .${0} {
|
|
136
|
-
opacity: 1;
|
|
137
|
-
display: block;
|
|
138
|
-
width: 100%;
|
|
139
|
-
height: 100%;
|
|
140
|
-
border-radius: 50%;
|
|
141
|
-
background-color: currentColor;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
& .${0} {
|
|
145
|
-
opacity: 0;
|
|
146
|
-
animation-name: ${0};
|
|
147
|
-
animation-duration: ${0}ms;
|
|
148
|
-
animation-timing-function: ${0};
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
& .${0} {
|
|
152
|
-
position: absolute;
|
|
153
|
-
/* @noflip */
|
|
154
|
-
left: 0px;
|
|
155
|
-
top: 0;
|
|
156
|
-
animation-name: ${0};
|
|
157
|
-
animation-duration: 2500ms;
|
|
158
|
-
animation-timing-function: ${0};
|
|
159
|
-
animation-iteration-count: infinite;
|
|
160
|
-
animation-delay: 200ms;
|
|
161
|
-
}
|
|
162
|
-
`),ti.rippleVisible,iY,bw,({theme:e})=>e.transitions.easing.easeInOut,ti.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ti.child,ti.childLeaving,sY,bw,({theme:e})=>e.transitions.easing.easeInOut,ti.childPulsate,lY,({theme:e})=>e.transitions.easing.easeInOut),uY=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=ne(r,rY),[c,d]=u.useState([]),p=u.useRef(0),h=u.useRef(null);u.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const m=u.useRef(!1),g=u.useRef(null),y=u.useRef(null),v=u.useRef(null);u.useEffect(()=>()=>{clearTimeout(g.current)},[]);const S=u.useCallback(P=>{const{pulsate:_,rippleX:k,rippleY:I,rippleSize:R,cb:L}=P;d(N=>[...N,T.jsx(cY,{classes:{ripple:he(i.ripple,ti.ripple),rippleVisible:he(i.rippleVisible,ti.rippleVisible),ripplePulsate:he(i.ripplePulsate,ti.ripplePulsate),child:he(i.child,ti.child),childLeaving:he(i.childLeaving,ti.childLeaving),childPulsate:he(i.childPulsate,ti.childPulsate)},timeout:bw,pulsate:_,rippleX:k,rippleY:I,rippleSize:R},p.current)]),p.current+=1,h.current=L},[i]),w=u.useCallback((P={},_={},k=()=>{})=>{const{pulsate:I=!1,center:R=o||_.pulsate,fakeElement:L=!1}=_;if((P==null?void 0:P.type)==="mousedown"&&m.current){m.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(m.current=!0);const N=L?null:v.current,O=N?N.getBoundingClientRect():{width:0,height:0,left:0,top:0};let D,B,M;if(R||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)D=Math.round(O.width/2),B=Math.round(O.height/2);else{const{clientX:F,clientY:z}=P.touches&&P.touches.length>0?P.touches[0]:P;D=Math.round(F-O.left),B=Math.round(z-O.top)}if(R)M=Math.sqrt((2*Gi(O.width,2)+Gi(O.height,2))/3),M%2===0&&(M+=1);else{const F=Math.max(Math.abs((N?N.clientWidth:0)-D),D)*2+2,z=Math.max(Math.abs((N?N.clientHeight:0)-B),B)*2+2;M=Math.sqrt(Gi(F,2)+Gi(z,2))}P!=null&&P.touches?y.current===null&&(y.current=()=>{S({pulsate:I,rippleX:D,rippleY:B,rippleSize:M,cb:k})},g.current=setTimeout(()=>{y.current&&(y.current(),y.current=null)},oY)):S({pulsate:I,rippleX:D,rippleY:B,rippleSize:M,cb:k})},[o,S]),C=u.useCallback(()=>{w({},{pulsate:!0})},[w]),x=u.useCallback((P,_)=>{if(clearTimeout(g.current),(P==null?void 0:P.type)==="touchend"&&y.current){y.current(),y.current=null,g.current=setTimeout(()=>{x(P,_)});return}y.current=null,d(k=>k.length>0?k.slice(1):k),h.current=_},[]);return u.useImperativeHandle(n,()=>({pulsate:C,start:w,stop:x}),[C,w,x]),T.jsx(aY,E({className:he(ti.root,i.root,s),ref:v},a,{children:T.jsx(Vq,{component:null,exit:!0,children:c})}))}),dY=uY;function fY(e){return Je("MuiButtonBase",e)}const pY=Xe("MuiButtonBase",["root","disabled","focusVisible"]),hY=pY,mY=["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"],gY=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=Me({root:["root",t&&"disabled",n&&"focusVisible"]},fY,o);return n&&r&&(s.root+=` ${r}`),s},vY=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"},[`&.${hY.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),yY=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:c="button",disabled:d=!1,disableRipple:p=!1,disableTouchRipple:h=!1,focusRipple:m=!1,LinkComponent:g="a",onBlur:y,onClick:v,onContextMenu:S,onDragLeave:w,onFocus:C,onFocusVisible:x,onKeyDown:P,onKeyUp:_,onMouseDown:k,onMouseLeave:I,onMouseUp:R,onTouchEnd:L,onTouchMove:N,onTouchStart:O,tabIndex:D=0,TouchRippleProps:B,touchRippleRef:M,type:F}=r,z=ne(r,mY),V=u.useRef(null),A=u.useRef(null),H=Vt(A,M),{isFocusVisibleRef:W,onFocus:K,onBlur:Y,ref:ie}=bv(),[re,de]=u.useState(!1);d&&re&&de(!1),u.useImperativeHandle(o,()=>({focusVisible:()=>{de(!0),V.current.focus()}}),[]);const[se,le]=u.useState(!1);u.useEffect(()=>{le(!0)},[]);const ke=se&&!p&&!d;u.useEffect(()=>{re&&m&&!p&&se&&A.current.pulsate()},[p,m,re,se]);function ve(Le,Be,Ze=h){return Pn(Ie=>(Be&&Be(Ie),!Ze&&A.current&&A.current[Le](Ie),!0))}const Pe=ve("start",k),ee=ve("stop",S),_e=ve("stop",w),Re=ve("stop",R),Se=ve("stop",Le=>{re&&Le.preventDefault(),I&&I(Le)}),pe=ve("start",O),be=ve("stop",L),te=ve("stop",N),Oe=ve("stop",Le=>{Y(Le),W.current===!1&&de(!1),y&&y(Le)},!1),Ye=Pn(Le=>{V.current||(V.current=Le.currentTarget),K(Le),W.current===!0&&(de(!0),x&&x(Le)),C&&C(Le)}),Ke=()=>{const Le=V.current;return c&&c!=="button"&&!(Le.tagName==="A"&&Le.href)},Ue=u.useRef(!1),De=Pn(Le=>{m&&!Ue.current&&re&&A.current&&Le.key===" "&&(Ue.current=!0,A.current.stop(Le,()=>{A.current.start(Le)})),Le.target===Le.currentTarget&&Ke()&&Le.key===" "&&Le.preventDefault(),P&&P(Le),Le.target===Le.currentTarget&&Ke()&&Le.key==="Enter"&&!d&&(Le.preventDefault(),v&&v(Le))}),dt=Pn(Le=>{m&&Le.key===" "&&A.current&&re&&!Le.defaultPrevented&&(Ue.current=!1,A.current.stop(Le,()=>{A.current.pulsate(Le)})),_&&_(Le),v&&Le.target===Le.currentTarget&&Ke()&&Le.key===" "&&!Le.defaultPrevented&&v(Le)});let vt=c;vt==="button"&&(z.href||z.to)&&(vt=g);const ct={};vt==="button"?(ct.type=F===void 0?"button":F,ct.disabled=d):(!z.href&&!z.to&&(ct.role="button"),d&&(ct["aria-disabled"]=d));const Pt=Vt(n,ie,V),yt=E({},r,{centerRipple:i,component:c,disabled:d,disableRipple:p,disableTouchRipple:h,focusRipple:m,tabIndex:D,focusVisible:re}),Ae=gY(yt);return T.jsxs(vY,E({as:vt,className:he(Ae.root,a),ownerState:yt,onBlur:Oe,onClick:v,onContextMenu:ee,onFocus:Ye,onKeyDown:De,onKeyUp:dt,onMouseDown:Pe,onMouseLeave:Se,onMouseUp:Re,onDragLeave:_e,onTouchEnd:be,onTouchMove:te,onTouchStart:pe,ref:Pt,tabIndex:d?-1:D,type:F},ct,z,{children:[s,ke?T.jsx(dY,E({ref:H,center:i},B)):null]}))}),hs=yY;function bY(e){return Je("MuiAlert",e)}const wY=Xe("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),J_=wY;function CY(e){return Je("MuiIconButton",e)}const xY=Xe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),SY=xY,EY=["edge","children","className","color","disabled","disableFocusRipple","size"],PY=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${ue(r)}`,o&&`edge${ue(o)}`,`size${ue(i)}`]};return Me(s,CY,t)},IY=oe(hs,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ue(n.color)}`],n.edge&&t[`edge${ue(n.edge)}`],t[`size${ue(n.size)}`]]}})(({theme:e,ownerState:t})=>E({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})`:ut(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 E({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&E({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":E({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ut(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)},{[`&.${SY.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),kY=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:c=!1,disableFocusRipple:d=!1,size:p="medium"}=r,h=ne(r,EY),m=E({},r,{edge:o,color:a,disabled:c,disableFocusRipple:d,size:p}),g=PY(m);return T.jsx(IY,E({className:he(g.root,s),centerRipple:!0,focusRipple:!d,disabled:c,ref:n,ownerState:m},h,{children:i}))}),li=kY,_Y=_t(T.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),$Y=_t(T.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),RY=_t(T.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),MY=_t(T.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),qF=_t(T.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),TY=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],OY=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`${t}${ue(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Me(i,bY,o)},FY=oe(bi,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ue(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Va:Ua,r=e.palette.mode==="light"?Ua:Va,o=t.color||t.severity;return E({},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),[`& .${J_.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}`,[`& .${J_.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&E({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)}))}),LY=oe("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),AY=oe("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Z_=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}),e$={success:T.jsx(_Y,{fontSize:"inherit"}),warning:T.jsx($Y,{fontSize:"inherit"}),error:T.jsx(RY,{fontSize:"inherit"}),info:T.jsx(MY,{fontSize:"inherit"})},NY=u.forwardRef(function(t,n){var r,o,i,s,a,c;const d=tt({props:t,name:"MuiAlert"}),{action:p,children:h,className:m,closeText:g="Close",color:y,components:v={},componentsProps:S={},icon:w,iconMapping:C=e$,onClose:x,role:P="alert",severity:_="success",slotProps:k={},slots:I={},variant:R="standard"}=d,L=ne(d,TY),N=E({},d,{color:y,severity:_,variant:R}),O=OY(N),D=(r=(o=I.closeButton)!=null?o:v.CloseButton)!=null?r:li,B=(i=(s=I.closeIcon)!=null?s:v.CloseIcon)!=null?i:qF,M=(a=k.closeButton)!=null?a:S.closeButton,F=(c=k.closeIcon)!=null?c:S.closeIcon;return T.jsxs(FY,E({role:P,elevation:0,ownerState:N,className:he(O.root,m),ref:n},L,{children:[w!==!1?T.jsx(LY,{ownerState:N,className:O.icon,children:w||C[_]||e$[_]}):null,T.jsx(AY,{ownerState:N,className:O.message,children:h}),p!=null?T.jsx(Z_,{ownerState:N,className:O.action,children:p}):null,p==null&&x?T.jsx(Z_,{ownerState:N,className:O.action,children:T.jsx(D,E({size:"small","aria-label":g,title:g,color:"inherit",onClick:x},M,{children:T.jsx(B,E({fontSize:"small"},F))}))}):null]}))}),jo=NY;function DY(e){return Je("MuiTypography",e)}Xe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const BY=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],zY=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${ue(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Me(a,DY,s)},jY=oe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ue(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>E({margin:0},t.variant&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),t$={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},HY={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},VY=e=>HY[e]||e,UY=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiTypography"}),o=VY(r.color),i=Cx(E({},r,{color:o})),{align:s="inherit",className:a,component:c,gutterBottom:d=!1,noWrap:p=!1,paragraph:h=!1,variant:m="body1",variantMapping:g=t$}=i,y=ne(i,BY),v=E({},i,{align:s,color:o,className:a,component:c,gutterBottom:d,noWrap:p,paragraph:h,variant:m,variantMapping:g}),S=c||(h?"p":g[m]||t$[m])||"span",w=zY(v);return T.jsx(jY,E({as:S,ref:n,ownerState:v,className:he(w.root,a)},y))}),Mr=UY;function WY(e){return Je("MuiAppBar",e)}Xe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const GY=["className","color","enableColorOnDark","position"],KY=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${ue(t)}`,`position${ue(n)}`]};return Me(o,WY,r)},Zh=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,qY=oe(bi,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ue(n.position)}`],t[`color${ue(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return E({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&&E({},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"&&E({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&E({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Zh(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Zh(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:Zh(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Zh(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"}))}),YY=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,c=ne(r,GY),d=E({},r,{color:i,position:a,enableColorOnDark:s}),p=KY(d);return T.jsx(qY,E({square:!0,component:"header",ownerState:d,elevation:4,className:he(p.root,o,a==="fixed"&&"mui-fixed"),ref:n},c))}),QY=YY,XY=["components","componentsProps","slots","slotProps"],JY=oe(uq,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ZY=u.forwardRef(function(t,n){var r;const o=Hv(),i=tt({props:t,name:"MuiPopper"}),{components:s,componentsProps:a,slots:c,slotProps:d}=i,p=ne(i,XY),h=(r=c==null?void 0:c.root)!=null?r:s==null?void 0:s.Root;return T.jsx(JY,E({direction:o==null?void 0:o.direction,slots:{root:h},slotProps:d!=null?d:a},p,{ref:n}))}),oc=ZY;function eQ(e){return Je("MuiListSubheader",e)}Xe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const tQ=["className","color","component","disableGutters","disableSticky","inset"],nQ=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,s={root:["root",n!=="default"&&`color${ue(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return Me(s,eQ,t)},rQ=oe("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ue(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>E({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})),YF=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:s="li",disableGutters:a=!1,disableSticky:c=!1,inset:d=!1}=r,p=ne(r,tQ),h=E({},r,{color:i,component:s,disableGutters:a,disableSticky:c,inset:d}),m=nQ(h);return T.jsx(rQ,E({as:s,className:he(m.root,o),ref:n,ownerState:h},p))});YF.muiSkipListHighlight=!0;const oQ=YF,iQ=_t(T.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function sQ(e){return Je("MuiChip",e)}const lQ=Xe("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Kt=lQ,aQ=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],cQ=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:c}=e,d={root:["root",c,n&&"disabled",`size${ue(r)}`,`color${ue(o)}`,a&&"clickable",a&&`clickableColor${ue(o)}`,s&&"deletable",s&&`deletableColor${ue(o)}`,`${c}${ue(o)}`],label:["label",`label${ue(r)}`],avatar:["avatar",`avatar${ue(r)}`,`avatarColor${ue(o)}`],icon:["icon",`icon${ue(r)}`,`iconColor${ue(i)}`],deleteIcon:["deleteIcon",`deleteIcon${ue(r)}`,`deleteIconColor${ue(o)}`,`deleteIcon${ue(c)}Color${ue(o)}`]};return Me(d,sQ,t)},uQ=oe("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:c}=n;return[{[`& .${Kt.avatar}`]:t.avatar},{[`& .${Kt.avatar}`]:t[`avatar${ue(a)}`]},{[`& .${Kt.avatar}`]:t[`avatarColor${ue(r)}`]},{[`& .${Kt.icon}`]:t.icon},{[`& .${Kt.icon}`]:t[`icon${ue(a)}`]},{[`& .${Kt.icon}`]:t[`iconColor${ue(o)}`]},{[`& .${Kt.deleteIcon}`]:t.deleteIcon},{[`& .${Kt.deleteIcon}`]:t[`deleteIcon${ue(a)}`]},{[`& .${Kt.deleteIcon}`]:t[`deleteIconColor${ue(r)}`]},{[`& .${Kt.deleteIcon}`]:t[`deleteIcon${ue(c)}Color${ue(r)}`]},t.root,t[`size${ue(a)}`],t[`color${ue(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${ue(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${ue(r)}`],t[c],t[`${c}${ue(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return E({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Kt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Kt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Kt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Kt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Kt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Kt.icon}`]:E({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&E({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Kt.deleteIcon}`]:E({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:ut(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)`:ut(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)`:ut(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&&{[`&.${Kt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ut(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Kt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>E({},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}))`:ut(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Kt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ut(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, &.${Kt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>E({},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]}`,[`&.${Kt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Kt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Kt.avatar}`]:{marginLeft:4},[`& .${Kt.avatarSmall}`]:{marginLeft:2},[`& .${Kt.icon}`]:{marginLeft:4},[`& .${Kt.iconSmall}`]:{marginLeft:2},[`& .${Kt.deleteIcon}`]:{marginRight:5},[`& .${Kt.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)`:ut(e.palette[t.color].main,.7)}`,[`&.${Kt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ut(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Kt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:ut(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Kt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:ut(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),dQ=oe("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ue(r)}`]]}})(({ownerState:e})=>E({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function n$(e){return e.key==="Backspace"||e.key==="Delete"}const fQ=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:c,deleteIcon:d,disabled:p=!1,icon:h,label:m,onClick:g,onDelete:y,onKeyDown:v,onKeyUp:S,size:w="medium",variant:C="filled",tabIndex:x,skipFocusWhenDisabled:P=!1}=r,_=ne(r,aQ),k=u.useRef(null),I=Vt(k,n),R=H=>{H.stopPropagation(),y&&y(H)},L=H=>{H.currentTarget===H.target&&n$(H)&&H.preventDefault(),v&&v(H)},N=H=>{H.currentTarget===H.target&&(y&&n$(H)?y(H):H.key==="Escape"&&k.current&&k.current.blur()),S&&S(H)},O=s!==!1&&g?!0:s,D=O||y?hs:c||"div",B=E({},r,{component:D,disabled:p,size:w,color:a,iconColor:u.isValidElement(h)&&h.props.color||a,onDelete:!!y,clickable:O,variant:C}),M=cQ(B),F=D===hs?E({component:c||"div",focusVisibleClassName:M.focusVisible},y&&{disableRipple:!0}):{};let z=null;y&&(z=d&&u.isValidElement(d)?u.cloneElement(d,{className:he(d.props.className,M.deleteIcon),onClick:R}):T.jsx(iQ,{className:he(M.deleteIcon),onClick:R}));let V=null;o&&u.isValidElement(o)&&(V=u.cloneElement(o,{className:he(M.avatar,o.props.className)}));let A=null;return h&&u.isValidElement(h)&&(A=u.cloneElement(h,{className:he(M.icon,h.props.className)})),T.jsxs(uQ,E({as:D,className:he(M.root,i),disabled:O&&p?!0:void 0,onClick:g,onKeyDown:L,onKeyUp:N,ref:I,tabIndex:P&&p?-1:x,ownerState:B},F,_,{children:[V||A,T.jsx(dQ,{className:he(M.label),ownerState:B,children:m}),z]}))}),Lx=fQ;function ic({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]=="undefined"&&(r[o]=n[o]),r),{})}const pQ=u.createContext(void 0),qv=pQ;function Js(){return u.useContext(qv)}function hQ(e){return T.jsx(TW,E({},e,{defaultTheme:Uv,themeId:ja}))}function r$(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ax(e,t=!1){return e&&(r$(e.value)&&e.value!==""||t&&r$(e.defaultValue)&&e.defaultValue!=="")}function mQ(e){return e.startAdornment}function gQ(e){return Je("MuiInputBase",e)}const vQ=Xe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),xo=vQ,yQ=["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"],Yv=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ue(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Qv=(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]},bQ=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:c,hiddenLabel:d,multiline:p,readOnly:h,size:m,startAdornment:g,type:y}=e,v={root:["root",`color${ue(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",s&&"focused",a&&"formControl",m==="small"&&"sizeSmall",p&&"multiline",g&&"adornedStart",i&&"adornedEnd",d&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",p&&"inputMultiline",m==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",g&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]};return Me(v,gQ,t)},Xv=oe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Yv})(({theme:e,ownerState:t})=>E({},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",[`&.${xo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&E({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Jv=oe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Qv})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=E({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return E({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] + .${xo.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${xo.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"})}),wQ=T.jsx(hQ,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),CQ=u.forwardRef(function(t,n){var r;const o=tt({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:c,components:d={},componentsProps:p={},defaultValue:h,disabled:m,disableInjectingGlobalStyles:g,endAdornment:y,fullWidth:v=!1,id:S,inputComponent:w="input",inputProps:C={},inputRef:x,maxRows:P,minRows:_,multiline:k=!1,name:I,onBlur:R,onChange:L,onClick:N,onFocus:O,onKeyDown:D,onKeyUp:B,placeholder:M,readOnly:F,renderSuffix:z,rows:V,slotProps:A={},slots:H={},startAdornment:W,type:K="text",value:Y}=o,ie=ne(o,yQ),re=C.value!=null?C.value:Y,{current:de}=u.useRef(re!=null),se=u.useRef(),le=u.useCallback(Ae=>{},[]),ke=Vt(se,x,C.ref,le),[ve,Pe]=u.useState(!1),ee=Js(),_e=ic({props:o,muiFormControl:ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});_e.focused=ee?ee.focused:ve,u.useEffect(()=>{!ee&&m&&ve&&(Pe(!1),R&&R())},[ee,m,ve,R]);const Re=ee&&ee.onFilled,Se=ee&&ee.onEmpty,pe=u.useCallback(Ae=>{Ax(Ae)?Re&&Re():Se&&Se()},[Re,Se]);ln(()=>{de&&pe({value:re})},[re,pe,de]);const be=Ae=>{if(_e.disabled){Ae.stopPropagation();return}O&&O(Ae),C.onFocus&&C.onFocus(Ae),ee&&ee.onFocus?ee.onFocus(Ae):Pe(!0)},te=Ae=>{R&&R(Ae),C.onBlur&&C.onBlur(Ae),ee&&ee.onBlur?ee.onBlur(Ae):Pe(!1)},Oe=(Ae,...Le)=>{if(!de){const Be=Ae.target||se.current;if(Be==null)throw new Error(Wl(1));pe({value:Be.value})}C.onChange&&C.onChange(Ae,...Le),L&&L(Ae,...Le)};u.useEffect(()=>{pe(se.current)},[]);const Ye=Ae=>{se.current&&Ae.currentTarget===Ae.target&&se.current.focus(),N&&N(Ae)};let Ke=w,Ue=C;k&&Ke==="input"&&(V?Ue=E({type:void 0,minRows:V,maxRows:V},Ue):Ue=E({type:void 0,maxRows:P,minRows:_},Ue),Ke=kq);const De=Ae=>{pe(Ae.animationName==="mui-auto-fill-cancel"?se.current:{value:"x"})};u.useEffect(()=>{ee&&ee.setAdornedStart(!!W)},[ee,W]);const dt=E({},o,{color:_e.color||"primary",disabled:_e.disabled,endAdornment:y,error:_e.error,focused:_e.focused,formControl:ee,fullWidth:v,hiddenLabel:_e.hiddenLabel,multiline:k,size:_e.size,startAdornment:W,type:K}),vt=bQ(dt),ct=H.root||d.Root||Xv,Pt=A.root||p.root||{},yt=H.input||d.Input||Jv;return Ue=E({},Ue,(r=A.input)!=null?r:p.input),T.jsxs(u.Fragment,{children:[!g&&wQ,T.jsxs(ct,E({},Pt,!Wa(ct)&&{ownerState:E({},dt,Pt.ownerState)},{ref:n,onClick:Ye},ie,{className:he(vt.root,Pt.className,c,F&&"MuiInputBase-readOnly"),children:[W,T.jsx(qv.Provider,{value:null,children:T.jsx(yt,E({ownerState:dt,"aria-invalid":_e.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:h,disabled:_e.disabled,id:S,onAnimationStart:De,name:I,placeholder:M,readOnly:F,required:_e.required,rows:V,value:re,onKeyDown:D,onKeyUp:B,type:K},Ue,!Wa(yt)&&{as:Ke,ownerState:E({},dt,Ue.ownerState)},{ref:ke,className:he(vt.input,Ue.className,F&&"MuiInputBase-readOnly"),onBlur:te,onChange:Oe,onFocus:be}))}),y,z?z(E({},_e,{startAdornment:W})):null]}))]})}),ed=CQ;function xQ(e){return Je("MuiInput",e)}const SQ=E({},xo,Xe("MuiInput",["root","underline","input"])),El=SQ;function EQ(e){return Je("MuiOutlinedInput",e)}const PQ=E({},xo,Xe("MuiOutlinedInput",["root","notchedOutline","input"])),Qi=PQ;function IQ(e){return Je("MuiFilledInput",e)}const kQ=E({},xo,Xe("MuiFilledInput",["root","underline","input"])),So=kQ,QF=_t(T.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function _Q(e){return Je("MuiAutocomplete",e)}const $Q=Xe("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),Nt=$Q;var o$,i$;const RQ=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],MQ=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:s,hasPopupIcon:a,inputFocused:c,popupOpen:d,size:p}=e,h={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",s&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${ue(p)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",d&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Me(h,_Q,t)},TQ=oe("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:s,size:a}=n;return[{[`& .${Nt.tag}`]:t.tag},{[`& .${Nt.tag}`]:t[`tagSize${ue(a)}`]},{[`& .${Nt.inputRoot}`]:t.inputRoot},{[`& .${Nt.input}`]:t.input},{[`& .${Nt.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>E({[`&.${Nt.focused} .${Nt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Nt.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${Nt.tag}`]:E({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${Nt.inputRoot}`]:{flexWrap:"wrap",[`.${Nt.hasPopupIcon}&, .${Nt.hasClearIcon}&`]:{paddingRight:26+4},[`.${Nt.hasPopupIcon}.${Nt.hasClearIcon}&`]:{paddingRight:52+4},[`& .${Nt.input}`]:{width:0,minWidth:30}},[`& .${El.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${El.root}.${xo.sizeSmall}`]:{[`& .${El.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Qi.root}`]:{padding:9,[`.${Nt.hasPopupIcon}&, .${Nt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${Nt.hasPopupIcon}.${Nt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Nt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Nt.endAdornment}`]:{right:9}},[`& .${Qi.root}.${xo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Nt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${So.root}`]:{paddingTop:19,paddingLeft:8,[`.${Nt.hasPopupIcon}&, .${Nt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${Nt.hasPopupIcon}.${Nt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${So.input}`]:{padding:"7px 4px"},[`& .${Nt.endAdornment}`]:{right:9}},[`& .${So.root}.${xo.sizeSmall}`]:{paddingBottom:1,[`& .${So.input}`]:{padding:"2.5px 4px"}},[`& .${xo.hiddenLabel}`]:{paddingTop:8},[`& .${So.root}.${xo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Nt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${So.root}.${xo.hiddenLabel}.${xo.sizeSmall}`]:{[`& .${Nt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Nt.input}`]:E({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),OQ=oe("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),FQ=oe(li,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),LQ=oe(li,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>E({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>E({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),AQ=oe(oc,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Nt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>E({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),NQ=oe(bi,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>E({},e.typography.body1,{overflow:"auto"})),DQ=oe("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),BQ=oe("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),zQ=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",[`& .${Nt.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"},[`&.${Nt.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"},[`&.${Nt.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})`:ut(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Nt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ut(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Nt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ut(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),jQ=oe(oQ,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),HQ=oe("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Nt.option}`]:{paddingLeft:24}}),VQ=u.forwardRef(function(t,n){var r,o,i,s;const a=tt({props:t,name:"MuiAutocomplete"}),{autoComplete:c=!1,autoHighlight:d=!1,autoSelect:p=!1,blurOnSelect:h=!1,ChipProps:m,className:g,clearIcon:y=o$||(o$=T.jsx(qF,{fontSize:"small"})),clearOnBlur:v=!a.freeSolo,clearOnEscape:S=!1,clearText:w="Clear",closeText:C="Close",componentsProps:x={},defaultValue:P=a.multiple?[]:null,disableClearable:_=!1,disableCloseOnSelect:k=!1,disabled:I=!1,disabledItemsFocusable:R=!1,disableListWrap:L=!1,disablePortal:N=!1,filterSelectedOptions:O=!1,forcePopupIcon:D="auto",freeSolo:B=!1,fullWidth:M=!1,getLimitTagsText:F=He=>`+${He}`,getOptionLabel:z=He=>{var Ct;return(Ct=He.label)!=null?Ct:He},groupBy:V,handleHomeEndKeys:A=!a.freeSolo,includeInputInList:H=!1,limitTags:W=-1,ListboxComponent:K="ul",ListboxProps:Y,loading:ie=!1,loadingText:re="Loading…",multiple:de=!1,noOptionsText:se="No options",openOnFocus:le=!1,openText:ke="Open",PaperComponent:ve=bi,PopperComponent:Pe=oc,popupIcon:ee=i$||(i$=T.jsx(QF,{})),readOnly:_e=!1,renderGroup:Re,renderInput:Se,renderOption:pe,renderTags:be,selectOnFocus:te=!a.freeSolo,size:Oe="medium",slotProps:Ye={}}=a,Ke=ne(a,RQ),{getRootProps:Ue,getInputProps:De,getInputLabelProps:dt,getPopupIndicatorProps:vt,getClearProps:ct,getTagProps:Pt,getListboxProps:yt,getOptionProps:Ae,value:Le,dirty:Be,expanded:Ze,id:Ie,popupOpen:Fe,focused:Ve,focusedTag:nt,anchorEl:ht,setAnchorEl:Zt,inputValue:kn,groupedOptions:On}=Rq(E({},a,{componentName:"Autocomplete"})),Xn=!_&&!I&&Be&&!_e,lr=(!B||D===!0)&&D!==!1,{onMouseDown:ar}=De(),bn=E({},a,{disablePortal:N,expanded:Ze,focused:Ve,fullWidth:M,hasClearIcon:Xn,hasPopupIcon:lr,inputFocused:nt===-1,popupOpen:Fe,size:Oe}),en=MQ(bn);let jn;if(de&&Le.length>0){const He=Ct=>E({className:en.tag,disabled:I},Pt(Ct));be?jn=be(Le,He,bn):jn=Le.map((Ct,Ut)=>T.jsx(Lx,E({label:z(Ct),size:Oe},He({index:Ut}),m)))}if(W>-1&&Array.isArray(jn)){const He=jn.length-W;!Ve&&He>0&&(jn=jn.splice(0,W),jn.push(T.jsx("span",{className:en.tag,children:F(He)},jn.length)))}const Hi=Re||(He=>T.jsxs("li",{children:[T.jsx(jQ,{className:en.groupLabel,ownerState:bn,component:"div",children:He.group}),T.jsx(HQ,{className:en.groupUl,ownerState:bn,children:He.children})]},He.key)),Cs=pe||((He,Ct)=>T.jsx("li",E({},He,{children:z(Ct)}))),ce=(He,Ct)=>{const Ut=Ae({option:He,index:Ct});return Cs(E({},Ut,{className:en.option}),He,{selected:Ut["aria-selected"],index:Ct,inputValue:kn})},ge=(r=Ye.clearIndicator)!=null?r:x.clearIndicator,Ne=(o=Ye.paper)!=null?o:x.paper,ft=(i=Ye.popper)!=null?i:x.popper,it=(s=Ye.popupIndicator)!=null?s:x.popupIndicator;return T.jsxs(u.Fragment,{children:[T.jsx(TQ,E({ref:n,className:he(en.root,g),ownerState:bn},Ue(Ke),{children:Se({id:Ie,disabled:I,fullWidth:!0,size:Oe==="small"?"small":void 0,InputLabelProps:dt(),InputProps:E({ref:Zt,className:en.inputRoot,startAdornment:jn,onClick:He=>{He.target===He.currentTarget&&ar(He)}},(Xn||lr)&&{endAdornment:T.jsxs(OQ,{className:en.endAdornment,ownerState:bn,children:[Xn?T.jsx(FQ,E({},ct(),{"aria-label":w,title:w,ownerState:bn},ge,{className:he(en.clearIndicator,ge==null?void 0:ge.className),children:y})):null,lr?T.jsx(LQ,E({},vt(),{disabled:I,"aria-label":Fe?C:ke,title:Fe?C:ke,ownerState:bn},it,{className:he(en.popupIndicator,it==null?void 0:it.className),children:ee})):null]})}),inputProps:E({className:en.input,disabled:I,readOnly:_e},De())})})),ht?T.jsx(AQ,E({as:Pe,disablePortal:N,style:{width:ht?ht.clientWidth:null},ownerState:bn,role:"presentation",anchorEl:ht,open:Fe},ft,{className:he(en.popper,ft==null?void 0:ft.className),children:T.jsxs(NQ,E({ownerState:bn,as:ve},Ne,{className:he(en.paper,Ne==null?void 0:Ne.className),children:[ie&&On.length===0?T.jsx(DQ,{className:en.loading,ownerState:bn,children:re}):null,On.length===0&&!B&&!ie?T.jsx(BQ,{className:en.noOptions,ownerState:bn,role:"presentation",onMouseDown:He=>{He.preventDefault()},children:se}):null,On.length>0?T.jsx(zQ,E({as:K,className:en.listbox,ownerState:bn},yt(),Y,{children:On.map((He,Ct)=>V?Hi({key:He.key,group:He.group,children:He.options.map((Ut,_n)=>ce(Ut,He.index+_n))}):ce(He,Ct))})):null]}))})):null]})}),Nx=VQ,UQ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],WQ={entering:{opacity:1},entered:{opacity:1}},GQ=u.forwardRef(function(t,n){const r=sr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:c,in:d,onEnter:p,onEntered:h,onEntering:m,onExit:g,onExited:y,onExiting:v,style:S,timeout:w=o,TransitionComponent:C=Gv}=t,x=ne(t,UQ),P=u.useRef(null),_=Vt(P,a.ref,n),k=M=>F=>{if(M){const z=P.current;F===void 0?M(z):M(z,F)}},I=k(m),R=k((M,F)=>{Fx(M);const z=Kl({style:S,timeout:w,easing:c},{mode:"enter"});M.style.webkitTransition=r.transitions.create("opacity",z),M.style.transition=r.transitions.create("opacity",z),p&&p(M,F)}),L=k(h),N=k(v),O=k(M=>{const F=Kl({style:S,timeout:w,easing:c},{mode:"exit"});M.style.webkitTransition=r.transitions.create("opacity",F),M.style.transition=r.transitions.create("opacity",F),g&&g(M)}),D=k(y),B=M=>{i&&i(P.current,M)};return T.jsx(C,E({appear:s,in:d,nodeRef:P,onEnter:R,onEntered:L,onEntering:I,onExit:O,onExited:D,onExiting:N,addEndListener:B,timeout:w},x,{children:(M,F)=>u.cloneElement(a,E({style:E({opacity:0,visibility:M==="exited"&&!d?"hidden":void 0},WQ[M],S,a.props.style),ref:_},F))}))}),XF=GQ;function KQ(e){return Je("MuiBackdrop",e)}Xe("MuiBackdrop",["root","invisible"]);const qQ=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],YQ=e=>{const{classes:t,invisible:n}=e;return Me({root:["root",n&&"invisible"]},KQ,t)},QQ=oe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>E({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"})),XQ=u.forwardRef(function(t,n){var r,o,i;const s=tt({props:t,name:"MuiBackdrop"}),{children:a,className:c,component:d="div",components:p={},componentsProps:h={},invisible:m=!1,open:g,slotProps:y={},slots:v={},TransitionComponent:S=XF,transitionDuration:w}=s,C=ne(s,qQ),x=E({},s,{component:d,invisible:m}),P=YQ(x),_=(r=y.root)!=null?r:h.root;return T.jsx(S,E({in:g,timeout:w},C,{children:T.jsx(QQ,E({"aria-hidden":!0},_,{as:(o=(i=v.root)!=null?i:p.Root)!=null?o:d,className:he(P.root,c,_==null?void 0:_.className),ownerState:E({},x,_==null?void 0:_.ownerState),classes:P,ref:n,children:a}))}))}),JF=XQ;function JQ(e){return Je("MuiBadge",e)}const ZQ=Xe("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),ul=ZQ,eX=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],R1=10,M1=4,tX=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${ue(n.vertical)}${ue(n.horizontal)}`,`anchorOrigin${ue(n.vertical)}${ue(n.horizontal)}${ue(o)}`,`overlap${ue(o)}`,t!=="default"&&`color${ue(t)}`]};return Me(a,JQ,s)},nX=oe("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),rX=oe("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${ue(n.anchorOrigin.vertical)}${ue(n.anchorOrigin.horizontal)}${ue(n.overlap)}`],n.color!=="default"&&t[`color${ue(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>E({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:R1*2,lineHeight:1,padding:"0 6px",height:R1*2,borderRadius:R1,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.variant==="dot"&&{borderRadius:M1,height:M1*2,minWidth:M1*2,padding:0},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ul.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ul.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ul.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ul.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ul.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ul.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ul.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ul.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),oX=u.forwardRef(function(t,n){var r,o,i,s,a,c;const d=tt({props:t,name:"MuiBadge"}),{anchorOrigin:p={vertical:"top",horizontal:"right"},className:h,component:m,components:g={},componentsProps:y={},children:v,overlap:S="rectangular",color:w="default",invisible:C=!1,max:x=99,badgeContent:P,slots:_,slotProps:k,showZero:I=!1,variant:R="standard"}=d,L=ne(d,eX),{badgeContent:N,invisible:O,max:D,displayValue:B}=BG({max:x,invisible:C,badgeContent:P,showZero:I}),M=sx({anchorOrigin:p,color:w,overlap:S,variant:R,badgeContent:P}),F=O||N==null&&R!=="dot",{color:z=w,overlap:V=S,anchorOrigin:A=p,variant:H=R}=F?M:d,W=H!=="dot"?B:void 0,K=E({},d,{badgeContent:N,invisible:F,max:D,displayValue:W,showZero:I,anchorOrigin:A,color:z,overlap:V,variant:H}),Y=tX(K),ie=(r=(o=_==null?void 0:_.root)!=null?o:g.Root)!=null?r:nX,re=(i=(s=_==null?void 0:_.badge)!=null?s:g.Badge)!=null?i:rX,de=(a=k==null?void 0:k.root)!=null?a:y.root,se=(c=k==null?void 0:k.badge)!=null?c:y.badge,le=Gs({elementType:ie,externalSlotProps:de,externalForwardedProps:L,additionalProps:{ref:n,as:m},ownerState:K,className:he(de==null?void 0:de.className,Y.root,h)}),ke=Gs({elementType:re,externalSlotProps:se,ownerState:K,className:he(Y.badge,se==null?void 0:se.className)});return T.jsxs(ie,E({},le,{children:[v,T.jsx(re,E({},ke,{children:W}))]}))}),ZF=oX,iX=Sx(),sX=AW({themeId:ja,defaultTheme:iX,defaultClassName:"MuiBox-root",generateClassName:ax.generate}),je=sX;function lX(e){return Je("MuiButton",e)}const aX=Xe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),em=aX,cX=u.createContext({}),uX=cX,dX=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],fX=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${ue(t)}`,`size${ue(o)}`,`${i}Size${ue(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${ue(o)}`],endIcon:["endIcon",`iconSize${ue(o)}`]},c=Me(a,lX,s);return E({},s,c)},eL=e=>E({},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}}),pX=oe(hs,{shouldForwardProp:e=>zo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ue(n.color)}`],t[`size${ue(n.size)}`],t[`${n.variant}Size${ue(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return E({},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":E({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ut(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})`:ut(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})`:ut(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":E({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${em.focusVisible}`]:E({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${em.disabled}`]:E({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 ${ut(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"},[`&.${em.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${em.disabled}`]:{boxShadow:"none"}}),hX=oe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ue(n.size)}`]]}})(({ownerState:e})=>E({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},eL(e))),mX=oe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ue(n.size)}`]]}})(({ownerState:e})=>E({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},eL(e))),gX=u.forwardRef(function(t,n){const r=u.useContext(uX),o=lx(r,t),i=tt({props:o,name:"MuiButton"}),{children:s,color:a="primary",component:c="button",className:d,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:m=!1,endIcon:g,focusVisibleClassName:y,fullWidth:v=!1,size:S="medium",startIcon:w,type:C,variant:x="text"}=i,P=ne(i,dX),_=E({},i,{color:a,component:c,disabled:p,disableElevation:h,disableFocusRipple:m,fullWidth:v,size:S,type:C,variant:x}),k=fX(_),I=w&&T.jsx(hX,{className:k.startIcon,ownerState:_,children:w}),R=g&&T.jsx(mX,{className:k.endIcon,ownerState:_,children:g});return T.jsxs(pX,E({ownerState:_,className:he(r.className,k.root,d),component:c,disabled:p,focusRipple:!m,focusVisibleClassName:he(k.focusVisible,y),ref:n,type:C},P,{classes:k,children:[I,s,R]}))}),hr=gX;function vX(e){return Je("MuiCard",e)}Xe("MuiCard",["root"]);const yX=["className","raised"],bX=e=>{const{classes:t}=e;return Me({root:["root"]},vX,t)},wX=oe(bi,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),CX=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,s=ne(r,yX),a=E({},r,{raised:i}),c=bX(a);return T.jsx(wX,E({className:he(c.root,o),elevation:i?8:void 0,ref:n,ownerState:a},s))}),Dx=CX;function xX(e){return Je("MuiCardContent",e)}Xe("MuiCardContent",["root"]);const SX=["className","component"],EX=e=>{const{classes:t}=e;return Me({root:["root"]},xX,t)},PX=oe("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),IX=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,s=ne(r,SX),a=E({},r,{component:i}),c=EX(a);return T.jsx(PX,E({as:i,className:he(c.root,o),ownerState:a,ref:n},s))}),Bx=IX;function kX(e){return Je("PrivateSwitchBase",e)}Xe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const _X=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],$X=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${ue(o)}`],input:["input"]};return Me(i,kX,t)},RX=oe(hs)(({ownerState:e})=>E({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),MX=oe("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),TX=u.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:a,disabled:c,disableFocusRipple:d=!1,edge:p=!1,icon:h,id:m,inputProps:g,inputRef:y,name:v,onBlur:S,onChange:w,onFocus:C,readOnly:x,required:P=!1,tabIndex:_,type:k,value:I}=t,R=ne(t,_X),[L,N]=is({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),O=Js(),D=H=>{C&&C(H),O&&O.onFocus&&O.onFocus(H)},B=H=>{S&&S(H),O&&O.onBlur&&O.onBlur(H)},M=H=>{if(H.nativeEvent.defaultPrevented)return;const W=H.target.checked;N(W),w&&w(H,W)};let F=c;O&&typeof F=="undefined"&&(F=O.disabled);const z=k==="checkbox"||k==="radio",V=E({},t,{checked:L,disabled:F,disableFocusRipple:d,edge:p}),A=$X(V);return T.jsxs(RX,E({component:"span",className:he(A.root,s),centerRipple:!0,focusRipple:!d,disabled:F,tabIndex:null,role:void 0,onFocus:D,onBlur:B,ownerState:V,ref:n},R,{children:[T.jsx(MX,E({autoFocus:r,checked:o,defaultChecked:a,className:A.input,disabled:F,id:z?m:void 0,name:v,onChange:M,readOnly:x,ref:y,required:P,ownerState:V,tabIndex:_,type:k},k==="checkbox"&&I===void 0?{}:{value:I},g)),L?i:h]}))}),tL=TX,OX=_t(T.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),FX=_t(T.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),LX=_t(T.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function AX(e){return Je("MuiCheckbox",e)}const NX=Xe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),T1=NX,DX=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],BX=e=>{const{classes:t,indeterminate:n,color:r}=e,o={root:["root",n&&"indeterminate",`color${ue(r)}`]},i=Me(o,AX,t);return E({},t,i)},zX=oe(tL,{shouldForwardProp:e=>zo(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${ue(n.color)}`]]}})(({theme:e,ownerState:t})=>E({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ut(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${T1.checked}, &.${T1.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${T1.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),jX=T.jsx(FX,{}),HX=T.jsx(OX,{}),VX=T.jsx(LX,{}),UX=u.forwardRef(function(t,n){var r,o;const i=tt({props:t,name:"MuiCheckbox"}),{checkedIcon:s=jX,color:a="primary",icon:c=HX,indeterminate:d=!1,indeterminateIcon:p=VX,inputProps:h,size:m="medium",className:g}=i,y=ne(i,DX),v=d?p:c,S=d?p:s,w=E({},i,{color:a,indeterminate:d,size:m}),C=BX(w);return T.jsx(zX,E({type:"checkbox",inputProps:E({"data-indeterminate":d},h),icon:u.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:m}),checkedIcon:u.cloneElement(S,{fontSize:(o=S.props.fontSize)!=null?o:m}),ownerState:w,ref:n,className:he(C.root,g)},y,{classes:C}))}),nL=UX;function WX(e){return Je("MuiCircularProgress",e)}Xe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const GX=["className","color","disableShrink","size","style","thickness","value","variant"];let Zv=e=>e,s$,l$,a$,c$;const dl=44,KX=vs(s$||(s$=Zv`
|
|
163
|
-
0% {
|
|
164
|
-
transform: rotate(0deg);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
100% {
|
|
168
|
-
transform: rotate(360deg);
|
|
169
|
-
}
|
|
170
|
-
`)),qX=vs(l$||(l$=Zv`
|
|
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
|
-
`)),YX=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${ue(r)}`],svg:["svg"],circle:["circle",`circle${ue(n)}`,o&&"circleDisableShrink"]};return Me(i,WX,t)},QX=oe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ue(n.color)}`]]}})(({ownerState:e,theme:t})=>E({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"&&Gl(a$||(a$=Zv`
|
|
186
|
-
animation: ${0} 1.4s linear infinite;
|
|
187
|
-
`),KX)),XX=oe("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),JX=oe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ue(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>E({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&&Gl(c$||(c$=Zv`
|
|
188
|
-
animation: ${0} 1.4s ease-in-out infinite;
|
|
189
|
-
`),qX)),ZX=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:a=40,style:c,thickness:d=3.6,value:p=0,variant:h="indeterminate"}=r,m=ne(r,GX),g=E({},r,{color:i,disableShrink:s,size:a,thickness:d,value:p,variant:h}),y=YX(g),v={},S={},w={};if(h==="determinate"){const C=2*Math.PI*((dl-d)/2);v.strokeDasharray=C.toFixed(3),w["aria-valuenow"]=Math.round(p),v.strokeDashoffset=`${((100-p)/100*C).toFixed(3)}px`,S.transform="rotate(-90deg)"}return T.jsx(QX,E({className:he(y.root,o),style:E({width:a,height:a},S,c),ownerState:g,ref:n,role:"progressbar"},w,m,{children:T.jsx(XX,{className:y.svg,ownerState:g,viewBox:`${dl/2} ${dl/2} ${dl} ${dl}`,children:T.jsx(JX,{className:y.circle,style:v,ownerState:g,cx:dl,cy:dl,r:(dl-d)/2,fill:"none",strokeWidth:d})})}))}),Ka=ZX,eJ=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],tJ=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})=>E({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),nJ=oe(JF,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),rJ=u.forwardRef(function(t,n){var r,o,i,s,a,c;const d=tt({name:"MuiModal",props:t}),{BackdropComponent:p=nJ,BackdropProps:h,classes:m,className:g,closeAfterTransition:y=!1,children:v,component:S,components:w={},componentsProps:C={},disableAutoFocus:x=!1,disableEnforceFocus:P=!1,disableEscapeKeyDown:_=!1,disablePortal:k=!1,disableRestoreFocus:I=!1,disableScrollLock:R=!1,hideBackdrop:L=!1,keepMounted:N=!1,slotProps:O,slots:D,theme:B}=d,M=ne(d,eJ),[F,z]=u.useState(!0),V={closeAfterTransition:y,disableAutoFocus:x,disableEnforceFocus:P,disableEscapeKeyDown:_,disablePortal:k,disableRestoreFocus:I,disableScrollLock:R,hideBackdrop:L,keepMounted:N},A=E({},d,V,{exited:F}),H=(r=(o=D==null?void 0:D.root)!=null?o:w.Root)!=null?r:tJ,W=(i=(s=D==null?void 0:D.backdrop)!=null?s:w.Backdrop)!=null?i:p,K=(a=O==null?void 0:O.root)!=null?a:C.root,Y=(c=O==null?void 0:O.backdrop)!=null?c:C.backdrop;return T.jsx(Sq,E({slots:{root:H,backdrop:W},slotProps:{root:()=>E({},fw(K,A),!Wa(H)&&{as:S,theme:B},{className:he(g,K==null?void 0:K.className,m==null?void 0:m.root,!A.open&&A.exited&&(m==null?void 0:m.hidden))}),backdrop:()=>E({},h,fw(Y,A),{className:he(Y==null?void 0:Y.className,m==null?void 0:m.backdrop)})},onTransitionEnter:()=>z(!1),onTransitionExited:()=>z(!0),ref:n},M,V,{children:v}))}),zx=rJ;function oJ(e){return Je("MuiDialog",e)}const iJ=Xe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),O1=iJ,sJ=u.createContext({}),rL=sJ,lJ=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],aJ=oe(JF,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),cJ=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${ue(n)}`],paper:["paper",`paperScroll${ue(n)}`,`paperWidth${ue(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Me(s,oJ,t)},uJ=oe(zx,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),dJ=oe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ue(n.scroll)}`]]}})(({ownerState:e})=>E({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"}})),fJ=oe(bi,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ue(n.scroll)}`],t[`paperWidth${ue(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>E({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${O1.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}`,[`&.${O1.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,[`&.${O1.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),pJ=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiDialog"}),o=sr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:c,BackdropProps:d,children:p,className:h,disableEscapeKeyDown:m=!1,fullScreen:g=!1,fullWidth:y=!1,maxWidth:v="sm",onBackdropClick:S,onClose:w,open:C,PaperComponent:x=bi,PaperProps:P={},scroll:_="paper",TransitionComponent:k=XF,transitionDuration:I=i,TransitionProps:R}=r,L=ne(r,lJ),N=E({},r,{disableEscapeKeyDown:m,fullScreen:g,fullWidth:y,maxWidth:v,scroll:_}),O=cJ(N),D=u.useRef(),B=V=>{D.current=V.target===V.currentTarget},M=V=>{D.current&&(D.current=null,S&&S(V),w&&w(V,"backdropClick"))},F=on(a),z=u.useMemo(()=>({titleId:F}),[F]);return T.jsx(uJ,E({className:he(O.root,h),closeAfterTransition:!0,components:{Backdrop:aJ},componentsProps:{backdrop:E({transitionDuration:I,as:c},d)},disableEscapeKeyDown:m,onClose:w,open:C,ref:n,onClick:M,ownerState:N},L,{children:T.jsx(k,E({appear:!0,in:C,timeout:I,role:"presentation"},R,{children:T.jsx(dJ,{className:he(O.container),onMouseDown:B,ownerState:N,children:T.jsx(fJ,E({as:x,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":F},P,{className:he(O.paper,P.className),ownerState:N,children:T.jsx(rL.Provider,{value:z,children:p})}))})}))}))}),hJ=pJ;function mJ(e){return Je("MuiDialogContent",e)}Xe("MuiDialogContent",["root","dividers"]);function gJ(e){return Je("MuiDialogTitle",e)}const vJ=Xe("MuiDialogTitle",["root"]),yJ=vJ,bJ=["className","dividers"],wJ=e=>{const{classes:t,dividers:n}=e;return Me({root:["root",n&&"dividers"]},mJ,t)},CJ=oe("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>E({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}`}:{[`.${yJ.root} + &`]:{paddingTop:0}})),xJ=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=ne(r,bJ),a=E({},r,{dividers:i}),c=wJ(a);return T.jsx(CJ,E({className:he(c.root,o),ownerState:a,ref:n},s))}),SJ=xJ,EJ=["className","id"],PJ=e=>{const{classes:t}=e;return Me({root:["root"]},gJ,t)},IJ=oe(Mr,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),kJ=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=ne(r,EJ),a=r,c=PJ(a),{titleId:d=i}=u.useContext(rL);return T.jsx(IJ,E({component:"h2",className:he(c.root,o),ownerState:a,ref:n,variant:"h6",id:i!=null?i:d},s))}),_J=kJ;function $J(e){return Je("MuiDivider",e)}const RJ=Xe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),u$=RJ,MJ=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],TJ=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:s,textAlign:a,variant:c}=e;return Me({root:["root",t&&"absolute",c,i&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},$J,r)},OJ=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})=>E({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)`:ut(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({theme:e,ownerState:t})=>E({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}}),({theme:e,ownerState:t})=>E({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,transform:"translateX(0%)"}}),({ownerState:e})=>E({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),FJ=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})=>E({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)`})),LJ=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:s,component:a=i?"div":"hr",flexItem:c=!1,light:d=!1,orientation:p="horizontal",role:h=a!=="hr"?"separator":void 0,textAlign:m="center",variant:g="fullWidth"}=r,y=ne(r,MJ),v=E({},r,{absolute:o,component:a,flexItem:c,light:d,orientation:p,role:h,textAlign:m,variant:g}),S=TJ(v);return T.jsx(OJ,E({as:a,className:he(S.root,s),role:h,ref:n,ownerState:v},y,{children:i?T.jsx(FJ,{className:S.wrapper,ownerState:v,children:i}):null}))}),AJ=LJ,NJ=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function DJ(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Oo(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const d=i.getComputedStyle(t);s=d.getPropertyValue("-webkit-transform")||d.getPropertyValue("transform")}let a=0,c=0;if(s&&s!=="none"&&typeof s=="string"){const d=s.split("(")[1].split(")")[0].split(",");a=parseInt(d[4],10),c=parseInt(d[5],10)}return e==="left"?o?`translateX(${o.right+a-r.left}px)`:`translateX(${i.innerWidth+a-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?o?`translateY(${o.bottom+c-r.top}px)`:`translateY(${i.innerHeight+c-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-c}px)`:`translateY(-${r.top+r.height-c}px)`}function BJ(e){return typeof e=="function"?e():e}function tm(e,t,n){const r=BJ(n),o=DJ(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const zJ=u.forwardRef(function(t,n){const r=sr(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:c,container:d,direction:p="down",easing:h=o,in:m,onEnter:g,onEntered:y,onEntering:v,onExit:S,onExited:w,onExiting:C,style:x,timeout:P=i,TransitionComponent:_=Gv}=t,k=ne(t,NJ),I=u.useRef(null),R=Vt(c.ref,I,n),L=A=>H=>{A&&(H===void 0?A(I.current):A(I.current,H))},N=L((A,H)=>{tm(p,A,d),Fx(A),g&&g(A,H)}),O=L((A,H)=>{const W=Kl({timeout:P,style:x,easing:h},{mode:"enter"});A.style.webkitTransition=r.transitions.create("-webkit-transform",E({},W)),A.style.transition=r.transitions.create("transform",E({},W)),A.style.webkitTransform="none",A.style.transform="none",v&&v(A,H)}),D=L(y),B=L(C),M=L(A=>{const H=Kl({timeout:P,style:x,easing:h},{mode:"exit"});A.style.webkitTransition=r.transitions.create("-webkit-transform",H),A.style.transition=r.transitions.create("transform",H),tm(p,A,d),S&&S(A)}),F=L(A=>{A.style.webkitTransition="",A.style.transition="",w&&w(A)}),z=A=>{s&&s(I.current,A)},V=u.useCallback(()=>{I.current&&tm(p,I.current,d)},[p,d]);return u.useEffect(()=>{if(m||p==="down"||p==="right")return;const A=Ws(()=>{I.current&&tm(p,I.current,d)}),H=Oo(I.current);return H.addEventListener("resize",A),()=>{A.clear(),H.removeEventListener("resize",A)}},[p,m,d]),u.useEffect(()=>{m||V()},[m,V]),T.jsx(_,E({nodeRef:I,onEnter:N,onEntered:D,onEntering:O,onExit:M,onExited:F,onExiting:B,addEndListener:z,appear:a,in:m,timeout:P},k,{children:(A,H)=>u.cloneElement(c,E({ref:R,style:E({visibility:A==="exited"&&!m?"hidden":void 0},x,c.props.style)},H))}))}),jJ=zJ;function HJ(e){return Je("MuiDrawer",e)}Xe("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const VJ=["BackdropProps"],UJ=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],oL=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},WJ=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ue(n)}`,r!=="temporary"&&`paperAnchorDocked${ue(n)}`]};return Me(o,HJ,t)},GJ=oe(zx,{name:"MuiDrawer",slot:"Root",overridesResolver:oL})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),d$=oe("div",{shouldForwardProp:zo,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:oL})({flex:"0 0 auto"}),KJ=oe(bi,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ue(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ue(n.anchor)}`]]}})(({theme:e,ownerState:t})=>E({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}`})),iL={left:"right",right:"left",top:"down",bottom:"up"};function qJ(e){return["left","right"].indexOf(e)!==-1}function YJ(e,t){return e.direction==="rtl"&&qJ(t)?iL[t]:t}const QJ=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiDrawer"}),o=sr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:a,children:c,className:d,elevation:p=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:m}={},onClose:g,open:y=!1,PaperProps:v={},SlideProps:S,TransitionComponent:w=jJ,transitionDuration:C=i,variant:x="temporary"}=r,P=ne(r.ModalProps,VJ),_=ne(r,UJ),k=u.useRef(!1);u.useEffect(()=>{k.current=!0},[]);const I=YJ(o,s),L=E({},r,{anchor:s,elevation:p,open:y,variant:x},_),N=WJ(L),O=T.jsx(KJ,E({elevation:x==="temporary"?p:0,square:!0},v,{className:he(N.paper,v.className),ownerState:L,children:c}));if(x==="permanent")return T.jsx(d$,E({className:he(N.root,N.docked,d),ownerState:L,ref:n},_,{children:O}));const D=T.jsx(w,E({in:y,direction:iL[I],timeout:C,appear:k.current},S,{children:O}));return x==="persistent"?T.jsx(d$,E({className:he(N.root,N.docked,d),ownerState:L,ref:n},_,{children:D})):T.jsx(GJ,E({BackdropProps:E({},a,m,{transitionDuration:C}),className:he(N.root,N.modal,d),open:y,ownerState:L,onClose:g,hideBackdrop:h,ref:n},_,P,{children:D}))}),XJ=QJ,JJ=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],ZJ=e=>{const{classes:t,disableUnderline:n}=e,o=Me({root:["root",!n&&"underline"],input:["input"]},IQ,t);return E({},t,o)},eZ=oe(Xv,{shouldForwardProp:e=>zo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Yv(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return E({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${So.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${So.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${So.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${So.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(.${So.disabled}, .${So.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${So.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&E({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),tZ=oe(Jv,{name:"MuiFilledInput",slot:"Input",overridesResolver:Qv})(({theme:e,ownerState:t})=>E({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),sL=u.forwardRef(function(t,n){var r,o,i,s;const a=tt({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:d,fullWidth:p=!1,inputComponent:h="input",multiline:m=!1,slotProps:g,slots:y={},type:v="text"}=a,S=ne(a,JJ),w=E({},a,{fullWidth:p,inputComponent:h,multiline:m,type:v}),C=ZJ(a),x={root:{ownerState:w},input:{ownerState:w}},P=(g!=null?g:d)?ci(g!=null?g:d,x):x,_=(r=(o=y.root)!=null?o:c.Root)!=null?r:eZ,k=(i=(s=y.input)!=null?s:c.Input)!=null?i:tZ;return T.jsx(ed,E({slots:{root:_,input:k},componentsProps:P,fullWidth:p,inputComponent:h,multiline:m,ref:n,type:v},S,{classes:C}))});sL.muiName="Input";const lL=sL;function nZ(e){return Je("MuiFormControl",e)}Xe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const rZ=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],oZ=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ue(n)}`,r&&"fullWidth"]};return Me(o,nZ,t)},iZ=oe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>E({},t.root,t[`margin${ue(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>E({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%"})),sZ=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:c=!1,error:d=!1,focused:p,fullWidth:h=!1,hiddenLabel:m=!1,margin:g="none",required:y=!1,size:v="medium",variant:S="outlined"}=r,w=ne(r,rZ),C=E({},r,{color:s,component:a,disabled:c,error:d,fullWidth:h,hiddenLabel:m,margin:g,required:y,size:v,variant:S}),x=oZ(C),[P,_]=u.useState(()=>{let B=!1;return o&&u.Children.forEach(o,M=>{if(!bf(M,["Input","Select"]))return;const F=bf(M,["Select"])?M.props.input:M;F&&mQ(F.props)&&(B=!0)}),B}),[k,I]=u.useState(()=>{let B=!1;return o&&u.Children.forEach(o,M=>{bf(M,["Input","Select"])&&Ax(M.props,!0)&&(B=!0)}),B}),[R,L]=u.useState(!1);c&&R&&L(!1);const N=p!==void 0&&!c?p:R;let O;const D=u.useMemo(()=>({adornedStart:P,setAdornedStart:_,color:s,disabled:c,error:d,filled:k,focused:N,fullWidth:h,hiddenLabel:m,size:v,onBlur:()=>{L(!1)},onEmpty:()=>{I(!1)},onFilled:()=>{I(!0)},onFocus:()=>{L(!0)},registerEffect:O,required:y,variant:S}),[P,s,c,d,k,N,h,m,O,y,v,S]);return T.jsx(qv.Provider,{value:D,children:T.jsx(iZ,E({as:a,ownerState:C,className:he(x.root,i),ref:n},w,{children:o}))})}),aL=sZ;function lZ(e){return Je("MuiFormControlLabel",e)}const aZ=Xe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),sf=aZ,cZ=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],uZ=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${ue(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Me(s,lZ,t)},dZ=oe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${sf.label}`]:t.label},t.root,t[`labelPlacement${ue(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>E({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${sf.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},{[`& .${sf.label}`]:{[`&.${sf.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),fZ=oe("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${sf.error}`]:{color:(e.vars||e).palette.error.main}})),pZ=u.forwardRef(function(t,n){var r,o;const i=tt({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:c,disabled:d,disableTypography:p,label:h,labelPlacement:m="end",required:g,slotProps:y={}}=i,v=ne(i,cZ),S=Js(),w=(r=d!=null?d:c.props.disabled)!=null?r:S==null?void 0:S.disabled,C=g!=null?g:c.props.required,x={disabled:w,required:C};["checked","name","onChange","value","inputRef"].forEach(L=>{typeof c.props[L]=="undefined"&&typeof i[L]!="undefined"&&(x[L]=i[L])});const P=ic({props:i,muiFormControl:S,states:["error"]}),_=E({},i,{disabled:w,labelPlacement:m,required:C,error:P.error}),k=uZ(_),I=(o=y.typography)!=null?o:a.typography;let R=h;return R!=null&&R.type!==Mr&&!p&&(R=T.jsx(Mr,E({component:"span"},I,{className:he(k.label,I==null?void 0:I.className),children:R}))),T.jsxs(dZ,E({className:he(k.root,s),ownerState:_,ref:n},v,{children:[u.cloneElement(c,x),R,C&&T.jsxs(fZ,{ownerState:_,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]}))}),cL=pZ;function hZ(e){return Je("MuiFormHelperText",e)}const mZ=Xe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),f$=mZ;var p$;const gZ=["children","className","component","disabled","error","filled","focused","margin","required","variant"],vZ=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:c}=e,d={root:["root",o&&"disabled",i&&"error",r&&`size${ue(r)}`,n&&"contained",a&&"focused",s&&"filled",c&&"required"]};return Me(d,hZ,t)},yZ=oe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ue(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>E({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${f$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${f$.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),bZ=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=ne(r,gZ),c=Js(),d=ic({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),p=E({},r,{component:s,contained:d.variant==="filled"||d.variant==="outlined",variant:d.variant,size:d.size,disabled:d.disabled,error:d.error,filled:d.filled,focused:d.focused,required:d.required}),h=vZ(p);return T.jsx(yZ,E({as:s,ownerState:p,className:he(h.root,i),ref:n},a,{children:o===" "?p$||(p$=T.jsx("span",{className:"notranslate",children:""})):o}))}),_p=bZ;function wZ(e){return Je("MuiFormLabel",e)}const CZ=Xe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Pf=CZ,xZ=["children","className","color","component","disabled","error","filled","focused","required"],SZ=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,c={root:["root",`color${ue(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return Me(c,wZ,t)},EZ=oe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>E({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>E({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Pf.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Pf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Pf.error}`]:{color:(e.vars||e).palette.error.main}})),PZ=oe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Pf.error}`]:{color:(e.vars||e).palette.error.main}})),IZ=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=ne(r,xZ),c=Js(),d=ic({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),p=E({},r,{color:d.color||"primary",component:s,disabled:d.disabled,error:d.error,filled:d.filled,focused:d.focused,required:d.required}),h=SZ(p);return T.jsxs(EZ,E({as:s,ownerState:p,className:he(h.root,i),ref:n},a,{children:[o,d.required&&T.jsxs(PZ,{ownerState:p,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),uL=IZ,kZ=u.createContext(),h$=kZ;function _Z(e){return Je("MuiGrid",e)}const $Z=[0,1,2,3,4,5,6,7,8,9,10],RZ=["column-reverse","column","row-reverse","row"],MZ=["nowrap","wrap-reverse","wrap"],Vd=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],ep=Xe("MuiGrid",["root","container","item","zeroMinWidth",...$Z.map(e=>`spacing-xs-${e}`),...RZ.map(e=>`direction-xs-${e}`),...MZ.map(e=>`wrap-xs-${e}`),...Vd.map(e=>`grid-xs-${e}`),...Vd.map(e=>`grid-sm-${e}`),...Vd.map(e=>`grid-md-${e}`),...Vd.map(e=>`grid-lg-${e}`),...Vd.map(e=>`grid-xl-${e}`)]),TZ=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function gu(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function OZ({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=Fv({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof s=="object"?s[o]:s;if(a==null)return r;const c=`${Math.round(n/a*1e8)/1e6}%`;let d={};if(t.container&&t.item&&t.columnSpacing!==0){const p=e.spacing(t.columnSpacing);if(p!=="0px"){const h=`calc(${c} + ${gu(p)})`;d={flexBasis:h,maxWidth:h}}}i=E({flexBasis:c,flexGrow:0,maxWidth:c},d)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function FZ({theme:e,ownerState:t}){const n=Fv({values:t.direction,breakpoints:e.breakpoints.values});return hi({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${ep.item}`]={maxWidth:"none"}),o})}function dL({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,i)=>e[o]-e[i]);return r.slice(0,r.indexOf(n))}function LZ({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=Fv({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=dL({breakpoints:e.breakpoints.values,values:i})),o=hi({theme:e},i,(a,c)=>{var d;const p=e.spacing(a);return p!=="0px"?{marginTop:`-${gu(p)}`,[`& > .${ep.item}`]:{paddingTop:gu(p)}}:(d=s)!=null&&d.includes(c)?{}:{marginTop:0,[`& > .${ep.item}`]:{paddingTop:0}}})}return o}function AZ({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=Fv({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=dL({breakpoints:e.breakpoints.values,values:i})),o=hi({theme:e},i,(a,c)=>{var d;const p=e.spacing(a);return p!=="0px"?{width:`calc(100% + ${gu(p)})`,marginLeft:`-${gu(p)}`,[`& > .${ep.item}`]:{paddingLeft:gu(p)}}:(d=s)!=null&&d.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${ep.item}`]:{paddingLeft:0}}})}return o}function NZ(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const i=e[o];Number(i)>0&&r.push(n[`spacing-${o}-${String(i)}`])}),r}const DZ=oe("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:s,wrap:a,zeroMinWidth:c,breakpoints:d}=n;let p=[];r&&(p=NZ(s,d,t));const h=[];return d.forEach(m=>{const g=n[m];g&&h.push(t[`grid-${m}-${String(g)}`])}),[t.root,r&&t.container,i&&t.item,c&&t.zeroMinWidth,...p,o!=="row"&&t[`direction-xs-${String(o)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...h]}})(({ownerState:e})=>E({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}),FZ,LZ,AZ,OZ);function BZ(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const i=`spacing-${r}-${String(o)}`;n.push(i)}}),n}const zZ=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:s,zeroMinWidth:a,breakpoints:c}=e;let d=[];n&&(d=BZ(i,c));const p=[];c.forEach(m=>{const g=e[m];g&&p.push(`grid-${m}-${String(g)}`)});const h={root:["root",n&&"container",o&&"item",a&&"zeroMinWidth",...d,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...p]};return Me(h,_Z,t)},jZ=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiGrid"}),{breakpoints:o}=sr(),i=Cx(r),{className:s,columns:a,columnSpacing:c,component:d="div",container:p=!1,direction:h="row",item:m=!1,rowSpacing:g,spacing:y=0,wrap:v="wrap",zeroMinWidth:S=!1}=i,w=ne(i,TZ),C=g||y,x=c||y,P=u.useContext(h$),_=p?a||12:P,k={},I=E({},w);o.keys.forEach(N=>{w[N]!=null&&(k[N]=w[N],delete I[N])});const R=E({},i,{columns:_,container:p,direction:h,item:m,rowSpacing:C,columnSpacing:x,wrap:v,zeroMinWidth:S,spacing:y},k,{breakpoints:o.keys}),L=zZ(R);return T.jsx(h$.Provider,{value:_,children:T.jsx(DZ,E({ownerState:R,className:he(L.root,s),as:d,ref:n},I))})}),Oi=jZ,HZ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ww(e){return`scale(${e}, ${Gi(e,2)})`}const VZ={entering:{opacity:1,transform:ww(1)},entered:{opacity:1,transform:"none"}},F1=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),fL=u.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:c,onEntered:d,onEntering:p,onExit:h,onExited:m,onExiting:g,style:y,timeout:v="auto",TransitionComponent:S=Gv}=t,w=ne(t,HZ),C=u.useRef(),x=u.useRef(),P=sr(),_=u.useRef(null),k=Vt(_,i.ref,n),I=F=>z=>{if(F){const V=_.current;z===void 0?F(V):F(V,z)}},R=I(p),L=I((F,z)=>{Fx(F);const{duration:V,delay:A,easing:H}=Kl({style:y,timeout:v,easing:s},{mode:"enter"});let W;v==="auto"?(W=P.transitions.getAutoHeightDuration(F.clientHeight),x.current=W):W=V,F.style.transition=[P.transitions.create("opacity",{duration:W,delay:A}),P.transitions.create("transform",{duration:F1?W:W*.666,delay:A,easing:H})].join(","),c&&c(F,z)}),N=I(d),O=I(g),D=I(F=>{const{duration:z,delay:V,easing:A}=Kl({style:y,timeout:v,easing:s},{mode:"exit"});let H;v==="auto"?(H=P.transitions.getAutoHeightDuration(F.clientHeight),x.current=H):H=z,F.style.transition=[P.transitions.create("opacity",{duration:H,delay:V}),P.transitions.create("transform",{duration:F1?H:H*.666,delay:F1?V:V||H*.333,easing:A})].join(","),F.style.opacity=0,F.style.transform=ww(.75),h&&h(F)}),B=I(m),M=F=>{v==="auto"&&(C.current=setTimeout(F,x.current||0)),r&&r(_.current,F)};return u.useEffect(()=>()=>{clearTimeout(C.current)},[]),T.jsx(S,E({appear:o,in:a,nodeRef:_,onEnter:L,onEntered:N,onEntering:R,onExit:D,onExited:B,onExiting:O,addEndListener:M,timeout:v==="auto"?null:v},w,{children:(F,z)=>u.cloneElement(i,E({style:E({opacity:0,transform:ww(.75),visibility:F==="exited"&&!a?"hidden":void 0},VZ[F],y,i.props.style),ref:k},z))}))});fL.muiSupportAuto=!0;const Cg=fL;function UZ(e,t,n,r,o){const[i,s]=u.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return ln(()=>{let a=!0;if(!n)return;const c=n(e),d=()=>{a&&s(c.matches)};return d(),c.addListener(d),()=>{a=!1,c.removeListener(d)}},[e,n]),i}const pL=La["useSyncExternalStore"];function WZ(e,t,n,r,o){const i=u.useCallback(()=>t,[t]),s=u.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:p}=r(e);return()=>p}return i},[i,e,r,o,n]),[a,c]=u.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const p=n(e);return[()=>p.matches,h=>(p.addListener(h),()=>{p.removeListener(h)})]},[i,n,e]);return pL(c,a,s)}function hL(e,t={}){const n=Hv(),r=typeof window!="undefined"&&typeof window.matchMedia!="undefined",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a=!1}=_F({name:"MuiUseMediaQuery",props:t,theme:n});let c=typeof e=="function"?e(n):e;return c=c.replace(/^@media( ?)/m,""),(pL!==void 0?WZ:UZ)(c,o,i,s,a)}const GZ=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],KZ=e=>{const{classes:t,disableUnderline:n}=e,o=Me({root:["root",!n&&"underline"],input:["input"]},xQ,t);return E({},t,o)},qZ=oe(Xv,{shouldForwardProp:e=>zo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Yv(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})`),E({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"},[`&.${El.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${El.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(.${El.disabled}, .${El.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${El.disabled}:before`]:{borderBottomStyle:"dotted"}})}),YZ=oe(Jv,{name:"MuiInput",slot:"Input",overridesResolver:Qv})({}),mL=u.forwardRef(function(t,n){var r,o,i,s;const a=tt({props:t,name:"MuiInput"}),{disableUnderline:c,components:d={},componentsProps:p,fullWidth:h=!1,inputComponent:m="input",multiline:g=!1,slotProps:y,slots:v={},type:S="text"}=a,w=ne(a,GZ),C=KZ(a),P={root:{ownerState:{disableUnderline:c}}},_=(y!=null?y:p)?ci(y!=null?y:p,P):P,k=(r=(o=v.root)!=null?o:d.Root)!=null?r:qZ,I=(i=(s=v.input)!=null?s:d.Input)!=null?i:YZ;return T.jsx(ed,E({slots:{root:k,input:I},slotProps:_,fullWidth:h,inputComponent:m,multiline:g,ref:n,type:S},w,{classes:C}))});mL.muiName="Input";const gL=mL;function QZ(e){return Je("MuiInputAdornment",e)}const XZ=Xe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),m$=XZ;var g$;const JZ=["children","className","component","disablePointerEvents","disableTypography","position","variant"],ZZ=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ue(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},eee=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${ue(o)}`,s,r&&"hiddenLabel",i&&`size${ue(i)}`]};return Me(a,QZ,t)},tee=oe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:ZZ})(({theme:e,ownerState:t})=>E({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${m$.positionStart}&:not(.${m$.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),nee=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:c=!1,position:d,variant:p}=r,h=ne(r,JZ),m=Js()||{};let g=p;p&&m.variant,m&&!g&&(g=m.variant);const y=E({},r,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:a,position:d,variant:g}),v=eee(y);return T.jsx(qv.Provider,{value:null,children:T.jsx(tee,E({as:s,ownerState:y,className:he(v.root,i),ref:n},h,{children:typeof o=="string"&&!c?T.jsx(Mr,{color:"text.secondary",children:o}):T.jsxs(u.Fragment,{children:[d==="start"?g$||(g$=T.jsx("span",{className:"notranslate",children:""})):null,o]})}))})}),qa=nee;function ree(e){return Je("MuiInputLabel",e)}Xe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const oee=["disableAnimation","margin","shrink","variant","className"],iee=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,d=Me({root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r==="small"&&"sizeSmall",s],asterisk:[a&&"asterisk"]},ree,t);return E({},t,d)},see=oe(uL,{shouldForwardProp:e=>zo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Pf.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>E({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"&&E({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&&E({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"&&E({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)"}))),lee=u.forwardRef(function(t,n){const r=tt({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,a=ne(r,oee),c=Js();let d=i;typeof d=="undefined"&&c&&(d=c.filled||c.focused||c.adornedStart);const p=ic({props:r,muiFormControl:c,states:["size","variant","required"]}),h=E({},r,{disableAnimation:o,formControl:c,shrink:d,size:p.size,variant:p.variant,required:p.required}),m=iee(h);return T.jsx(see,E({"data-shrink":d,ownerState:h,ref:n,className:he(m.root,s)},a,{classes:m}))}),vL=lee;function aee(e){return Je("MuiLinearProgress",e)}Xe("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const cee=["className","color","value","valueBuffer","variant"];let td=e=>e,v$,y$,b$,w$,C$,x$;const Cw=4,uee=vs(v$||(v$=td`
|
|
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
|
-
`)),dee=vs(y$||(y$=td`
|
|
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
|
-
`)),fee=vs(b$||(b$=td`
|
|
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
|
-
`)),pee=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${ue(r)}`,n],dashed:["dashed",`dashedColor${ue(r)}`],bar1:["bar",`barColor${ue(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${ue(r)}`,n==="buffer"&&`color${ue(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Me(o,aee,t)},jx=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?Ua(e.palette[t].main,.62):Va(e.palette[t].main,.5),hee=oe("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ue(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>E({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:jx(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)"})),mee=oe("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${ue(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=jx(t,e.color);return E({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"})},Gl(w$||(w$=td`
|
|
235
|
-
animation: ${0} 3s infinite linear;
|
|
236
|
-
`),fee)),gee=oe("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${ue(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>E({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 .${Cw}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${Cw}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Gl(C$||(C$=td`
|
|
237
|
-
width: auto;
|
|
238
|
-
animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
239
|
-
`),uee)),vee=oe("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${ue(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>E({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:jx(t,e.color),transition:`transform .${Cw}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Gl(x$||(x$=td`
|
|
240
|
-
width: auto;
|
|
241
|
-
animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
242
|
-
`),dee)),yee=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:s,valueBuffer:a,variant:c="indeterminate"}=r,d=ne(r,cee),p=E({},r,{color:i,variant:c}),h=pee(p),m=sr(),g={},y={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&s!==void 0){g["aria-valuenow"]=Math.round(s),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let v=s-100;m.direction==="rtl"&&(v=-v),y.bar1.transform=`translateX(${v}%)`}if(c==="buffer"&&a!==void 0){let v=(a||0)-100;m.direction==="rtl"&&(v=-v),y.bar2.transform=`translateX(${v}%)`}return T.jsxs(hee,E({className:he(h.root,o),ownerState:p,role:"progressbar"},g,{ref:n},d,{children:[c==="buffer"?T.jsx(mee,{className:h.dashed,ownerState:p}):null,T.jsx(gee,{className:h.bar1,ownerState:p,style:y.bar1}),c==="determinate"?null:T.jsx(vee,{className:h.bar2,ownerState:p,style:y.bar2})]}))}),yL=yee;function bee(e){return Je("MuiLink",e)}const wee=Xe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Cee=wee,bL={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},xee=e=>bL[e]||e,See=({theme:e,ownerState:t})=>{const n=xee(t.color),r=Ru(e,`palette.${n}`,!1)||t.color,o=Ru(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:ut(r,.4)},Eee=See,Pee=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Iee=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${ue(o)}`,n==="button"&&"button",r&&"focusVisible"]};return Me(i,bee,t)},kee=oe(Mr,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ue(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>E({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&E({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:Eee({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"},[`&.${Cee.focusVisible}`]:{outline:"auto"}})),_ee=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:s="a",onBlur:a,onFocus:c,TypographyClasses:d,underline:p="always",variant:h="inherit",sx:m}=r,g=ne(r,Pee),{isFocusVisibleRef:y,onBlur:v,onFocus:S,ref:w}=bv(),[C,x]=u.useState(!1),P=Vt(n,w),_=L=>{v(L),y.current===!1&&x(!1),a&&a(L)},k=L=>{S(L),y.current===!0&&x(!0),c&&c(L)},I=E({},r,{color:i,component:s,focusVisible:C,underline:p,variant:h}),R=Iee(I);return T.jsx(kee,E({color:i,className:he(R.root,o),classes:d,component:s,onBlur:_,onFocus:k,ref:P,ownerState:I,variant:h,sx:[...Object.keys(bL).includes(i)?[]:[{color:i}],...Array.isArray(m)?m:[m]]},g))}),Ro=_ee,$ee=u.createContext({}),Ni=$ee;function Ree(e){return Je("MuiList",e)}Xe("MuiList",["root","padding","dense","subheader"]);const Mee=["children","className","component","dense","disablePadding","subheader"],Tee=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Me({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Ree,t)},Oee=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})=>E({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Fee=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:c=!1,subheader:d}=r,p=ne(r,Mee),h=u.useMemo(()=>({dense:a}),[a]),m=E({},r,{component:s,dense:a,disablePadding:c}),g=Tee(m);return T.jsx(Ni.Provider,{value:h,children:T.jsxs(Oee,E({as:s,className:he(g.root,i),ref:n,ownerState:m},p,{children:[d,o]}))})}),ey=Fee;function Lee(e){return Je("MuiListItem",e)}const Aee=Xe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Bc=Aee;function Nee(e){return Je("MuiListItemButton",e)}const Dee=Xe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),zc=Dee,Bee=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],zee=(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]},jee=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:s,selected:a}=e,d=Me({root:["root",r&&"dense",!i&&"gutters",s&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},Nee,n);return E({},n,d)},Hee=oe(hs,{shouldForwardProp:e=>zo(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:zee})(({theme:e,ownerState:t})=>E({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"}},[`&.${zc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ut(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${zc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ut(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${zc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ut(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})`:ut(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${zc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${zc.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})),Vee=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:s="div",children:a,dense:c=!1,disableGutters:d=!1,divider:p=!1,focusVisibleClassName:h,selected:m=!1,className:g}=r,y=ne(r,Bee),v=u.useContext(Ni),S=u.useMemo(()=>({dense:c||v.dense||!1,alignItems:o,disableGutters:d}),[o,v.dense,c,d]),w=u.useRef(null);ln(()=>{i&&w.current&&w.current.focus()},[i]);const C=E({},r,{alignItems:o,dense:S.dense,disableGutters:d,divider:p,selected:m}),x=jee(C),P=Vt(w,n);return T.jsx(Ni.Provider,{value:S,children:T.jsx(Hee,E({ref:P,href:y.href||y.to,component:(y.href||y.to)&&s==="div"?"button":s,focusVisibleClassName:he(x.focusVisible,h),ownerState:C,className:he(x.root,g)},y,{classes:x,children:a}))})}),Uee=Vee;function Wee(e){return Je("MuiListItemSecondaryAction",e)}Xe("MuiListItemSecondaryAction",["root","disableGutters"]);const Gee=["className"],Kee=e=>{const{disableGutters:t,classes:n}=e;return Me({root:["root",t&&"disableGutters"]},Wee,n)},qee=oe("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>E({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),wL=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=ne(r,Gee),s=u.useContext(Ni),a=E({},r,{disableGutters:s.disableGutters}),c=Kee(a);return T.jsx(qee,E({className:he(c.root,o),ownerState:a,ref:n},i))});wL.muiName="ListItemSecondaryAction";const Yee=wL,Qee=["className"],Xee=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Jee=(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]},Zee=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:s,disablePadding:a,divider:c,hasSecondaryAction:d,selected:p}=e;return Me({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",c&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",d&&"secondaryAction",p&&"selected"],container:["container"]},Lee,r)},ete=oe("div",{name:"MuiListItem",slot:"Root",overridesResolver:Jee})(({theme:e,ownerState:t})=>E({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&E({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${zc.root}`]:{paddingRight:48}},{[`&.${Bc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Bc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ut(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Bc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ut(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Bc.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"}},[`&.${Bc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ut(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})`:ut(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),tte=oe("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),nte=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:s=!1,children:a,className:c,component:d,components:p={},componentsProps:h={},ContainerComponent:m="li",ContainerProps:{className:g}={},dense:y=!1,disabled:v=!1,disableGutters:S=!1,disablePadding:w=!1,divider:C=!1,focusVisibleClassName:x,secondaryAction:P,selected:_=!1,slotProps:k={},slots:I={}}=r,R=ne(r.ContainerProps,Qee),L=ne(r,Xee),N=u.useContext(Ni),O=u.useMemo(()=>({dense:y||N.dense||!1,alignItems:o,disableGutters:S}),[o,N.dense,y,S]),D=u.useRef(null);ln(()=>{i&&D.current&&D.current.focus()},[i]);const B=u.Children.toArray(a),M=B.length&&bf(B[B.length-1],["ListItemSecondaryAction"]),F=E({},r,{alignItems:o,autoFocus:i,button:s,dense:O.dense,disabled:v,disableGutters:S,disablePadding:w,divider:C,hasSecondaryAction:M,selected:_}),z=Zee(F),V=Vt(D,n),A=I.root||p.Root||ete,H=k.root||h.root||{},W=E({className:he(z.root,H.className,c),disabled:v},L);let K=d||"li";return s&&(W.component=d||"div",W.focusVisibleClassName=he(Bc.focusVisible,x),K=hs),M?(K=!W.component&&!d?"div":K,m==="li"&&(K==="li"?K="div":W.component==="li"&&(W.component="div")),T.jsx(Ni.Provider,{value:O,children:T.jsxs(tte,E({as:m,className:he(z.container,g),ref:V,ownerState:F},R,{children:[T.jsx(A,E({},H,!Wa(A)&&{as:K,ownerState:E({},F,H.ownerState)},W,{children:B})),B.pop()]}))})):T.jsx(Ni.Provider,{value:O,children:T.jsxs(A,E({},H,{as:K,ref:V},!Wa(A)&&{ownerState:E({},F,H.ownerState)},W,{children:[B,P&&T.jsx(Yee,{children:P})]}))})}),CL=nte;function rte(e){return Je("MuiListItemIcon",e)}const ote=Xe("MuiListItemIcon",["root","alignItemsFlexStart"]),S$=ote,ite=["className"],ste=e=>{const{alignItems:t,classes:n}=e;return Me({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},rte,n)},lte=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})=>E({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),ate=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=ne(r,ite),s=u.useContext(Ni),a=E({},r,{alignItems:s.alignItems}),c=ste(a);return T.jsx(lte,E({className:he(c.root,o),ownerState:a,ref:n},i))}),Bs=ate;function cte(e){return Je("MuiListItemText",e)}const ute=Xe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),xg=ute,dte=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],fte=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Me({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},cte,t)},pte=oe("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${xg.primary}`]:t.primary},{[`& .${xg.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>E({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),hte=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:a=!1,primary:c,primaryTypographyProps:d,secondary:p,secondaryTypographyProps:h}=r,m=ne(r,dte),{dense:g}=u.useContext(Ni);let y=c!=null?c:o,v=p;const S=E({},r,{disableTypography:s,inset:a,primary:!!y,secondary:!!v,dense:g}),w=fte(S);return y!=null&&y.type!==Mr&&!s&&(y=T.jsx(Mr,E({variant:g?"body2":"body1",className:w.primary,component:d!=null&&d.variant?void 0:"span",display:"block"},d,{children:y}))),v!=null&&v.type!==Mr&&!s&&(v=T.jsx(Mr,E({variant:"body2",className:w.secondary,color:"text.secondary",display:"block"},h,{children:v}))),T.jsxs(pte,E({className:he(w.root,i),ownerState:S,ref:n},m,{children:[y,v]}))}),as=hte,mte=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function L1(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function E$(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function xL(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Ud(e,t,n,r,o,i){let s=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const c=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!xL(a,i)||c)a=o(e,a,n);else return a.focus(),!0}return!1}const gte=u.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:p,variant:h="selectedMenu"}=t,m=ne(t,mte),g=u.useRef(null),y=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ln(()=>{o&&g.current.focus()},[o]),u.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,P)=>{const _=!g.current.style.width;if(x.clientHeight<g.current.clientHeight&&_){const k=`${tF(vn(x))}px`;g.current.style[P.direction==="rtl"?"paddingLeft":"paddingRight"]=k,g.current.style.width=`calc(100% + ${k})`}return g.current}}),[]);const v=x=>{const P=g.current,_=x.key,k=vn(P).activeElement;if(_==="ArrowDown")x.preventDefault(),Ud(P,k,d,c,L1);else if(_==="ArrowUp")x.preventDefault(),Ud(P,k,d,c,E$);else if(_==="Home")x.preventDefault(),Ud(P,null,d,c,L1);else if(_==="End")x.preventDefault(),Ud(P,null,d,c,E$);else if(_.length===1){const I=y.current,R=_.toLowerCase(),L=performance.now();I.keys.length>0&&(L-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&R!==I.keys[0]&&(I.repeating=!1)),I.lastTime=L,I.keys.push(R);const N=k&&!I.repeating&&xL(k,I);I.previousKeyMatched&&(N||Ud(P,k,!1,c,L1,I))?x.preventDefault():I.previousKeyMatched=!1}p&&p(x)},S=Vt(g,n);let w=-1;u.Children.forEach(s,(x,P)=>{u.isValidElement(x)&&(x.props.disabled||(h==="selectedMenu"&&x.props.selected||w===-1)&&(w=P),w===P&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(w+=1,w>=s.length&&(w=-1)))});const C=u.Children.map(s,(x,P)=>{if(P===w){const _={};return i&&(_.autoFocus=!0),x.props.tabIndex===void 0&&h==="selectedMenu"&&(_.tabIndex=0),u.cloneElement(x,_)}return x});return T.jsx(ey,E({role:"menu",ref:S,className:a,onKeyDown:v,tabIndex:o?0:-1},m,{children:C}))}),ty=gte;function vte(e){return Je("MuiPopover",e)}Xe("MuiPopover",["root","paper"]);const yte=["onEntering"],bte=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function P$(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function I$(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function k$(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function A1(e){return typeof e=="function"?e():e}const wte=e=>{const{classes:t}=e;return Me({root:["root"],paper:["paper"]},vte,t)},Cte=oe(zx,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xte=oe(bi,{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}),Ste=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:c="anchorEl",children:d,className:p,container:h,elevation:m=8,marginThreshold:g=16,open:y,PaperProps:v={},transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=Cg,transitionDuration:C="auto",TransitionProps:{onEntering:x}={}}=r,P=ne(r.TransitionProps,yte),_=ne(r,bte),k=u.useRef(),I=Vt(k,v.ref),R=E({},r,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:g,PaperProps:v,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:P}),L=wte(R),N=u.useCallback(()=>{if(c==="anchorPosition")return a;const W=A1(i),Y=(W&&W.nodeType===1?W:vn(k.current).body).getBoundingClientRect();return{top:Y.top+P$(Y,s.vertical),left:Y.left+I$(Y,s.horizontal)}},[i,s.horizontal,s.vertical,a,c]),O=u.useCallback(W=>({vertical:P$(W,S.vertical),horizontal:I$(W,S.horizontal)}),[S.horizontal,S.vertical]),D=u.useCallback(W=>{const K={width:W.offsetWidth,height:W.offsetHeight},Y=O(K);if(c==="none")return{top:null,left:null,transformOrigin:k$(Y)};const ie=N();let re=ie.top-Y.vertical,de=ie.left-Y.horizontal;const se=re+K.height,le=de+K.width,ke=Oo(A1(i)),ve=ke.innerHeight-g,Pe=ke.innerWidth-g;if(re<g){const ee=re-g;re-=ee,Y.vertical+=ee}else if(se>ve){const ee=se-ve;re-=ee,Y.vertical+=ee}if(de<g){const ee=de-g;de-=ee,Y.horizontal+=ee}else if(le>Pe){const ee=le-Pe;de-=ee,Y.horizontal+=ee}return{top:`${Math.round(re)}px`,left:`${Math.round(de)}px`,transformOrigin:k$(Y)}},[i,c,N,O,g]),[B,M]=u.useState(y),F=u.useCallback(()=>{const W=k.current;if(!W)return;const K=D(W);K.top!==null&&(W.style.top=K.top),K.left!==null&&(W.style.left=K.left),W.style.transformOrigin=K.transformOrigin,M(!0)},[D]),z=(W,K)=>{x&&x(W,K),F()},V=()=>{M(!1)};u.useEffect(()=>{y&&F()}),u.useImperativeHandle(o,()=>y?{updatePosition:()=>{F()}}:null,[y,F]),u.useEffect(()=>{if(!y)return;const W=Ws(()=>{F()}),K=Oo(i);return K.addEventListener("resize",W),()=>{W.clear(),K.removeEventListener("resize",W)}},[i,y,F]);let A=C;C==="auto"&&!w.muiSupportAuto&&(A=void 0);const H=h||(i?vn(A1(i)).body:void 0);return T.jsx(Cte,E({BackdropProps:{invisible:!0},className:he(L.root,p),container:H,open:y,ref:n,ownerState:R},_,{children:T.jsx(w,E({appear:!0,in:y,onEntering:z,onExited:V,timeout:A},P,{children:T.jsx(xte,E({elevation:m},v,{ref:I,className:he(L.paper,v.className)},B?void 0:{style:E({},v.style,{opacity:0})},{ownerState:R,children:d}))}))}))}),Ete=Ste;function Pte(e){return Je("MuiMenu",e)}Xe("MuiMenu",["root","paper","list"]);const Ite=["onEntering"],kte=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],_te={vertical:"top",horizontal:"right"},$te={vertical:"top",horizontal:"left"},Rte=e=>{const{classes:t}=e;return Me({root:["root"],paper:["paper"],list:["list"]},Pte,t)},Mte=oe(Ete,{shouldForwardProp:e=>zo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Tte=oe(bi,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ote=oe(ty,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Fte=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,disableAutoFocusItem:s=!1,MenuListProps:a={},onClose:c,open:d,PaperProps:p={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:g}={},variant:y="selectedMenu"}=r,v=ne(r.TransitionProps,Ite),S=ne(r,kte),w=sr(),C=w.direction==="rtl",x=E({},r,{autoFocus:o,disableAutoFocusItem:s,MenuListProps:a,onEntering:g,PaperProps:p,transitionDuration:m,TransitionProps:v,variant:y}),P=Rte(x),_=o&&!s&&d,k=u.useRef(null),I=(N,O)=>{k.current&&k.current.adjustStyleForScrollbar(N,w),g&&g(N,O)},R=N=>{N.key==="Tab"&&(N.preventDefault(),c&&c(N,"tabKeyDown"))};let L=-1;return u.Children.map(i,(N,O)=>{u.isValidElement(N)&&(N.props.disabled||(y==="selectedMenu"&&N.props.selected||L===-1)&&(L=O))}),T.jsx(Mte,E({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?_te:$te,PaperProps:E({as:Tte},p,{classes:E({},p.classes,{root:P.paper})}),className:P.root,open:d,ref:n,transitionDuration:m,TransitionProps:E({onEntering:I},v),ownerState:x},S,{classes:h,children:T.jsx(Ote,E({onKeyDown:R,actions:k,autoFocus:o&&(L===-1||s),autoFocusItem:_,variant:y},a,{className:he(P.list,a.className),children:i}))}))}),SL=Fte;function Lte(e){return Je("MuiMenuItem",e)}const Ate=Xe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Wd=Ate,Nte=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Dte=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Bte=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,c=Me({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Lte,s);return E({},s,c)},zte=oe(hs,{shouldForwardProp:e=>zo(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Dte})(({theme:e,ownerState:t})=>E({},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"}},[`&.${Wd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ut(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Wd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ut(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Wd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ut(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})`:ut(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Wd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Wd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${u$.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${u$.inset}`]:{marginLeft:52},[`& .${xg.root}`]:{marginTop:0,marginBottom:0},[`& .${xg.inset}`]:{paddingLeft:36},[`& .${S$.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&E({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${S$.root} svg`]:{fontSize:"1.25rem"}}))),jte=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:c=!1,focusVisibleClassName:d,role:p="menuitem",tabIndex:h,className:m}=r,g=ne(r,Nte),y=u.useContext(Ni),v=u.useMemo(()=>({dense:s||y.dense||!1,disableGutters:c}),[y.dense,s,c]),S=u.useRef(null);ln(()=>{o&&S.current&&S.current.focus()},[o]);const w=E({},r,{dense:v.dense,divider:a,disableGutters:c}),C=Bte(r),x=Vt(S,n);let P;return r.disabled||(P=h!==void 0?h:-1),T.jsx(Ni.Provider,{value:v,children:T.jsx(zte,E({ref:x,role:p,tabIndex:P,component:i,focusVisibleClassName:he(C.focusVisible,d),className:he(C.root,m)},g,{ownerState:w,classes:C}))})}),Ur=jte;function Hte(e){return Je("MuiNativeSelect",e)}const Vte=Xe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Hx=Vte,Ute=["className","disabled","error","IconComponent","inputRef","variant"],Wte=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${ue(n)}`,i&&"iconOpen",r&&"disabled"]};return Me(a,Hte,t)},EL=({ownerState:e,theme:t})=>E({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":E({},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"},[`&.${Hx.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}}),Gte=oe("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:zo,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Hx.multiple}`]:t.multiple}]}})(EL),PL=({ownerState:e,theme:t})=>E({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Hx.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Kte=oe("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ue(n.variant)}`],n.open&&t.iconOpen]}})(PL),qte=u.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:c="standard"}=t,d=ne(t,Ute),p=E({},t,{disabled:o,variant:c,error:i}),h=Wte(p);return T.jsxs(u.Fragment,{children:[T.jsx(Gte,E({ownerState:p,className:he(h.select,r),disabled:o,ref:a||n},d)),t.multiple?null:T.jsx(Kte,{as:s,ownerState:p,className:h.icon})]})}),Yte=qte;var _$;const Qte=["children","classes","className","label","notched"],Xte=oe("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Jte=oe("legend")(({ownerState:e,theme:t})=>E({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&&E({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 Zte(e){const{className:t,label:n,notched:r}=e,o=ne(e,Qte),i=n!=null&&n!=="",s=E({},e,{notched:r,withLabel:i});return T.jsx(Xte,E({"aria-hidden":!0,className:t,ownerState:s},o,{children:T.jsx(Jte,{ownerState:s,children:i?T.jsx("span",{children:n}):_$||(_$=T.jsx("span",{className:"notranslate",children:""}))})}))}const ene=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],tne=e=>{const{classes:t}=e,r=Me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},EQ,t);return E({},t,r)},nne=oe(Xv,{shouldForwardProp:e=>zo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Yv})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return E({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Qi.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Qi.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Qi.focused} .${Qi.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Qi.error} .${Qi.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Qi.disabled} .${Qi.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&E({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),rne=oe(Zte,{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}}),one=oe(Jv,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Qv})(({theme:e,ownerState:t})=>E({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})),IL=u.forwardRef(function(t,n){var r,o,i,s,a;const c=tt({props:t,name:"MuiOutlinedInput"}),{components:d={},fullWidth:p=!1,inputComponent:h="input",label:m,multiline:g=!1,notched:y,slots:v={},type:S="text"}=c,w=ne(c,ene),C=tne(c),x=Js(),P=ic({props:c,muiFormControl:x,states:["required"]}),_=E({},c,{color:P.color||"primary",disabled:P.disabled,error:P.error,focused:P.focused,formControl:x,fullWidth:p,hiddenLabel:P.hiddenLabel,multiline:g,size:P.size,type:S}),k=(r=(o=v.root)!=null?o:d.Root)!=null?r:nne,I=(i=(s=v.input)!=null?s:d.Input)!=null?i:one;return T.jsx(ed,E({slots:{root:k,input:I},renderSuffix:R=>T.jsx(rne,{ownerState:_,className:C.notchedOutline,label:m!=null&&m!==""&&P.required?a||(a=T.jsxs(u.Fragment,{children:[m," ","*"]})):m,notched:typeof y!="undefined"?y:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:p,inputComponent:h,multiline:g,ref:n,type:S},w,{classes:E({},C,{notchedOutline:null})}))});IL.muiName="Input";const kL=IL,$$=_t(T.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),R$=_t(T.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function ine(e){return Je("MuiSelect",e)}const sne=Xe("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Gd=sne;var M$;const lne=["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"],ane=oe("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Gd.select}`]:t.select},{[`&.${Gd.select}`]:t[n.variant]},{[`&.${Gd.error}`]:t.error},{[`&.${Gd.multiple}`]:t.multiple}]}})(EL,{[`&.${Gd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),cne=oe("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ue(n.variant)}`],n.open&&t.iconOpen]}})(PL),une=oe("input",{shouldForwardProp:e=>$G(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 T$(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function dne(e){return e==null||typeof e=="string"&&!e.trim()}const fne=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${ue(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Me(a,ine,t)},pne=u.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:s,children:a,className:c,defaultOpen:d,defaultValue:p,disabled:h,displayEmpty:m,error:g=!1,IconComponent:y,inputRef:v,labelId:S,MenuProps:w={},multiple:C,name:x,onBlur:P,onChange:_,onClose:k,onFocus:I,onOpen:R,open:L,readOnly:N,renderValue:O,SelectDisplayProps:D={},tabIndex:B,value:M,variant:F="standard"}=t,z=ne(t,lne),[V,A]=is({controlled:M,default:p,name:"Select"}),[H,W]=is({controlled:L,default:d,name:"Select"}),K=u.useRef(null),Y=u.useRef(null),[ie,re]=u.useState(null),{current:de}=u.useRef(L!=null),[se,le]=u.useState(),ke=Vt(n,v),ve=u.useCallback(Be=>{Y.current=Be,Be&&re(Be)},[]),Pe=ie==null?void 0:ie.parentNode;u.useImperativeHandle(ke,()=>({focus:()=>{Y.current.focus()},node:K.current,value:V}),[V]),u.useEffect(()=>{d&&H&&ie&&!de&&(le(s?null:Pe.clientWidth),Y.current.focus())},[ie,s]),u.useEffect(()=>{i&&Y.current.focus()},[i]),u.useEffect(()=>{if(!S)return;const Be=vn(Y.current).getElementById(S);if(Be){const Ze=()=>{getSelection().isCollapsed&&Y.current.focus()};return Be.addEventListener("click",Ze),()=>{Be.removeEventListener("click",Ze)}}},[S]);const ee=(Be,Ze)=>{Be?R&&R(Ze):k&&k(Ze),de||(le(s?null:Pe.clientWidth),W(Be))},_e=Be=>{Be.button===0&&(Be.preventDefault(),Y.current.focus(),ee(!0,Be))},Re=Be=>{ee(!1,Be)},Se=u.Children.toArray(a),pe=Be=>{const Ze=Se.map(Fe=>Fe.props.value).indexOf(Be.target.value);if(Ze===-1)return;const Ie=Se[Ze];A(Ie.props.value),_&&_(Be,Ie)},be=Be=>Ze=>{let Ie;if(Ze.currentTarget.hasAttribute("tabindex")){if(C){Ie=Array.isArray(V)?V.slice():[];const Fe=V.indexOf(Be.props.value);Fe===-1?Ie.push(Be.props.value):Ie.splice(Fe,1)}else Ie=Be.props.value;if(Be.props.onClick&&Be.props.onClick(Ze),V!==Ie&&(A(Ie),_)){const Fe=Ze.nativeEvent||Ze,Ve=new Fe.constructor(Fe.type,Fe);Object.defineProperty(Ve,"target",{writable:!0,value:{value:Ie,name:x}}),_(Ve,Be)}C||ee(!1,Ze)}},te=Be=>{N||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Be.key)!==-1&&(Be.preventDefault(),ee(!0,Be))},Oe=ie!==null&&H,Ye=Be=>{!Oe&&P&&(Object.defineProperty(Be,"target",{writable:!0,value:{value:V,name:x}}),P(Be))};delete z["aria-invalid"];let Ke,Ue;const De=[];let dt=!1;(Ax({value:V})||m)&&(O?Ke=O(V):dt=!0);const vt=Se.map(Be=>{if(!u.isValidElement(Be))return null;let Ze;if(C){if(!Array.isArray(V))throw new Error(Wl(2));Ze=V.some(Ie=>T$(Ie,Be.props.value)),Ze&&dt&&De.push(Be.props.children)}else Ze=T$(V,Be.props.value),Ze&&dt&&(Ue=Be.props.children);return u.cloneElement(Be,{"aria-selected":Ze?"true":"false",onClick:be(Be),onKeyUp:Ie=>{Ie.key===" "&&Ie.preventDefault(),Be.props.onKeyUp&&Be.props.onKeyUp(Ie)},role:"option",selected:Ze,value:void 0,"data-value":Be.props.value})});dt&&(C?De.length===0?Ke=null:Ke=De.reduce((Be,Ze,Ie)=>(Be.push(Ze),Ie<De.length-1&&Be.push(", "),Be),[]):Ke=Ue);let ct=se;!s&&de&&ie&&(ct=Pe.clientWidth);let Pt;typeof B!="undefined"?Pt=B:Pt=h?null:0;const yt=D.id||(x?`mui-component-select-${x}`:void 0),Ae=E({},t,{variant:F,value:V,open:Oe,error:g}),Le=fne(Ae);return T.jsxs(u.Fragment,{children:[T.jsx(ane,E({ref:ve,tabIndex:Pt,role:"button","aria-disabled":h?"true":void 0,"aria-expanded":Oe?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[S,yt].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:te,onMouseDown:h||N?null:_e,onBlur:Ye,onFocus:I},D,{ownerState:Ae,className:he(D.className,Le.select,c),id:yt,children:dne(Ke)?M$||(M$=T.jsx("span",{className:"notranslate",children:""})):Ke})),T.jsx(une,E({"aria-invalid":g,value:Array.isArray(V)?V.join(","):V,name:x,ref:K,"aria-hidden":!0,onChange:pe,tabIndex:-1,disabled:h,className:Le.nativeInput,autoFocus:i,ownerState:Ae},z)),T.jsx(cne,{as:y,className:Le.icon,ownerState:Ae}),T.jsx(SL,E({id:`menu-${x||""}`,anchorEl:Pe,open:Oe,onClose:Re,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},w,{MenuListProps:E({"aria-labelledby":S,role:"listbox",disableListWrap:!0},w.MenuListProps),PaperProps:E({},w.PaperProps,{style:E({minWidth:ct},w.PaperProps!=null?w.PaperProps.style:null)}),children:vt}))]})}),hne=pne,mne=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],gne=e=>{const{classes:t}=e;return t},Vx={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>zo(e)&&e!=="variant",slot:"Root"},vne=oe(gL,Vx)(""),yne=oe(kL,Vx)(""),bne=oe(lL,Vx)(""),_L=u.forwardRef(function(t,n){const r=tt({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:c=!1,displayEmpty:d=!1,IconComponent:p=QF,id:h,input:m,inputProps:g,label:y,labelId:v,MenuProps:S,multiple:w=!1,native:C=!1,onClose:x,onOpen:P,open:_,renderValue:k,SelectDisplayProps:I,variant:R="outlined"}=r,L=ne(r,mne),N=C?Yte:hne,O=Js(),D=ic({props:r,muiFormControl:O,states:["variant","error"]}),B=D.variant||R,M=E({},r,{variant:B,classes:s}),F=gne(M),z=m||{standard:T.jsx(vne,{ownerState:M}),outlined:T.jsx(yne,{label:y,ownerState:M}),filled:T.jsx(bne,{ownerState:M})}[B],V=Vt(n,z.ref);return T.jsx(u.Fragment,{children:u.cloneElement(z,E({inputComponent:N,inputProps:E({children:i,error:D.error,IconComponent:p,variant:B,type:void 0,multiple:w},C?{id:h}:{autoWidth:o,defaultOpen:c,displayEmpty:d,labelId:v,MenuProps:S,onClose:x,onOpen:P,open:_,renderValue:k,SelectDisplayProps:E({id:h},I)},g,{classes:g?ci(F,g.classes):F},m?m.props.inputProps:{})},w&&C&&B==="outlined"?{notched:!0}:{},{ref:V,className:he(z.props.className,a)},!m&&{variant:B},L))})});_L.muiName="Select";const Ux=_L;function wne(e){return Je("MuiSkeleton",e)}Xe("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Cne=["animation","className","component","height","style","variant","width"];let Sg=e=>e,O$,F$,L$,A$;const xne=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:s}=e;return Me({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!s&&"heightAuto"]},wne,t)},Sne=vs(O$||(O$=Sg`
|
|
243
|
-
0% {
|
|
244
|
-
opacity: 1;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
50% {
|
|
248
|
-
opacity: 0.4;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
100% {
|
|
252
|
-
opacity: 1;
|
|
253
|
-
}
|
|
254
|
-
`)),Ene=vs(F$||(F$=Sg`
|
|
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
|
-
`)),Pne=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=IG(e.shape.borderRadius)||"px",r=kG(e.shape.borderRadius);return E({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:ut(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"&&Gl(L$||(L$=Sg`
|
|
268
|
-
animation: ${0} 1.5s ease-in-out 0.5s infinite;
|
|
269
|
-
`),Sne),({ownerState:e,theme:t})=>e.animation==="wave"&&Gl(A$||(A$=Sg`
|
|
270
|
-
position: relative;
|
|
271
|
-
overflow: hidden;
|
|
272
|
-
|
|
273
|
-
/* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
|
|
274
|
-
-webkit-mask-image: -webkit-radial-gradient(white, black);
|
|
275
|
-
|
|
276
|
-
&::after {
|
|
277
|
-
animation: ${0} 1.6s linear 0.5s infinite;
|
|
278
|
-
background: linear-gradient(
|
|
279
|
-
90deg,
|
|
280
|
-
transparent,
|
|
281
|
-
${0},
|
|
282
|
-
transparent
|
|
283
|
-
);
|
|
284
|
-
content: '';
|
|
285
|
-
position: absolute;
|
|
286
|
-
transform: translateX(-100%); /* Avoid flash during server-side hydration */
|
|
287
|
-
bottom: 0;
|
|
288
|
-
left: 0;
|
|
289
|
-
right: 0;
|
|
290
|
-
top: 0;
|
|
291
|
-
}
|
|
292
|
-
`),Ene,(t.vars||t).palette.action.hover)),Ine=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:s="span",height:a,style:c,variant:d="text",width:p}=r,h=ne(r,Cne),m=E({},r,{animation:o,component:s,variant:d,hasChildren:!!h.children}),g=xne(m);return T.jsx(Pne,E({as:s,ref:n,className:he(g.root,i),ownerState:m},h,{style:E({width:p,height:a},c)}))}),kne=Ine;function _ne(e){return Je("MuiTooltip",e)}const $ne=Xe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),_l=$ne,Rne=["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 Mne(e){return Math.round(e*1e5)/1e5}const Tne=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${ue(i.split("-")[0])}`],arrow:["arrow"]};return Me(s,_ne,t)},One=oe(oc,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>E({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${_l.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${_l.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${_l.arrow}`]:E({},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"] .${_l.arrow}`]:E({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Fne=oe("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${ue(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>E({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:ut(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:`${Mne(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${_l.popper}[data-popper-placement*="left"] &`]:E({transformOrigin:"right center"},t.isRtl?E({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):E({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${_l.popper}[data-popper-placement*="right"] &`]:E({transformOrigin:"left center"},t.isRtl?E({marginRight:"14px"},t.touch&&{marginRight:"24px"}):E({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${_l.popper}[data-popper-placement*="top"] &`]:E({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${_l.popper}[data-popper-placement*="bottom"] &`]:E({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Lne=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:ut(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let nm=!1,N1=null,Kd={x:0,y:0};function rm(e,t){return n=>{t&&t(n),e(n)}}const Ane=u.forwardRef(function(t,n){var r,o,i,s,a,c,d,p,h,m,g,y,v,S,w,C,x,P,_;const k=tt({props:t,name:"MuiTooltip"}),{arrow:I=!1,children:R,components:L={},componentsProps:N={},describeChild:O=!1,disableFocusListener:D=!1,disableHoverListener:B=!1,disableInteractive:M=!1,disableTouchListener:F=!1,enterDelay:z=100,enterNextDelay:V=0,enterTouchDelay:A=700,followCursor:H=!1,id:W,leaveDelay:K=0,leaveTouchDelay:Y=1500,onClose:ie,onOpen:re,open:de,placement:se="bottom",PopperComponent:le,PopperProps:ke={},slotProps:ve={},slots:Pe={},title:ee,TransitionComponent:_e=Cg,TransitionProps:Re}=k,Se=ne(k,Rne),pe=sr(),be=pe.direction==="rtl",[te,Oe]=u.useState(),[Ye,Ke]=u.useState(null),Ue=u.useRef(!1),De=M||H,dt=u.useRef(),vt=u.useRef(),ct=u.useRef(),Pt=u.useRef(),[yt,Ae]=is({controlled:de,default:!1,name:"Tooltip",state:"open"});let Le=yt;const Be=on(W),Ze=u.useRef(),Ie=u.useCallback(()=>{Ze.current!==void 0&&(document.body.style.WebkitUserSelect=Ze.current,Ze.current=void 0),clearTimeout(Pt.current)},[]);u.useEffect(()=>()=>{clearTimeout(dt.current),clearTimeout(vt.current),clearTimeout(ct.current),Ie()},[Ie]);const Fe=xt=>{clearTimeout(N1),nm=!0,Ae(!0),re&&!Le&&re(xt)},Ve=Pn(xt=>{clearTimeout(N1),N1=setTimeout(()=>{nm=!1},800+K),Ae(!1),ie&&Le&&ie(xt),clearTimeout(dt.current),dt.current=setTimeout(()=>{Ue.current=!1},pe.transitions.duration.shortest)}),nt=xt=>{Ue.current&&xt.type!=="touchstart"||(te&&te.removeAttribute("title"),clearTimeout(vt.current),clearTimeout(ct.current),z||nm&&V?vt.current=setTimeout(()=>{Fe(xt)},nm?V:z):Fe(xt))},ht=xt=>{clearTimeout(vt.current),clearTimeout(ct.current),ct.current=setTimeout(()=>{Ve(xt)},K)},{isFocusVisibleRef:Zt,onBlur:kn,onFocus:On,ref:Xn}=bv(),[,lr]=u.useState(!1),ar=xt=>{kn(xt),Zt.current===!1&&(lr(!1),ht(xt))},bn=xt=>{te||Oe(xt.currentTarget),On(xt),Zt.current===!0&&(lr(!0),nt(xt))},en=xt=>{Ue.current=!0;const cr=R.props;cr.onTouchStart&&cr.onTouchStart(xt)},jn=nt,Vo=ht,Hi=xt=>{en(xt),clearTimeout(ct.current),clearTimeout(dt.current),Ie(),Ze.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Pt.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ze.current,nt(xt)},A)},ws=xt=>{R.props.onTouchEnd&&R.props.onTouchEnd(xt),Ie(),clearTimeout(ct.current),ct.current=setTimeout(()=>{Ve(xt)},Y)};u.useEffect(()=>{if(!Le)return;function xt(cr){(cr.key==="Escape"||cr.key==="Esc")&&Ve(cr)}return document.addEventListener("keydown",xt),()=>{document.removeEventListener("keydown",xt)}},[Ve,Le]);const Cs=Vt(R.ref,Xn,Oe,n);!ee&&ee!==0&&(Le=!1);const ce=u.useRef(),ge=xt=>{const cr=R.props;cr.onMouseMove&&cr.onMouseMove(xt),Kd={x:xt.clientX,y:xt.clientY},ce.current&&ce.current.update()},Ne={},ft=typeof ee=="string";O?(Ne.title=!Le&&ft&&!B?ee:null,Ne["aria-describedby"]=Le?Be:null):(Ne["aria-label"]=ft?ee:null,Ne["aria-labelledby"]=Le&&!ft?Be:null);const it=E({},Ne,Se,R.props,{className:he(Se.className,R.props.className),onTouchStart:en,ref:Cs},H?{onMouseMove:ge}:{}),He={};F||(it.onTouchStart=Hi,it.onTouchEnd=ws),B||(it.onMouseOver=rm(jn,it.onMouseOver),it.onMouseLeave=rm(Vo,it.onMouseLeave),De||(He.onMouseOver=jn,He.onMouseLeave=Vo)),D||(it.onFocus=rm(bn,it.onFocus),it.onBlur=rm(ar,it.onBlur),De||(He.onFocus=bn,He.onBlur=ar));const Ct=u.useMemo(()=>{var xt;let cr=[{name:"arrow",enabled:!!Ye,options:{element:Ye,padding:4}}];return(xt=ke.popperOptions)!=null&&xt.modifiers&&(cr=cr.concat(ke.popperOptions.modifiers)),E({},ke.popperOptions,{modifiers:cr})},[Ye,ke]),Ut=E({},k,{isRtl:be,arrow:I,disableInteractive:De,placement:se,PopperComponentProp:le,touch:Ue.current}),_n=Tne(Ut),fo=(r=(o=Pe.popper)!=null?o:L.Popper)!=null?r:One,we=(i=(s=(a=Pe.transition)!=null?a:L.Transition)!=null?s:_e)!=null?i:Cg,me=(c=(d=Pe.tooltip)!=null?d:L.Tooltip)!=null?c:Fne,We=(p=(h=Pe.arrow)!=null?h:L.Arrow)!=null?p:Lne,pt=rf(fo,E({},ke,(m=ve.popper)!=null?m:N.popper,{className:he(_n.popper,ke==null?void 0:ke.className,(g=(y=ve.popper)!=null?y:N.popper)==null?void 0:g.className)}),Ut),Wt=rf(we,E({},Re,(v=ve.transition)!=null?v:N.transition),Ut),Fn=rf(me,E({},(S=ve.tooltip)!=null?S:N.tooltip,{className:he(_n.tooltip,(w=(C=ve.tooltip)!=null?C:N.tooltip)==null?void 0:w.className)}),Ut),Ln=rf(We,E({},(x=ve.arrow)!=null?x:N.arrow,{className:he(_n.arrow,(P=(_=ve.arrow)!=null?_:N.arrow)==null?void 0:P.className)}),Ut);return T.jsxs(u.Fragment,{children:[u.cloneElement(R,it),T.jsx(fo,E({as:le!=null?le:oc,placement:se,anchorEl:H?{getBoundingClientRect:()=>({top:Kd.y,left:Kd.x,right:Kd.x,bottom:Kd.y,width:0,height:0})}:te,popperRef:ce,open:te?Le:!1,id:Be,transition:!0},He,pt,{popperOptions:Ct,children:({TransitionProps:xt})=>T.jsx(we,E({timeout:pe.transitions.duration.shorter},xt,Wt,{children:T.jsxs(me,E({},Fn,{children:[ee,I?T.jsx(We,E({},Ln,{ref:Ke})):null]}))}))}))]})}),nd=Ane;function Nne(e){return Je("MuiSwitch",e)}const Dne=Xe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),$r=Dne,Bne=["className","color","edge","size","sx"],zne=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a={root:["root",n&&`edge${ue(n)}`,`size${ue(r)}`],switchBase:["switchBase",`color${ue(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=Me(a,Nne,t);return E({},t,c)},jne=oe("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ue(n.edge)}`],t[`size${ue(n.size)}`]]}})(({ownerState:e})=>E({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${$r.thumb}`]:{width:16,height:16},[`& .${$r.switchBase}`]:{padding:4,[`&.${$r.checked}`]:{transform:"translateX(16px)"}}})),Hne=oe(tL,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${$r.input}`]:t.input},n.color!=="default"&&t[`color${ue(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${$r.checked}`]:{transform:"translateX(20px)"},[`&.${$r.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${$r.checked} + .${$r.track}`]:{opacity:.5},[`&.${$r.disabled} + .${$r.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${$r.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>E({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ut(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${$r.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ut(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${$r.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Ua(e.palette[t.color].main,.62):Va(e.palette[t.color].main,.55)}`}},[`&.${$r.checked} + .${$r.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),Vne=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}`})),Une=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%"})),Wne=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:a="medium",sx:c}=r,d=ne(r,Bne),p=E({},r,{color:i,edge:s,size:a}),h=zne(p),m=T.jsx(Une,{className:h.thumb,ownerState:p});return T.jsxs(jne,{className:he(h.root,o),sx:c,ownerState:p,children:[T.jsx(Hne,E({type:"checkbox",icon:m,checkedIcon:m,ref:n,ownerState:p},d,{classes:E({},h,{root:h.switchBase})})),T.jsx(Vne,{className:h.track,ownerState:p})]})}),$L=Wne;function Gne(e){return Je("MuiTab",e)}const Kne=Xe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),ma=Kne,qne=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Yne=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:s,selected:a,disabled:c}=e,d={root:["root",i&&s&&"labelIcon",`textColor${ue(n)}`,r&&"fullWidth",o&&"wrapped",a&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return Me(d,Gne,t)},Qne=oe(hs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${ue(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>E({},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,[`& > .${ma.iconWrapper}`]:E({},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,[`&.${ma.selected}`]:{opacity:1},[`&.${ma.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ma.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ma.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ma.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ma.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)})),Xne=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:s=!1,fullWidth:a,icon:c,iconPosition:d="top",indicator:p,label:h,onChange:m,onClick:g,onFocus:y,selected:v,selectionFollowsFocus:S,textColor:w="inherit",value:C,wrapped:x=!1}=r,P=ne(r,qne),_=E({},r,{disabled:i,disableFocusRipple:s,selected:v,icon:!!c,iconPosition:d,label:!!h,fullWidth:a,textColor:w,wrapped:x}),k=Yne(_),I=c&&h&&u.isValidElement(c)?u.cloneElement(c,{className:he(k.iconWrapper,c.props.className)}):c,R=N=>{!v&&m&&m(N,C),g&&g(N)},L=N=>{S&&!v&&m&&m(N,C),y&&y(N)};return T.jsxs(Qne,E({focusRipple:!s,className:he(k.root,o),ref:n,role:"tab","aria-selected":v,disabled:i,onClick:R,onFocus:L,ownerState:_,tabIndex:v?0:-1},P,{children:[d==="top"||d==="start"?T.jsxs(u.Fragment,{children:[I,h]}):T.jsxs(u.Fragment,{children:[h,I]}),p]}))}),RL=Xne,Jne=u.createContext(),Zne=Jne,ere=u.createContext(),tre=ere;function nre(e){return Je("MuiTableCell",e)}const rre=Xe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),ore=rre,ire=["align","className","component","padding","scope","size","sortDirection","variant"],sre=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:s}=e,a={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${ue(r)}`,o!=="normal"&&`padding${ue(o)}`,`size${ue(i)}`]};return Me(a,nre,t)},lre=oe("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ue(n.size)}`],n.padding!=="normal"&&t[`padding${ue(n.padding)}`],n.align!=="inherit"&&t[`align${ue(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>E({},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"?Ua(ut(e.palette.divider,1),.88):Va(ut(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",[`&.${ore.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})),are=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:s,padding:a,scope:c,size:d,sortDirection:p,variant:h}=r,m=ne(r,ire),g=u.useContext(Zne),y=u.useContext(tre),v=y&&y.variant==="head";let S;s?S=s:S=v?"th":"td";let w=c;S==="td"?w=void 0:!w&&v&&(w="col");const C=h||y&&y.variant,x=E({},r,{align:o,component:S,padding:a||(g&&g.padding?g.padding:"normal"),size:d||(g&&g.size?g.size:"medium"),sortDirection:p,stickyHeader:C==="head"&&g&&g.stickyHeader,variant:C}),P=sre(x);let _=null;return p&&(_=p==="asc"?"ascending":"descending"),T.jsx(lre,E({as:S,ref:n,className:he(P.root,i),"aria-sort":_,scope:w,ownerState:x},m))}),xw=are;function cre(e){return Je("MuiToolbar",e)}Xe("MuiToolbar",["root","gutters","regular","dense"]);const ure=["className","component","disableGutters","variant"],dre=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Me({root:["root",!n&&"gutters",r]},cre,t)},fre=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})=>E({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),pre=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:s=!1,variant:a="regular"}=r,c=ne(r,ure),d=E({},r,{component:i,disableGutters:s,variant:a}),p=dre(d);return T.jsx(fre,E({as:i,className:he(p.root,o),ref:n,ownerState:d},c))}),ML=pre,Sw=_t(T.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Ew=_t(T.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var N$,D$,B$,z$,j$,H$,V$,U$;const hre=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],mre=u.forwardRef(function(t,n){const{backIconButtonProps:r,count:o,getItemAriaLabel:i,nextIconButtonProps:s,onPageChange:a,page:c,rowsPerPage:d,showFirstButton:p,showLastButton:h}=t,m=ne(t,hre),g=sr(),y=C=>{a(C,0)},v=C=>{a(C,c-1)},S=C=>{a(C,c+1)},w=C=>{a(C,Math.max(0,Math.ceil(o/d)-1))};return T.jsxs("div",E({ref:n},m,{children:[p&&T.jsx(li,{onClick:y,disabled:c===0,"aria-label":i("first",c),title:i("first",c),children:g.direction==="rtl"?N$||(N$=T.jsx(R$,{})):D$||(D$=T.jsx($$,{}))}),T.jsx(li,E({onClick:v,disabled:c===0,color:"inherit","aria-label":i("previous",c),title:i("previous",c)},r,{children:g.direction==="rtl"?B$||(B$=T.jsx(Ew,{})):z$||(z$=T.jsx(Sw,{}))})),T.jsx(li,E({onClick:S,disabled:o!==-1?c>=Math.ceil(o/d)-1:!1,color:"inherit","aria-label":i("next",c),title:i("next",c)},s,{children:g.direction==="rtl"?j$||(j$=T.jsx(Sw,{})):H$||(H$=T.jsx(Ew,{}))})),h&&T.jsx(li,{onClick:w,disabled:c>=Math.ceil(o/d)-1,"aria-label":i("last",c),title:i("last",c),children:g.direction==="rtl"?V$||(V$=T.jsx($$,{})):U$||(U$=T.jsx(R$,{}))})]}))}),gre=mre;function vre(e){return Je("MuiTablePagination",e)}const yre=Xe("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Ma=yre;var W$;const bre=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],wre=oe(xw,{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}})),Cre=oe(ML,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>E({[`& .${Ma.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},[`& .${Ma.actions}`]:{flexShrink:0,marginLeft:20}})),xre=oe("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Sre=oe("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>E({},e.typography.body2,{flexShrink:0})),Ere=oe(Ux,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>E({[`& .${Ma.selectIcon}`]:t.selectIcon,[`& .${Ma.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Ma.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Pre=oe(Ur,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Ire=oe("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>E({},e.typography.body2,{flexShrink:0}));function kre({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function _re(e){return`Go to ${e} page`}const $re=e=>{const{classes:t}=e;return Me({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},vre,t)},Rre=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=gre,backIconButtonProps:i,className:s,colSpan:a,component:c=xw,count:d,getItemAriaLabel:p=_re,labelDisplayedRows:h=kre,labelRowsPerPage:m="Rows per page:",nextIconButtonProps:g,onPageChange:y,onRowsPerPageChange:v,page:S,rowsPerPage:w,rowsPerPageOptions:C=[10,25,50,100],SelectProps:x={},showFirstButton:P=!1,showLastButton:_=!1}=r,k=ne(r,bre),I=r,R=$re(I),L=x.native?"option":Pre;let N;(c===xw||c==="td")&&(N=a||1e3);const O=on(x.id),D=on(x.labelId),B=()=>d===-1?(S+1)*w:w===-1?d:Math.min(d,(S+1)*w);return T.jsx(wre,E({colSpan:N,ref:n,as:c,ownerState:I,className:he(R.root,s)},k,{children:T.jsxs(Cre,{className:R.toolbar,children:[T.jsx(xre,{className:R.spacer}),C.length>1&&T.jsx(Sre,{className:R.selectLabel,id:D,children:m}),C.length>1&&T.jsx(Ere,E({variant:"standard"},!x.variant&&{input:W$||(W$=T.jsx(ed,{}))},{value:w,onChange:v,id:O,labelId:D},x,{classes:E({},x.classes,{root:he(R.input,R.selectRoot,(x.classes||{}).root),select:he(R.select,(x.classes||{}).select),icon:he(R.selectIcon,(x.classes||{}).icon)}),children:C.map(M=>u.createElement(L,E({},!Wa(L)&&{ownerState:I},{className:R.menuItem,key:M.label?M.label:M,value:M.value?M.value:M}),M.label?M.label:M))})),T.jsx(Ire,{className:R.displayedRows,children:h({from:d===0?0:S*w+1,to:B(),count:d===-1?-1:d,page:S})}),T.jsx(o,{className:R.actions,backIconButtonProps:i,count:d,nextIconButtonProps:g,onPageChange:y,page:S,rowsPerPage:w,showFirstButton:P,showLastButton:_,getItemAriaLabel:p})]})}))}),Mre=Rre;function Tre(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Ore(e,t,n,r={},o=()=>{}){const{ease:i=Tre,duration:s=300}=r;let a=null;const c=t[e];let d=!1;const p=()=>{d=!0},h=m=>{if(d){o(new Error("Animation cancelled"));return}a===null&&(a=m);const g=Math.min(1,(m-a)/s);if(t[e]=i(g)*(n-c)+c,g>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(h)};return c===n?(o(new Error("Element already at target position")),p):(requestAnimationFrame(h),p)}const Fre=["onChange"],Lre={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Are(e){const{onChange:t}=e,n=ne(e,Fre),r=u.useRef(),o=u.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return ln(()=>{const s=Ws(()=>{const c=r.current;i(),c!==r.current&&t(r.current)}),a=Oo(o.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),u.useEffect(()=>{i(),t(r.current)},[t]),T.jsx("div",E({style:Lre,ref:o},n))}function Nre(e){return Je("MuiTabScrollButton",e)}const Dre=Xe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Bre=Dre,zre=["className","slots","slotProps","direction","orientation","disabled"],jre=e=>{const{classes:t,orientation:n,disabled:r}=e;return Me({root:["root",n,r&&"disabled"]},Nre,t)},Hre=oe(hs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>E({width:40,flexShrink:0,opacity:.8,[`&.${Bre.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Vre=u.forwardRef(function(t,n){var r,o;const i=tt({props:t,name:"MuiTabScrollButton"}),{className:s,slots:a={},slotProps:c={},direction:d}=i,p=ne(i,zre),m=sr().direction==="rtl",g=E({isRtl:m},i),y=jre(g),v=(r=a.StartScrollButtonIcon)!=null?r:Sw,S=(o=a.EndScrollButtonIcon)!=null?o:Ew,w=Gs({elementType:v,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),C=Gs({elementType:S,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return T.jsx(Hre,E({component:"div",className:he(y.root,s),ref:n,role:null,ownerState:g,tabIndex:null},p,{children:d==="left"?T.jsx(v,E({},w)):T.jsx(S,E({},C))}))}),Ure=Vre;function Wre(e){return Je("MuiTabs",e)}const Gre=Xe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),D1=Gre,Kre=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],G$=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,K$=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,om=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},qre=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:s,scrollButtonsHideMobile:a,classes:c}=e;return Me({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Wre,c)},Yre=oe("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${D1.scrollButtons}`]:t.scrollButtons},{[`& .${D1.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>E({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${D1.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Qre=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})=>E({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"})),Xre=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})=>E({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Jre=oe("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>E({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})),Zre=oe(Are,{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),q$={},eoe=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiTabs"}),o=sr(),i=o.direction==="rtl",{"aria-label":s,"aria-labelledby":a,action:c,centered:d=!1,children:p,className:h,component:m="div",allowScrollButtonsMobile:g=!1,indicatorColor:y="primary",onChange:v,orientation:S="horizontal",ScrollButtonComponent:w=Ure,scrollButtons:C="auto",selectionFollowsFocus:x,slots:P={},slotProps:_={},TabIndicatorProps:k={},TabScrollButtonProps:I={},textColor:R="primary",value:L,variant:N="standard",visibleScrollbar:O=!1}=r,D=ne(r,Kre),B=N==="scrollable",M=S==="vertical",F=M?"scrollTop":"scrollLeft",z=M?"top":"left",V=M?"bottom":"right",A=M?"clientHeight":"clientWidth",H=M?"height":"width",W=E({},r,{component:m,allowScrollButtonsMobile:g,indicatorColor:y,orientation:S,vertical:M,scrollButtons:C,textColor:R,variant:N,visibleScrollbar:O,fixed:!B,hideScrollbar:B&&!O,scrollableX:B&&!M,scrollableY:B&&M,centered:d&&!B,scrollButtonsHideMobile:!g}),K=qre(W),Y=Gs({elementType:P.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:W}),ie=Gs({elementType:P.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:W}),[re,de]=u.useState(!1),[se,le]=u.useState(q$),[ke,ve]=u.useState({start:!1,end:!1}),[Pe,ee]=u.useState({overflow:"hidden",scrollbarWidth:0}),_e=new Map,Re=u.useRef(null),Se=u.useRef(null),pe=()=>{const Ie=Re.current;let Fe;if(Ie){const nt=Ie.getBoundingClientRect();Fe={clientWidth:Ie.clientWidth,scrollLeft:Ie.scrollLeft,scrollTop:Ie.scrollTop,scrollLeftNormalized:i_(Ie,o.direction),scrollWidth:Ie.scrollWidth,top:nt.top,bottom:nt.bottom,left:nt.left,right:nt.right}}let Ve;if(Ie&&L!==!1){const nt=Se.current.children;if(nt.length>0){const ht=nt[_e.get(L)];Ve=ht?ht.getBoundingClientRect():null}}return{tabsMeta:Fe,tabMeta:Ve}},be=Pn(()=>{const{tabsMeta:Ie,tabMeta:Fe}=pe();let Ve=0,nt;if(M)nt="top",Fe&&Ie&&(Ve=Fe.top-Ie.top+Ie.scrollTop);else if(nt=i?"right":"left",Fe&&Ie){const Zt=i?Ie.scrollLeftNormalized+Ie.clientWidth-Ie.scrollWidth:Ie.scrollLeft;Ve=(i?-1:1)*(Fe[nt]-Ie[nt]+Zt)}const ht={[nt]:Ve,[H]:Fe?Fe[H]:0};if(isNaN(se[nt])||isNaN(se[H]))le(ht);else{const Zt=Math.abs(se[nt]-ht[nt]),kn=Math.abs(se[H]-ht[H]);(Zt>=1||kn>=1)&&le(ht)}}),te=(Ie,{animation:Fe=!0}={})=>{Fe?Ore(F,Re.current,Ie,{duration:o.transitions.duration.standard}):Re.current[F]=Ie},Oe=Ie=>{let Fe=Re.current[F];M?Fe+=Ie:(Fe+=Ie*(i?-1:1),Fe*=i&&nF()==="reverse"?-1:1),te(Fe)},Ye=()=>{const Ie=Re.current[A];let Fe=0;const Ve=Array.from(Se.current.children);for(let nt=0;nt<Ve.length;nt+=1){const ht=Ve[nt];if(Fe+ht[A]>Ie){nt===0&&(Fe=Ie);break}Fe+=ht[A]}return Fe},Ke=()=>{Oe(-1*Ye())},Ue=()=>{Oe(Ye())},De=u.useCallback(Ie=>{ee({overflow:null,scrollbarWidth:Ie})},[]),dt=()=>{const Ie={};Ie.scrollbarSizeListener=B?T.jsx(Zre,{onChange:De,className:he(K.scrollableX,K.hideScrollbar)}):null;const Fe=ke.start||ke.end,Ve=B&&(C==="auto"&&Fe||C===!0);return Ie.scrollButtonStart=Ve?T.jsx(w,E({slots:{StartScrollButtonIcon:P.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Y},orientation:S,direction:i?"right":"left",onClick:Ke,disabled:!ke.start},I,{className:he(K.scrollButtons,I.className)})):null,Ie.scrollButtonEnd=Ve?T.jsx(w,E({slots:{EndScrollButtonIcon:P.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ie},orientation:S,direction:i?"left":"right",onClick:Ue,disabled:!ke.end},I,{className:he(K.scrollButtons,I.className)})):null,Ie},vt=Pn(Ie=>{const{tabsMeta:Fe,tabMeta:Ve}=pe();if(!(!Ve||!Fe)){if(Ve[z]<Fe[z]){const nt=Fe[F]+(Ve[z]-Fe[z]);te(nt,{animation:Ie})}else if(Ve[V]>Fe[V]){const nt=Fe[F]+(Ve[V]-Fe[V]);te(nt,{animation:Ie})}}}),ct=Pn(()=>{if(B&&C!==!1){const{scrollTop:Ie,scrollHeight:Fe,clientHeight:Ve,scrollWidth:nt,clientWidth:ht}=Re.current;let Zt,kn;if(M)Zt=Ie>1,kn=Ie<Fe-Ve-1;else{const On=i_(Re.current,o.direction);Zt=i?On<nt-ht-1:On>1,kn=i?On>1:On<nt-ht-1}(Zt!==ke.start||kn!==ke.end)&&ve({start:Zt,end:kn})}});u.useEffect(()=>{const Ie=Ws(()=>{Re.current&&(be(),ct())}),Fe=Oo(Re.current);Fe.addEventListener("resize",Ie);let Ve;return typeof ResizeObserver!="undefined"&&(Ve=new ResizeObserver(Ie),Array.from(Se.current.children).forEach(nt=>{Ve.observe(nt)})),()=>{Ie.clear(),Fe.removeEventListener("resize",Ie),Ve&&Ve.disconnect()}},[be,ct]);const Pt=u.useMemo(()=>Ws(()=>{ct()}),[ct]);u.useEffect(()=>()=>{Pt.clear()},[Pt]),u.useEffect(()=>{de(!0)},[]),u.useEffect(()=>{be(),ct()}),u.useEffect(()=>{vt(q$!==se)},[vt,se]),u.useImperativeHandle(c,()=>({updateIndicator:be,updateScrollButtons:ct}),[be,ct]);const yt=T.jsx(Jre,E({},k,{className:he(K.indicator,k.className),ownerState:W,style:E({},se,k.style)}));let Ae=0;const Le=u.Children.map(p,Ie=>{if(!u.isValidElement(Ie))return null;const Fe=Ie.props.value===void 0?Ae:Ie.props.value;_e.set(Fe,Ae);const Ve=Fe===L;return Ae+=1,u.cloneElement(Ie,E({fullWidth:N==="fullWidth",indicator:Ve&&!re&&yt,selected:Ve,selectionFollowsFocus:x,onChange:v,textColor:R,value:Fe},Ae===1&&L===!1&&!Ie.props.tabIndex?{tabIndex:0}:{}))}),Be=Ie=>{const Fe=Se.current,Ve=vn(Fe).activeElement;if(Ve.getAttribute("role")!=="tab")return;let ht=S==="horizontal"?"ArrowLeft":"ArrowUp",Zt=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&i&&(ht="ArrowRight",Zt="ArrowLeft"),Ie.key){case ht:Ie.preventDefault(),om(Fe,Ve,K$);break;case Zt:Ie.preventDefault(),om(Fe,Ve,G$);break;case"Home":Ie.preventDefault(),om(Fe,null,G$);break;case"End":Ie.preventDefault(),om(Fe,null,K$);break}},Ze=dt();return T.jsxs(Yre,E({className:he(K.root,h),ownerState:W,ref:n,as:m},D,{children:[Ze.scrollButtonStart,Ze.scrollbarSizeListener,T.jsxs(Qre,{className:K.scroller,ownerState:W,style:{overflow:Pe.overflow,[M?`margin${i?"Left":"Right"}`:"marginBottom"]:O?void 0:-Pe.scrollbarWidth},ref:Re,onScroll:Pt,children:[T.jsx(Xre,{"aria-label":s,"aria-labelledby":a,"aria-orientation":S==="vertical"?"vertical":null,className:K.flexContainer,ownerState:W,onKeyDown:Be,ref:Se,role:"tablist",children:Le}),re&&yt]}),Ze.scrollButtonEnd]}))}),TL=eoe;function toe(e){return Je("MuiTextField",e)}Xe("MuiTextField",["root"]);const noe=["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"],roe={standard:gL,filled:lL,outlined:kL},ooe=e=>{const{classes:t}=e;return Me({root:["root"]},toe,t)},ioe=oe(aL,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),soe=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:c="primary",defaultValue:d,disabled:p=!1,error:h=!1,FormHelperTextProps:m,fullWidth:g=!1,helperText:y,id:v,InputLabelProps:S,inputProps:w,InputProps:C,inputRef:x,label:P,maxRows:_,minRows:k,multiline:I=!1,name:R,onBlur:L,onChange:N,onFocus:O,placeholder:D,required:B=!1,rows:M,select:F=!1,SelectProps:z,type:V,value:A,variant:H="outlined"}=r,W=ne(r,noe),K=E({},r,{autoFocus:i,color:c,disabled:p,error:h,fullWidth:g,multiline:I,required:B,select:F,variant:H}),Y=ooe(K),ie={};H==="outlined"&&(S&&typeof S.shrink!="undefined"&&(ie.notched=S.shrink),ie.label=P),F&&((!z||!z.native)&&(ie.id=void 0),ie["aria-describedby"]=void 0);const re=on(v),de=y&&re?`${re}-helper-text`:void 0,se=P&&re?`${re}-label`:void 0,le=roe[H],ke=T.jsx(le,E({"aria-describedby":de,autoComplete:o,autoFocus:i,defaultValue:d,fullWidth:g,multiline:I,name:R,rows:M,maxRows:_,minRows:k,type:V,value:A,id:re,inputRef:x,onBlur:L,onChange:N,onFocus:O,placeholder:D,inputProps:w},ie,C));return T.jsxs(ioe,E({className:he(Y.root,a),disabled:p,error:h,fullWidth:g,ref:n,required:B,color:c,variant:H,ownerState:K},W,{children:[P!=null&&P!==""&&T.jsx(vL,E({htmlFor:re,id:se},S,{children:P})),F?T.jsx(Ux,E({"aria-describedby":de,id:re,labelId:se,value:A,input:ke},z,{children:s})):ke,y&&T.jsx(_p,E({id:de},m,{children:y}))]}))}),$p=soe;var Wx={},OL={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})(OL);var lt=OL.exports,B1={};const loe=kM(Aq);var Y$;function at(){return Y$||(Y$=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=loe}(B1)),B1}var aoe=lt;Object.defineProperty(Wx,"__esModule",{value:!0});var FL=Wx.default=void 0,coe=aoe(at()),uoe=st(),doe=(0,coe.default)((0,uoe.jsx)("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree");FL=Wx.default=doe;var Gx={},foe=lt;Object.defineProperty(Gx,"__esModule",{value:!0});var LL=Gx.default=void 0,poe=foe(at()),hoe=st(),moe=(0,poe.default)((0,hoe.jsx)("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11z"}),"Extension");LL=Gx.default=moe;var Kx={},goe=lt;Object.defineProperty(Kx,"__esModule",{value:!0});var AL=Kx.default=void 0,voe=goe(at()),yoe=st(),boe=(0,voe.default)((0,yoe.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}),"History");AL=Kx.default=boe;var qx={},woe=lt;Object.defineProperty(qx,"__esModule",{value:!0});var Yx=qx.default=void 0,Coe=woe(at()),xoe=st(),Soe=(0,Coe.default)((0,xoe.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z"}),"Logout");Yx=qx.default=Soe;var Qx={},Eoe=lt;Object.defineProperty(Qx,"__esModule",{value:!0});var NL=Qx.default=void 0,Poe=Eoe(at()),Q$=st(),Ioe=(0,Poe.default)([(0,Q$.jsx)("circle",{cx:"10",cy:"8",r:"4"},"0"),(0,Q$.jsx)("path",{d:"M10.67 13.02c-.22-.01-.44-.02-.67-.02-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.79-1.13-1.26-2.51-1.26-4 0-1.07.25-2.07.67-2.98zM20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L18 11h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49c.32.27.68.48 1.08.63L16 21h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63zM17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"},"1")],"ManageAccounts");NL=Qx.default=Ioe;var Xx={},koe=lt;Object.defineProperty(Xx,"__esModule",{value:!0});var DL=Xx.default=void 0,_oe=koe(at()),$oe=st(),Roe=(0,_oe.default)((0,$oe.jsx)("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h3l-1 1v2h12v-2l-1-1h3c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 13H4V5h16v11z"}),"Monitor");DL=Xx.default=Roe;var Jx={},Moe=lt;Object.defineProperty(Jx,"__esModule",{value:!0});var BL=Jx.default=void 0,Toe=Moe(at()),Ooe=st(),Foe=(0,Toe.default)((0,Ooe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"}),"Public");BL=Jx.default=Foe;var Zx={},Loe=lt;Object.defineProperty(Zx,"__esModule",{value:!0});var eS=Zx.default=void 0,Aoe=Loe(at()),Noe=st(),Doe=(0,Aoe.default)((0,Noe.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings");eS=Zx.default=Doe;var tS={},Boe=lt;Object.defineProperty(tS,"__esModule",{value:!0});var zL=tS.default=void 0,zoe=Boe(at()),joe=st(),Hoe=(0,zoe.default)((0,joe.jsx)("path",{d:"m12.87 15.07-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7 1.62-4.33L19.12 17h-3.24z"}),"Translate");zL=tS.default=Hoe;var nS={},Voe=lt;Object.defineProperty(nS,"__esModule",{value:!0});var jL=nS.default=void 0,Uoe=Voe(at()),Woe=st(),Goe=(0,Uoe.default)((0,Woe.jsx)("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}),"Code");jL=nS.default=Goe;var Eg={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
|
-
*/Eg.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",h=1,m=2,g=4,y=1,v=2,S=1,w=2,C=4,x=8,P=16,_=32,k=64,I=128,R=256,L=512,N=30,O="...",D=800,B=16,M=1,F=2,z=3,V=1/0,A=9007199254740991,H=17976931348623157e292,W=0/0,K=4294967295,Y=K-1,ie=K>>>1,re=[["ary",I],["bind",S],["bindKey",w],["curry",x],["curryRight",P],["flip",L],["partial",_],["partialRight",k],["rearg",R]],de="[object Arguments]",se="[object Array]",le="[object AsyncFunction]",ke="[object Boolean]",ve="[object Date]",Pe="[object DOMException]",ee="[object Error]",_e="[object Function]",Re="[object GeneratorFunction]",Se="[object Map]",pe="[object Number]",be="[object Null]",te="[object Object]",Oe="[object Promise]",Ye="[object Proxy]",Ke="[object RegExp]",Ue="[object Set]",De="[object String]",dt="[object Symbol]",vt="[object Undefined]",ct="[object WeakMap]",Pt="[object WeakSet]",yt="[object ArrayBuffer]",Ae="[object DataView]",Le="[object Float32Array]",Be="[object Float64Array]",Ze="[object Int8Array]",Ie="[object Int16Array]",Fe="[object Int32Array]",Ve="[object Uint8Array]",nt="[object Uint8ClampedArray]",ht="[object Uint16Array]",Zt="[object Uint32Array]",kn=/\b__p \+= '';/g,On=/\b(__p \+=) '' \+/g,Xn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,lr=/&(?:amp|lt|gt|quot|#39);/g,ar=/[&<>"']/g,bn=RegExp(lr.source),en=RegExp(ar.source),jn=/<%-([\s\S]+?)%>/g,Vo=/<%([\s\S]+?)%>/g,Hi=/<%=([\s\S]+?)%>/g,ws=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cs=/^\w*$/,ce=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ge=/[\\^$.*+?()[\]{}|]/g,Ne=RegExp(ge.source),ft=/^\s+/,it=/\s/,He=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ct=/\{\n\/\* \[wrapped with (.+)\] \*/,Ut=/,? & /,_n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fo=/[()=,{}\[\]\/\s]/,we=/\\(\\)?/g,me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,We=/\w*$/,pt=/^[-+]0x[0-9a-f]+$/i,Wt=/^0b[01]+$/i,Fn=/^\[object .+?Constructor\]$/,Ln=/^0o[0-7]+$/i,xt=/^(?:0|[1-9]\d*)$/,cr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Vp=/($^)/,gD=/['\n\r\u2028\u2029\\]/g,Up="\\ud800-\\udfff",vD="\\u0300-\\u036f",yD="\\ufe20-\\ufe2f",bD="\\u20d0-\\u20ff",dP=vD+yD+bD,fP="\\u2700-\\u27bf",pP="a-z\\xdf-\\xf6\\xf8-\\xff",wD="\\xac\\xb1\\xd7\\xf7",CD="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",xD="\\u2000-\\u206f",SD=" \\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",hP="A-Z\\xc0-\\xd6\\xd8-\\xde",mP="\\ufe0e\\ufe0f",gP=wD+CD+xD+SD,By="['’]",ED="["+Up+"]",vP="["+gP+"]",Wp="["+dP+"]",yP="\\d+",PD="["+fP+"]",bP="["+pP+"]",wP="[^"+Up+gP+yP+fP+pP+hP+"]",zy="\\ud83c[\\udffb-\\udfff]",ID="(?:"+Wp+"|"+zy+")",CP="[^"+Up+"]",jy="(?:\\ud83c[\\udde6-\\uddff]){2}",Hy="[\\ud800-\\udbff][\\udc00-\\udfff]",uc="["+hP+"]",xP="\\u200d",SP="(?:"+bP+"|"+wP+")",kD="(?:"+uc+"|"+wP+")",EP="(?:"+By+"(?:d|ll|m|re|s|t|ve))?",PP="(?:"+By+"(?:D|LL|M|RE|S|T|VE))?",IP=ID+"?",kP="["+mP+"]?",_D="(?:"+xP+"(?:"+[CP,jy,Hy].join("|")+")"+kP+IP+")*",$D="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",RD="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",_P=kP+IP+_D,MD="(?:"+[PD,jy,Hy].join("|")+")"+_P,TD="(?:"+[CP+Wp+"?",Wp,jy,Hy,ED].join("|")+")",OD=RegExp(By,"g"),FD=RegExp(Wp,"g"),Vy=RegExp(zy+"(?="+zy+")|"+TD+_P,"g"),LD=RegExp([uc+"?"+bP+"+"+EP+"(?="+[vP,uc,"$"].join("|")+")",kD+"+"+PP+"(?="+[vP,uc+SP,"$"].join("|")+")",uc+"?"+SP+"+"+EP,uc+"+"+PP,RD,$D,yP,MD].join("|"),"g"),AD=RegExp("["+xP+Up+dP+mP+"]"),ND=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,DD=["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"],BD=-1,wn={};wn[Le]=wn[Be]=wn[Ze]=wn[Ie]=wn[Fe]=wn[Ve]=wn[nt]=wn[ht]=wn[Zt]=!0,wn[de]=wn[se]=wn[yt]=wn[ke]=wn[Ae]=wn[ve]=wn[ee]=wn[_e]=wn[Se]=wn[pe]=wn[te]=wn[Ke]=wn[Ue]=wn[De]=wn[ct]=!1;var hn={};hn[de]=hn[se]=hn[yt]=hn[Ae]=hn[ke]=hn[ve]=hn[Le]=hn[Be]=hn[Ze]=hn[Ie]=hn[Fe]=hn[Se]=hn[pe]=hn[te]=hn[Ke]=hn[Ue]=hn[De]=hn[dt]=hn[Ve]=hn[nt]=hn[ht]=hn[Zt]=!0,hn[ee]=hn[_e]=hn[ct]=!1;var zD={À:"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"},jD={"&":"&","<":"<",">":">",'"':""","'":"'"},HD={"&":"&","<":"<",">":">",""":'"',"'":"'"},VD={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},UD=parseFloat,WD=parseInt,$P=typeof Sn=="object"&&Sn&&Sn.Object===Object&&Sn,GD=typeof self=="object"&&self&&self.Object===Object&&self,vr=$P||GD||Function("return this")(),Uy=t&&!t.nodeType&&t,sa=Uy&&!0&&e&&!e.nodeType&&e,RP=sa&&sa.exports===Uy,Wy=RP&&$P.process,Uo=function(){try{var J=sa&&sa.require&&sa.require("util").types;return J||Wy&&Wy.binding&&Wy.binding("util")}catch(ye){}}(),MP=Uo&&Uo.isArrayBuffer,TP=Uo&&Uo.isDate,OP=Uo&&Uo.isMap,FP=Uo&&Uo.isRegExp,LP=Uo&&Uo.isSet,AP=Uo&&Uo.isTypedArray;function po(J,ye,fe){switch(fe.length){case 0:return J.call(ye);case 1:return J.call(ye,fe[0]);case 2:return J.call(ye,fe[0],fe[1]);case 3:return J.call(ye,fe[0],fe[1],fe[2])}return J.apply(ye,fe)}function KD(J,ye,fe,qe){for(var It=-1,qt=J==null?0:J.length;++It<qt;){var er=J[It];ye(qe,er,fe(er),J)}return qe}function Wo(J,ye){for(var fe=-1,qe=J==null?0:J.length;++fe<qe&&ye(J[fe],fe,J)!==!1;);return J}function qD(J,ye){for(var fe=J==null?0:J.length;fe--&&ye(J[fe],fe,J)!==!1;);return J}function NP(J,ye){for(var fe=-1,qe=J==null?0:J.length;++fe<qe;)if(!ye(J[fe],fe,J))return!1;return!0}function el(J,ye){for(var fe=-1,qe=J==null?0:J.length,It=0,qt=[];++fe<qe;){var er=J[fe];ye(er,fe,J)&&(qt[It++]=er)}return qt}function Gp(J,ye){var fe=J==null?0:J.length;return!!fe&&dc(J,ye,0)>-1}function Gy(J,ye,fe){for(var qe=-1,It=J==null?0:J.length;++qe<It;)if(fe(ye,J[qe]))return!0;return!1}function $n(J,ye){for(var fe=-1,qe=J==null?0:J.length,It=Array(qe);++fe<qe;)It[fe]=ye(J[fe],fe,J);return It}function tl(J,ye){for(var fe=-1,qe=ye.length,It=J.length;++fe<qe;)J[It+fe]=ye[fe];return J}function Ky(J,ye,fe,qe){var It=-1,qt=J==null?0:J.length;for(qe&&qt&&(fe=J[++It]);++It<qt;)fe=ye(fe,J[It],It,J);return fe}function YD(J,ye,fe,qe){var It=J==null?0:J.length;for(qe&&It&&(fe=J[--It]);It--;)fe=ye(fe,J[It],It,J);return fe}function qy(J,ye){for(var fe=-1,qe=J==null?0:J.length;++fe<qe;)if(ye(J[fe],fe,J))return!0;return!1}var QD=Yy("length");function XD(J){return J.split("")}function JD(J){return J.match(_n)||[]}function DP(J,ye,fe){var qe;return fe(J,function(It,qt,er){if(ye(It,qt,er))return qe=qt,!1}),qe}function Kp(J,ye,fe,qe){for(var It=J.length,qt=fe+(qe?1:-1);qe?qt--:++qt<It;)if(ye(J[qt],qt,J))return qt;return-1}function dc(J,ye,fe){return ye===ye?u5(J,ye,fe):Kp(J,BP,fe)}function ZD(J,ye,fe,qe){for(var It=fe-1,qt=J.length;++It<qt;)if(qe(J[It],ye))return It;return-1}function BP(J){return J!==J}function zP(J,ye){var fe=J==null?0:J.length;return fe?Xy(J,ye)/fe:W}function Yy(J){return function(ye){return ye==null?n:ye[J]}}function Qy(J){return function(ye){return J==null?n:J[ye]}}function jP(J,ye,fe,qe,It){return It(J,function(qt,er,fn){fe=qe?(qe=!1,qt):ye(fe,qt,er,fn)}),fe}function e5(J,ye){var fe=J.length;for(J.sort(ye);fe--;)J[fe]=J[fe].value;return J}function Xy(J,ye){for(var fe,qe=-1,It=J.length;++qe<It;){var qt=ye(J[qe]);qt!==n&&(fe=fe===n?qt:fe+qt)}return fe}function Jy(J,ye){for(var fe=-1,qe=Array(J);++fe<J;)qe[fe]=ye(fe);return qe}function t5(J,ye){return $n(ye,function(fe){return[fe,J[fe]]})}function HP(J){return J&&J.slice(0,GP(J)+1).replace(ft,"")}function ho(J){return function(ye){return J(ye)}}function Zy(J,ye){return $n(ye,function(fe){return J[fe]})}function md(J,ye){return J.has(ye)}function VP(J,ye){for(var fe=-1,qe=J.length;++fe<qe&&dc(ye,J[fe],0)>-1;);return fe}function UP(J,ye){for(var fe=J.length;fe--&&dc(ye,J[fe],0)>-1;);return fe}function n5(J,ye){for(var fe=J.length,qe=0;fe--;)J[fe]===ye&&++qe;return qe}var r5=Qy(zD),o5=Qy(jD);function i5(J){return"\\"+VD[J]}function s5(J,ye){return J==null?n:J[ye]}function fc(J){return AD.test(J)}function l5(J){return ND.test(J)}function a5(J){for(var ye,fe=[];!(ye=J.next()).done;)fe.push(ye.value);return fe}function e0(J){var ye=-1,fe=Array(J.size);return J.forEach(function(qe,It){fe[++ye]=[It,qe]}),fe}function WP(J,ye){return function(fe){return J(ye(fe))}}function nl(J,ye){for(var fe=-1,qe=J.length,It=0,qt=[];++fe<qe;){var er=J[fe];(er===ye||er===p)&&(J[fe]=p,qt[It++]=fe)}return qt}function qp(J){var ye=-1,fe=Array(J.size);return J.forEach(function(qe){fe[++ye]=qe}),fe}function c5(J){var ye=-1,fe=Array(J.size);return J.forEach(function(qe){fe[++ye]=[qe,qe]}),fe}function u5(J,ye,fe){for(var qe=fe-1,It=J.length;++qe<It;)if(J[qe]===ye)return qe;return-1}function d5(J,ye,fe){for(var qe=fe+1;qe--;)if(J[qe]===ye)return qe;return qe}function pc(J){return fc(J)?p5(J):QD(J)}function wi(J){return fc(J)?h5(J):XD(J)}function GP(J){for(var ye=J.length;ye--&&it.test(J.charAt(ye)););return ye}var f5=Qy(HD);function p5(J){for(var ye=Vy.lastIndex=0;Vy.test(J);)++ye;return ye}function h5(J){return J.match(Vy)||[]}function m5(J){return J.match(LD)||[]}var g5=function J(ye){ye=ye==null?vr:hc.defaults(vr.Object(),ye,hc.pick(vr,DD));var fe=ye.Array,qe=ye.Date,It=ye.Error,qt=ye.Function,er=ye.Math,fn=ye.Object,t0=ye.RegExp,v5=ye.String,Go=ye.TypeError,Yp=fe.prototype,y5=qt.prototype,mc=fn.prototype,Qp=ye["__core-js_shared__"],Xp=y5.toString,tn=mc.hasOwnProperty,b5=0,KP=function(){var l=/[^.]+$/.exec(Qp&&Qp.keys&&Qp.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),Jp=mc.toString,w5=Xp.call(fn),C5=vr._,x5=t0("^"+Xp.call(tn).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zp=RP?ye.Buffer:n,rl=ye.Symbol,eh=ye.Uint8Array,qP=Zp?Zp.allocUnsafe:n,th=WP(fn.getPrototypeOf,fn),YP=fn.create,QP=mc.propertyIsEnumerable,nh=Yp.splice,XP=rl?rl.isConcatSpreadable:n,gd=rl?rl.iterator:n,la=rl?rl.toStringTag:n,rh=function(){try{var l=fa(fn,"defineProperty");return l({},"",{}),l}catch(f){}}(),S5=ye.clearTimeout!==vr.clearTimeout&&ye.clearTimeout,E5=qe&&qe.now!==vr.Date.now&&qe.now,P5=ye.setTimeout!==vr.setTimeout&&ye.setTimeout,oh=er.ceil,ih=er.floor,n0=fn.getOwnPropertySymbols,I5=Zp?Zp.isBuffer:n,JP=ye.isFinite,k5=Yp.join,_5=WP(fn.keys,fn),tr=er.max,Er=er.min,$5=qe.now,R5=ye.parseInt,ZP=er.random,M5=Yp.reverse,r0=fa(ye,"DataView"),vd=fa(ye,"Map"),o0=fa(ye,"Promise"),gc=fa(ye,"Set"),yd=fa(ye,"WeakMap"),bd=fa(fn,"create"),sh=yd&&new yd,vc={},T5=pa(r0),O5=pa(vd),F5=pa(o0),L5=pa(gc),A5=pa(yd),lh=rl?rl.prototype:n,wd=lh?lh.valueOf:n,eI=lh?lh.toString:n;function U(l){if(Hn(l)&&!kt(l)&&!(l instanceof zt)){if(l instanceof Ko)return l;if(tn.call(l,"__wrapped__"))return tk(l)}return new Ko(l)}var yc=function(){function l(){}return function(f){if(!An(f))return{};if(YP)return YP(f);l.prototype=f;var b=new l;return l.prototype=n,b}}();function ah(){}function Ko(l,f){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}U.templateSettings={escape:jn,evaluate:Vo,interpolate:Hi,variable:"",imports:{_:U}},U.prototype=ah.prototype,U.prototype.constructor=U,Ko.prototype=yc(ah.prototype),Ko.prototype.constructor=Ko;function zt(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function N5(){var l=new zt(this.__wrapped__);return l.__actions__=qr(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=qr(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=qr(this.__views__),l}function D5(){if(this.__filtered__){var l=new zt(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function B5(){var l=this.__wrapped__.value(),f=this.__dir__,b=kt(l),$=f<0,j=b?l.length:0,G=X3(0,j,this.__views__),q=G.start,Q=G.end,Z=Q-q,Ce=$?Q:q-1,xe=this.__iteratees__,$e=xe.length,ze=0,rt=Er(Z,this.__takeCount__);if(!b||!$&&j==Z&&rt==Z)return EI(l,this.__actions__);var bt=[];e:for(;Z--&&ze<rt;){Ce+=f;for(var Ot=-1,wt=l[Ce];++Ot<$e;){var At=xe[Ot],Ht=At.iteratee,vo=At.type,Dr=Ht(wt);if(vo==F)wt=Dr;else if(!Dr){if(vo==M)continue e;break e}}bt[ze++]=wt}return bt}zt.prototype=yc(ah.prototype),zt.prototype.constructor=zt;function aa(l){var f=-1,b=l==null?0:l.length;for(this.clear();++f<b;){var $=l[f];this.set($[0],$[1])}}function z5(){this.__data__=bd?bd(null):{},this.size=0}function j5(l){var f=this.has(l)&&delete this.__data__[l];return this.size-=f?1:0,f}function H5(l){var f=this.__data__;if(bd){var b=f[l];return b===c?n:b}return tn.call(f,l)?f[l]:n}function V5(l){var f=this.__data__;return bd?f[l]!==n:tn.call(f,l)}function U5(l,f){var b=this.__data__;return this.size+=this.has(l)?0:1,b[l]=bd&&f===n?c:f,this}aa.prototype.clear=z5,aa.prototype.delete=j5,aa.prototype.get=H5,aa.prototype.has=V5,aa.prototype.set=U5;function xs(l){var f=-1,b=l==null?0:l.length;for(this.clear();++f<b;){var $=l[f];this.set($[0],$[1])}}function W5(){this.__data__=[],this.size=0}function G5(l){var f=this.__data__,b=ch(f,l);if(b<0)return!1;var $=f.length-1;return b==$?f.pop():nh.call(f,b,1),--this.size,!0}function K5(l){var f=this.__data__,b=ch(f,l);return b<0?n:f[b][1]}function q5(l){return ch(this.__data__,l)>-1}function Y5(l,f){var b=this.__data__,$=ch(b,l);return $<0?(++this.size,b.push([l,f])):b[$][1]=f,this}xs.prototype.clear=W5,xs.prototype.delete=G5,xs.prototype.get=K5,xs.prototype.has=q5,xs.prototype.set=Y5;function Ss(l){var f=-1,b=l==null?0:l.length;for(this.clear();++f<b;){var $=l[f];this.set($[0],$[1])}}function Q5(){this.size=0,this.__data__={hash:new aa,map:new(vd||xs),string:new aa}}function X5(l){var f=Ch(this,l).delete(l);return this.size-=f?1:0,f}function J5(l){return Ch(this,l).get(l)}function Z5(l){return Ch(this,l).has(l)}function e3(l,f){var b=Ch(this,l),$=b.size;return b.set(l,f),this.size+=b.size==$?0:1,this}Ss.prototype.clear=Q5,Ss.prototype.delete=X5,Ss.prototype.get=J5,Ss.prototype.has=Z5,Ss.prototype.set=e3;function ca(l){var f=-1,b=l==null?0:l.length;for(this.__data__=new Ss;++f<b;)this.add(l[f])}function t3(l){return this.__data__.set(l,c),this}function n3(l){return this.__data__.has(l)}ca.prototype.add=ca.prototype.push=t3,ca.prototype.has=n3;function Ci(l){var f=this.__data__=new xs(l);this.size=f.size}function r3(){this.__data__=new xs,this.size=0}function o3(l){var f=this.__data__,b=f.delete(l);return this.size=f.size,b}function i3(l){return this.__data__.get(l)}function s3(l){return this.__data__.has(l)}function l3(l,f){var b=this.__data__;if(b instanceof xs){var $=b.__data__;if(!vd||$.length<o-1)return $.push([l,f]),this.size=++b.size,this;b=this.__data__=new Ss($)}return b.set(l,f),this.size=b.size,this}Ci.prototype.clear=r3,Ci.prototype.delete=o3,Ci.prototype.get=i3,Ci.prototype.has=s3,Ci.prototype.set=l3;function tI(l,f){var b=kt(l),$=!b&&ha(l),j=!b&&!$&&al(l),G=!b&&!$&&!j&&xc(l),q=b||$||j||G,Q=q?Jy(l.length,v5):[],Z=Q.length;for(var Ce in l)(f||tn.call(l,Ce))&&!(q&&(Ce=="length"||j&&(Ce=="offset"||Ce=="parent")||G&&(Ce=="buffer"||Ce=="byteLength"||Ce=="byteOffset")||ks(Ce,Z)))&&Q.push(Ce);return Q}function nI(l){var f=l.length;return f?l[m0(0,f-1)]:n}function a3(l,f){return xh(qr(l),ua(f,0,l.length))}function c3(l){return xh(qr(l))}function i0(l,f,b){(b!==n&&!xi(l[f],b)||b===n&&!(f in l))&&Es(l,f,b)}function Cd(l,f,b){var $=l[f];(!(tn.call(l,f)&&xi($,b))||b===n&&!(f in l))&&Es(l,f,b)}function ch(l,f){for(var b=l.length;b--;)if(xi(l[b][0],f))return b;return-1}function u3(l,f,b,$){return ol(l,function(j,G,q){f($,j,b(j),q)}),$}function rI(l,f){return l&&Ui(f,ur(f),l)}function d3(l,f){return l&&Ui(f,Qr(f),l)}function Es(l,f,b){f=="__proto__"&&rh?rh(l,f,{configurable:!0,enumerable:!0,value:b,writable:!0}):l[f]=b}function s0(l,f){for(var b=-1,$=f.length,j=fe($),G=l==null;++b<$;)j[b]=G?n:z0(l,f[b]);return j}function ua(l,f,b){return l===l&&(b!==n&&(l=l<=b?l:b),f!==n&&(l=l>=f?l:f)),l}function qo(l,f,b,$,j,G){var q,Q=f&h,Z=f&m,Ce=f&g;if(b&&(q=j?b(l,$,j,G):b(l)),q!==n)return q;if(!An(l))return l;var xe=kt(l);if(xe){if(q=Z3(l),!Q)return qr(l,q)}else{var $e=Pr(l),ze=$e==_e||$e==Re;if(al(l))return kI(l,Q);if($e==te||$e==de||ze&&!j){if(q=Z||ze?{}:GI(l),!Q)return Z?H3(l,d3(q,l)):j3(l,rI(q,l))}else{if(!hn[$e])return j?l:{};q=eB(l,$e,Q)}}G||(G=new Ci);var rt=G.get(l);if(rt)return rt;G.set(l,q),Ck(l)?l.forEach(function(wt){q.add(qo(wt,f,b,wt,l,G))}):bk(l)&&l.forEach(function(wt,At){q.set(At,qo(wt,f,b,At,l,G))});var bt=Ce?Z?I0:P0:Z?Qr:ur,Ot=xe?n:bt(l);return Wo(Ot||l,function(wt,At){Ot&&(At=wt,wt=l[At]),Cd(q,At,qo(wt,f,b,At,l,G))}),q}function f3(l){var f=ur(l);return function(b){return oI(b,l,f)}}function oI(l,f,b){var $=b.length;if(l==null)return!$;for(l=fn(l);$--;){var j=b[$],G=f[j],q=l[j];if(q===n&&!(j in l)||!G(q))return!1}return!0}function iI(l,f,b){if(typeof l!="function")throw new Go(s);return _d(function(){l.apply(n,b)},f)}function xd(l,f,b,$){var j=-1,G=Gp,q=!0,Q=l.length,Z=[],Ce=f.length;if(!Q)return Z;b&&(f=$n(f,ho(b))),$?(G=Gy,q=!1):f.length>=o&&(G=md,q=!1,f=new ca(f));e:for(;++j<Q;){var xe=l[j],$e=b==null?xe:b(xe);if(xe=$||xe!==0?xe:0,q&&$e===$e){for(var ze=Ce;ze--;)if(f[ze]===$e)continue e;Z.push(xe)}else G(f,$e,$)||Z.push(xe)}return Z}var ol=TI(Vi),sI=TI(a0,!0);function p3(l,f){var b=!0;return ol(l,function($,j,G){return b=!!f($,j,G),b}),b}function uh(l,f,b){for(var $=-1,j=l.length;++$<j;){var G=l[$],q=f(G);if(q!=null&&(Q===n?q===q&&!go(q):b(q,Q)))var Q=q,Z=G}return Z}function h3(l,f,b,$){var j=l.length;for(b=Mt(b),b<0&&(b=-b>j?0:j+b),$=$===n||$>j?j:Mt($),$<0&&($+=j),$=b>$?0:Sk($);b<$;)l[b++]=f;return l}function lI(l,f){var b=[];return ol(l,function($,j,G){f($,j,G)&&b.push($)}),b}function yr(l,f,b,$,j){var G=-1,q=l.length;for(b||(b=nB),j||(j=[]);++G<q;){var Q=l[G];f>0&&b(Q)?f>1?yr(Q,f-1,b,$,j):tl(j,Q):$||(j[j.length]=Q)}return j}var l0=OI(),aI=OI(!0);function Vi(l,f){return l&&l0(l,f,ur)}function a0(l,f){return l&&aI(l,f,ur)}function dh(l,f){return el(f,function(b){return _s(l[b])})}function da(l,f){f=sl(f,l);for(var b=0,$=f.length;l!=null&&b<$;)l=l[Wi(f[b++])];return b&&b==$?l:n}function cI(l,f,b){var $=f(l);return kt(l)?$:tl($,b(l))}function Ar(l){return l==null?l===n?vt:be:la&&la in fn(l)?Q3(l):cB(l)}function c0(l,f){return l>f}function m3(l,f){return l!=null&&tn.call(l,f)}function g3(l,f){return l!=null&&f in fn(l)}function v3(l,f,b){return l>=Er(f,b)&&l<tr(f,b)}function u0(l,f,b){for(var $=b?Gy:Gp,j=l[0].length,G=l.length,q=G,Q=fe(G),Z=1/0,Ce=[];q--;){var xe=l[q];q&&f&&(xe=$n(xe,ho(f))),Z=Er(xe.length,Z),Q[q]=!b&&(f||j>=120&&xe.length>=120)?new ca(q&&xe):n}xe=l[0];var $e=-1,ze=Q[0];e:for(;++$e<j&&Ce.length<Z;){var rt=xe[$e],bt=f?f(rt):rt;if(rt=b||rt!==0?rt:0,!(ze?md(ze,bt):$(Ce,bt,b))){for(q=G;--q;){var Ot=Q[q];if(!(Ot?md(Ot,bt):$(l[q],bt,b)))continue e}ze&&ze.push(bt),Ce.push(rt)}}return Ce}function y3(l,f,b,$){return Vi(l,function(j,G,q){f($,b(j),G,q)}),$}function Sd(l,f,b){f=sl(f,l),l=QI(l,f);var $=l==null?l:l[Wi(Qo(f))];return $==null?n:po($,l,b)}function uI(l){return Hn(l)&&Ar(l)==de}function b3(l){return Hn(l)&&Ar(l)==yt}function w3(l){return Hn(l)&&Ar(l)==ve}function Ed(l,f,b,$,j){return l===f?!0:l==null||f==null||!Hn(l)&&!Hn(f)?l!==l&&f!==f:C3(l,f,b,$,Ed,j)}function C3(l,f,b,$,j,G){var q=kt(l),Q=kt(f),Z=q?se:Pr(l),Ce=Q?se:Pr(f);Z=Z==de?te:Z,Ce=Ce==de?te:Ce;var xe=Z==te,$e=Ce==te,ze=Z==Ce;if(ze&&al(l)){if(!al(f))return!1;q=!0,xe=!1}if(ze&&!xe)return G||(G=new Ci),q||xc(l)?VI(l,f,b,$,j,G):q3(l,f,Z,b,$,j,G);if(!(b&y)){var rt=xe&&tn.call(l,"__wrapped__"),bt=$e&&tn.call(f,"__wrapped__");if(rt||bt){var Ot=rt?l.value():l,wt=bt?f.value():f;return G||(G=new Ci),j(Ot,wt,b,$,G)}}return ze?(G||(G=new Ci),Y3(l,f,b,$,j,G)):!1}function x3(l){return Hn(l)&&Pr(l)==Se}function d0(l,f,b,$){var j=b.length,G=j,q=!$;if(l==null)return!G;for(l=fn(l);j--;){var Q=b[j];if(q&&Q[2]?Q[1]!==l[Q[0]]:!(Q[0]in l))return!1}for(;++j<G;){Q=b[j];var Z=Q[0],Ce=l[Z],xe=Q[1];if(q&&Q[2]){if(Ce===n&&!(Z in l))return!1}else{var $e=new Ci;if($)var ze=$(Ce,xe,Z,l,f,$e);if(!(ze===n?Ed(xe,Ce,y|v,$,$e):ze))return!1}}return!0}function dI(l){if(!An(l)||oB(l))return!1;var f=_s(l)?x5:Fn;return f.test(pa(l))}function S3(l){return Hn(l)&&Ar(l)==Ke}function E3(l){return Hn(l)&&Pr(l)==Ue}function P3(l){return Hn(l)&&_h(l.length)&&!!wn[Ar(l)]}function fI(l){return typeof l=="function"?l:l==null?Xr:typeof l=="object"?kt(l)?mI(l[0],l[1]):hI(l):Fk(l)}function f0(l){if(!kd(l))return _5(l);var f=[];for(var b in fn(l))tn.call(l,b)&&b!="constructor"&&f.push(b);return f}function I3(l){if(!An(l))return aB(l);var f=kd(l),b=[];for(var $ in l)$=="constructor"&&(f||!tn.call(l,$))||b.push($);return b}function p0(l,f){return l<f}function pI(l,f){var b=-1,$=Yr(l)?fe(l.length):[];return ol(l,function(j,G,q){$[++b]=f(j,G,q)}),$}function hI(l){var f=_0(l);return f.length==1&&f[0][2]?qI(f[0][0],f[0][1]):function(b){return b===l||d0(b,l,f)}}function mI(l,f){return R0(l)&&KI(f)?qI(Wi(l),f):function(b){var $=z0(b,l);return $===n&&$===f?j0(b,l):Ed(f,$,y|v)}}function fh(l,f,b,$,j){l!==f&&l0(f,function(G,q){if(j||(j=new Ci),An(G))k3(l,f,q,b,fh,$,j);else{var Q=$?$(T0(l,q),G,q+"",l,f,j):n;Q===n&&(Q=G),i0(l,q,Q)}},Qr)}function k3(l,f,b,$,j,G,q){var Q=T0(l,b),Z=T0(f,b),Ce=q.get(Z);if(Ce){i0(l,b,Ce);return}var xe=G?G(Q,Z,b+"",l,f,q):n,$e=xe===n;if($e){var ze=kt(Z),rt=!ze&&al(Z),bt=!ze&&!rt&&xc(Z);xe=Z,ze||rt||bt?kt(Q)?xe=Q:Kn(Q)?xe=qr(Q):rt?($e=!1,xe=kI(Z,!0)):bt?($e=!1,xe=_I(Z,!0)):xe=[]:$d(Z)||ha(Z)?(xe=Q,ha(Q)?xe=Ek(Q):(!An(Q)||_s(Q))&&(xe=GI(Z))):$e=!1}$e&&(q.set(Z,xe),j(xe,Z,$,G,q),q.delete(Z)),i0(l,b,xe)}function gI(l,f){var b=l.length;if(b)return f+=f<0?b:0,ks(f,b)?l[f]:n}function vI(l,f,b){f.length?f=$n(f,function(G){return kt(G)?function(q){return da(q,G.length===1?G[0]:G)}:G}):f=[Xr];var $=-1;f=$n(f,ho(gt()));var j=pI(l,function(G,q,Q){var Z=$n(f,function(Ce){return Ce(G)});return{criteria:Z,index:++$,value:G}});return e5(j,function(G,q){return z3(G,q,b)})}function _3(l,f){return yI(l,f,function(b,$){return j0(l,$)})}function yI(l,f,b){for(var $=-1,j=f.length,G={};++$<j;){var q=f[$],Q=da(l,q);b(Q,q)&&Pd(G,sl(q,l),Q)}return G}function $3(l){return function(f){return da(f,l)}}function h0(l,f,b,$){var j=$?ZD:dc,G=-1,q=f.length,Q=l;for(l===f&&(f=qr(f)),b&&(Q=$n(l,ho(b)));++G<q;)for(var Z=0,Ce=f[G],xe=b?b(Ce):Ce;(Z=j(Q,xe,Z,$))>-1;)Q!==l&&nh.call(Q,Z,1),nh.call(l,Z,1);return l}function bI(l,f){for(var b=l?f.length:0,$=b-1;b--;){var j=f[b];if(b==$||j!==G){var G=j;ks(j)?nh.call(l,j,1):y0(l,j)}}return l}function m0(l,f){return l+ih(ZP()*(f-l+1))}function R3(l,f,b,$){for(var j=-1,G=tr(oh((f-l)/(b||1)),0),q=fe(G);G--;)q[$?G:++j]=l,l+=b;return q}function g0(l,f){var b="";if(!l||f<1||f>A)return b;do f%2&&(b+=l),f=ih(f/2),f&&(l+=l);while(f);return b}function Ft(l,f){return O0(YI(l,f,Xr),l+"")}function M3(l){return nI(Sc(l))}function T3(l,f){var b=Sc(l);return xh(b,ua(f,0,b.length))}function Pd(l,f,b,$){if(!An(l))return l;f=sl(f,l);for(var j=-1,G=f.length,q=G-1,Q=l;Q!=null&&++j<G;){var Z=Wi(f[j]),Ce=b;if(Z==="__proto__"||Z==="constructor"||Z==="prototype")return l;if(j!=q){var xe=Q[Z];Ce=$?$(xe,Z,Q):n,Ce===n&&(Ce=An(xe)?xe:ks(f[j+1])?[]:{})}Cd(Q,Z,Ce),Q=Q[Z]}return l}var wI=sh?function(l,f){return sh.set(l,f),l}:Xr,O3=rh?function(l,f){return rh(l,"toString",{configurable:!0,enumerable:!1,value:V0(f),writable:!0})}:Xr;function F3(l){return xh(Sc(l))}function Yo(l,f,b){var $=-1,j=l.length;f<0&&(f=-f>j?0:j+f),b=b>j?j:b,b<0&&(b+=j),j=f>b?0:b-f>>>0,f>>>=0;for(var G=fe(j);++$<j;)G[$]=l[$+f];return G}function L3(l,f){var b;return ol(l,function($,j,G){return b=f($,j,G),!b}),!!b}function ph(l,f,b){var $=0,j=l==null?$:l.length;if(typeof f=="number"&&f===f&&j<=ie){for(;$<j;){var G=$+j>>>1,q=l[G];q!==null&&!go(q)&&(b?q<=f:q<f)?$=G+1:j=G}return j}return v0(l,f,Xr,b)}function v0(l,f,b,$){var j=0,G=l==null?0:l.length;if(G===0)return 0;f=b(f);for(var q=f!==f,Q=f===null,Z=go(f),Ce=f===n;j<G;){var xe=ih((j+G)/2),$e=b(l[xe]),ze=$e!==n,rt=$e===null,bt=$e===$e,Ot=go($e);if(q)var wt=$||bt;else Ce?wt=bt&&($||ze):Q?wt=bt&&ze&&($||!rt):Z?wt=bt&&ze&&!rt&&($||!Ot):rt||Ot?wt=!1:wt=$?$e<=f:$e<f;wt?j=xe+1:G=xe}return Er(G,Y)}function CI(l,f){for(var b=-1,$=l.length,j=0,G=[];++b<$;){var q=l[b],Q=f?f(q):q;if(!b||!xi(Q,Z)){var Z=Q;G[j++]=q===0?0:q}}return G}function xI(l){return typeof l=="number"?l:go(l)?W:+l}function mo(l){if(typeof l=="string")return l;if(kt(l))return $n(l,mo)+"";if(go(l))return eI?eI.call(l):"";var f=l+"";return f=="0"&&1/l==-V?"-0":f}function il(l,f,b){var $=-1,j=Gp,G=l.length,q=!0,Q=[],Z=Q;if(b)q=!1,j=Gy;else if(G>=o){var Ce=f?null:G3(l);if(Ce)return qp(Ce);q=!1,j=md,Z=new ca}else Z=f?[]:Q;e:for(;++$<G;){var xe=l[$],$e=f?f(xe):xe;if(xe=b||xe!==0?xe:0,q&&$e===$e){for(var ze=Z.length;ze--;)if(Z[ze]===$e)continue e;f&&Z.push($e),Q.push(xe)}else j(Z,$e,b)||(Z!==Q&&Z.push($e),Q.push(xe))}return Q}function y0(l,f){return f=sl(f,l),l=QI(l,f),l==null||delete l[Wi(Qo(f))]}function SI(l,f,b,$){return Pd(l,f,b(da(l,f)),$)}function hh(l,f,b,$){for(var j=l.length,G=$?j:-1;($?G--:++G<j)&&f(l[G],G,l););return b?Yo(l,$?0:G,$?G+1:j):Yo(l,$?G+1:0,$?j:G)}function EI(l,f){var b=l;return b instanceof zt&&(b=b.value()),Ky(f,function($,j){return j.func.apply(j.thisArg,tl([$],j.args))},b)}function b0(l,f,b){var $=l.length;if($<2)return $?il(l[0]):[];for(var j=-1,G=fe($);++j<$;)for(var q=l[j],Q=-1;++Q<$;)Q!=j&&(G[j]=xd(G[j]||q,l[Q],f,b));return il(yr(G,1),f,b)}function PI(l,f,b){for(var $=-1,j=l.length,G=f.length,q={};++$<j;){var Q=$<G?f[$]:n;b(q,l[$],Q)}return q}function w0(l){return Kn(l)?l:[]}function C0(l){return typeof l=="function"?l:Xr}function sl(l,f){return kt(l)?l:R0(l,f)?[l]:ek(Qt(l))}var A3=Ft;function ll(l,f,b){var $=l.length;return b=b===n?$:b,!f&&b>=$?l:Yo(l,f,b)}var II=S5||function(l){return vr.clearTimeout(l)};function kI(l,f){if(f)return l.slice();var b=l.length,$=qP?qP(b):new l.constructor(b);return l.copy($),$}function x0(l){var f=new l.constructor(l.byteLength);return new eh(f).set(new eh(l)),f}function N3(l,f){var b=f?x0(l.buffer):l.buffer;return new l.constructor(b,l.byteOffset,l.byteLength)}function D3(l){var f=new l.constructor(l.source,We.exec(l));return f.lastIndex=l.lastIndex,f}function B3(l){return wd?fn(wd.call(l)):{}}function _I(l,f){var b=f?x0(l.buffer):l.buffer;return new l.constructor(b,l.byteOffset,l.length)}function $I(l,f){if(l!==f){var b=l!==n,$=l===null,j=l===l,G=go(l),q=f!==n,Q=f===null,Z=f===f,Ce=go(f);if(!Q&&!Ce&&!G&&l>f||G&&q&&Z&&!Q&&!Ce||$&&q&&Z||!b&&Z||!j)return 1;if(!$&&!G&&!Ce&&l<f||Ce&&b&&j&&!$&&!G||Q&&b&&j||!q&&j||!Z)return-1}return 0}function z3(l,f,b){for(var $=-1,j=l.criteria,G=f.criteria,q=j.length,Q=b.length;++$<q;){var Z=$I(j[$],G[$]);if(Z){if($>=Q)return Z;var Ce=b[$];return Z*(Ce=="desc"?-1:1)}}return l.index-f.index}function RI(l,f,b,$){for(var j=-1,G=l.length,q=b.length,Q=-1,Z=f.length,Ce=tr(G-q,0),xe=fe(Z+Ce),$e=!$;++Q<Z;)xe[Q]=f[Q];for(;++j<q;)($e||j<G)&&(xe[b[j]]=l[j]);for(;Ce--;)xe[Q++]=l[j++];return xe}function MI(l,f,b,$){for(var j=-1,G=l.length,q=-1,Q=b.length,Z=-1,Ce=f.length,xe=tr(G-Q,0),$e=fe(xe+Ce),ze=!$;++j<xe;)$e[j]=l[j];for(var rt=j;++Z<Ce;)$e[rt+Z]=f[Z];for(;++q<Q;)(ze||j<G)&&($e[rt+b[q]]=l[j++]);return $e}function qr(l,f){var b=-1,$=l.length;for(f||(f=fe($));++b<$;)f[b]=l[b];return f}function Ui(l,f,b,$){var j=!b;b||(b={});for(var G=-1,q=f.length;++G<q;){var Q=f[G],Z=$?$(b[Q],l[Q],Q,b,l):n;Z===n&&(Z=l[Q]),j?Es(b,Q,Z):Cd(b,Q,Z)}return b}function j3(l,f){return Ui(l,$0(l),f)}function H3(l,f){return Ui(l,UI(l),f)}function mh(l,f){return function(b,$){var j=kt(b)?KD:u3,G=f?f():{};return j(b,l,gt($,2),G)}}function bc(l){return Ft(function(f,b){var $=-1,j=b.length,G=j>1?b[j-1]:n,q=j>2?b[2]:n;for(G=l.length>3&&typeof G=="function"?(j--,G):n,q&&Nr(b[0],b[1],q)&&(G=j<3?n:G,j=1),f=fn(f);++$<j;){var Q=b[$];Q&&l(f,Q,$,G)}return f})}function TI(l,f){return function(b,$){if(b==null)return b;if(!Yr(b))return l(b,$);for(var j=b.length,G=f?j:-1,q=fn(b);(f?G--:++G<j)&&$(q[G],G,q)!==!1;);return b}}function OI(l){return function(f,b,$){for(var j=-1,G=fn(f),q=$(f),Q=q.length;Q--;){var Z=q[l?Q:++j];if(b(G[Z],Z,G)===!1)break}return f}}function V3(l,f,b){var $=f&S,j=Id(l);function G(){var q=this&&this!==vr&&this instanceof G?j:l;return q.apply($?b:this,arguments)}return G}function FI(l){return function(f){f=Qt(f);var b=fc(f)?wi(f):n,$=b?b[0]:f.charAt(0),j=b?ll(b,1).join(""):f.slice(1);return $[l]()+j}}function wc(l){return function(f){return Ky(Tk(Mk(f).replace(OD,"")),l,"")}}function Id(l){return function(){var f=arguments;switch(f.length){case 0:return new l;case 1:return new l(f[0]);case 2:return new l(f[0],f[1]);case 3:return new l(f[0],f[1],f[2]);case 4:return new l(f[0],f[1],f[2],f[3]);case 5:return new l(f[0],f[1],f[2],f[3],f[4]);case 6:return new l(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new l(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var b=yc(l.prototype),$=l.apply(b,f);return An($)?$:b}}function U3(l,f,b){var $=Id(l);function j(){for(var G=arguments.length,q=fe(G),Q=G,Z=Cc(j);Q--;)q[Q]=arguments[Q];var Ce=G<3&&q[0]!==Z&&q[G-1]!==Z?[]:nl(q,Z);if(G-=Ce.length,G<b)return BI(l,f,gh,j.placeholder,n,q,Ce,n,n,b-G);var xe=this&&this!==vr&&this instanceof j?$:l;return po(xe,this,q)}return j}function LI(l){return function(f,b,$){var j=fn(f);if(!Yr(f)){var G=gt(b,3);f=ur(f),b=function(Q){return G(j[Q],Q,j)}}var q=l(f,b,$);return q>-1?j[G?f[q]:q]:n}}function AI(l){return Is(function(f){var b=f.length,$=b,j=Ko.prototype.thru;for(l&&f.reverse();$--;){var G=f[$];if(typeof G!="function")throw new Go(s);if(j&&!q&&wh(G)=="wrapper")var q=new Ko([],!0)}for($=q?$:b;++$<b;){G=f[$];var Q=wh(G),Z=Q=="wrapper"?k0(G):n;Z&&M0(Z[0])&&Z[1]==(I|x|_|R)&&!Z[4].length&&Z[9]==1?q=q[wh(Z[0])].apply(q,Z[3]):q=G.length==1&&M0(G)?q[Q]():q.thru(G)}return function(){var Ce=arguments,xe=Ce[0];if(q&&Ce.length==1&&kt(xe))return q.plant(xe).value();for(var $e=0,ze=b?f[$e].apply(this,Ce):xe;++$e<b;)ze=f[$e].call(this,ze);return ze}})}function gh(l,f,b,$,j,G,q,Q,Z,Ce){var xe=f&I,$e=f&S,ze=f&w,rt=f&(x|P),bt=f&L,Ot=ze?n:Id(l);function wt(){for(var At=arguments.length,Ht=fe(At),vo=At;vo--;)Ht[vo]=arguments[vo];if(rt)var Dr=Cc(wt),yo=n5(Ht,Dr);if($&&(Ht=RI(Ht,$,j,rt)),G&&(Ht=MI(Ht,G,q,rt)),At-=yo,rt&&At<Ce){var qn=nl(Ht,Dr);return BI(l,f,gh,wt.placeholder,b,Ht,qn,Q,Z,Ce-At)}var Si=$e?b:this,Rs=ze?Si[l]:l;return At=Ht.length,Q?Ht=uB(Ht,Q):bt&&At>1&&Ht.reverse(),xe&&Z<At&&(Ht.length=Z),this&&this!==vr&&this instanceof wt&&(Rs=Ot||Id(Rs)),Rs.apply(Si,Ht)}return wt}function NI(l,f){return function(b,$){return y3(b,l,f($),{})}}function vh(l,f){return function(b,$){var j;if(b===n&&$===n)return f;if(b!==n&&(j=b),$!==n){if(j===n)return $;typeof b=="string"||typeof $=="string"?(b=mo(b),$=mo($)):(b=xI(b),$=xI($)),j=l(b,$)}return j}}function S0(l){return Is(function(f){return f=$n(f,ho(gt())),Ft(function(b){var $=this;return l(f,function(j){return po(j,$,b)})})})}function yh(l,f){f=f===n?" ":mo(f);var b=f.length;if(b<2)return b?g0(f,l):f;var $=g0(f,oh(l/pc(f)));return fc(f)?ll(wi($),0,l).join(""):$.slice(0,l)}function W3(l,f,b,$){var j=f&S,G=Id(l);function q(){for(var Q=-1,Z=arguments.length,Ce=-1,xe=$.length,$e=fe(xe+Z),ze=this&&this!==vr&&this instanceof q?G:l;++Ce<xe;)$e[Ce]=$[Ce];for(;Z--;)$e[Ce++]=arguments[++Q];return po(ze,j?b:this,$e)}return q}function DI(l){return function(f,b,$){return $&&typeof $!="number"&&Nr(f,b,$)&&(b=$=n),f=$s(f),b===n?(b=f,f=0):b=$s(b),$=$===n?f<b?1:-1:$s($),R3(f,b,$,l)}}function bh(l){return function(f,b){return typeof f=="string"&&typeof b=="string"||(f=Xo(f),b=Xo(b)),l(f,b)}}function BI(l,f,b,$,j,G,q,Q,Z,Ce){var xe=f&x,$e=xe?q:n,ze=xe?n:q,rt=xe?G:n,bt=xe?n:G;f|=xe?_:k,f&=~(xe?k:_),f&C||(f&=~(S|w));var Ot=[l,f,j,rt,$e,bt,ze,Q,Z,Ce],wt=b.apply(n,Ot);return M0(l)&&XI(wt,Ot),wt.placeholder=$,JI(wt,l,f)}function E0(l){var f=er[l];return function(b,$){if(b=Xo(b),$=$==null?0:Er(Mt($),292),$&&JP(b)){var j=(Qt(b)+"e").split("e"),G=f(j[0]+"e"+(+j[1]+$));return j=(Qt(G)+"e").split("e"),+(j[0]+"e"+(+j[1]-$))}return f(b)}}var G3=gc&&1/qp(new gc([,-0]))[1]==V?function(l){return new gc(l)}:G0;function zI(l){return function(f){var b=Pr(f);return b==Se?e0(f):b==Ue?c5(f):t5(f,l(f))}}function Ps(l,f,b,$,j,G,q,Q){var Z=f&w;if(!Z&&typeof l!="function")throw new Go(s);var Ce=$?$.length:0;if(Ce||(f&=~(_|k),$=j=n),q=q===n?q:tr(Mt(q),0),Q=Q===n?Q:Mt(Q),Ce-=j?j.length:0,f&k){var xe=$,$e=j;$=j=n}var ze=Z?n:k0(l),rt=[l,f,b,$,j,xe,$e,G,q,Q];if(ze&&lB(rt,ze),l=rt[0],f=rt[1],b=rt[2],$=rt[3],j=rt[4],Q=rt[9]=rt[9]===n?Z?0:l.length:tr(rt[9]-Ce,0),!Q&&f&(x|P)&&(f&=~(x|P)),!f||f==S)var bt=V3(l,f,b);else f==x||f==P?bt=U3(l,f,Q):(f==_||f==(S|_))&&!j.length?bt=W3(l,f,b,$):bt=gh.apply(n,rt);var Ot=ze?wI:XI;return JI(Ot(bt,rt),l,f)}function jI(l,f,b,$){return l===n||xi(l,mc[b])&&!tn.call($,b)?f:l}function HI(l,f,b,$,j,G){return An(l)&&An(f)&&(G.set(f,l),fh(l,f,n,HI,G),G.delete(f)),l}function K3(l){return $d(l)?n:l}function VI(l,f,b,$,j,G){var q=b&y,Q=l.length,Z=f.length;if(Q!=Z&&!(q&&Z>Q))return!1;var Ce=G.get(l),xe=G.get(f);if(Ce&&xe)return Ce==f&&xe==l;var $e=-1,ze=!0,rt=b&v?new ca:n;for(G.set(l,f),G.set(f,l);++$e<Q;){var bt=l[$e],Ot=f[$e];if($)var wt=q?$(Ot,bt,$e,f,l,G):$(bt,Ot,$e,l,f,G);if(wt!==n){if(wt)continue;ze=!1;break}if(rt){if(!qy(f,function(At,Ht){if(!md(rt,Ht)&&(bt===At||j(bt,At,b,$,G)))return rt.push(Ht)})){ze=!1;break}}else if(!(bt===Ot||j(bt,Ot,b,$,G))){ze=!1;break}}return G.delete(l),G.delete(f),ze}function q3(l,f,b,$,j,G,q){switch(b){case Ae:if(l.byteLength!=f.byteLength||l.byteOffset!=f.byteOffset)return!1;l=l.buffer,f=f.buffer;case yt:return!(l.byteLength!=f.byteLength||!G(new eh(l),new eh(f)));case ke:case ve:case pe:return xi(+l,+f);case ee:return l.name==f.name&&l.message==f.message;case Ke:case De:return l==f+"";case Se:var Q=e0;case Ue:var Z=$&y;if(Q||(Q=qp),l.size!=f.size&&!Z)return!1;var Ce=q.get(l);if(Ce)return Ce==f;$|=v,q.set(l,f);var xe=VI(Q(l),Q(f),$,j,G,q);return q.delete(l),xe;case dt:if(wd)return wd.call(l)==wd.call(f)}return!1}function Y3(l,f,b,$,j,G){var q=b&y,Q=P0(l),Z=Q.length,Ce=P0(f),xe=Ce.length;if(Z!=xe&&!q)return!1;for(var $e=Z;$e--;){var ze=Q[$e];if(!(q?ze in f:tn.call(f,ze)))return!1}var rt=G.get(l),bt=G.get(f);if(rt&&bt)return rt==f&&bt==l;var Ot=!0;G.set(l,f),G.set(f,l);for(var wt=q;++$e<Z;){ze=Q[$e];var At=l[ze],Ht=f[ze];if($)var vo=q?$(Ht,At,ze,f,l,G):$(At,Ht,ze,l,f,G);if(!(vo===n?At===Ht||j(At,Ht,b,$,G):vo)){Ot=!1;break}wt||(wt=ze=="constructor")}if(Ot&&!wt){var Dr=l.constructor,yo=f.constructor;Dr!=yo&&"constructor"in l&&"constructor"in f&&!(typeof Dr=="function"&&Dr instanceof Dr&&typeof yo=="function"&&yo instanceof yo)&&(Ot=!1)}return G.delete(l),G.delete(f),Ot}function Is(l){return O0(YI(l,n,ok),l+"")}function P0(l){return cI(l,ur,$0)}function I0(l){return cI(l,Qr,UI)}var k0=sh?function(l){return sh.get(l)}:G0;function wh(l){for(var f=l.name+"",b=vc[f],$=tn.call(vc,f)?b.length:0;$--;){var j=b[$],G=j.func;if(G==null||G==l)return j.name}return f}function Cc(l){var f=tn.call(U,"placeholder")?U:l;return f.placeholder}function gt(){var l=U.iteratee||U0;return l=l===U0?fI:l,arguments.length?l(arguments[0],arguments[1]):l}function Ch(l,f){var b=l.__data__;return rB(f)?b[typeof f=="string"?"string":"hash"]:b.map}function _0(l){for(var f=ur(l),b=f.length;b--;){var $=f[b],j=l[$];f[b]=[$,j,KI(j)]}return f}function fa(l,f){var b=s5(l,f);return dI(b)?b:n}function Q3(l){var f=tn.call(l,la),b=l[la];try{l[la]=n;var $=!0}catch(G){}var j=Jp.call(l);return $&&(f?l[la]=b:delete l[la]),j}var $0=n0?function(l){return l==null?[]:(l=fn(l),el(n0(l),function(f){return QP.call(l,f)}))}:K0,UI=n0?function(l){for(var f=[];l;)tl(f,$0(l)),l=th(l);return f}:K0,Pr=Ar;(r0&&Pr(new r0(new ArrayBuffer(1)))!=Ae||vd&&Pr(new vd)!=Se||o0&&Pr(o0.resolve())!=Oe||gc&&Pr(new gc)!=Ue||yd&&Pr(new yd)!=ct)&&(Pr=function(l){var f=Ar(l),b=f==te?l.constructor:n,$=b?pa(b):"";if($)switch($){case T5:return Ae;case O5:return Se;case F5:return Oe;case L5:return Ue;case A5:return ct}return f});function X3(l,f,b){for(var $=-1,j=b.length;++$<j;){var G=b[$],q=G.size;switch(G.type){case"drop":l+=q;break;case"dropRight":f-=q;break;case"take":f=Er(f,l+q);break;case"takeRight":l=tr(l,f-q);break}}return{start:l,end:f}}function J3(l){var f=l.match(Ct);return f?f[1].split(Ut):[]}function WI(l,f,b){f=sl(f,l);for(var $=-1,j=f.length,G=!1;++$<j;){var q=Wi(f[$]);if(!(G=l!=null&&b(l,q)))break;l=l[q]}return G||++$!=j?G:(j=l==null?0:l.length,!!j&&_h(j)&&ks(q,j)&&(kt(l)||ha(l)))}function Z3(l){var f=l.length,b=new l.constructor(f);return f&&typeof l[0]=="string"&&tn.call(l,"index")&&(b.index=l.index,b.input=l.input),b}function GI(l){return typeof l.constructor=="function"&&!kd(l)?yc(th(l)):{}}function eB(l,f,b){var $=l.constructor;switch(f){case yt:return x0(l);case ke:case ve:return new $(+l);case Ae:return N3(l,b);case Le:case Be:case Ze:case Ie:case Fe:case Ve:case nt:case ht:case Zt:return _I(l,b);case Se:return new $;case pe:case De:return new $(l);case Ke:return D3(l);case Ue:return new $;case dt:return B3(l)}}function tB(l,f){var b=f.length;if(!b)return l;var $=b-1;return f[$]=(b>1?"& ":"")+f[$],f=f.join(b>2?", ":" "),l.replace(He,`{
|
|
301
|
-
/* [wrapped with `+f+`] */
|
|
302
|
-
`)}function nB(l){return kt(l)||ha(l)||!!(XP&&l&&l[XP])}function ks(l,f){var b=typeof l;return f=f==null?A:f,!!f&&(b=="number"||b!="symbol"&&xt.test(l))&&l>-1&&l%1==0&&l<f}function Nr(l,f,b){if(!An(b))return!1;var $=typeof f;return($=="number"?Yr(b)&&ks(f,b.length):$=="string"&&f in b)?xi(b[f],l):!1}function R0(l,f){if(kt(l))return!1;var b=typeof l;return b=="number"||b=="symbol"||b=="boolean"||l==null||go(l)?!0:Cs.test(l)||!ws.test(l)||f!=null&&l in fn(f)}function rB(l){var f=typeof l;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?l!=="__proto__":l===null}function M0(l){var f=wh(l),b=U[f];if(typeof b!="function"||!(f in zt.prototype))return!1;if(l===b)return!0;var $=k0(b);return!!$&&l===$[0]}function oB(l){return!!KP&&KP in l}var iB=Qp?_s:q0;function kd(l){var f=l&&l.constructor,b=typeof f=="function"&&f.prototype||mc;return l===b}function KI(l){return l===l&&!An(l)}function qI(l,f){return function(b){return b==null?!1:b[l]===f&&(f!==n||l in fn(b))}}function sB(l){var f=Ih(l,function($){return b.size===d&&b.clear(),$}),b=f.cache;return f}function lB(l,f){var b=l[1],$=f[1],j=b|$,G=j<(S|w|I),q=$==I&&b==x||$==I&&b==R&&l[7].length<=f[8]||$==(I|R)&&f[7].length<=f[8]&&b==x;if(!(G||q))return l;$&S&&(l[2]=f[2],j|=b&S?0:C);var Q=f[3];if(Q){var Z=l[3];l[3]=Z?RI(Z,Q,f[4]):Q,l[4]=Z?nl(l[3],p):f[4]}return Q=f[5],Q&&(Z=l[5],l[5]=Z?MI(Z,Q,f[6]):Q,l[6]=Z?nl(l[5],p):f[6]),Q=f[7],Q&&(l[7]=Q),$&I&&(l[8]=l[8]==null?f[8]:Er(l[8],f[8])),l[9]==null&&(l[9]=f[9]),l[0]=f[0],l[1]=j,l}function aB(l){var f=[];if(l!=null)for(var b in fn(l))f.push(b);return f}function cB(l){return Jp.call(l)}function YI(l,f,b){return f=tr(f===n?l.length-1:f,0),function(){for(var $=arguments,j=-1,G=tr($.length-f,0),q=fe(G);++j<G;)q[j]=$[f+j];j=-1;for(var Q=fe(f+1);++j<f;)Q[j]=$[j];return Q[f]=b(q),po(l,this,Q)}}function QI(l,f){return f.length<2?l:da(l,Yo(f,0,-1))}function uB(l,f){for(var b=l.length,$=Er(f.length,b),j=qr(l);$--;){var G=f[$];l[$]=ks(G,b)?j[G]:n}return l}function T0(l,f){if(!(f==="constructor"&&typeof l[f]=="function")&&f!="__proto__")return l[f]}var XI=ZI(wI),_d=P5||function(l,f){return vr.setTimeout(l,f)},O0=ZI(O3);function JI(l,f,b){var $=f+"";return O0(l,tB($,dB(J3($),b)))}function ZI(l){var f=0,b=0;return function(){var $=$5(),j=B-($-b);if(b=$,j>0){if(++f>=D)return arguments[0]}else f=0;return l.apply(n,arguments)}}function xh(l,f){var b=-1,$=l.length,j=$-1;for(f=f===n?$:f;++b<f;){var G=m0(b,j),q=l[G];l[G]=l[b],l[b]=q}return l.length=f,l}var ek=sB(function(l){var f=[];return l.charCodeAt(0)===46&&f.push(""),l.replace(ce,function(b,$,j,G){f.push(j?G.replace(we,"$1"):$||b)}),f});function Wi(l){if(typeof l=="string"||go(l))return l;var f=l+"";return f=="0"&&1/l==-V?"-0":f}function pa(l){if(l!=null){try{return Xp.call(l)}catch(f){}try{return l+""}catch(f){}}return""}function dB(l,f){return Wo(re,function(b){var $="_."+b[0];f&b[1]&&!Gp(l,$)&&l.push($)}),l.sort()}function tk(l){if(l instanceof zt)return l.clone();var f=new Ko(l.__wrapped__,l.__chain__);return f.__actions__=qr(l.__actions__),f.__index__=l.__index__,f.__values__=l.__values__,f}function fB(l,f,b){(b?Nr(l,f,b):f===n)?f=1:f=tr(Mt(f),0);var $=l==null?0:l.length;if(!$||f<1)return[];for(var j=0,G=0,q=fe(oh($/f));j<$;)q[G++]=Yo(l,j,j+=f);return q}function pB(l){for(var f=-1,b=l==null?0:l.length,$=0,j=[];++f<b;){var G=l[f];G&&(j[$++]=G)}return j}function hB(){var l=arguments.length;if(!l)return[];for(var f=fe(l-1),b=arguments[0],$=l;$--;)f[$-1]=arguments[$];return tl(kt(b)?qr(b):[b],yr(f,1))}var mB=Ft(function(l,f){return Kn(l)?xd(l,yr(f,1,Kn,!0)):[]}),gB=Ft(function(l,f){var b=Qo(f);return Kn(b)&&(b=n),Kn(l)?xd(l,yr(f,1,Kn,!0),gt(b,2)):[]}),vB=Ft(function(l,f){var b=Qo(f);return Kn(b)&&(b=n),Kn(l)?xd(l,yr(f,1,Kn,!0),n,b):[]});function yB(l,f,b){var $=l==null?0:l.length;return $?(f=b||f===n?1:Mt(f),Yo(l,f<0?0:f,$)):[]}function bB(l,f,b){var $=l==null?0:l.length;return $?(f=b||f===n?1:Mt(f),f=$-f,Yo(l,0,f<0?0:f)):[]}function wB(l,f){return l&&l.length?hh(l,gt(f,3),!0,!0):[]}function CB(l,f){return l&&l.length?hh(l,gt(f,3),!0):[]}function xB(l,f,b,$){var j=l==null?0:l.length;return j?(b&&typeof b!="number"&&Nr(l,f,b)&&(b=0,$=j),h3(l,f,b,$)):[]}function nk(l,f,b){var $=l==null?0:l.length;if(!$)return-1;var j=b==null?0:Mt(b);return j<0&&(j=tr($+j,0)),Kp(l,gt(f,3),j)}function rk(l,f,b){var $=l==null?0:l.length;if(!$)return-1;var j=$-1;return b!==n&&(j=Mt(b),j=b<0?tr($+j,0):Er(j,$-1)),Kp(l,gt(f,3),j,!0)}function ok(l){var f=l==null?0:l.length;return f?yr(l,1):[]}function SB(l){var f=l==null?0:l.length;return f?yr(l,V):[]}function EB(l,f){var b=l==null?0:l.length;return b?(f=f===n?1:Mt(f),yr(l,f)):[]}function PB(l){for(var f=-1,b=l==null?0:l.length,$={};++f<b;){var j=l[f];$[j[0]]=j[1]}return $}function ik(l){return l&&l.length?l[0]:n}function IB(l,f,b){var $=l==null?0:l.length;if(!$)return-1;var j=b==null?0:Mt(b);return j<0&&(j=tr($+j,0)),dc(l,f,j)}function kB(l){var f=l==null?0:l.length;return f?Yo(l,0,-1):[]}var _B=Ft(function(l){var f=$n(l,w0);return f.length&&f[0]===l[0]?u0(f):[]}),$B=Ft(function(l){var f=Qo(l),b=$n(l,w0);return f===Qo(b)?f=n:b.pop(),b.length&&b[0]===l[0]?u0(b,gt(f,2)):[]}),RB=Ft(function(l){var f=Qo(l),b=$n(l,w0);return f=typeof f=="function"?f:n,f&&b.pop(),b.length&&b[0]===l[0]?u0(b,n,f):[]});function MB(l,f){return l==null?"":k5.call(l,f)}function Qo(l){var f=l==null?0:l.length;return f?l[f-1]:n}function TB(l,f,b){var $=l==null?0:l.length;if(!$)return-1;var j=$;return b!==n&&(j=Mt(b),j=j<0?tr($+j,0):Er(j,$-1)),f===f?d5(l,f,j):Kp(l,BP,j,!0)}function OB(l,f){return l&&l.length?gI(l,Mt(f)):n}var FB=Ft(sk);function sk(l,f){return l&&l.length&&f&&f.length?h0(l,f):l}function LB(l,f,b){return l&&l.length&&f&&f.length?h0(l,f,gt(b,2)):l}function AB(l,f,b){return l&&l.length&&f&&f.length?h0(l,f,n,b):l}var NB=Is(function(l,f){var b=l==null?0:l.length,$=s0(l,f);return bI(l,$n(f,function(j){return ks(j,b)?+j:j}).sort($I)),$});function DB(l,f){var b=[];if(!(l&&l.length))return b;var $=-1,j=[],G=l.length;for(f=gt(f,3);++$<G;){var q=l[$];f(q,$,l)&&(b.push(q),j.push($))}return bI(l,j),b}function F0(l){return l==null?l:M5.call(l)}function BB(l,f,b){var $=l==null?0:l.length;return $?(b&&typeof b!="number"&&Nr(l,f,b)?(f=0,b=$):(f=f==null?0:Mt(f),b=b===n?$:Mt(b)),Yo(l,f,b)):[]}function zB(l,f){return ph(l,f)}function jB(l,f,b){return v0(l,f,gt(b,2))}function HB(l,f){var b=l==null?0:l.length;if(b){var $=ph(l,f);if($<b&&xi(l[$],f))return $}return-1}function VB(l,f){return ph(l,f,!0)}function UB(l,f,b){return v0(l,f,gt(b,2),!0)}function WB(l,f){var b=l==null?0:l.length;if(b){var $=ph(l,f,!0)-1;if(xi(l[$],f))return $}return-1}function GB(l){return l&&l.length?CI(l):[]}function KB(l,f){return l&&l.length?CI(l,gt(f,2)):[]}function qB(l){var f=l==null?0:l.length;return f?Yo(l,1,f):[]}function YB(l,f,b){return l&&l.length?(f=b||f===n?1:Mt(f),Yo(l,0,f<0?0:f)):[]}function QB(l,f,b){var $=l==null?0:l.length;return $?(f=b||f===n?1:Mt(f),f=$-f,Yo(l,f<0?0:f,$)):[]}function XB(l,f){return l&&l.length?hh(l,gt(f,3),!1,!0):[]}function JB(l,f){return l&&l.length?hh(l,gt(f,3)):[]}var ZB=Ft(function(l){return il(yr(l,1,Kn,!0))}),ez=Ft(function(l){var f=Qo(l);return Kn(f)&&(f=n),il(yr(l,1,Kn,!0),gt(f,2))}),tz=Ft(function(l){var f=Qo(l);return f=typeof f=="function"?f:n,il(yr(l,1,Kn,!0),n,f)});function nz(l){return l&&l.length?il(l):[]}function rz(l,f){return l&&l.length?il(l,gt(f,2)):[]}function oz(l,f){return f=typeof f=="function"?f:n,l&&l.length?il(l,n,f):[]}function L0(l){if(!(l&&l.length))return[];var f=0;return l=el(l,function(b){if(Kn(b))return f=tr(b.length,f),!0}),Jy(f,function(b){return $n(l,Yy(b))})}function lk(l,f){if(!(l&&l.length))return[];var b=L0(l);return f==null?b:$n(b,function($){return po(f,n,$)})}var iz=Ft(function(l,f){return Kn(l)?xd(l,f):[]}),sz=Ft(function(l){return b0(el(l,Kn))}),lz=Ft(function(l){var f=Qo(l);return Kn(f)&&(f=n),b0(el(l,Kn),gt(f,2))}),az=Ft(function(l){var f=Qo(l);return f=typeof f=="function"?f:n,b0(el(l,Kn),n,f)}),cz=Ft(L0);function uz(l,f){return PI(l||[],f||[],Cd)}function dz(l,f){return PI(l||[],f||[],Pd)}var fz=Ft(function(l){var f=l.length,b=f>1?l[f-1]:n;return b=typeof b=="function"?(l.pop(),b):n,lk(l,b)});function ak(l){var f=U(l);return f.__chain__=!0,f}function pz(l,f){return f(l),l}function Sh(l,f){return f(l)}var hz=Is(function(l){var f=l.length,b=f?l[0]:0,$=this.__wrapped__,j=function(G){return s0(G,l)};return f>1||this.__actions__.length||!($ instanceof zt)||!ks(b)?this.thru(j):($=$.slice(b,+b+(f?1:0)),$.__actions__.push({func:Sh,args:[j],thisArg:n}),new Ko($,this.__chain__).thru(function(G){return f&&!G.length&&G.push(n),G}))});function mz(){return ak(this)}function gz(){return new Ko(this.value(),this.__chain__)}function vz(){this.__values__===n&&(this.__values__=xk(this.value()));var l=this.__index__>=this.__values__.length,f=l?n:this.__values__[this.__index__++];return{done:l,value:f}}function yz(){return this}function bz(l){for(var f,b=this;b instanceof ah;){var $=tk(b);$.__index__=0,$.__values__=n,f?j.__wrapped__=$:f=$;var j=$;b=b.__wrapped__}return j.__wrapped__=l,f}function wz(){var l=this.__wrapped__;if(l instanceof zt){var f=l;return this.__actions__.length&&(f=new zt(this)),f=f.reverse(),f.__actions__.push({func:Sh,args:[F0],thisArg:n}),new Ko(f,this.__chain__)}return this.thru(F0)}function Cz(){return EI(this.__wrapped__,this.__actions__)}var xz=mh(function(l,f,b){tn.call(l,b)?++l[b]:Es(l,b,1)});function Sz(l,f,b){var $=kt(l)?NP:p3;return b&&Nr(l,f,b)&&(f=n),$(l,gt(f,3))}function Ez(l,f){var b=kt(l)?el:lI;return b(l,gt(f,3))}var Pz=LI(nk),Iz=LI(rk);function kz(l,f){return yr(Eh(l,f),1)}function _z(l,f){return yr(Eh(l,f),V)}function $z(l,f,b){return b=b===n?1:Mt(b),yr(Eh(l,f),b)}function ck(l,f){var b=kt(l)?Wo:ol;return b(l,gt(f,3))}function uk(l,f){var b=kt(l)?qD:sI;return b(l,gt(f,3))}var Rz=mh(function(l,f,b){tn.call(l,b)?l[b].push(f):Es(l,b,[f])});function Mz(l,f,b,$){l=Yr(l)?l:Sc(l),b=b&&!$?Mt(b):0;var j=l.length;return b<0&&(b=tr(j+b,0)),$h(l)?b<=j&&l.indexOf(f,b)>-1:!!j&&dc(l,f,b)>-1}var Tz=Ft(function(l,f,b){var $=-1,j=typeof f=="function",G=Yr(l)?fe(l.length):[];return ol(l,function(q){G[++$]=j?po(f,q,b):Sd(q,f,b)}),G}),Oz=mh(function(l,f,b){Es(l,b,f)});function Eh(l,f){var b=kt(l)?$n:pI;return b(l,gt(f,3))}function Fz(l,f,b,$){return l==null?[]:(kt(f)||(f=f==null?[]:[f]),b=$?n:b,kt(b)||(b=b==null?[]:[b]),vI(l,f,b))}var Lz=mh(function(l,f,b){l[b?0:1].push(f)},function(){return[[],[]]});function Az(l,f,b){var $=kt(l)?Ky:jP,j=arguments.length<3;return $(l,gt(f,4),b,j,ol)}function Nz(l,f,b){var $=kt(l)?YD:jP,j=arguments.length<3;return $(l,gt(f,4),b,j,sI)}function Dz(l,f){var b=kt(l)?el:lI;return b(l,kh(gt(f,3)))}function Bz(l){var f=kt(l)?nI:M3;return f(l)}function zz(l,f,b){(b?Nr(l,f,b):f===n)?f=1:f=Mt(f);var $=kt(l)?a3:T3;return $(l,f)}function jz(l){var f=kt(l)?c3:F3;return f(l)}function Hz(l){if(l==null)return 0;if(Yr(l))return $h(l)?pc(l):l.length;var f=Pr(l);return f==Se||f==Ue?l.size:f0(l).length}function Vz(l,f,b){var $=kt(l)?qy:L3;return b&&Nr(l,f,b)&&(f=n),$(l,gt(f,3))}var Uz=Ft(function(l,f){if(l==null)return[];var b=f.length;return b>1&&Nr(l,f[0],f[1])?f=[]:b>2&&Nr(f[0],f[1],f[2])&&(f=[f[0]]),vI(l,yr(f,1),[])}),Ph=E5||function(){return vr.Date.now()};function Wz(l,f){if(typeof f!="function")throw new Go(s);return l=Mt(l),function(){if(--l<1)return f.apply(this,arguments)}}function dk(l,f,b){return f=b?n:f,f=l&&f==null?l.length:f,Ps(l,I,n,n,n,n,f)}function fk(l,f){var b;if(typeof f!="function")throw new Go(s);return l=Mt(l),function(){return--l>0&&(b=f.apply(this,arguments)),l<=1&&(f=n),b}}var A0=Ft(function(l,f,b){var $=S;if(b.length){var j=nl(b,Cc(A0));$|=_}return Ps(l,$,f,b,j)}),pk=Ft(function(l,f,b){var $=S|w;if(b.length){var j=nl(b,Cc(pk));$|=_}return Ps(f,$,l,b,j)});function hk(l,f,b){f=b?n:f;var $=Ps(l,x,n,n,n,n,n,f);return $.placeholder=hk.placeholder,$}function mk(l,f,b){f=b?n:f;var $=Ps(l,P,n,n,n,n,n,f);return $.placeholder=mk.placeholder,$}function gk(l,f,b){var $,j,G,q,Q,Z,Ce=0,xe=!1,$e=!1,ze=!0;if(typeof l!="function")throw new Go(s);f=Xo(f)||0,An(b)&&(xe=!!b.leading,$e="maxWait"in b,G=$e?tr(Xo(b.maxWait)||0,f):G,ze="trailing"in b?!!b.trailing:ze);function rt(qn){var Si=$,Rs=j;return $=j=n,Ce=qn,q=l.apply(Rs,Si),q}function bt(qn){return Ce=qn,Q=_d(At,f),xe?rt(qn):q}function Ot(qn){var Si=qn-Z,Rs=qn-Ce,Lk=f-Si;return $e?Er(Lk,G-Rs):Lk}function wt(qn){var Si=qn-Z,Rs=qn-Ce;return Z===n||Si>=f||Si<0||$e&&Rs>=G}function At(){var qn=Ph();if(wt(qn))return Ht(qn);Q=_d(At,Ot(qn))}function Ht(qn){return Q=n,ze&&$?rt(qn):($=j=n,q)}function vo(){Q!==n&&II(Q),Ce=0,$=Z=j=Q=n}function Dr(){return Q===n?q:Ht(Ph())}function yo(){var qn=Ph(),Si=wt(qn);if($=arguments,j=this,Z=qn,Si){if(Q===n)return bt(Z);if($e)return II(Q),Q=_d(At,f),rt(Z)}return Q===n&&(Q=_d(At,f)),q}return yo.cancel=vo,yo.flush=Dr,yo}var Gz=Ft(function(l,f){return iI(l,1,f)}),Kz=Ft(function(l,f,b){return iI(l,Xo(f)||0,b)});function qz(l){return Ps(l,L)}function Ih(l,f){if(typeof l!="function"||f!=null&&typeof f!="function")throw new Go(s);var b=function(){var $=arguments,j=f?f.apply(this,$):$[0],G=b.cache;if(G.has(j))return G.get(j);var q=l.apply(this,$);return b.cache=G.set(j,q)||G,q};return b.cache=new(Ih.Cache||Ss),b}Ih.Cache=Ss;function kh(l){if(typeof l!="function")throw new Go(s);return function(){var f=arguments;switch(f.length){case 0:return!l.call(this);case 1:return!l.call(this,f[0]);case 2:return!l.call(this,f[0],f[1]);case 3:return!l.call(this,f[0],f[1],f[2])}return!l.apply(this,f)}}function Yz(l){return fk(2,l)}var Qz=A3(function(l,f){f=f.length==1&&kt(f[0])?$n(f[0],ho(gt())):$n(yr(f,1),ho(gt()));var b=f.length;return Ft(function($){for(var j=-1,G=Er($.length,b);++j<G;)$[j]=f[j].call(this,$[j]);return po(l,this,$)})}),N0=Ft(function(l,f){var b=nl(f,Cc(N0));return Ps(l,_,n,f,b)}),vk=Ft(function(l,f){var b=nl(f,Cc(vk));return Ps(l,k,n,f,b)}),Xz=Is(function(l,f){return Ps(l,R,n,n,n,f)});function Jz(l,f){if(typeof l!="function")throw new Go(s);return f=f===n?f:Mt(f),Ft(l,f)}function Zz(l,f){if(typeof l!="function")throw new Go(s);return f=f==null?0:tr(Mt(f),0),Ft(function(b){var $=b[f],j=ll(b,0,f);return $&&tl(j,$),po(l,this,j)})}function e6(l,f,b){var $=!0,j=!0;if(typeof l!="function")throw new Go(s);return An(b)&&($="leading"in b?!!b.leading:$,j="trailing"in b?!!b.trailing:j),gk(l,f,{leading:$,maxWait:f,trailing:j})}function t6(l){return dk(l,1)}function n6(l,f){return N0(C0(f),l)}function r6(){if(!arguments.length)return[];var l=arguments[0];return kt(l)?l:[l]}function o6(l){return qo(l,g)}function i6(l,f){return f=typeof f=="function"?f:n,qo(l,g,f)}function s6(l){return qo(l,h|g)}function l6(l,f){return f=typeof f=="function"?f:n,qo(l,h|g,f)}function a6(l,f){return f==null||oI(l,f,ur(f))}function xi(l,f){return l===f||l!==l&&f!==f}var c6=bh(c0),u6=bh(function(l,f){return l>=f}),ha=uI(function(){return arguments}())?uI:function(l){return Hn(l)&&tn.call(l,"callee")&&!QP.call(l,"callee")},kt=fe.isArray,d6=MP?ho(MP):b3;function Yr(l){return l!=null&&_h(l.length)&&!_s(l)}function Kn(l){return Hn(l)&&Yr(l)}function f6(l){return l===!0||l===!1||Hn(l)&&Ar(l)==ke}var al=I5||q0,p6=TP?ho(TP):w3;function h6(l){return Hn(l)&&l.nodeType===1&&!$d(l)}function m6(l){if(l==null)return!0;if(Yr(l)&&(kt(l)||typeof l=="string"||typeof l.splice=="function"||al(l)||xc(l)||ha(l)))return!l.length;var f=Pr(l);if(f==Se||f==Ue)return!l.size;if(kd(l))return!f0(l).length;for(var b in l)if(tn.call(l,b))return!1;return!0}function g6(l,f){return Ed(l,f)}function v6(l,f,b){b=typeof b=="function"?b:n;var $=b?b(l,f):n;return $===n?Ed(l,f,n,b):!!$}function D0(l){if(!Hn(l))return!1;var f=Ar(l);return f==ee||f==Pe||typeof l.message=="string"&&typeof l.name=="string"&&!$d(l)}function y6(l){return typeof l=="number"&&JP(l)}function _s(l){if(!An(l))return!1;var f=Ar(l);return f==_e||f==Re||f==le||f==Ye}function yk(l){return typeof l=="number"&&l==Mt(l)}function _h(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=A}function An(l){var f=typeof l;return l!=null&&(f=="object"||f=="function")}function Hn(l){return l!=null&&typeof l=="object"}var bk=OP?ho(OP):x3;function b6(l,f){return l===f||d0(l,f,_0(f))}function w6(l,f,b){return b=typeof b=="function"?b:n,d0(l,f,_0(f),b)}function C6(l){return wk(l)&&l!=+l}function x6(l){if(iB(l))throw new It(i);return dI(l)}function S6(l){return l===null}function E6(l){return l==null}function wk(l){return typeof l=="number"||Hn(l)&&Ar(l)==pe}function $d(l){if(!Hn(l)||Ar(l)!=te)return!1;var f=th(l);if(f===null)return!0;var b=tn.call(f,"constructor")&&f.constructor;return typeof b=="function"&&b instanceof b&&Xp.call(b)==w5}var B0=FP?ho(FP):S3;function P6(l){return yk(l)&&l>=-A&&l<=A}var Ck=LP?ho(LP):E3;function $h(l){return typeof l=="string"||!kt(l)&&Hn(l)&&Ar(l)==De}function go(l){return typeof l=="symbol"||Hn(l)&&Ar(l)==dt}var xc=AP?ho(AP):P3;function I6(l){return l===n}function k6(l){return Hn(l)&&Pr(l)==ct}function _6(l){return Hn(l)&&Ar(l)==Pt}var $6=bh(p0),R6=bh(function(l,f){return l<=f});function xk(l){if(!l)return[];if(Yr(l))return $h(l)?wi(l):qr(l);if(gd&&l[gd])return a5(l[gd]());var f=Pr(l),b=f==Se?e0:f==Ue?qp:Sc;return b(l)}function $s(l){if(!l)return l===0?l:0;if(l=Xo(l),l===V||l===-V){var f=l<0?-1:1;return f*H}return l===l?l:0}function Mt(l){var f=$s(l),b=f%1;return f===f?b?f-b:f:0}function Sk(l){return l?ua(Mt(l),0,K):0}function Xo(l){if(typeof l=="number")return l;if(go(l))return W;if(An(l)){var f=typeof l.valueOf=="function"?l.valueOf():l;l=An(f)?f+"":f}if(typeof l!="string")return l===0?l:+l;l=HP(l);var b=Wt.test(l);return b||Ln.test(l)?WD(l.slice(2),b?2:8):pt.test(l)?W:+l}function Ek(l){return Ui(l,Qr(l))}function M6(l){return l?ua(Mt(l),-A,A):l===0?l:0}function Qt(l){return l==null?"":mo(l)}var T6=bc(function(l,f){if(kd(f)||Yr(f)){Ui(f,ur(f),l);return}for(var b in f)tn.call(f,b)&&Cd(l,b,f[b])}),Pk=bc(function(l,f){Ui(f,Qr(f),l)}),Rh=bc(function(l,f,b,$){Ui(f,Qr(f),l,$)}),O6=bc(function(l,f,b,$){Ui(f,ur(f),l,$)}),F6=Is(s0);function L6(l,f){var b=yc(l);return f==null?b:rI(b,f)}var A6=Ft(function(l,f){l=fn(l);var b=-1,$=f.length,j=$>2?f[2]:n;for(j&&Nr(f[0],f[1],j)&&($=1);++b<$;)for(var G=f[b],q=Qr(G),Q=-1,Z=q.length;++Q<Z;){var Ce=q[Q],xe=l[Ce];(xe===n||xi(xe,mc[Ce])&&!tn.call(l,Ce))&&(l[Ce]=G[Ce])}return l}),N6=Ft(function(l){return l.push(n,HI),po(Ik,n,l)});function D6(l,f){return DP(l,gt(f,3),Vi)}function B6(l,f){return DP(l,gt(f,3),a0)}function z6(l,f){return l==null?l:l0(l,gt(f,3),Qr)}function j6(l,f){return l==null?l:aI(l,gt(f,3),Qr)}function H6(l,f){return l&&Vi(l,gt(f,3))}function V6(l,f){return l&&a0(l,gt(f,3))}function U6(l){return l==null?[]:dh(l,ur(l))}function W6(l){return l==null?[]:dh(l,Qr(l))}function z0(l,f,b){var $=l==null?n:da(l,f);return $===n?b:$}function G6(l,f){return l!=null&&WI(l,f,m3)}function j0(l,f){return l!=null&&WI(l,f,g3)}var K6=NI(function(l,f,b){f!=null&&typeof f.toString!="function"&&(f=Jp.call(f)),l[f]=b},V0(Xr)),q6=NI(function(l,f,b){f!=null&&typeof f.toString!="function"&&(f=Jp.call(f)),tn.call(l,f)?l[f].push(b):l[f]=[b]},gt),Y6=Ft(Sd);function ur(l){return Yr(l)?tI(l):f0(l)}function Qr(l){return Yr(l)?tI(l,!0):I3(l)}function Q6(l,f){var b={};return f=gt(f,3),Vi(l,function($,j,G){Es(b,f($,j,G),$)}),b}function X6(l,f){var b={};return f=gt(f,3),Vi(l,function($,j,G){Es(b,j,f($,j,G))}),b}var J6=bc(function(l,f,b){fh(l,f,b)}),Ik=bc(function(l,f,b,$){fh(l,f,b,$)}),Z6=Is(function(l,f){var b={};if(l==null)return b;var $=!1;f=$n(f,function(G){return G=sl(G,l),$||($=G.length>1),G}),Ui(l,I0(l),b),$&&(b=qo(b,h|m|g,K3));for(var j=f.length;j--;)y0(b,f[j]);return b});function ej(l,f){return kk(l,kh(gt(f)))}var tj=Is(function(l,f){return l==null?{}:_3(l,f)});function kk(l,f){if(l==null)return{};var b=$n(I0(l),function($){return[$]});return f=gt(f),yI(l,b,function($,j){return f($,j[0])})}function nj(l,f,b){f=sl(f,l);var $=-1,j=f.length;for(j||(j=1,l=n);++$<j;){var G=l==null?n:l[Wi(f[$])];G===n&&($=j,G=b),l=_s(G)?G.call(l):G}return l}function rj(l,f,b){return l==null?l:Pd(l,f,b)}function oj(l,f,b,$){return $=typeof $=="function"?$:n,l==null?l:Pd(l,f,b,$)}var _k=zI(ur),$k=zI(Qr);function ij(l,f,b){var $=kt(l),j=$||al(l)||xc(l);if(f=gt(f,4),b==null){var G=l&&l.constructor;j?b=$?new G:[]:An(l)?b=_s(G)?yc(th(l)):{}:b={}}return(j?Wo:Vi)(l,function(q,Q,Z){return f(b,q,Q,Z)}),b}function sj(l,f){return l==null?!0:y0(l,f)}function lj(l,f,b){return l==null?l:SI(l,f,C0(b))}function aj(l,f,b,$){return $=typeof $=="function"?$:n,l==null?l:SI(l,f,C0(b),$)}function Sc(l){return l==null?[]:Zy(l,ur(l))}function cj(l){return l==null?[]:Zy(l,Qr(l))}function uj(l,f,b){return b===n&&(b=f,f=n),b!==n&&(b=Xo(b),b=b===b?b:0),f!==n&&(f=Xo(f),f=f===f?f:0),ua(Xo(l),f,b)}function dj(l,f,b){return f=$s(f),b===n?(b=f,f=0):b=$s(b),l=Xo(l),v3(l,f,b)}function fj(l,f,b){if(b&&typeof b!="boolean"&&Nr(l,f,b)&&(f=b=n),b===n&&(typeof f=="boolean"?(b=f,f=n):typeof l=="boolean"&&(b=l,l=n)),l===n&&f===n?(l=0,f=1):(l=$s(l),f===n?(f=l,l=0):f=$s(f)),l>f){var $=l;l=f,f=$}if(b||l%1||f%1){var j=ZP();return Er(l+j*(f-l+UD("1e-"+((j+"").length-1))),f)}return m0(l,f)}var pj=wc(function(l,f,b){return f=f.toLowerCase(),l+(b?Rk(f):f)});function Rk(l){return H0(Qt(l).toLowerCase())}function Mk(l){return l=Qt(l),l&&l.replace(cr,r5).replace(FD,"")}function hj(l,f,b){l=Qt(l),f=mo(f);var $=l.length;b=b===n?$:ua(Mt(b),0,$);var j=b;return b-=f.length,b>=0&&l.slice(b,j)==f}function mj(l){return l=Qt(l),l&&en.test(l)?l.replace(ar,o5):l}function gj(l){return l=Qt(l),l&&Ne.test(l)?l.replace(ge,"\\$&"):l}var vj=wc(function(l,f,b){return l+(b?"-":"")+f.toLowerCase()}),yj=wc(function(l,f,b){return l+(b?" ":"")+f.toLowerCase()}),bj=FI("toLowerCase");function wj(l,f,b){l=Qt(l),f=Mt(f);var $=f?pc(l):0;if(!f||$>=f)return l;var j=(f-$)/2;return yh(ih(j),b)+l+yh(oh(j),b)}function Cj(l,f,b){l=Qt(l),f=Mt(f);var $=f?pc(l):0;return f&&$<f?l+yh(f-$,b):l}function xj(l,f,b){l=Qt(l),f=Mt(f);var $=f?pc(l):0;return f&&$<f?yh(f-$,b)+l:l}function Sj(l,f,b){return b||f==null?f=0:f&&(f=+f),R5(Qt(l).replace(ft,""),f||0)}function Ej(l,f,b){return(b?Nr(l,f,b):f===n)?f=1:f=Mt(f),g0(Qt(l),f)}function Pj(){var l=arguments,f=Qt(l[0]);return l.length<3?f:f.replace(l[1],l[2])}var Ij=wc(function(l,f,b){return l+(b?"_":"")+f.toLowerCase()});function kj(l,f,b){return b&&typeof b!="number"&&Nr(l,f,b)&&(f=b=n),b=b===n?K:b>>>0,b?(l=Qt(l),l&&(typeof f=="string"||f!=null&&!B0(f))&&(f=mo(f),!f&&fc(l))?ll(wi(l),0,b):l.split(f,b)):[]}var _j=wc(function(l,f,b){return l+(b?" ":"")+H0(f)});function $j(l,f,b){return l=Qt(l),b=b==null?0:ua(Mt(b),0,l.length),f=mo(f),l.slice(b,b+f.length)==f}function Rj(l,f,b){var $=U.templateSettings;b&&Nr(l,f,b)&&(f=n),l=Qt(l),f=Rh({},f,$,jI);var j=Rh({},f.imports,$.imports,jI),G=ur(j),q=Zy(j,G),Q,Z,Ce=0,xe=f.interpolate||Vp,$e="__p += '",ze=t0((f.escape||Vp).source+"|"+xe.source+"|"+(xe===Hi?me:Vp).source+"|"+(f.evaluate||Vp).source+"|$","g"),rt="//# sourceURL="+(tn.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++BD+"]")+`
|
|
303
|
-
`;l.replace(ze,function(wt,At,Ht,vo,Dr,yo){return Ht||(Ht=vo),$e+=l.slice(Ce,yo).replace(gD,i5),At&&(Q=!0,$e+=`' +
|
|
304
|
-
__e(`+At+`) +
|
|
305
|
-
'`),Dr&&(Z=!0,$e+=`';
|
|
306
|
-
`+Dr+`;
|
|
307
|
-
__p += '`),Ht&&($e+=`' +
|
|
308
|
-
((__t = (`+Ht+`)) == null ? '' : __t) +
|
|
309
|
-
'`),Ce=yo+wt.length,wt}),$e+=`';
|
|
310
|
-
`;var bt=tn.call(f,"variable")&&f.variable;if(!bt)$e=`with (obj) {
|
|
311
|
-
`+$e+`
|
|
312
|
-
}
|
|
313
|
-
`;else if(fo.test(bt))throw new It(a);$e=(Z?$e.replace(kn,""):$e).replace(On,"$1").replace(Xn,"$1;"),$e="function("+(bt||"obj")+`) {
|
|
314
|
-
`+(bt?"":`obj || (obj = {});
|
|
315
|
-
`)+"var __t, __p = ''"+(Q?", __e = _.escape":"")+(Z?`, __j = Array.prototype.join;
|
|
316
|
-
function print() { __p += __j.call(arguments, '') }
|
|
317
|
-
`:`;
|
|
318
|
-
`)+$e+`return __p
|
|
319
|
-
}`;var Ot=Ok(function(){return qt(G,rt+"return "+$e).apply(n,q)});if(Ot.source=$e,D0(Ot))throw Ot;return Ot}function Mj(l){return Qt(l).toLowerCase()}function Tj(l){return Qt(l).toUpperCase()}function Oj(l,f,b){if(l=Qt(l),l&&(b||f===n))return HP(l);if(!l||!(f=mo(f)))return l;var $=wi(l),j=wi(f),G=VP($,j),q=UP($,j)+1;return ll($,G,q).join("")}function Fj(l,f,b){if(l=Qt(l),l&&(b||f===n))return l.slice(0,GP(l)+1);if(!l||!(f=mo(f)))return l;var $=wi(l),j=UP($,wi(f))+1;return ll($,0,j).join("")}function Lj(l,f,b){if(l=Qt(l),l&&(b||f===n))return l.replace(ft,"");if(!l||!(f=mo(f)))return l;var $=wi(l),j=VP($,wi(f));return ll($,j).join("")}function Aj(l,f){var b=N,$=O;if(An(f)){var j="separator"in f?f.separator:j;b="length"in f?Mt(f.length):b,$="omission"in f?mo(f.omission):$}l=Qt(l);var G=l.length;if(fc(l)){var q=wi(l);G=q.length}if(b>=G)return l;var Q=b-pc($);if(Q<1)return $;var Z=q?ll(q,0,Q).join(""):l.slice(0,Q);if(j===n)return Z+$;if(q&&(Q+=Z.length-Q),B0(j)){if(l.slice(Q).search(j)){var Ce,xe=Z;for(j.global||(j=t0(j.source,Qt(We.exec(j))+"g")),j.lastIndex=0;Ce=j.exec(xe);)var $e=Ce.index;Z=Z.slice(0,$e===n?Q:$e)}}else if(l.indexOf(mo(j),Q)!=Q){var ze=Z.lastIndexOf(j);ze>-1&&(Z=Z.slice(0,ze))}return Z+$}function Nj(l){return l=Qt(l),l&&bn.test(l)?l.replace(lr,f5):l}var Dj=wc(function(l,f,b){return l+(b?" ":"")+f.toUpperCase()}),H0=FI("toUpperCase");function Tk(l,f,b){return l=Qt(l),f=b?n:f,f===n?l5(l)?m5(l):JD(l):l.match(f)||[]}var Ok=Ft(function(l,f){try{return po(l,n,f)}catch(b){return D0(b)?b:new It(b)}}),Bj=Is(function(l,f){return Wo(f,function(b){b=Wi(b),Es(l,b,A0(l[b],l))}),l});function zj(l){var f=l==null?0:l.length,b=gt();return l=f?$n(l,function($){if(typeof $[1]!="function")throw new Go(s);return[b($[0]),$[1]]}):[],Ft(function($){for(var j=-1;++j<f;){var G=l[j];if(po(G[0],this,$))return po(G[1],this,$)}})}function jj(l){return f3(qo(l,h))}function V0(l){return function(){return l}}function Hj(l,f){return l==null||l!==l?f:l}var Vj=AI(),Uj=AI(!0);function Xr(l){return l}function U0(l){return fI(typeof l=="function"?l:qo(l,h))}function Wj(l){return hI(qo(l,h))}function Gj(l,f){return mI(l,qo(f,h))}var Kj=Ft(function(l,f){return function(b){return Sd(b,l,f)}}),qj=Ft(function(l,f){return function(b){return Sd(l,b,f)}});function W0(l,f,b){var $=ur(f),j=dh(f,$);b==null&&!(An(f)&&(j.length||!$.length))&&(b=f,f=l,l=this,j=dh(f,ur(f)));var G=!(An(b)&&"chain"in b)||!!b.chain,q=_s(l);return Wo(j,function(Q){var Z=f[Q];l[Q]=Z,q&&(l.prototype[Q]=function(){var Ce=this.__chain__;if(G||Ce){var xe=l(this.__wrapped__),$e=xe.__actions__=qr(this.__actions__);return $e.push({func:Z,args:arguments,thisArg:l}),xe.__chain__=Ce,xe}return Z.apply(l,tl([this.value()],arguments))})}),l}function Yj(){return vr._===this&&(vr._=C5),this}function G0(){}function Qj(l){return l=Mt(l),Ft(function(f){return gI(f,l)})}var Xj=S0($n),Jj=S0(NP),Zj=S0(qy);function Fk(l){return R0(l)?Yy(Wi(l)):$3(l)}function e9(l){return function(f){return l==null?n:da(l,f)}}var t9=DI(),n9=DI(!0);function K0(){return[]}function q0(){return!1}function r9(){return{}}function o9(){return""}function i9(){return!0}function s9(l,f){if(l=Mt(l),l<1||l>A)return[];var b=K,$=Er(l,K);f=gt(f),l-=K;for(var j=Jy($,f);++b<l;)f(b);return j}function l9(l){return kt(l)?$n(l,Wi):go(l)?[l]:qr(ek(Qt(l)))}function a9(l){var f=++b5;return Qt(l)+f}var c9=vh(function(l,f){return l+f},0),u9=E0("ceil"),d9=vh(function(l,f){return l/f},1),f9=E0("floor");function p9(l){return l&&l.length?uh(l,Xr,c0):n}function h9(l,f){return l&&l.length?uh(l,gt(f,2),c0):n}function m9(l){return zP(l,Xr)}function g9(l,f){return zP(l,gt(f,2))}function v9(l){return l&&l.length?uh(l,Xr,p0):n}function y9(l,f){return l&&l.length?uh(l,gt(f,2),p0):n}var b9=vh(function(l,f){return l*f},1),w9=E0("round"),C9=vh(function(l,f){return l-f},0);function x9(l){return l&&l.length?Xy(l,Xr):0}function S9(l,f){return l&&l.length?Xy(l,gt(f,2)):0}return U.after=Wz,U.ary=dk,U.assign=T6,U.assignIn=Pk,U.assignInWith=Rh,U.assignWith=O6,U.at=F6,U.before=fk,U.bind=A0,U.bindAll=Bj,U.bindKey=pk,U.castArray=r6,U.chain=ak,U.chunk=fB,U.compact=pB,U.concat=hB,U.cond=zj,U.conforms=jj,U.constant=V0,U.countBy=xz,U.create=L6,U.curry=hk,U.curryRight=mk,U.debounce=gk,U.defaults=A6,U.defaultsDeep=N6,U.defer=Gz,U.delay=Kz,U.difference=mB,U.differenceBy=gB,U.differenceWith=vB,U.drop=yB,U.dropRight=bB,U.dropRightWhile=wB,U.dropWhile=CB,U.fill=xB,U.filter=Ez,U.flatMap=kz,U.flatMapDeep=_z,U.flatMapDepth=$z,U.flatten=ok,U.flattenDeep=SB,U.flattenDepth=EB,U.flip=qz,U.flow=Vj,U.flowRight=Uj,U.fromPairs=PB,U.functions=U6,U.functionsIn=W6,U.groupBy=Rz,U.initial=kB,U.intersection=_B,U.intersectionBy=$B,U.intersectionWith=RB,U.invert=K6,U.invertBy=q6,U.invokeMap=Tz,U.iteratee=U0,U.keyBy=Oz,U.keys=ur,U.keysIn=Qr,U.map=Eh,U.mapKeys=Q6,U.mapValues=X6,U.matches=Wj,U.matchesProperty=Gj,U.memoize=Ih,U.merge=J6,U.mergeWith=Ik,U.method=Kj,U.methodOf=qj,U.mixin=W0,U.negate=kh,U.nthArg=Qj,U.omit=Z6,U.omitBy=ej,U.once=Yz,U.orderBy=Fz,U.over=Xj,U.overArgs=Qz,U.overEvery=Jj,U.overSome=Zj,U.partial=N0,U.partialRight=vk,U.partition=Lz,U.pick=tj,U.pickBy=kk,U.property=Fk,U.propertyOf=e9,U.pull=FB,U.pullAll=sk,U.pullAllBy=LB,U.pullAllWith=AB,U.pullAt=NB,U.range=t9,U.rangeRight=n9,U.rearg=Xz,U.reject=Dz,U.remove=DB,U.rest=Jz,U.reverse=F0,U.sampleSize=zz,U.set=rj,U.setWith=oj,U.shuffle=jz,U.slice=BB,U.sortBy=Uz,U.sortedUniq=GB,U.sortedUniqBy=KB,U.split=kj,U.spread=Zz,U.tail=qB,U.take=YB,U.takeRight=QB,U.takeRightWhile=XB,U.takeWhile=JB,U.tap=pz,U.throttle=e6,U.thru=Sh,U.toArray=xk,U.toPairs=_k,U.toPairsIn=$k,U.toPath=l9,U.toPlainObject=Ek,U.transform=ij,U.unary=t6,U.union=ZB,U.unionBy=ez,U.unionWith=tz,U.uniq=nz,U.uniqBy=rz,U.uniqWith=oz,U.unset=sj,U.unzip=L0,U.unzipWith=lk,U.update=lj,U.updateWith=aj,U.values=Sc,U.valuesIn=cj,U.without=iz,U.words=Tk,U.wrap=n6,U.xor=sz,U.xorBy=lz,U.xorWith=az,U.zip=cz,U.zipObject=uz,U.zipObjectDeep=dz,U.zipWith=fz,U.entries=_k,U.entriesIn=$k,U.extend=Pk,U.extendWith=Rh,W0(U,U),U.add=c9,U.attempt=Ok,U.camelCase=pj,U.capitalize=Rk,U.ceil=u9,U.clamp=uj,U.clone=o6,U.cloneDeep=s6,U.cloneDeepWith=l6,U.cloneWith=i6,U.conformsTo=a6,U.deburr=Mk,U.defaultTo=Hj,U.divide=d9,U.endsWith=hj,U.eq=xi,U.escape=mj,U.escapeRegExp=gj,U.every=Sz,U.find=Pz,U.findIndex=nk,U.findKey=D6,U.findLast=Iz,U.findLastIndex=rk,U.findLastKey=B6,U.floor=f9,U.forEach=ck,U.forEachRight=uk,U.forIn=z6,U.forInRight=j6,U.forOwn=H6,U.forOwnRight=V6,U.get=z0,U.gt=c6,U.gte=u6,U.has=G6,U.hasIn=j0,U.head=ik,U.identity=Xr,U.includes=Mz,U.indexOf=IB,U.inRange=dj,U.invoke=Y6,U.isArguments=ha,U.isArray=kt,U.isArrayBuffer=d6,U.isArrayLike=Yr,U.isArrayLikeObject=Kn,U.isBoolean=f6,U.isBuffer=al,U.isDate=p6,U.isElement=h6,U.isEmpty=m6,U.isEqual=g6,U.isEqualWith=v6,U.isError=D0,U.isFinite=y6,U.isFunction=_s,U.isInteger=yk,U.isLength=_h,U.isMap=bk,U.isMatch=b6,U.isMatchWith=w6,U.isNaN=C6,U.isNative=x6,U.isNil=E6,U.isNull=S6,U.isNumber=wk,U.isObject=An,U.isObjectLike=Hn,U.isPlainObject=$d,U.isRegExp=B0,U.isSafeInteger=P6,U.isSet=Ck,U.isString=$h,U.isSymbol=go,U.isTypedArray=xc,U.isUndefined=I6,U.isWeakMap=k6,U.isWeakSet=_6,U.join=MB,U.kebabCase=vj,U.last=Qo,U.lastIndexOf=TB,U.lowerCase=yj,U.lowerFirst=bj,U.lt=$6,U.lte=R6,U.max=p9,U.maxBy=h9,U.mean=m9,U.meanBy=g9,U.min=v9,U.minBy=y9,U.stubArray=K0,U.stubFalse=q0,U.stubObject=r9,U.stubString=o9,U.stubTrue=i9,U.multiply=b9,U.nth=OB,U.noConflict=Yj,U.noop=G0,U.now=Ph,U.pad=wj,U.padEnd=Cj,U.padStart=xj,U.parseInt=Sj,U.random=fj,U.reduce=Az,U.reduceRight=Nz,U.repeat=Ej,U.replace=Pj,U.result=nj,U.round=w9,U.runInContext=J,U.sample=Bz,U.size=Hz,U.snakeCase=Ij,U.some=Vz,U.sortedIndex=zB,U.sortedIndexBy=jB,U.sortedIndexOf=HB,U.sortedLastIndex=VB,U.sortedLastIndexBy=UB,U.sortedLastIndexOf=WB,U.startCase=_j,U.startsWith=$j,U.subtract=C9,U.sum=x9,U.sumBy=S9,U.template=Rj,U.times=s9,U.toFinite=$s,U.toInteger=Mt,U.toLength=Sk,U.toLower=Mj,U.toNumber=Xo,U.toSafeInteger=M6,U.toString=Qt,U.toUpper=Tj,U.trim=Oj,U.trimEnd=Fj,U.trimStart=Lj,U.truncate=Aj,U.unescape=Nj,U.uniqueId=a9,U.upperCase=Dj,U.upperFirst=H0,U.each=ck,U.eachRight=uk,U.first=ik,W0(U,function(){var l={};return Vi(U,function(f,b){tn.call(U.prototype,b)||(l[b]=f)}),l}(),{chain:!1}),U.VERSION=r,Wo(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){U[l].placeholder=U}),Wo(["drop","take"],function(l,f){zt.prototype[l]=function(b){b=b===n?1:tr(Mt(b),0);var $=this.__filtered__&&!f?new zt(this):this.clone();return $.__filtered__?$.__takeCount__=Er(b,$.__takeCount__):$.__views__.push({size:Er(b,K),type:l+($.__dir__<0?"Right":"")}),$},zt.prototype[l+"Right"]=function(b){return this.reverse()[l](b).reverse()}}),Wo(["filter","map","takeWhile"],function(l,f){var b=f+1,$=b==M||b==z;zt.prototype[l]=function(j){var G=this.clone();return G.__iteratees__.push({iteratee:gt(j,3),type:b}),G.__filtered__=G.__filtered__||$,G}}),Wo(["head","last"],function(l,f){var b="take"+(f?"Right":"");zt.prototype[l]=function(){return this[b](1).value()[0]}}),Wo(["initial","tail"],function(l,f){var b="drop"+(f?"":"Right");zt.prototype[l]=function(){return this.__filtered__?new zt(this):this[b](1)}}),zt.prototype.compact=function(){return this.filter(Xr)},zt.prototype.find=function(l){return this.filter(l).head()},zt.prototype.findLast=function(l){return this.reverse().find(l)},zt.prototype.invokeMap=Ft(function(l,f){return typeof l=="function"?new zt(this):this.map(function(b){return Sd(b,l,f)})}),zt.prototype.reject=function(l){return this.filter(kh(gt(l)))},zt.prototype.slice=function(l,f){l=Mt(l);var b=this;return b.__filtered__&&(l>0||f<0)?new zt(b):(l<0?b=b.takeRight(-l):l&&(b=b.drop(l)),f!==n&&(f=Mt(f),b=f<0?b.dropRight(-f):b.take(f-l)),b)},zt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},zt.prototype.toArray=function(){return this.take(K)},Vi(zt.prototype,function(l,f){var b=/^(?:filter|find|map|reject)|While$/.test(f),$=/^(?:head|last)$/.test(f),j=U[$?"take"+(f=="last"?"Right":""):f],G=$||/^find/.test(f);j&&(U.prototype[f]=function(){var q=this.__wrapped__,Q=$?[1]:arguments,Z=q instanceof zt,Ce=Q[0],xe=Z||kt(q),$e=function(At){var Ht=j.apply(U,tl([At],Q));return $&&ze?Ht[0]:Ht};xe&&b&&typeof Ce=="function"&&Ce.length!=1&&(Z=xe=!1);var ze=this.__chain__,rt=!!this.__actions__.length,bt=G&&!ze,Ot=Z&&!rt;if(!G&&xe){q=Ot?q:new zt(this);var wt=l.apply(q,Q);return wt.__actions__.push({func:Sh,args:[$e],thisArg:n}),new Ko(wt,ze)}return bt&&Ot?l.apply(this,Q):(wt=this.thru($e),bt?$?wt.value()[0]:wt.value():wt)})}),Wo(["pop","push","shift","sort","splice","unshift"],function(l){var f=Yp[l],b=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",$=/^(?:pop|shift)$/.test(l);U.prototype[l]=function(){var j=arguments;if($&&!this.__chain__){var G=this.value();return f.apply(kt(G)?G:[],j)}return this[b](function(q){return f.apply(kt(q)?q:[],j)})}}),Vi(zt.prototype,function(l,f){var b=U[f];if(b){var $=b.name+"";tn.call(vc,$)||(vc[$]=[]),vc[$].push({name:f,func:b})}}),vc[gh(n,w).name]=[{name:"wrapper",func:n}],zt.prototype.clone=N5,zt.prototype.reverse=D5,zt.prototype.value=B5,U.prototype.at=hz,U.prototype.chain=mz,U.prototype.commit=gz,U.prototype.next=vz,U.prototype.plant=bz,U.prototype.reverse=wz,U.prototype.toJSON=U.prototype.valueOf=U.prototype.value=Cz,U.prototype.first=U.prototype.head,gd&&(U.prototype[gd]=yz),U},hc=g5();sa?((sa.exports=hc)._=hc,Uy._=hc):vr._=hc}).call(Sn)})(Eg,Eg.exports);var nu=Eg.exports;const St=mp(nu);var rS={},Koe=lt;Object.defineProperty(rS,"__esModule",{value:!0});var ny=rS.default=void 0,qoe=Koe(at()),Yoe=st(),Qoe=(0,qoe.default)((0,Yoe.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),"Refresh");ny=rS.default=Qoe;var oS={},Xoe=lt;Object.defineProperty(oS,"__esModule",{value:!0});var iS=oS.default=void 0,Joe=Xoe(at()),Zoe=st(),eie=(0,Joe.default)((0,Zoe.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");iS=oS.default=eie;var sS={},tie=lt;Object.defineProperty(sS,"__esModule",{value:!0});var Rp=sS.default=void 0,nie=tie(at()),rie=st(),oie=(0,nie.default)((0,rie.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");Rp=sS.default=oie;var lS={},iie=lt;Object.defineProperty(lS,"__esModule",{value:!0});var ry=lS.default=void 0,sie=iie(at()),lie=st(),aie=(0,sie.default)((0,lie.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}),"Error");ry=lS.default=aie;var aS={},cie=lt;Object.defineProperty(aS,"__esModule",{value:!0});var HL=aS.default=void 0,uie=cie(at()),die=st(),fie=(0,uie.default)((0,die.jsx)("path",{d:"M12 8V4l8 8-8 8v-4H4V8z"}),"Forward");HL=aS.default=fie;var cS={},pie=lt;Object.defineProperty(cS,"__esModule",{value:!0});var tp=cS.default=void 0,hie=pie(at()),mie=st(),gie=(0,hie.default)((0,mie.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");tp=cS.default=gie;var uS={},vie=lt;Object.defineProperty(uS,"__esModule",{value:!0});var Mp=uS.default=void 0,yie=vie(at()),bie=st(),wie=(0,yie.default)((0,bie.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");Mp=uS.default=wie;const Pg="/~/api/",Cie={loginSrp1:90,update:600,get_status:20},VL={};function xie(e){Object.assign(VL,e)}function Et(e,t,n={}){var s,a,c;St.defaults(n,VL);const r=(s=n.modal)==null?void 0:s.call(n,e,t),o=GL();o&&(t=Ee({csrf:o},t));const i=new AbortController;return n.timeout!==!1&&setTimeout(()=>i.abort("timeout"),1e3*((c=(a=Cie[e])!=null?a:n.timeout)!=null?c:10)),Object.assign(fetch(oA()+Pg+e,{method:"POST",headers:{"content-type":"application/json"},signal:i.signal,body:t&&JSON.stringify(t)}).then(d=>mt(this,null,function*(){var g;r==null||r();let p=yield d.text(),h;try{h=JSON.parse(p)}catch(y){}const m=h!=null?h:p;if(console.debug(d.ok?"API":"API FAILED",e,t,">>",m),yield(g=n.onResponse)==null?void 0:g.call(n,d,m),!d.ok)throw new UL(d.status,h===void 0?p:`Failed API ${e}: ${d.statusText}`,h);return m}),d=>{var p;throw r==null||r(),(p=d==null?void 0:d.message)!=null&&p.includes("fetch")?Error("Network error"):d}),{abort(){i.abort("cancel")}})}class UL extends Error{constructor(t,n,r){super(n,{cause:r}),this.code=t}get data(){return this.cause}}function oy(e,t){const[n,r]=to(void 0),[o,i]=to(void 0),[s,a]=to(0),c=u.useRef(),d=u.useRef();u.useEffect(()=>{var y,v;if((y=c.current)==null||y.abort(),r(void 0),i(void 0),!e)return;let h=!1;const m=Et(e,t),g=m.then(S=>h||r(S),S=>h||i(S)).finally(()=>c.current=void 0);c.current=Object.assign(g,{abort(){h=!0,m.abort()}}),(v=d.current)==null||v.resolve(g)},[e,JSON.stringify(t),s]);const p=u.useCallback(()=>c.current||a(h=>h+1)||(d.current=bS()),[a]);return[n,o,p]}function WL(e,t,n){console.debug("API EVENTS",e,t);const r={};for(const s in t){const a=t[s];a!==void 0&&(r[s]=JSON.stringify(a))}const o=GL();o&&(r.csrf=JSON.stringify(o));const i=new EventSource(oA()+Pg+e+"?"+new URLSearchParams(r));return i.onopen=()=>n("connected"),i.onerror=s=>n("error",s),i.onmessage=({data:s})=>{if(!s)return n("closed"),i.close();try{s=JSON.parse(s)}catch(a){return n("string",s)}console.debug("SSE msg",s),n("msg",s)},i}function GL(){return cse("csrf")}function Sie(e,t={}){const[n,r]=to(void 0),[o,i]=to(void 0),[s,a]=to(!1);return u.useEffect(()=>{const c=WL(e,t,(p,h)=>{switch(p){case"error":return i("Connection error"),d();case"closed":return d();case"msg":return(c==null?void 0:c.readyState)===(c==null?void 0:c.CLOSED)?d():r(h)}});return()=>{c.close(),d()};function d(){a(!1)}},[e,JSON.stringify(t)]),{data:n,loading:s,error:o}}globalThis&&globalThis.__awaiter;function dS(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 Eie(e,t,n,r){const o=u.useRef(t);KL(()=>{o.current=t},[t]),u.useEffect(()=>{var i;const s=(i=n==null?void 0:n.current)!==null&&i!==void 0?i:window;if(!(s&&s.addEventListener))return;const a=c=>o.current(c);return s.addEventListener(e,a,r),()=>{s.removeEventListener(e,a,r)}},[e,n,r])}globalThis&&globalThis.__awaiter;function Pie(){const e=u.useRef(!1);return u.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),u.useCallback(()=>e.current,[])}const KL=typeof window!="undefined"?u.useLayoutEffect:u.useEffect;function qL(){const[e,t]=u.useState({width:0,height:0}),n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return Eie("resize",n),KL(()=>{n()},[]),e}function to(e){const t=Pie(),[n,r]=u.useState(e),o=u.useCallback(i=>{t()&&r(i)},[t,r]);return[n,o,t]}function Iie(e){return e.filter(t=>t===0||t&&(!Array.isArray(t)||t.length))}function kie(e,t){const n=[];for(const r of Iie(t))n.push(r,e);return n.splice(-1,1),np(n)}function np(e){return e.map((t,n)=>!t||typeof t=="string"?t:Array.isArray(t)?np(t):u.createElement(u.Fragment,{key:n,children:t}))}const _ie=Symbol(),fS=Symbol(),qd="a",Mm="w";let $ie=(e,t)=>new Proxy(e,t);const Pw=Object.getPrototypeOf,Iw=new WeakMap,YL=e=>e&&(Iw.has(e)?Iw.get(e):Pw(e)===Object.prototype||Pw(e)===Array.prototype),X$=e=>typeof e=="object"&&e!==null,Rie=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(Pw(e),t)},QL=e=>e[fS]||e,XL=(e,t,n,r)=>{if(!YL(e))return e;let o=r&&r.get(e);if(!o){const c=QL(e);o=(d=>Object.values(Object.getOwnPropertyDescriptors(d)).some(p=>!p.configurable&&!p.writable))(c)?[c,Rie(c)]:[c],r==null||r.set(e,o)}const[i,s]=o;let a=n&&n.get(i);return a&&a[1].f===!!s||(a=((c,d)=>{const p={f:d};let h=!1;const m=(y,v)=>{if(!h){let S=p[qd].get(c);if(S||(S={},p[qd].set(c,S)),y===Mm)S[Mm]=!0;else{let w=S[y];w||(w=new Set,S[y]=w),w.add(v)}}},g={get:(y,v)=>v===fS?c:(m("k",v),XL(Reflect.get(y,v),p[qd],p.c,p.t)),has:(y,v)=>v===_ie?(h=!0,p[qd].delete(c),!0):(m("h",v),Reflect.has(y,v)),getOwnPropertyDescriptor:(y,v)=>(m("o",v),Reflect.getOwnPropertyDescriptor(y,v)),ownKeys:y=>(m(Mm),Reflect.ownKeys(y))};return d&&(g.set=g.deleteProperty=()=>!1),[g,p]})(i,!!s),a[1].p=$ie(s||i,a[0]),n&&n.set(i,a)),a[1][qd]=t,a[1].c=n,a[1].t=r,a[1].p},JL=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!X$(e)||!X$(t))return!0;const o=n.get(QL(e));if(!o)return!0;if(r){const s=r.get(e);if(s&&s.n===t)return s.g;r.set(e,{n:t,g:!1})}let i=null;try{for(const s of o.h||[])if(i=Reflect.has(e,s)!==Reflect.has(t,s),i)return i;if(o[Mm]===!0){if(i=((s,a)=>{const c=Reflect.ownKeys(s),d=Reflect.ownKeys(a);return c.length!==d.length||c.some((p,h)=>p!==d[h])})(e,t),i)return i}else for(const s of o.o||[])if(i=!!Reflect.getOwnPropertyDescriptor(e,s)!=!!Reflect.getOwnPropertyDescriptor(t,s),i)return i;for(const s of o.k||[])if(i=JL(e[s],t[s],n,r),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i})}},Mie=e=>YL(e)&&e[fS]||null,J$=(e,t=!0)=>{Iw.set(e,t)};const z1=e=>typeof e=="object"&&e!==null,bl=new WeakMap,im=new WeakSet,Tie=(e=Object.is,t=(d,p)=>new Proxy(d,p),n=d=>z1(d)&&!im.has(d)&&(Array.isArray(d)||!(Symbol.iterator in d))&&!(d instanceof WeakMap)&&!(d instanceof WeakSet)&&!(d instanceof Error)&&!(d instanceof Number)&&!(d instanceof Date)&&!(d instanceof String)&&!(d instanceof RegExp)&&!(d instanceof ArrayBuffer),r=d=>{switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:throw d}},o=new WeakMap,i=(d,p,h=r)=>{const m=o.get(d);if((m==null?void 0:m[0])===p)return m[1];const g=Array.isArray(d)?[]:Object.create(Object.getPrototypeOf(d));return J$(g,!0),o.set(d,[p,g]),Reflect.ownKeys(d).forEach(y=>{if(Object.getOwnPropertyDescriptor(g,y))return;const v=Reflect.get(d,y),S={value:v,enumerable:!0,configurable:!0};if(im.has(v))J$(v,!1);else if(v instanceof Promise)delete S.value,S.get=()=>h(v);else if(bl.has(v)){const[w,C]=bl.get(v);S.value=i(w,C(),h)}Object.defineProperty(g,y,S)}),g},s=new WeakMap,a=[1,1],c=d=>{if(!z1(d))throw new Error("object required");const p=s.get(d);if(p)return p;let h=a[0];const m=new Set,g=(L,N=++a[0])=>{h!==N&&(h=N,m.forEach(O=>O(L,N)))};let y=a[1];const v=(L=++a[1])=>(y!==L&&!m.size&&(y=L,w.forEach(([N])=>{const O=N[1](L);O>h&&(h=O)})),h),S=L=>(N,O)=>{const D=[...N];D[1]=[L,...D[1]],g(D,O)},w=new Map,C=(L,N)=>{if(m.size){const O=N[3](S(L));w.set(L,[N,O])}else w.set(L,[N])},x=L=>{var N;const O=w.get(L);O&&(w.delete(L),(N=O[1])==null||N.call(O))},P=L=>(m.add(L),m.size===1&&w.forEach(([O,D],B)=>{const M=O[3](S(B));w.set(B,[O,M])}),()=>{m.delete(L),m.size===0&&w.forEach(([O,D],B)=>{D&&(D(),w.set(B,[O]))})}),_=Array.isArray(d)?[]:Object.create(Object.getPrototypeOf(d)),I=t(_,{deleteProperty(L,N){const O=Reflect.get(L,N);x(N);const D=Reflect.deleteProperty(L,N);return D&&g(["delete",[N],O]),D},set(L,N,O,D){const B=Reflect.has(L,N),M=Reflect.get(L,N,D);if(B&&(e(M,O)||s.has(O)&&e(M,s.get(O))))return!0;x(N),z1(O)&&(O=Mie(O)||O);let F=O;if(O instanceof Promise)O.then(z=>{O.status="fulfilled",O.value=z,g(["resolve",[N],z])}).catch(z=>{O.status="rejected",O.reason=z,g(["reject",[N],z])});else{!bl.has(O)&&n(O)&&(F=c(O));const z=!im.has(F)&&bl.get(F);z&&C(N,z)}return Reflect.set(L,N,F,D),g(["set",[N],O,M]),!0}});s.set(d,I);const R=[_,v,i,P];return bl.set(I,R),Reflect.ownKeys(d).forEach(L=>{const N=Object.getOwnPropertyDescriptor(d,L);"value"in N&&(I[L]=d[L],delete N.value,delete N.writable),Object.defineProperty(_,L,N)}),I})=>[c,bl,im,e,t,n,r,o,i,s,a],[Oie]=Tie();function pS(e={}){return Oie(e)}function hS(e,t,n){const r=bl.get(e);let o;const i=[],s=r[3];let a=!1;const d=s(p=>{if(i.push(p),n){t(i.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,a&&t(i.splice(0))}))});return a=!0,()=>{a=!1,d()}}function Z$(e,t){const n=bl.get(e),[r,o,i]=n;return i(r,o(),t)}var ZL={exports:{}},eA={};/**
|
|
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 Lu=u;function Fie(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Lie=typeof Object.is=="function"?Object.is:Fie,Aie=Lu.useState,Nie=Lu.useEffect,Die=Lu.useLayoutEffect,Bie=Lu.useDebugValue;function zie(e,t){var n=t(),r=Aie({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Die(function(){o.value=n,o.getSnapshot=t,j1(o)&&i({inst:o})},[e,n,t]),Nie(function(){return j1(o)&&i({inst:o}),e(function(){j1(o)&&i({inst:o})})},[e]),Bie(n),n}function j1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Lie(e,n)}catch(r){return!0}}function jie(e,t){return t()}var Hie=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?jie:zie;eA.useSyncExternalStore=Lu.useSyncExternalStore!==void 0?Lu.useSyncExternalStore:Hie;ZL.exports=eA;var Vie=ZL.exports;const Uie=mp(Vie),{use:eR}=Io,{useSyncExternalStore:Wie}=Uie;const Gie=new WeakMap;function mS(e,t){const n=t==null?void 0:t.sync,r=u.useRef(),o=u.useRef();let i=!0;const s=Wie(u.useCallback(d=>{const p=hS(e,d,n);return d(),p},[e,n]),()=>{const d=Z$(e,eR);try{if(!i&&r.current&&o.current&&!JL(r.current,d,o.current,new WeakMap))return r.current}catch(p){}return d},()=>Z$(e,eR));i=!1;const a=new WeakMap;u.useEffect(()=>{r.current=s,o.current=a});const c=u.useMemo(()=>new WeakMap,[]);return XL(s,a,c,Gie)}const Au=pS([]),kw={closableContent:"x",padding:!0},Kie=['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(Kie),o=r.length;if(!o)return;const[i,s]=e.shiftKey?[o-1,0]:[0,o-1];e.target!==r[s]&&qie(document.activeElement,n)||(r[i].focus(),e.preventDefault())});function qie(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function Yie(){const e=mS(Au);return u.useEffect(()=>{document.body.style.overflow=e.length?"hidden":""},[e.length]),u.createElement(u.Fragment,{},e.length>0&&e.map(t=>u.createElement(Qie,Ee({key:t.$id},t))))}function Qie(e){var r;const t=u.useRef();if(u.useEffect(()=>{var o;(o=t.current)==null||o.focus()},[]),e=Ee(Ee({},kw),e),e.Container)return u.createElement(e.Container,e);return u.createElement("div",{ref:t,className:"dialog-backdrop "+(e.className||""),tabIndex:0,onKeyDown:Xie,onClick:o=>o.target===o.currentTarget&&Bi()},e.noFrame?u.createElement(e.Content||"div"):u.createElement("div",Ee({role:"dialog","aria-modal":!0,className:"dialog",style:Ee(Ee({},n()),(r=e.dialogProps)==null?void 0:r.style),onClick(o){o.stopPropagation()}},e.dialogProps),e.closable||e.closable===void 0&&u.createElement("button",{className:"dialog-icon dialog-closer",onClick(){Bi()}},e.closableContent),e.icon&&u.createElement("div",{className:"dialog-icon dialog-type"+(typeof e.icon=="string"?" dialog-icon-text":"")},_w(e.icon)),u.createElement("div",{className:"dialog-title"},_w(e.title)),u.createElement("div",{className:"dialog-content"},u.createElement(e.Content||"div"))));function n(){const{innerWidth:o,innerHeight:i}=window,s=e.position;return s&&Ee(Ee({margin:"1em",position:"absolute"},s[0]<o/2?{left:s[0]}:{right:o-s[0]}),s[1]<i/2?{top:s[1]}:{bottom:i-s[1]})}}function _w(e){return typeof e=="function"?u.createElement(e):e}function Xie(e){e.key==="Escape"&&Bi()}function Ho(e){const t=Math.random();return e.$id=t,Au.push(e),{close:n};function n(r){const o=Au.findIndex(i=>i.$id===t);if(!(o<0))return tA(o,r)}}function Bi(e){let t=Au.length;for(;t--;){const n=Au[t];if(!n.reserveClosing)return tA(t,e),n}}function tA(e,t){var r;const[n]=Au.splice(e,1);return(r=n==null?void 0:n.onClose)==null?void 0:r.call(n,t)}var Ta={},iy={},Nu={};const Jie={},Zie=Object.freeze(Object.defineProperty({__proto__:null,default:Jie},Symbol.toStringTag,{value:"Module"})),tR=kM(Zie);Object.defineProperty(Nu,"__esModule",{value:!0});var nR=Nu.crossEnvCrypto=void 0;try{const e=typeof window!="undefined"&&window.crypto||tR.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);nR=Nu.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=tR,n=r=>o=>t.createHash(r).update(o).digest().buffer;nR=Nu.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(iy,"__esModule",{value:!0});iy.SRPParameters=void 0;const sm=Nu;class Du{constructor(t=Du.PrimeGroup[2048],n=Du.H.SHA512){if(this.primeGroup=t,this.H=n,this.NBits=this.primeGroup.N.toString(2).length,!n)throw new Error("Hash function required")}}iy.SRPParameters=Du;Du.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)}};Du.H={SHA1:sm.crossEnvCrypto.hashFunctions.SHA1,SHA256:sm.crossEnvCrypto.hashFunctions.SHA256,SHA384:sm.crossEnvCrypto.hashFunctions.SHA384,SHA512:sm.crossEnvCrypto.hashFunctions.SHA512};var sy={},ly={};(function(e){var t=Sn&&Sn.__awaiter||function(x,P,_,k){function I(R){return R instanceof _?R:new _(function(L){L(R)})}return new(_||(_=Promise))(function(R,L){function N(B){try{D(k.next(B))}catch(M){L(M)}}function O(B){try{D(k.throw(B))}catch(M){L(M)}}function D(B){B.done?R(B.value):I(B.value).then(N,O)}D((k=k.apply(x,P||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.modPow=e.hashBitCount=e.createVerifierAndSalt=e.createVerifier=e.generateRandomBigInt=e.generateRandomString=e.hashPadded=e.hash=e.padStartArrayBuffer=e.stringToArrayBuffer=e.arrayBufferToBigInt=e.bigIntToArrayBuffer=void 0;const n=Nu,r=BigInt(0),o=BigInt(1),i=BigInt(2),s=x=>{const P=x.toString(16),_=new ArrayBuffer(Math.ceil(P.length/2)),k=new Uint8Array(_);let I=0;P.length%2!==0&&(k[0]=parseInt(P[0],16),I=1);for(let R=0;R<_.byteLength;R++)k[R+I]=parseInt(P.slice(2*R+I,2*R+2+I),16);return _};e.bigIntToArrayBuffer=s;const a=x=>{const P=[];return new Uint8Array(x).forEach(_=>{P.push(("0"+_.toString(16)).slice(-2))}),BigInt(`0x${P.join("")}`)};e.arrayBufferToBigInt=a;function c(x){return new TextEncoder().encode(x).buffer}e.stringToArrayBuffer=c;const d=(x,P)=>{const _=new Uint8Array(x);if(_.length<P){const k=new Uint8Array(P);return k.fill(0,0,P-_.length),k.set(_,P-_.length),k}return _};e.padStartArrayBuffer=d;function p(x,...P){const _=P.reduce((I,R)=>I+R.byteLength,0),k=new Uint8Array(_);for(let I=0,R=0;R<P.length;R++)k.set(new Uint8Array(P[R]),I),I+=P[R].byteLength;return x.H(k)}e.hash=p;function h(x,P,..._){const k=_.map(I=>e.padStartArrayBuffer(I,P));return p(x,...k)}e.hashPadded=h;function m(x=10){const P=new Uint8Array(Math.ceil(Math.ceil(x/2)));return n.crossEnvCrypto.randomBytes(P),P.reduce((_,k)=>{const I=k.toString(16).toString();return I.length===1?_+"0"+I:_+I},"").slice(0,x)}e.generateRandomString=m;function g(x=16){return e.arrayBufferToBigInt(C(x))}e.generateRandomBigInt=g;function y(x,P,_,k){return t(this,void 0,void 0,function*(){if(!P||!P.trim())throw new Error("Identity (I) must not be null or empty.");if(!_)throw new Error("Salt (s) must not be null.");if(!k)throw new Error("Password (P) must not be null");const I=yield x.computeX(P,_,k);return x.computeVerifier(I)})}e.createVerifier=y;function v(x,P,_,k){return t(this,void 0,void 0,function*(){const I=yield x.generateRandomSalt(k);return{s:I,v:yield y(x,P,I,_)}})}e.createVerifierAndSalt=v;const S=x=>t(void 0,void 0,void 0,function*(){return(yield p(x,e.bigIntToArrayBuffer(BigInt(1)))).byteLength*8});e.hashBitCount=S;function w(x,P,_){let k=o;for(;P>r;)P%i==o?(k=x*k%_,P-=o):(x=x*x%_,P/=i);return k}e.modPow=w;const C=x=>{const P=new Uint8Array(x);return n.crossEnvCrypto.randomBytes(P),P.buffer}})(ly);var fl=Sn&&Sn.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{d(r.next(p))}catch(h){s(h)}}function c(p){try{d(r.throw(p))}catch(h){s(h)}}function d(p){p.done?i(p.value):o(p.value).then(a,c)}d((r=r.apply(e,t||[])).next())})};Object.defineProperty(sy,"__esModule",{value:!0});sy.SRPRoutines=void 0;const cn=ly;class ese{constructor(t){this.parameters=t}hash(...t){return cn.hash(this.parameters,...t)}hashPadded(...t){const n=Math.trunc((this.parameters.NBits+7)/8);return cn.hashPadded(this.parameters,n,...t)}computeK(){return fl(this,void 0,void 0,function*(){return cn.arrayBufferToBigInt(yield this.hashPadded(cn.bigIntToArrayBuffer(this.parameters.primeGroup.N),cn.bigIntToArrayBuffer(this.parameters.primeGroup.g)))})}generateRandomSalt(t){return fl(this,void 0,void 0,function*(){const n=yield cn.hashBitCount(this.parameters),r=t||2*n/8;return cn.generateRandomBigInt(r)})}computeX(t,n,r){return fl(this,void 0,void 0,function*(){return cn.arrayBufferToBigInt(yield this.hash(cn.bigIntToArrayBuffer(n),yield this.computeIdentityHash(t,r)))})}computeXStep2(t,n){return fl(this,void 0,void 0,function*(){return cn.arrayBufferToBigInt(yield this.hash(cn.bigIntToArrayBuffer(t),n))})}computeIdentityHash(t,n){return fl(this,void 0,void 0,function*(){return yield this.hash(cn.stringToArrayBuffer(n))})}computeVerifier(t){return cn.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}generatePrivateValue(){const t=Math.max(256,this.parameters.NBits);let n;do n=cn.generateRandomBigInt(t/8)%this.parameters.primeGroup.N;while(n===BigInt(0));return n}computeClientPublicValue(t){return cn.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}isValidPublicValue(t){return t%this.parameters.primeGroup.N!==BigInt(0)}computeU(t,n){return fl(this,void 0,void 0,function*(){return cn.arrayBufferToBigInt(yield this.hashPadded(cn.bigIntToArrayBuffer(t),cn.bigIntToArrayBuffer(n)))})}computeClientEvidence(t,n,r,o,i){return fl(this,void 0,void 0,function*(){return cn.arrayBufferToBigInt(yield this.hash(cn.bigIntToArrayBuffer(r),cn.bigIntToArrayBuffer(o),cn.bigIntToArrayBuffer(i)))})}computeServerEvidence(t,n,r){return fl(this,void 0,void 0,function*(){return cn.arrayBufferToBigInt(yield this.hash(cn.bigIntToArrayBuffer(t),cn.bigIntToArrayBuffer(n),cn.bigIntToArrayBuffer(r)))})}computeClientSessionKey(t,n,r,o,i){const s=this.parameters.primeGroup.N,a=r*n+o,c=cn.modPow(this.parameters.primeGroup.g,n,s)*t%s;return cn.modPow(i+s-c,a,s)}}sy.SRPRoutines=ese;var zl={},gS=Sn&&Sn.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{d(r.next(p))}catch(h){s(h)}}function c(p){try{d(r.throw(p))}catch(h){s(h)}}function d(p){p.done?i(p.value):o(p.value).then(a,c)}d((r=r.apply(e,t||[])).next())})};Object.defineProperty(zl,"__esModule",{value:!0});zl.SRPClientSessionStep2=zl.SRPClientSessionStep1=zl.SRPClientSession=void 0;class tse{constructor(t){this.routines=t}step1(t,n){return gS(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 ay(this.routines,t,r)})}}zl.SRPClientSession=tse;class ay{constructor(t,n,r){this.routines=t,this.I=n,this.IH=r}step2(t,n){return gS(this,void 0,void 0,function*(){if(!t)throw new Error("Salt (s) must not be null");if(!n)throw new Error("Public server value (B) must not be null");const r=yield this.routines.computeXStep2(t,this.IH),o=this.routines.generatePrivateValue(),i=this.routines.computeClientPublicValue(o),s=yield this.routines.computeK(),a=yield this.routines.computeU(i,n),c=this.routines.computeClientSessionKey(s,r,a,o,n),d=yield this.routines.computeClientEvidence(this.I,t,i,n,c);return new cy(this.routines,i,d,c)})}toJSON(){return{I:this.I,IH:Array.from(new Uint8Array(this.IH))}}static fromState(t,n){return new ay(t,n.I,new Uint8Array(n.IH).buffer)}}zl.SRPClientSessionStep1=ay;class cy{constructor(t,n,r,o){this.routines=t,this.A=n,this.M1=r,this.S=o}step3(t){return gS(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 cy(t,BigInt("0x"+n.A),BigInt("0x"+n.M1),BigInt("0x"+n.S))}}zl.SRPClientSessionStep2=cy;var Bu={},$w=Sn&&Sn.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{d(r.next(p))}catch(h){s(h)}}function c(p){try{d(r.throw(p))}catch(h){s(h)}}function d(p){p.done?i(p.value):o(p.value).then(a,c)}d((r=r.apply(e,t||[])).next())})};Object.defineProperty(Bu,"__esModule",{value:!0});Bu.SRPServerSessionStep1=Bu.SRPServerSession=void 0;const Rw=ly;class nse{constructor(t){this.routines=t}step1(t,n,r){return $w(this,void 0,void 0,function*(){const o=this.routines.generatePrivateValue(),i=yield this.routines.computeK(),s=rse(this.routines.parameters,i,r,o);return new uy(this.routines,t,n,r,o,s)})}}Bu.SRPServerSession=nse;class uy{constructor(t,n,r,o,i,s){this.routines=t,this.identifier=n,this.salt=r,this.verifier=o,this.b=i,this.B=s}sessionKey(t){return $w(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 ose(this.routines.parameters.primeGroup.N,this.verifier,n,t,this.b)})}step2(t,n){return $w(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 uy(t,n.identifier,BigInt("0x"+n.salt),BigInt("0x"+n.verifier),BigInt("0x"+n.b),BigInt("0x"+n.B))}}Bu.SRPServerSessionStep1=uy;const rse=(e,t,n,r)=>(Rw.modPow(e.primeGroup.g,r,e.primeGroup.N)+n*t)%e.primeGroup.N,ose=(e,t,n,r,o)=>Rw.modPow(Rw.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=iy;Object.defineProperty(e,"SRPParameters",{enumerable:!0,get:function(){return t.SRPParameters}});var n=sy;Object.defineProperty(e,"SRPRoutines",{enumerable:!0,get:function(){return n.SRPRoutines}});var r=zl;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=Bu;Object.defineProperty(e,"SRPServerSession",{enumerable:!0,get:function(){return o.SRPServerSession}}),Object.defineProperty(e,"SRPServerSessionStep1",{enumerable:!0,get:function(){return o.SRPServerSessionStep1}});var i=ly;Object.defineProperty(e,"createVerifierAndSalt",{enumerable:!0,get:function(){return i.createVerifierAndSalt}}),Object.defineProperty(e,"bigIntToArrayBuffer",{enumerable:!0,get:function(){return i.bigIntToArrayBuffer}}),Object.defineProperty(e,"arrayBufferToBigInt",{enumerable:!0,get:function(){return i.arrayBufferToBigInt}}),Object.defineProperty(e,"generateRandomBigInt",{enumerable:!0,get:function(){return i.generateRandomBigInt}})})(Ta);function ise(e,t,n){return mt(this,null,function*(){const{pubKey:r,salt:o}=yield n("loginSrp1",{username:e});if(!o)throw Error("salt");const i=new Ta.SRPRoutines(new Ta.SRPParameters),c=yield(yield new Ta.SRPClientSession(i).step1(e,t)).step2(BigInt(o),BigInt(r)),d=yield n("loginSrp2",{pubKey:String(c.A),proof:String(c.M1)});return yield c.step3(BigInt(d.proof)).catch(()=>Promise.reject("trust")),d})}const vS="https://github.com/rejetto/hfs/",sse=vS+"wiki/";window._=St;const H1=wS();Object.assign(H1,{getPluginKey:()=>rR("plugin"),getPluginPublic:()=>{var e,t;return(t=(e=rR("src"))==null?void 0:e.match(/^.*\//))==null?void 0:t[0]},getPluginConfig:()=>H1.plugins[H1.getPluginKey()]||{}});function rR(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());const lse=["","K","M","G","T"];function ql(e,{post:t="B",k:n=1024,digits:r=NaN}={}){if(isNaN(Number(e))||e<0)return"";const o=e&&Math.floor(Math.log2(e)/Math.log2(n));return e/=Gi(n,o),(o&&!isNaN(r)?e.toFixed(r):St.round(e,isNaN(r)?e>=100?0:1:r))+" "+(lse[o]||"")+t}function vu(e,t,n=""){return t?e+t+n:""}function ase(e,t){return new Promise(n=>setTimeout(n,e,t))}function cse(e){const t=e+"=";let r=decodeURIComponent(document.cookie).split(";");for(let o of r)if(o=o.trim(),o.startsWith(t))return o.substring(t.length,o.length);return""}function yS(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>[n,t(r,n)]))}function use(e,t){return!t||t.endsWith(e)?t:t+e}function dse(e){return!!e}function rd(e){return e.filter(dse)}function fse(e,t){return Object.defineProperties(e,yS(t,n=>({enumerable:!1,writable:!0,value:n})))}function Mw(e,t){return t(e)}function nA(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 rA(e){return new Promise((t,n)=>{const r=new FileReader;r.addEventListener("load",o=>{if(!o.target||e.size&&!o.target.result)return n("cannot read");const{result:i}=o.target;t(i==null?void 0:i.toString())}),r.addEventListener("error",()=>{n(r.error)}),r.readAsText(e)})}function pse(e){return(e*100).toFixed(1)+"%"}function hse(e){return e==null?[]:Array.isArray(e)?e:[e]}function bS(){let e;const t=new Promise((n,r)=>e={resolve:n,reject:r});return Object.assign(t,e)}function mse(){return window.innerWidth<800}function wS(){return window.HFS}function oA(){return wS().prefixUrl||""}function gse(e){return e.slice(e.lastIndexOf("/")+1||e.lastIndexOf("\\")+1)}function vse(e){return function t(n){if(!n)return;const{exp:r,username:o,adminUrl:i}=n;if(e.username=o,e.adminUrl=i,!o||!r)return;const s=new Date(r).getTime()-Date.now(),a=St.clamp(s-3e4,4e3,6e5);console.debug("session refresh in",Math.round(a/1e3)),setTimeout(()=>Et("refresh_session").then(t),a)}}function yse(e){try{return e&&JSON.parse(e)}catch(t){}}function oR(e,t,n){const r=e[t];return e[t]=e[n],e[n]=r,e}function iA(e,t){return St.isEqualWith(e,t,(n,r)=>{if(!St.isPlainObject(n)||!St.isPlainObject(r))return;const o=Object.keys(n),i=Object.keys(r);return o.length===i.length&&o.every((s,a)=>{const c=i[a];return s===c&&iA(n[s],r[c])})})}var CS={},bse=lt;Object.defineProperty(CS,"__esModule",{value:!0});var dy=CS.default=void 0,wse=bse(at()),Cse=st(),xse=(0,wse.default)((0,Cse.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"}),"Save");dy=CS.default=xse;function Sse(e){return Je("MuiLoadingButton",e)}const Ese=Xe("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),Ms=Ese,Pse=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],Ise=e=>{const{loading:t,loadingPosition:n,classes:r}=e,o={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${ue(n)}`],endIcon:[t&&`endIconLoading${ue(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${ue(n)}`]},i=Me(o,Sse,r);return E({},r,i)},kse=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",_se=oe(hr,{shouldForwardProp:e=>kse(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${Ms.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${Ms.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>E({[`& .${Ms.startIconLoadingStart}, & .${Ms.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}),[`&.${Ms.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${Ms.startIconLoadingStart}, & .${Ms.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${Ms.startIconLoadingStart}, & .${Ms.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),$se=oe("div",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${ue(n.loadingPosition)}`]]}})(({theme:e,ownerState:t})=>E({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})),Rse=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiLoadingButton"}),{children:o,disabled:i=!1,id:s,loading:a=!1,loadingIndicator:c,loadingPosition:d="center",variant:p="text"}=r,h=ne(r,Pse),m=on(s),g=c!=null?c:T.jsx(Ka,{"aria-labelledby":m,color:"inherit",size:16}),y=E({},r,{disabled:i,loading:a,loadingIndicator:g,loadingPosition:d,variant:p}),v=Ise(y),S=a?T.jsx($se,{className:v.loadingIndicator,ownerState:y,children:g}):null;return T.jsxs(_se,E({disabled:i||a,id:m,ref:n},h,{variant:p,classes:v,ownerState:y,children:[y.loadingPosition==="end"?o:S,y.loadingPosition==="end"?S:o]}))}),sA=Rse,Mse=u.createContext({}),xS=Mse,Tse=["element"];function Ose(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}function Fse(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 lA=u.createContext({});function Lse(e){const t=u.useRef(null);return u.useEffect(()=>{t.current=e},[e]),t.current}const iR=()=>{};function Ase(e){const[,t]=u.useState(),{registerDescendant:n=iR,unregisterDescendant:r=iR,descendants:o=[],parentId:i=null}=u.useContext(lA),s=Ose(o,d=>d.element===e.element),a=Lse(o),c=o.some((d,p)=>a&&a[p]&&a[p].element!==d.element);return ln(()=>{if(e.element)return n(E({},e,{index:s})),()=>{r(e.element)};t({})},[n,r,s,c,e]),{parentId:i,index:s}}function aA(e){const{children:t,id:n}=e,[r,o]=u.useState([]),i=u.useCallback(c=>{let{element:d}=c,p=ne(c,Tse);o(h=>{let m;if(h.length===0)return[E({},p,{element:d,index:0})];const g=Fse(h,d);if(h[g]&&h[g].element===d)m=h;else{const y=E({},p,{element:d,index:g});m=h.slice(),m.splice(g,0,y)}return m.forEach((y,v)=>{y.index=v}),m})},[]),s=u.useCallback(c=>{o(d=>d.filter(p=>c!==p.element))},[]),a=u.useMemo(()=>({descendants:r,registerDescendant:i,unregisterDescendant:s,parentId:n}),[r,i,s,n]);return T.jsx(lA.Provider,{value:a,children:t})}function Nse(e){const{focus:t,isExpanded:n,isExpandable:r,isFocused:o,isDisabled:i,isSelected:s,multiSelect:a,selectNode:c,selectRange:d,toggleExpansion:p}=u.useContext(xS),h=r?r(e):!1,m=n?n(e):!1,g=o?o(e):!1,y=i?i(e):!1,v=s?s(e):!1;return{disabled:y,expanded:m,selected:v,focused:g,handleExpansion:x=>{if(!y){g||t(x,e);const P=a&&(x.shiftKey||x.ctrlKey||x.metaKey);h&&!(P&&n(e))&&p(x,e)}},handleSelection:x=>{y||(g||t(x,e),a&&(x.shiftKey||x.ctrlKey||x.metaKey)?x.shiftKey?d(x,{end:e}):c(x,e,!0):c(x,e))},preventSelection:x=>{(x.shiftKey||x.ctrlKey||x.metaKey||y)&&x.preventDefault()}}}const Dse=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],Bse=u.forwardRef(function(t,n){const{classes:r,className:o,displayIcon:i,expansionIcon:s,icon:a,label:c,nodeId:d,onClick:p,onMouseDown:h}=t,m=ne(t,Dse),{disabled:g,expanded:y,selected:v,focused:S,handleExpansion:w,handleSelection:C,preventSelection:x}=Nse(d),P=a||s||i,_=I=>{x(I),h&&h(I)},k=I=>{w(I),C(I),p&&p(I)};return T.jsxs("div",E({className:he(o,r.root,y&&r.expanded,v&&r.selected,S&&r.focused,g&&r.disabled),onClick:k,onMouseDown:_,ref:n},m,{children:[T.jsx("div",{className:r.iconContainer,children:P}),T.jsx("div",{className:r.label,children:c})]}))}),cA=Bse;function zse(e){return Je("MuiTreeItem",e)}const jse=Xe("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),pl=jse,Hse=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],Vse=e=>{const{classes:t}=e;return Me({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],group:["group"]},zse,t)},Use=oe("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Wse=oe(cA,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${pl.iconContainer}`]:t.iconContainer},t.label&&{[`& .${pl.label}`]:t.label}]})(({theme:e})=>({padding:"0 8px",width:"100%",display:"flex",alignItems:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${pl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${pl.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${pl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ut(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}))`:ut(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})`:ut(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${pl.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ut(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${pl.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${pl.label}`]:E({width:"100%",minWidth:0,paddingLeft:4,position:"relative"},e.typography.body1)})),Gse=oe(wg,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),Kse=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiTreeItem"}),{children:o,className:i,collapseIcon:s,ContentComponent:a=cA,ContentProps:c,endIcon:d,expandIcon:p,disabled:h,icon:m,id:g,label:y,nodeId:v,onClick:S,onMouseDown:w,TransitionComponent:C=wg,TransitionProps:x}=r,P=ne(r,Hse),{icons:_={},focus:k,isExpanded:I,isFocused:R,isSelected:L,isDisabled:N,multiSelect:O,disabledItemsFocusable:D,mapFirstChar:B,unMapFirstChar:M,registerNode:F,unregisterNode:z,treeId:V}=u.useContext(xS);let A=null;g!=null?A=g:V&&v&&(A=`${V}-${v}`);const[H,W]=u.useState(null),K=u.useRef(null),Y=Vt(W,n),ie=u.useMemo(()=>({element:H,id:v}),[v,H]),{index:re,parentId:de}=Ase(ie),se=!!(Array.isArray(o)?o.length:o),le=I?I(v):!1,ke=R?R(v):!1,ve=L?L(v):!1,Pe=N?N(v):!1,ee=E({},r,{expanded:le,focused:ke,selected:ve,disabled:Pe}),_e=Vse(ee);let Re,Se;se&&(le?Se=s||_.defaultCollapseIcon:Se=p||_.defaultExpandIcon),se?Re=_.defaultParentIcon:Re=d||_.defaultEndIcon,u.useEffect(()=>{if(F&&z&&re!==-1)return F({id:v,idAttribute:A,index:re,parentId:de,expandable:se,disabled:h}),()=>{z(v)}},[F,z,de,re,v,se,h,A]),u.useEffect(()=>{if(B&&M&&y)return B(v,K.current.textContent.substring(0,1).toLowerCase()),()=>{M(v)}},[B,M,v,y]);let pe;O?pe=ve:ve&&(pe=!0);function be(te){if(te.target===te.currentTarget){let Ye;typeof te.target.getRootNode=="function"?Ye=te.target.getRootNode():Ye=vn(te.target),Ye.getElementById(V).focus({preventScroll:!0})}const Oe=!D&&Pe;!ke&&te.currentTarget===te.target&&!Oe&&k(te,v)}return T.jsxs(Use,E({className:he(_e.root,i),role:"treeitem","aria-expanded":se?le:null,"aria-selected":pe,"aria-disabled":Pe||null,ref:Y,id:A,tabIndex:-1},P,{ownerState:ee,onFocus:be,children:[T.jsx(Wse,E({as:a,ref:K,classes:{root:_e.content,expanded:_e.expanded,selected:_e.selected,focused:_e.focused,disabled:_e.disabled,iconContainer:_e.iconContainer,label:_e.label},label:y,nodeId:v,onClick:S,onMouseDown:w,icon:m,expansionIcon:Se,displayIcon:Re,ownerState:ee},c)),o&&T.jsx(aA,{id:v,children:T.jsx(Gse,E({as:C,unmountOnExit:!0,className:_e.group,in:le,component:"ul",role:"group"},x,{children:o}))})]}))}),Tw=Kse;function qse(e){return Je("MuiTreeView",e)}Xe("MuiTreeView",["root"]);const Yse=["children","className","defaultCollapseIcon","defaultEndIcon","defaultExpanded","defaultExpandIcon","defaultParentIcon","defaultSelected","disabledItemsFocusable","disableSelection","expanded","id","multiSelect","onBlur","onFocus","onKeyDown","onNodeFocus","onNodeSelect","onNodeToggle","selected"],Qse=e=>{const{classes:t}=e;return Me({root:["root"]},qse,t)},Xse=oe("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0});function Jse(e){return e&&e.length===1&&e.match(/\S/)}function sR(e,t,n){for(let r=t;r<e.length;r+=1)if(n===e[r])return r;return-1}function lR(){return!1}const Zse=[],ele=[],tle=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiTreeView"}),{children:o,className:i,defaultCollapseIcon:s,defaultEndIcon:a,defaultExpanded:c=Zse,defaultExpandIcon:d,defaultParentIcon:p,defaultSelected:h=ele,disabledItemsFocusable:m=!1,disableSelection:g=!1,expanded:y,id:v,multiSelect:S=!1,onBlur:w,onFocus:C,onKeyDown:x,onNodeFocus:P,onNodeSelect:_,onNodeToggle:k,selected:I}=r,R=ne(r,Yse),N=sr().direction==="rtl",O=E({},r,{defaultExpanded:c,defaultSelected:h,disabledItemsFocusable:m,disableSelection:g,multiSelect:S}),D=Qse(O),B=on(v),M=u.useRef(null),F=Vt(M,n),[z,V]=u.useState(null),A=u.useRef({}),H=u.useRef({}),[W,K]=is({controlled:y,default:c,name:"TreeView",state:"expanded"}),[Y,ie]=is({controlled:I,default:h,name:"TreeView",state:"selected"}),re=u.useCallback(ce=>Array.isArray(W)?W.indexOf(ce)!==-1:!1,[W]),de=u.useCallback(ce=>A.current[ce]&&A.current[ce].expandable,[]),se=u.useCallback(ce=>Array.isArray(Y)?Y.indexOf(ce)!==-1:Y===ce,[Y]),le=u.useCallback(ce=>{let ge=A.current[ce];if(!ge)return!1;if(ge.disabled)return!0;for(;ge.parentId!=null;)if(ge=A.current[ge.parentId],ge.disabled)return!0;return!1},[]),ke=ce=>z===ce,ve=ce=>Object.keys(A.current).map(ge=>A.current[ge]).filter(ge=>ge.parentId===ce).sort((ge,Ne)=>ge.index-Ne.index).map(ge=>ge.id),Pe=ce=>{let ge=ve(ce);return m||(ge=ge.filter(Ne=>!le(Ne))),ge},ee=ce=>{if(re(ce)&&Pe(ce).length>0)return Pe(ce)[0];let ge=A.current[ce];for(;ge!=null;){const Ne=Pe(ge.parentId),ft=Ne[Ne.indexOf(ge.id)+1];if(ft)return ft;ge=A.current[ge.parentId]}return null},_e=ce=>{const ge=A.current[ce],Ne=Pe(ge.parentId),ft=Ne.indexOf(ce);if(ft===0)return ge.parentId;let it=Ne[ft-1];for(;re(it)&&Pe(it).length>0;)it=Pe(it).pop();return it},Re=()=>{let ce=Pe(null).pop();for(;re(ce);)ce=Pe(ce).pop();return ce},Se=()=>Pe(null)[0],pe=ce=>A.current[ce].parentId,be=(ce,ge)=>{if(ce===ge)return[ce,ge];const Ne=A.current[ce],ft=A.current[ge];if(Ne.parentId===ft.id||ft.parentId===Ne.id)return ft.parentId===Ne.id?[Ne.id,ft.id]:[ft.id,Ne.id];const it=[Ne.id],He=[ft.id];let Ct=Ne.parentId,Ut=ft.parentId,_n=He.indexOf(Ct)!==-1,fo=it.indexOf(Ut)!==-1,we=!0,me=!0;for(;!fo&&!_n;)we&&(it.push(Ct),_n=He.indexOf(Ct)!==-1,we=Ct!==null,!_n&&we&&(Ct=A.current[Ct].parentId)),me&&!_n&&(He.push(Ut),fo=it.indexOf(Ut)!==-1,me=Ut!==null,!fo&&me&&(Ut=A.current[Ut].parentId));const We=_n?Ct:Ut,pt=ve(We),Wt=it[it.indexOf(We)-1],Fn=He[He.indexOf(We)-1];return pt.indexOf(Wt)<pt.indexOf(Fn)?[ce,ge]:[ge,ce]},te=(ce,ge)=>{const[Ne,ft]=be(ce,ge),it=[Ne];let He=Ne;for(;He!==ft;)He=ee(He),it.push(He);return it},Oe=(ce,ge)=>{ge&&(V(ge),P&&P(ce,ge))},Ye=(ce,ge)=>Oe(ce,ee(ge)),Ke=(ce,ge)=>Oe(ce,_e(ge)),Ue=ce=>Oe(ce,Se()),De=ce=>Oe(ce,Re()),dt=(ce,ge,Ne)=>{let ft,it;const He=Ne.toLowerCase(),Ct=[],Ut=[];Object.keys(H.current).forEach(_n=>{const fo=H.current[_n],we=A.current[_n],me=we.parentId?re(we.parentId):!0,We=m?!1:le(_n);me&&!We&&(Ct.push(_n),Ut.push(fo))}),ft=Ct.indexOf(ge)+1,ft>=Ct.length&&(ft=0),it=sR(Ut,ft,He),it===-1&&(it=sR(Ut,0,He)),it>-1&&Oe(ce,Ct[it])},vt=(ce,ge=z)=>{let Ne;W.indexOf(ge)!==-1?Ne=W.filter(ft=>ft!==ge):Ne=[ge].concat(W),k&&k(ce,Ne),K(Ne)},ct=(ce,ge)=>{const Ne=A.current[ge],it=ve(Ne.parentId).filter(Ct=>de(Ct)&&!re(Ct)),He=W.concat(it);it.length>0&&(K(He),k&&k(ce,He))},Pt=u.useRef(null),yt=u.useRef(!1),Ae=u.useRef([]),Le=(ce,ge)=>{let Ne=Y.slice();const{start:ft,next:it,current:He}=ge;!it||!He||(Ae.current.indexOf(He)===-1&&(Ae.current=[]),yt.current?Ae.current.indexOf(it)!==-1?(Ne=Ne.filter(Ct=>Ct===ft||Ct!==He),Ae.current=Ae.current.filter(Ct=>Ct===ft||Ct!==He)):(Ne.push(it),Ae.current.push(it)):(Ne.push(it),Ae.current.push(He,it)),_&&_(ce,Ne),ie(Ne))},Be=(ce,ge)=>{let Ne=Y.slice();const{start:ft,end:it}=ge;yt.current&&(Ne=Ne.filter(Ut=>Ae.current.indexOf(Ut)===-1));let He=te(ft,it);He=He.filter(Ut=>!le(Ut)),Ae.current=He;let Ct=Ne.concat(He);Ct=Ct.filter((Ut,_n)=>Ct.indexOf(Ut)===_n),_&&_(ce,Ct),ie(Ct)},Ze=(ce,ge)=>{let Ne;Y.indexOf(ge)!==-1?Ne=Y.filter(ft=>ft!==ge):Ne=[ge].concat(Y),_&&_(ce,Ne),ie(Ne)},Ie=(ce,ge)=>{const Ne=S?[ge]:ge;_&&_(ce,Ne),ie(Ne)},Fe=(ce,ge,Ne=!1)=>ge?(Ne?Ze(ce,ge):Ie(ce,ge),Pt.current=ge,yt.current=!1,Ae.current=[],!0):!1,Ve=(ce,ge,Ne=!1)=>{const{start:ft=Pt.current,end:it,current:He}=ge;Ne?Le(ce,{start:ft,next:it,current:He}):ft!=null&&it!=null&&Be(ce,{start:ft,end:it}),yt.current=!0},nt=(ce,ge)=>{Pt.current||(Pt.current=ge);const Ne=yt.current?Pt.current:ge;Ve(ce,{start:Ne,end:Se()})},ht=(ce,ge)=>{Pt.current||(Pt.current=ge);const Ne=yt.current?Pt.current:ge;Ve(ce,{start:Ne,end:Re()})},Zt=(ce,ge)=>{le(ee(ge))||Ve(ce,{end:ee(ge),current:ge},!0)},kn=(ce,ge)=>{le(_e(ge))||Ve(ce,{end:_e(ge),current:ge},!0)},On=ce=>{Ve(ce,{start:Se(),end:Re()})},Xn=u.useCallback(ce=>{const{id:ge,index:Ne,parentId:ft,expandable:it,idAttribute:He,disabled:Ct}=ce;A.current[ge]={id:ge,index:Ne,parentId:ft,expandable:it,idAttribute:He,disabled:Ct}},[]),lr=u.useCallback(ce=>{const ge=E({},A.current);delete ge[ce],A.current=ge,V(Ne=>Ne===ce&&M.current===vn(M.current).activeElement?ve(null)[0]:Ne)},[]),ar=u.useCallback((ce,ge)=>{H.current[ce]=ge},[]),bn=u.useCallback(ce=>{const ge=E({},H.current);delete ge[ce],H.current=ge},[]),en=ce=>(de(z)&&(re(z)?Ye(ce,z):le(z)||vt(ce)),!0),jn=ce=>{if(re(z)&&!le(z))return vt(ce,z),!0;const ge=pe(z);return ge?(Oe(ce,ge),!0):!1},Vo=ce=>{let ge=!1;const Ne=ce.key;if(ce.altKey||ce.currentTarget!==ce.target||!z)return;const ft=ce.ctrlKey||ce.metaKey;switch(Ne){case" ":!g&&!le(z)&&(S&&ce.shiftKey?(Ve(ce,{end:z}),ge=!0):S?ge=Fe(ce,z,!0):ge=Fe(ce,z)),ce.stopPropagation();break;case"Enter":le(z)||(de(z)?(vt(ce),ge=!0):S?ge=Fe(ce,z,!0):ge=Fe(ce,z)),ce.stopPropagation();break;case"ArrowDown":S&&ce.shiftKey&&!g&&Zt(ce,z),Ye(ce,z),ge=!0;break;case"ArrowUp":S&&ce.shiftKey&&!g&&kn(ce,z),Ke(ce,z),ge=!0;break;case"ArrowRight":N?ge=jn(ce):ge=en(ce);break;case"ArrowLeft":N?ge=en(ce):ge=jn(ce);break;case"Home":S&&ft&&ce.shiftKey&&!g&&!le(z)&&nt(ce,z),Ue(ce),ge=!0;break;case"End":S&&ft&&ce.shiftKey&&!g&&!le(z)&&ht(ce,z),De(ce),ge=!0;break;default:Ne==="*"?(ct(ce,z),ge=!0):S&&ft&&Ne.toLowerCase()==="a"&&!g?(On(ce),ge=!0):!ft&&!ce.shiftKey&&Jse(Ne)&&(dt(ce,z,Ne),ge=!0)}ge&&(ce.preventDefault(),ce.stopPropagation()),x&&x(ce)},Hi=ce=>{if(ce.target===ce.currentTarget){const ge=Array.isArray(Y)?Y[0]:Y;Oe(ce,ge||Pe(null)[0])}C&&C(ce)},ws=ce=>{V(null),w&&w(ce)},Cs=A.current[z]?A.current[z].idAttribute:null;return T.jsx(xS.Provider,{value:{icons:{defaultCollapseIcon:s,defaultExpandIcon:d,defaultParentIcon:p,defaultEndIcon:a},focus:Oe,toggleExpansion:vt,isExpanded:re,isExpandable:de,isFocused:ke,isSelected:se,isDisabled:le,selectNode:g?lR:Fe,selectRange:g?lR:Ve,multiSelect:S,disabledItemsFocusable:m,mapFirstChar:ar,unMapFirstChar:bn,registerNode:Xn,unregisterNode:lr,treeId:B},children:T.jsx(aA,{children:T.jsx(Xse,E({role:"tree",id:B,"aria-activedescendant":Cs,"aria-multiselectable":S,className:he(D.root,i),ref:F,tabIndex:0,onKeyDown:Vo,onFocus:Hi,onBlur:ws,ownerState:O},R,{children:o}))})})}),uA=tle;function ys(m){var g=m,{value:e,onChange:t,min:n,max:r,required:o,setApi:i,typing:s,start:a,end:c,onTyping:d,suggestions:p}=g,h=nn(g,["value","onChange","min","max","required","setApi","typing","start","end","onTyping","suggestions"]);const y=e!=null?e:"";i==null||i({getError(){return!e&&o?"required":(e==null?void 0:e.length)<n?"too short":(e==null?void 0:e.length)>r?"too long":!1}});const[v,S]=u.useState(y),w=u.useRef(y);u.useEffect(()=>{S(y),w.current=y},[y]);const C=u.useRef(""),x=u.useRef(!1),P=k=>u.createElement($p,Ee($t(Ee({fullWidth:!0,InputLabelProps:v||h.placeholder?{shrink:!0}:void 0},h),{sx:h.label?h.sx:Object.assign({"& .MuiInputBase-input":{pt:1.5}},h.sx),value:v,onChange(I){const R=I.target.value;(d==null?void 0:d(R))!==!1&&(S(R),(s||x.current)&&_(I,R))},onKeyDown(I){var R;(R=h.onKeyDown)==null||R.call(h,I),x.current=I.code===void 0,I.key==="Enter"&&_(I)},onFocus(I){C.current=I.target.value},onBlur(I){var R;(R=h.onBlur)==null||R.call(h,I),C.current!==I.target.value&&_(I)},InputProps:Ee({startAdornment:a&&u.createElement(qa,{position:"start"},a),endAdornment:c&&u.createElement(qa,{position:"end"},c)},h.InputProps)}),k));return p?u.createElement(Nx,{freeSolo:!0,options:p,renderInput:P}):P(null);function _(k,I=v){const R=I.trim();R!==w.current&&(w.current=R,t(R,{was:e,event:k,cancel(){S(y)}}))}}function ms(e){const a=e,{value:t,onChange:n,setApi:r,options:o,sx:i}=a,s=nn(a,["value","onChange","setApi","options","sx"]);return u.createElement($p,$t(Ee(Ee({},dA(e)),s),{onChange(c){try{let d=c.target.value;d=JSON.parse(d),n(d,{was:t,event:c})}catch(d){}}}))}function SS(e){const a=e,{value:t,onChange:n,setApi:r,options:o,sx:i}=a,s=nn(a,["value","onChange","setApi","options","sx"]);return u.createElement($p,$t(Ee(Ee({},dA($t(Ee({},e),{value:void 0}))),s),{SelectProps:{multiple:!0},value:Array.isArray(t)?t.map(c=>JSON.stringify(c)):[],onChange(c){try{let d=c.target.value;d=Array.isArray(d)?d.map(p=>JSON.parse(p)):[],n(d,{was:t,event:c})}catch(d){}}}))}function dA(e){const{options:t,disabled:n,start:r,end:o}=e,i=Array.isArray(t)?t.map(c=>typeof c=="string"||typeof c=="number"?{value:c,label:String(c)}:c):Object.entries(t).map(([c,d])=>({value:d,label:c})),s=JSON.stringify(e.value),a=i.find(c=>JSON.stringify(c.value)===s);return{select:!0,fullWidth:!0,sx:e.label?e.sx:Object.assign({"& .MuiInputBase-input":{pt:1}},e.sx),value:a?s:"",disabled:!(i!=null&&i.length)||n,InputProps:Ee({startAdornment:r&&u.createElement(qa,{position:"start"},r),endAdornment:o&&u.createElement(qa,{position:"end"},o)},e.InputProps),children:i.map((c,d)=>u.createElement(Ur,{key:d,value:JSON.stringify(c==null?void 0:c.value),children:c==null?void 0:c.label}))}}function Tm(r){var o=r,{value:e,empty:t="-"}=o,n=nn(o,["value","empty"]);return!n.toField&&t!==void 0&&e!==0&&!e&&(e=t),u.createElement(ys,$t(Ee({},n),{value:e,disabled:!0}))}function Zi(d){var p=d,{value:e,onChange:t,setApi:n,required:r,min:o,max:i,step:s,unit:a}=p,c=nn(p,["value","onChange","setApi","required","min","max","step","unit"]);return n==null||n({getError(){return e==null?r?"required":!1:e<o?"too low":e>i?"too high":!1}}),u.createElement(ys,Ee({type:"number",value:e==null?"":String(e),onChange(h,y){var v=y,{was:m}=v,g=nn(v,["was"]);t(h?Number(h):null,$t(Ee({},g),{was:m?Number(m):null}))},inputProps:{min:o,max:i,step:s},InputProps:St.merge({sx:{"& input":{appearance:"textfield"}}},a&&{sx:{pr:"6px","& input":{pl:".2em",textAlign:"right"}},endAdornment:u.createElement(qa,{position:"end",sx:{mt:"1.2em",ml:"5px","& p":{fontSize:"80%"}}},a)})},c))}function Co(c){var d=c,{label:e="",value:t,onChange:n,setApi:r,helperText:o,error:i,type:s}=d,a=nn(d,["label","value","onChange","setApi","helperText","error","type"]);const p=()=>t!=null?t:!1,[h,m]=u.useState(p);u.useEffect(()=>m(p),[t]);const g=u.createElement($L,$t(Ee({checked:h},a),{onChange(y){n(y.target.checked,{event:y,was:t})}}));return u.createElement(je,{ml:1,mt:1,sx:i?{color:"error.main",outlineOffset:6,outline:"1px solid"}:void 0},u.createElement(cL,Ee({label:e,control:g,labelPlacement:"end"},a.size==="small"&&{sx:{"& .MuiFormControlLabel-label":{fontSize:".9rem"}}})),o&&u.createElement(_p,{error:i},o))}function Tp(y){var v=y,{fields:e,values:t,set:n,defaults:r,save:o,stickyBar:i,addToBar:s=[],barSx:a,formRef:c,onError:d,saveOnEnter:p,gridProps:h,formProps:m}=v,g=nn(v,["fields","values","set","defaults","save","stickyBar","addToBar","barSx","formRef","onError","saveOnEnter","gridProps","formProps"]);const S=u.useRef(!1);u.useEffect(()=>(S.current=!0,()=>{S.current=!1}),[]);const[w,C]=u.useState({}),[x,P]=u.useState({}),_=typeof o=="function"?{onClick:o}:o,[k,I]=u.useState(0),R=u.useRef(!1),L=u.useRef("");u.useEffect(()=>void B(),[k]);const N={};return u.createElement("form",$t(Ee({ref:c&&(M=>c.current=M||void 0)},m),{onSubmit(M){M.preventDefault()},onKeyDown(M){_&&!_.disabled&&(M.ctrlKey||M.metaKey)&&M.key==="Enter"&&O()}}),u.createElement(je,Ee({display:"flex",flexDirection:"column",gap:3},g),u.createElement(Oi,Ee({container:!0,rowSpacing:3,columnSpacing:1},h),e.map((M,F)=>{if(!M)return null;if(u.isValidElement(M))return u.createElement(Oi,{key:F,item:!0,xs:12},M);const ie=M,{k:z,fromField:V=nu.identity,toField:A=nu.identity,getError:H,error:W}=ie,K=nn(ie,["k","fromField","toField","getError","error"]);let Y=w[z]||W||x[z];if(Y===!0&&(Y="Not valid"),z){const de=M.hasOwnProperty("value")?M.value:t==null?void 0:t[z],se=Ee(Ee({},M),K);Object.assign(K,{value:A(de),error:!!(Y||W)||void 0,setApi(le){N[z]=le},onKeyDown(le){p&&le.key==="Enter"&&O()},onChange(le){var ke;try{if(le=V(le),P(ve=>$t(Ee({},ve),{[z]:!1})),(((ke=N[z])==null?void 0:ke.isEqual)||nu.isEqual)(le,de))return;n(le,z),D(z)}catch(ve){P(Pe=>$t(Ee({},Pe),{[z]:(ve==null?void 0:ve.message)||String(ve)||!0}))}}}),Array.isArray(K.helperText)&&(K.helperText=u.createElement(u.Fragment,{},...K.helperText)),Y&&(K.helperText=K.helperText?u.createElement(u.Fragment,{},u.createElement("span",{style:{borderBottom:"1px solid"}},Y),u.createElement(je,{color:"text.primary",component:"span",display:"block"},K.helperText)):Y),K.label===void 0&&(K.label=fA(z)),nu.defaults(K,r==null?void 0:r(se))}{const re=K,{xs:de=12,sm:se,md:le,lg:ke,xl:ve,comp:Pe=ys,before:ee,after:_e,fromField:Re,toField:Se}=re,pe=nn(re,["xs","sm","md","lg","xl","comp","before","after","fromField","toField"]);return Object.assign(pe,{name:z}),u.createElement(Oi,{key:z||F,item:!0,xs:de,sm:se,md:le,lg:ke,xl:ve},ee,u.isValidElement(Pe)?Pe:u.createElement(Pe,pe),_e)}})),_&&u.createElement(je,{display:"flex",alignItems:"center",sx:Object.assign({},i&&{width:"fit-content",zIndex:2,backgroundColor:"background.paper",borderRadius:1,position:"sticky",bottom:0,p:1,m:-1},a)},u.createElement(sA,$t(Ee({variant:"contained",startIcon:u.createElement(dy),children:"Save",loading:dS(k!==0)},_),{onClick:O})),...s)));function O(){R.current=!0,D()}function D(M=""){k===0&&(L.current=M,setTimeout(()=>I(F=>F===0?1:F)))}function B(){return mt(this,null,function*(){var z,V,A;if(k===0)return;if(k===1)return I(2);const M="Please review errors",F={};for(const H of e){if(!H||u.isValidElement(H)||!H.k)continue;const{k:W}=H,K=t==null?void 0:t[W],Y=(yield(V=(z=N[W])==null?void 0:z.getError)==null?void 0:V.call(z,K,{values:t,fields:e}))||(yield(A=H.getError)==null?void 0:A.call(H,K,{values:t,fields:e}))||x[W];if(F[W]=Y||!1,!R.current&&W===L.current)break;if(!S.current)return}C(F);try{if(!R.current)return;if(Object.values(F).some(Boolean))return yield d==null?void 0:d(M);const H=_&&_.onClick;H&&(yield H())}catch(H){yield d==null?void 0:d(H)}finally{R.current=!1,S.current&&I(0)}})}}function fA(e){return nu.upperFirst(e.indexOf("_")>0?e.replace(/_/g," "):e.replace(/([a-z])([A-Z])/g,(t,n,r)=>n+" "+r.toLowerCase()))}function pA(){return hL("(prefers-color-scheme: dark)")}const nle={};function rle(){const e=pA()?null:nle;return u.useMemo(()=>Sx({palette:e||{mode:"dark",text:{primary:"#bbb"},primary:{main:"#469",light:"#68c"},secondary:{main:"#969"}},typography:{fontFamily:'Roboto, "Noto sans", "Segoe UI", "San Francisco", "Helvetica Neue", Arial, sans-serif'},components:{MuiLink:{defaultProps:e||{color:"primary.light"}},MuiTextField:{defaultProps:{variant:"filled"},styleOverrides:e||{root:{"& label.Mui-focused":{color:"#ccc"}}}},MuiButton:{defaultProps:{variant:"outlined"},styleOverrides:e||{root({ownerState:t}){return t.color==="primary"&&{color:t.variant==="contained"?"#ddd":"#68c"}}}}}}),[e])}kw.Container=function(t){const n=u.useRef(),{width:r,height:o}=qL(),i=r>0&&Math.min(r,o)<500;u.useEffect(()=>{const h=setTimeout(()=>{const m=n.current;if(!m||(m.focus(),i))return;const g=m.querySelector("[autofocus]")||m.querySelector("input,textarea");g&&g instanceof HTMLElement&&g.focus()});return()=>clearTimeout(h)},[n.current]);const s=ES();t=Ee(Ee({},kw),t);const p=t.dialogProps||{},{sx:a,root:c}=p,d=nn(p,["sx","root"]);return u.createElement(hJ,$t(Ee(Ee({open:!0,maxWidth:"lg",fullScreen:i},d),c),{onClose:()=>Bi()}),t.title&&u.createElement(_J,{sx:Ee({position:"sticky",top:0,py:1,pr:1,zIndex:2,boxShadow:"0 0 8px #0004",display:"flex",alignItems:"center"},s)},u.createElement(je,{flex:1,minWidth:40},_w(t.title)),u.createElement(Gn,{icon:Rp,title:"close",onClick:()=>Bi()})),u.createElement(SJ,{ref:n,sx:Ee({p:t.padding?1:0,pt:"16px !important",overflow:"initial",display:"flex",flexDirection:"column",justifyContent:"center"},a)},u.createElement(t.Content)))};function ES(){return pA()?{bgcolor:"#2d2d2d"}:{bgcolor:"#ccc",color:"#444"}}const hA={error:ry,warning:Mp,info:tp,success:iS};function un(e,t){const n=typeof t=="string"?{type:t}:t!=null?t:{};let a=n,{type:r="info"}=a,o=nn(a,["type"]);e instanceof Error&&(e=e.message||String(e),r="error");const i=bS(),s=Ho($t(Ee({className:"dialog-alert-"+r,icon:"!",onClose:i.resolve},o),{Content(){var c;return u.createElement(je,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},u.createElement(li,{onClick(){s.close()},size:"small",sx:{position:"absolute",right:0,top:0,opacity:.5}},u.createElement(Rp)),(c=n.icon)!=null?c:u.createElement(hA[r],{color:r,fontSize:"large"}),u.isValidElement(e)?e:u.createElement(je,{fontSize:"large",mb:1,lineHeight:"1.8em"},String(e)))}}));return Object.assign(i,s)}function qs(e,r={}){var o=r,{href:t}=o,n=nn(o,["href"]);const i=bS(),s=Ho($t(Ee({className:"dialog-confirm",icon:"?",onClose:i.resolve},n),{Content:a}));return Object.assign(i,s);function a(){return u.createElement(u.Fragment,{},u.createElement(je,{mb:2},e),u.createElement(Ql,{},u.createElement("a",{href:t,onClick:()=>Bi(!0)},u.createElement(hr,{variant:"contained"},"Confirm")),u.createElement(hr,{onClick:()=>Bi(!1)},"Don't")))}}function rp(r){return mt(this,null,function*(){var o=r,{form:e,values:t}=o,n=nn(o,["form","values"]);return new Promise(s=>Ho($t(Ee({className:"dialog-confirm",icon:"?",onClose:s},n),{Content:i})));function i(){const[s,a]=u.useState(t||{}),h=typeof e=="function"?e(s):e,{onChange:c,before:d}=h,p=nn(h,["onChange","before"]);return u.createElement(u.Fragment,{},d,u.createElement(Tp,$t(Ee({},p),{values:s,set(m,g){a(y=>{const v=$t(Ee({},y),{[g]:m});return c==null||c(v,{setValues:a}),v})},save:$t(Ee({},p.save),{onClick(){Bi(s)}})})))}})}function ole(n){return mt(this,arguments,function*(e,t={}){return rp($t(Ee({},t),{form:{fields:[Ee({k:"text",label:null,autoFocus:!0,before:u.createElement(je,{mb:2},e)},t.field)],save:Ee({children:"Continue",startIcon:u.createElement(HL)},t.save),saveOnEnter:!0,barSx:{gap:2},addToBar:[u.createElement(hr,{onClick:Bi},"Cancel"),...t.addToBar||[]]}})).then(r=>r==null?void 0:r.text)})}function Wr(e,t="info"){const r=Ho({Content:i,dialogProps:{fullScreen:!1,PaperProps:{sx:{transition:"opacity 3000ms ease-in"},ref(s){s&&(s.style.opacity="0")}}}}),{close:o}=r;return setTimeout(o,3e3),r;function i(){return u.createElement(je,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},u.isValidElement(t)?t:u.createElement(hA[t],{color:t}),u.isValidElement(e)?e:u.createElement("div",{},String(e)))}}function mA(){return u.createElement(Ka)}function ile(e){return e&&/^[a-zA-Z]:$/.test(e)}function PS(e,t){return e==t||e&&t&&typeof e=="object"&&typeof t=="object"&&Object.entries(e).every(([n,r])=>PS(r,t[n]))}function fy(e){return e?{outline:"2px solid"}:void 0}const Gn=u.forwardRef((p,d)=>{var h=p,{title:e,icon:t,onClick:n,disabled:r,progress:o,link:i,tooltipProps:s,confirm:a}=h,c=nn(h,["title","icon","onClick","disabled","progress","link","tooltipProps","confirm"]);const[m,g]=to(!1);typeof r=="string"&&(e=r),i&&(n=()=>window.open(i));let y=u.createElement(li,$t(Ee({ref:d,disabled:!!(m||o||r)},c),{onClick(...S){return mt(this,null,function*(){if(a&&!(yield qs(a)))return;const w=n==null?void 0:n.apply(this,S);w&&w instanceof Promise&&(g(!0),w.catch(un).finally(()=>g(!1)))})}}),(o||m)&&o!==!1&&u.createElement(Ka,$t(Ee({},typeof o=="number"?{value:o*100,variant:"determinate"}:null),{style:{position:"absolute",top:4,left:4,width:32,height:32}})),u.createElement(t));return e&&(y=u.createElement(nd,$t(Ee({title:e},s),{children:u.createElement("span",{},y)}))),y});function yu(d){var p=d,{icon:e,title:t,onClick:n,disabled:r,progress:o,link:i,tooltipProps:s,confirm:a}=p,c=nn(p,["icon","title","onClick","disabled","progress","link","tooltipProps","confirm"]);const[h,m]=to(!1);typeof r=="string"&&(t=r,r=!0),i&&(n=()=>window.open(i));let g=u.createElement(sA,$t(Ee({variant:"contained",startIcon:u.createElement(e),loading:!!(h||o),loadingPosition:"start",loadingIndicator:typeof o!="number"?void 0:u.createElement(Ka,{size:"1rem",value:o*100,variant:"determinate"}),disabled:r},c),{onClick(...v){return mt(this,null,function*(){if(a&&!(yield qs(a)))return;const S=n==null?void 0:n.apply(this,v);S&&S instanceof Promise&&(m(!0),S.catch(un).finally(()=>m(!1)))})}}));return t&&(g=u.createElement(nd,$t(Ee({title:t},s),{children:u.createElement("span",{},g)}))),g}function Zr(e,t,n){return u.createElement(nd,{title:t,children:u.createElement(e,{sx:Ee({verticalAlign:"bottom"},n)})})}function IS(e){return u.createElement(Ro,Ee({component:YO},e))}function py(e){return u.createElement(je,Ee({display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"},e))}function sle(e,t){return mt(this,null,function*(){const r=(yield Et("get_config",{only:[e]}))[e],o=yield t(r);JSON.stringify(r)!==JSON.stringify(o)&&(yield Et("set_config",{values:{[e]:o}}))})}function lle(e){return Object.keys(e)}function ale(e,t){var n;return(n=t[e])!=null?n:e}function Yl(e){return hL(t=>t.breakpoints.up(e),{noSsr:!0})}function gA(e){return{ENOENT:"Not found",ENOTDIR:"Not a folder"}[e]||e}function kS(e,t){return u.createElement(Gn,Ee({icon:ny,title:"Reload",onClick:e},t))}const cle=navigator.platform.match("Mac");function ule(e){return(e.ctrlKey||cle&&e.metaKey)&&e.key}function vA({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(Ka,{value:t*100,variant:"determinate",size:32,sx:{position:"absolute"}}),u.createElement(nd,{title:u.createElement(u.Fragment,{},pse(t),r),children:u.createElement(Ka,{color:"success",value:(n||1e-7)*100,variant:"determinate",size:32,sx:Ee({display:"flex"},o)})}))}function Ql(i){var s=i,{gap:e=".8em",vert:t=!1,children:n=null,props:r={}}=s,o=nn(s,["gap","vert","children","props"]);return u.createElement(je,Ee({sx:Ee({display:"flex",gap:e,flexDirection:t?"column":void 0},o)},r),n)}function Ya(e,t){return Array.isArray(t)&&(t=np(t)),u.createElement(Ro,{href:sse+e,target:"help"},t)}function yA(e,t,n,r){let o=e[t];return hS(e,()=>{const i=e[t];Object.is(o,i)||n(o=i)},r)}const bA="admin_state",pn=pS(Object.assign({title:"",config:{},selectedFiles:[],vfs:void 0,loginRequired:!1,username:"",onlinePluginsColumns:{version:!1,pushed_at:!1,license:!1}},JSON.parse(localStorage[bA]||null))),wA=["onlinePluginsColumns"],dle=St.debounce(()=>localStorage[bA]=JSON.stringify(St.pick(pn,wA)),500,{maxWait:1e3});for(const e of wA)yA(pn,e,dle);function oa(){return mS(pn)}function Mi(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 zu(e){return!!e&&!!e[Lo]}function Qa(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var o=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===ble}(e)||Array.isArray(e)||!!e[mR]||!!(!((t=e.constructor)===null||t===void 0)&&t[mR])||_S(e)||$S(e))}function op(e,t,n){n===void 0&&(n=!1),od(e)===0?(n?Object.keys:FS)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function od(e){var t=e[Lo];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:_S(e)?2:$S(e)?3:0}function Ow(e,t){return od(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function fle(e,t){return od(e)===2?e.get(t):e[t]}function CA(e,t,n){var r=od(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function ple(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function _S(e){return vle&&e instanceof Map}function $S(e){return yle&&e instanceof Set}function wa(e){return e.o||e.t}function RS(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=wle(e);delete t[Lo];for(var n=FS(t),r=0;r<n.length;r++){var o=n[r],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function MS(e,t){return t===void 0&&(t=!1),TS(e)||zu(e)||!Qa(e)||(od(e)>1&&(e.set=e.add=e.clear=e.delete=hle),Object.freeze(e),t&&op(e,function(n,r){return MS(r,!0)},!0)),e}function hle(){Mi(2)}function TS(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function cs(e){var t=Cle[e];return t||Mi(18,e),t}function aR(){return ip}function V1(e,t){t&&(cs("Patches"),e.u=[],e.s=[],e.v=t)}function Ig(e){Fw(e),e.p.forEach(mle),e.p=null}function Fw(e){e===ip&&(ip=e.l)}function cR(e){return ip={p:[],l:ip,h:e,m:!0,_:0}}function mle(e){var t=e[Lo];t.i===0||t.i===1?t.j():t.g=!0}function U1(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||cs("ES5").S(t,e,r),r?(n[Lo].P&&(Ig(t),Mi(4)),Qa(e)&&(e=kg(t,e),t.l||_g(t,e)),t.u&&cs("Patches").M(n[Lo].t,e,t.u,t.s)):e=kg(t,n,[]),Ig(t),t.u&&t.v(t.u,t.s),e!==xA?e:void 0}function kg(e,t,n){if(TS(t))return t;var r=t[Lo];if(!r)return op(t,function(a,c){return uR(e,r,t,a,c,n)},!0),t;if(r.A!==e)return t;if(!r.P)return _g(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=RS(r.k):r.o,i=o,s=!1;r.i===3&&(i=new Set(o),o.clear(),s=!0),op(i,function(a,c){return uR(e,r,o,a,c,n,s)}),_g(e,o,!1),n&&e.u&&cs("Patches").N(r,n,e.u,e.s)}return r.o}function uR(e,t,n,r,o,i,s){if(zu(o)){var a=kg(e,o,i&&t&&t.i!==3&&!Ow(t.R,r)?i.concat(r):void 0);if(CA(n,r,a),!zu(a))return;e.m=!1}else s&&n.add(o);if(Qa(o)&&!TS(o)){if(!e.h.D&&e._<1)return;kg(e,o),t&&t.A.l||_g(e,o)}}function _g(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&MS(t,n)}function W1(e,t){var n=e[Lo];return(n?wa(n):e)[t]}function dR(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 Lw(e){e.P||(e.P=!0,e.l&&Lw(e.l))}function G1(e){e.o||(e.o=RS(e.t))}function Aw(e,t,n){var r=_S(t)?cs("MapSet").F(t,n):$S(t)?cs("MapSet").T(t,n):e.O?function(o,i){var s=Array.isArray(o),a={i:s?1:0,A:i?i.A:aR(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=a,d=Nw;s&&(c=[a],d=lf);var p=Proxy.revocable(c,d),h=p.revoke,m=p.proxy;return a.k=m,a.j=h,m}(t,n):cs("ES5").J(t,n);return(n?n.A:aR()).p.push(r),r}function gle(e){return zu(e)||Mi(22,e),function t(n){if(!Qa(n))return n;var r,o=n[Lo],i=od(n);if(o){if(!o.P&&(o.i<4||!cs("ES5").K(o)))return o.t;o.I=!0,r=fR(n,i),o.I=!1}else r=fR(n,i);return op(r,function(s,a){o&&fle(o.t,s)===a||CA(r,s,t(a))}),i===3?new Set(r):r}(e)}function fR(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return RS(e)}var pR,ip,OS=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",vle=typeof Map!="undefined",yle=typeof Set!="undefined",hR=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",xA=OS?Symbol.for("immer-nothing"):((pR={})["immer-nothing"]=!0,pR),mR=OS?Symbol.for("immer-draftable"):"__$immer_draftable",Lo=OS?Symbol.for("immer-state"):"__$immer_state",ble=""+Object.prototype.constructor,FS=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,wle=Object.getOwnPropertyDescriptors||function(e){var t={};return FS(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Cle={},Nw={get:function(e,t){if(t===Lo)return e;var n=wa(e);if(!Ow(n,t))return function(o,i,s){var a,c=dR(i,s);return c?"value"in c?c.value:(a=c.get)===null||a===void 0?void 0:a.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!Qa(r)?r:r===W1(e.t,t)?(G1(e),e.o[t]=Aw(e.A.h,r,e)):r},has:function(e,t){return t in wa(e)},ownKeys:function(e){return Reflect.ownKeys(wa(e))},set:function(e,t,n){var r=dR(wa(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=W1(wa(e),t),i=o==null?void 0:o[Lo];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(ple(n,o)&&(n!==void 0||Ow(e.t,t)))return!0;G1(e),Lw(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 W1(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,G1(e),Lw(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=wa(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Mi(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Mi(12)}},lf={};op(Nw,function(e,t){lf[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),lf.deleteProperty=function(e,t){return lf.set.call(this,e,t,void 0)},lf.set=function(e,t,n){return Nw.set.call(this,e[0],t,n,e[0])};var xle=function(){function e(n){var r=this;this.O=hR,this.D=!0,this.produce=function(o,i,s){if(typeof o=="function"&&typeof i!="function"){var a=i;i=o;var c=r;return function(v){var S=this;v===void 0&&(v=a);for(var w=arguments.length,C=Array(w>1?w-1:0),x=1;x<w;x++)C[x-1]=arguments[x];return c.produce(v,function(P){var _;return(_=i).call.apply(_,[S,P].concat(C))})}}var d;if(typeof i!="function"&&Mi(6),s!==void 0&&typeof s!="function"&&Mi(7),Qa(o)){var p=cR(r),h=Aw(r,o,void 0),m=!0;try{d=i(h),m=!1}finally{m?Ig(p):Fw(p)}return typeof Promise!="undefined"&&d instanceof Promise?d.then(function(v){return V1(p,s),U1(v,p)},function(v){throw Ig(p),v}):(V1(p,s),U1(d,p))}if(!o||typeof o!="object"){if((d=i(o))===void 0&&(d=o),d===xA&&(d=void 0),r.D&&MS(d,!0),s){var g=[],y=[];cs("Patches").M(o,d,g,y),s(g,y)}return d}Mi(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(d){for(var p=arguments.length,h=Array(p>1?p-1:0),m=1;m<p;m++)h[m-1]=arguments[m];return r.produceWithPatches(d,function(g){return o.apply(void 0,[g].concat(h))})};var s,a,c=r.produce(o,i,function(d,p){s=d,a=p});return typeof Promise!="undefined"&&c instanceof Promise?c.then(function(d){return[d,s,a]}):[c,s,a]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Qa(n)||Mi(8),zu(n)&&(n=gle(n));var r=cR(this),o=Aw(this,n,void 0);return o[Lo].C=!0,Fw(r),o},t.finishDraft=function(n,r){var o=n&&n[Lo],i=o.A;return V1(i,r),U1(void 0,i)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!hR&&Mi(20),this.O=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var s=cs("Patches").$;return zu(n)?s(n,r):this.produce(n,function(a){return s(a,r)})},e}(),Ao=new xle,Sle=Ao.produce;Ao.produceWithPatches.bind(Ao);Ao.setAutoFreeze.bind(Ao);Ao.setUseProxies.bind(Ao);Ao.applyPatches.bind(Ao);Ao.createDraft.bind(Ao);Ao.finishDraft.bind(Ao);const Ele=Sle;xie({onResponse(e,t){return mt(this,null,function*(){if(e.status===401)throw pn.loginRequired=(t==null?void 0:t.any)!==!1||403,new UL(e.status,"Unauthorized")})}});function Mo(...e){const[t,n,r]=oy(...e),o=e[0],i=t===void 0,s=u.useMemo(()=>o?n?u.createElement(jo,{severity:"error"},String(n),u.createElement(Gn,{icon:ny,onClick:r,sx:{m:"-8px 0 -8px 16px"}})):i?mA():null:null,[n,o,i,r]);return{data:t,error:n,reload:r,loading:i,element:s}}function sc(e,t={},{map:n=r=>r}={}){const[r,o]=to([]),[i,s]=to(void 0),[a,c]=to(void 0),[d,p]=to(!0),[h,m]=to(!1),[g,y]=to(!0),[v,S]=u.useState(0),w=u.useRef(0);return u.useEffect(()=>{if(!e)return;const _=[],k=St.debounce(()=>{const L=_.splice(0,1/0);L.length&&o(N=>[...N,...L])},1e3,{maxWait:1e3});c(void 0),m(!0),p(!0),y(!0),o([]);const I=WL(e,t,(L,N)=>{switch(L){case"connected":return p(!1),setTimeout(()=>k.flush());case"error":return c("Connection error"),setTimeout(C,1e3),R();case"closed":return R();case"msg":const O=[],D=[];hse(N).forEach(B=>{var z;if(!Array.isArray(B))return console.debug("illegal list packet",B);const[M,F]=B;if(M==="ready"){k.flush(),y(!1);return}if(M==="error"){F===401?pn.loginRequired=B[2].any!==!1||403:c(gA(F));return}if(M==="props")return s(F);if(M==="add"){const V=n(F);(z=V.id)!=null||(V.id=w.current=Math.max(w.current,Date.now())+.001),_.push(V),k();return}if(M==="remove"){const V=St.matches(F);St.isEmpty(St.remove(_,V))&&O.push(V);return}if(M==="update"){const V=B[2],A=St.find(_,F);if(A)return Object.assign(A,V);D.push([F,V]);return}console.debug("unknown list api",M)}),o(B=>{let M=B,F;if(O.length&&(F=B.filter(z=>!O.some(V=>V(z))),F.length<B.length&&(M=F)),D.length)for(const[z,V]of D){const A=St.findIndex(M,z);A<0||(M===B&&(M=F!=null?F:B.slice()),M[A]=Ee(Ee({},M[A]),V))}return M}),(I==null?void 0:I.readyState)===(I==null?void 0:I.CLOSED)&&R()}});return()=>I.close();function R(){y(!1),m(!1),k.flush()}},[v,e,JSON.stringify(t)]),{list:r,props:i,loading:h,error:a,initializing:g,connecting:d,setList:o,updateList:x,updateEntry:P,reload:C};function C(){S(_=>_+1)}function x(_){o(Ele(r,k=>{_(k)}))}function P(_,k){x(I=>{const R=St.find(I,_);R&&Object.assign(R,k)})}}var LS={},Ple=lt;Object.defineProperty(LS,"__esModule",{value:!0});var SA=LS.default=void 0,Ile=Ple(at()),kle=st(),_le=(0,Ile.default)((0,kle.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"}),"PauseCircle");SA=LS.default=_le;var AS={},$le=lt;Object.defineProperty(AS,"__esModule",{value:!0});var hy=AS.default=void 0,Rle=$le(at()),Mle=st(),Tle=(0,Rle.default)((0,Mle.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM9.5 16.5v-9l7 4.5-7 4.5z"}),"PlayCircle");hy=AS.default=Tle;var NS={},Ole=lt;Object.defineProperty(NS,"__esModule",{value:!0});var EA=NS.default=void 0,Fle=Ole(at()),Lle=st(),Ale=(0,Fle.default)((0,Lle.jsx)("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5zm-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3 2 4.27z"}),"LinkOff");EA=NS.default=Ale;var DS={},Nle=lt;Object.defineProperty(DS,"__esModule",{value:!0});var BS=DS.default=void 0,Dle=Nle(at()),Ble=st(),zle=(0,Dle.default)((0,Ble.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}),"Lock");BS=DS.default=zle;var zS={},jle=lt;Object.defineProperty(zS,"__esModule",{value:!0});var PA=zS.default=void 0,Hle=jle(at()),Vle=st(),Ule=(0,Hle.default)((0,Vle.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z"}),"Block");PA=zS.default=Ule;var jS={},Wle=lt;Object.defineProperty(jS,"__esModule",{value:!0});var IA=jS.default=void 0,Gle=Wle(at()),Kle=st(),qle=(0,Gle.default)((0,Kle.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-2 6h-2v2h2v2h-2v2h-2v-2h2v-2h-2v-2h2v-2h-2V8h2v2h2v2z"}),"FolderZip");IA=jS.default=qle;var HS={},Yle=lt;Object.defineProperty(HS,"__esModule",{value:!0});var Op=HS.default=void 0,Qle=Yle(at()),Xle=st(),Jle=(0,Qle.default)((0,Xle.jsx)("path",{d:"M5 20h14v-2H5v2zm0-10h4v6h6v-6h4l-7-7-7 7z"}),"Upload");Op=HS.default=Jle;var VS={},Zle=lt;Object.defineProperty(VS,"__esModule",{value:!0});var US=VS.default=void 0,eae=Zle(at()),tae=st(),nae=(0,eae.default)((0,tae.jsx)("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"}),"Download");US=VS.default=nae;const kA=u.createContext(void 0);function Dt(){const e=u.useContext(kA);if(e===void 0)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
|
|
328
|
-
`));return e}const rae=()=>u.useRef({}),_A=u.createContext(void 0),et=()=>{const e=u.useContext(_A);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},$A=u.createContext(void 0);function lc(){const e=u.useContext($A);if(e===void 0)throw new Error(["MUI: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
|
|
329
|
-
`));return e}const gR={};function oae(e,t){const n=u.useRef(gR);return n.current===gR&&(n.current=e(t)),n}const iae=[];function sae(e){u.useEffect(e,iae)}const bs=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
|
|
330
|
-
`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},lae=Object.is;function RA(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,!lae(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}bs(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function aae(e){return e.acceptsApiRef}function vR(e,t){return aae(t)?t(e):t(e.current.state)}const cae=Object.is,WS=RA,uae=()=>({state:null,equals:null,selector:null}),Ge=(e,t,n=cae)=>{const r=oae(uae),o=r.current.selector!==null,[i,s]=u.useState(o?null:vR(e,t));return r.current.state=i,r.current.equals=n,r.current.selector=t,sae(()=>e.current.store.subscribe(()=>{const a=vR(e,r.current.selector);r.current.equals(r.current.state,a)||(r.current.state=a,s(a))})),i};function Bt(e){return Je("MuiDataGrid",e)}const X=Xe("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorderColor","cell--withRightBorder","columnHeader--withRightBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),dae=e=>{const{classes:t}=e;return Me({root:["main"]},Bt,t)},fae=gr("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"})),pae=u.forwardRef((e,t)=>{const n=et(),r=dae(n);return T.jsx(fae,{ref:t,className:r.root,ownerState:n,children:e.children})});var $g="NOT_FOUND";function hae(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:$g},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function mae(e,t){var n=[];function r(a){var c=n.findIndex(function(p){return t(a,p.key)});if(c>-1){var d=n[c];return c>0&&(n.splice(c,1),n.unshift(d)),d.value}return $g}function o(a,c){r(a)===$g&&(n.unshift({key:a,value:c}),n.length>e&&n.pop())}function i(){return n}function s(){n=[]}return{get:r,put:o,getEntries:i,clear:s}}var gae=function(t,n){return t===n};function vae(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function GS(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?gae:r,i=n.maxSize,s=i===void 0?1:i,a=n.resultEqualityCheck,c=vae(o),d=s===1?hae(c):mae(s,c);function p(){var h=d.get(arguments);if(h===$g){if(h=e.apply(null,arguments),a){var m=d.getEntries(),g=m.find(function(y){return a(y.value,h)});g&&(h=g.value)}d.put(arguments,h)}return h}return p.clearCache=function(){return d.clear()},p}function yae(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 bae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var s=arguments.length,a=new Array(s),c=0;c<s;c++)a[c]=arguments[c];var d=0,p,h={memoizeOptions:void 0},m=a.pop();if(typeof m=="object"&&(h=m,m=a.pop()),typeof m!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof m+"]");var g=h,y=g.memoizeOptions,v=y===void 0?n:y,S=Array.isArray(v)?v:[v],w=yae(a),C=e.apply(void 0,[function(){return d++,m.apply(null,arguments)}].concat(S)),x=e(function(){for(var _=[],k=w.length,I=0;I<k;I++)_.push(w[I].apply(null,arguments));return p=C.apply(null,_),p});return Object.assign(x,{resultFunc:m,memoizedResultFunc:C,dependencies:w,lastResult:function(){return p},recomputations:function(){return d},resetRecomputations:function(){return d=0}}),x};return o}var wae=bae(GS);const Cae={cache:new WeakMap};bs(["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 jc(e){return"current"in e&&"instanceId"in e.current}const Hc={id:"default"},Tt=(e,t,n,r,o,i,...s)=>{if(s.length>0)throw new Error("Unsupported number of selectors");let a;if(e&&t&&n&&r&&o&&i)a=(c,d)=>{const p=jc(c),h=d!=null?d:p?c.current.instanceId:Hc,m=p?c.current.state:c,g=e(m,h),y=t(m,h),v=n(m,h),S=r(m,h),w=o(m,h);return i(g,y,v,S,w)};else if(e&&t&&n&&r&&o)a=(c,d)=>{const p=jc(c),h=d!=null?d:p?c.current.instanceId:Hc,m=p?c.current.state:c,g=e(m,h),y=t(m,h),v=n(m,h),S=r(m,h);return o(g,y,v,S)};else if(e&&t&&n&&r)a=(c,d)=>{const p=jc(c),h=d!=null?d:p?c.current.instanceId:Hc,m=p?c.current.state:c,g=e(m,h),y=t(m,h),v=n(m,h);return r(g,y,v)};else if(e&&t&&n)a=(c,d)=>{const p=jc(c),h=d!=null?d:p?c.current.instanceId:Hc,m=p?c.current.state:c,g=e(m,h),y=t(m,h);return n(g,y)};else if(e&&t)a=(c,d)=>{const p=jc(c),h=d!=null?d:p?c.current.instanceId:Hc,m=p?c.current.state:c,g=e(m,h);return t(g)};else throw new Error("Missing arguments");return a.acceptsApiRef=!0,a},In=(...e)=>{const t=(...n)=>{var r,o;const[i,s]=n,a=jc(i),c=a?i.current.instanceId:s!=null?s:Hc,d=a?i.current.state:i,{cache:p}=Cae;if(p.get(c)&&(r=p.get(c))!=null&&r.get(e)){var h;return(h=p.get(c))==null?void 0:h.get(e)(d,c)}const m=wae(...e);return p.get(c)||p.set(c,new Map),(o=p.get(c))==null||o.set(e,m),m(d,c)};return t.acceptsApiRef=!0,t},ju=e=>e.columns,zs=Tt(ju,e=>e.orderedFields),id=Tt(ju,e=>e.lookup),us=In(zs,id,(e,t)=>e.map(n=>t[n])),Fi=Tt(ju,e=>e.columnVisibilityModel),Tr=In(us,Fi,(e,t)=>e.filter(n=>t[n.field]!==!1)),my=In(Tr,e=>e.map(t=>t.field)),Hu=In(Tr,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),KS=Tt(Tr,Hu,(e,t)=>{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),MA=In(us,e=>e.filter(t=>t.filterable)),xae=In(us,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),zi=e=>e.rows,gy=Tt(zi,e=>e.totalRowCount),Sae=Tt(zi,e=>e.loading),Eae=Tt(zi,e=>e.totalTopLevelRowCount),$l=Tt(zi,e=>e.dataRowIdToModelLookup),Rg=Tt(zi,e=>e.dataRowIdToIdLookup),Ri=Tt(zi,e=>e.tree),Pae=Tt(zi,e=>e.groupingName),yR=Tt(zi,e=>e.treeDepths),vy=In(zi,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}),lm=Tt(zi,e=>e.dataRowIds),Iae=Tt(zi,e=>e==null?void 0:e.additionalRowGroups),sd=In(Iae,e=>{var t,n;const r=e==null?void 0:e.pinnedRows;return{bottom:r==null||(t=r.bottom)==null?void 0:t.map(o=>{var i;return{id:o.id,model:(i=o.model)!=null?i:{}}}),top:r==null||(n=r.top)==null?void 0:n.map(o=>{var i;return{id:o.id,model:(i=o.model)!=null?i:{}}})}}),kae=Tt(sd,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)}),TA=e=>e.sorting,qS=Tt(TA,e=>e.sortedRows),YS=In(qS,$l,(e,t)=>e.map(n=>{var r;return{id:n,model:(r=t[n])!=null?r:{}}})),Zo=Tt(TA,e=>e.sortModel),_ae=In(Zo,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),QS=e=>e.filter,wr=Tt(QS,e=>e.filterModel);Tt(wr,e=>e.quickFilterValues);const $ae=e=>e.visibleRowsLookup,OA=Tt(QS,e=>e.filteredRowsLookup);Tt(QS,e=>e.filteredDescendantCountLookup);const ia=In($ae,YS,(e,t)=>t.filter(n=>e[n.id]!==!1)),If=In(ia,e=>e.map(t=>t.id)),Rae=In(OA,YS,(e,t)=>t.filter(n=>e[n.id]!==!1)),Mae=In(Rae,e=>e.map(t=>t.id)),FA=In(ia,Ri,vy,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),LA=Tt(ia,e=>e.length),yy=Tt(FA,e=>e.length),Tae=In(wr,id,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var o,i;if(!r.field)return!1;const s=t[r.field];if(!(s!=null&&s.filterOperators)||(s==null||(o=s.filterOperators)==null?void 0:o.length)===0)return!1;const a=s.filterOperators.find(c=>c.value===r.operator);return a?!a.InputComponent||r.value!=null&&((i=r.value)==null?void 0:i.toString())!=="":!1})}),Oae=In(Tae,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),by=e=>e.focus,ni=Tt(by,e=>e.cell),Fae=Tt(by,e=>e.columnHeader);Tt(by,e=>e.columnHeaderFilter);const Mg=Tt(by,e=>e.columnGroupHeader),wy=e=>e.tabIndex,Tg=Tt(wy,e=>e.cell),AA=Tt(wy,e=>e.columnHeader);Tt(wy,e=>e.columnHeaderFilter);const Lae=Tt(wy,e=>e.columnGroupHeader),XS=e=>e.density,Aae=Tt(XS,e=>e.value),ld=Tt(XS,e=>e.factor),Cy=e=>e.columnGrouping,Nae=In(Cy,e=>{var t;return(t=e==null?void 0:e.unwrappedGroupingModel)!=null?t:{}}),NA=In(Cy,e=>{var t;return(t=e==null?void 0:e.lookup)!=null?t:{}}),Dae=In(Cy,e=>{var t;return(t=e==null?void 0:e.headerStructure)!=null?t:[]}),Fp=Tt(Cy,e=>{var t;return(t=e==null?void 0:e.maxDepth)!=null?t:0}),Dw=e=>e.columnMenu;function Bae(e){const{VirtualScrollerComponent:t,ColumnHeadersProps:n,children:r}=e,o=lc(),i=et(),s=u.useRef(null),a=Ge(o,Tr),c=Ge(o,Oae),d=Ge(o,_ae),p=Ge(o,Hu),h=Ge(o,AA),m=Ge(o,Tg),g=Ge(o,Lae),y=Ge(o,Fae),v=Ge(o,Mg),S=Ge(o,ld),w=Ge(o,Fp),C=Ge(o,Dw),x=Ge(o,Fi),P=Ge(o,Dae),_=!(g===null&&h===null&&m===null),[k,I]=u.useState(i.disableVirtualization);ln(()=>{o.current.computeSizeAndPublishResizeEvent();const M=s.current;if(typeof ResizeObserver=="undefined")return()=>{};let F;const z=new ResizeObserver(()=>{F=window.requestAnimationFrame(()=>{o.current.computeSizeAndPublishResizeEvent()})});return M&&z.observe(M),()=>{F&&window.cancelAnimationFrame(F),M&&z.unobserve(M)}},[o]);const R=u.useCallback(()=>{I(!0)},[]),L=u.useCallback(()=>{I(!1)},[]);u.useEffect(()=>{I(i.disableVirtualization)},[i.disableVirtualization]),o.current.unstable_disableVirtualization=R,o.current.unstable_enableVirtualization=L;const N=u.useRef(null),O=u.useRef(null),D=u.useRef(null);o.current.register("private",{columnHeadersContainerElementRef:O,columnHeadersElementRef:N,virtualScrollerRef:D,mainElementRef:s});const B=!!o.current.getRootDimensions();return T.jsxs(pae,{ref:s,children:[T.jsx(i.slots.columnHeaders,E({ref:O,innerRef:N,visibleColumns:a,filterColumnLookup:c,sortColumnLookup:d,columnPositions:p,columnHeaderTabIndexState:h,columnGroupHeaderTabIndexState:g,columnHeaderFocus:y,columnGroupHeaderFocus:v,densityFactor:S,headerGroupingMaxDepth:w,columnMenuState:C,columnVisibility:x,columnGroupsHeaderStructure:P,hasOtherElementInTabSequence:_},n)),B&&T.jsx(t,{ref:D,disableVirtualization:k}),r]})}function zae(){var e;const t=et();return t.hideFooter?null:T.jsx(t.slots.footer,E({},(e=t.slotProps)==null?void 0:e.footer))}const Hr="auto-generated-group-node-root",Om=Symbol("mui.id_autogenerated"),jae=()=>({type:"group",id:Hr,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function Hae(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(`
|
|
331
|
-
`))}const Og=(e,t,n)=>{const r=t?t(e):e.id;return Hae(r,e,n),r},Fm=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={},s={};for(let a=0;a<e.length;a+=1){const c=e[a],d=Og(c,t);i[d]=c,s[d]=d,o.rows.push(d)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToIdLookup:s,dataRowIdToModelLookup:i}},DA=({tree:e,rowCountProp:t=0})=>{const n=e[Hr];return Math.max(t,n.children.length+(n.footerId==null?0:1))},BA=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o})=>{const i=e.current.caches.rows,{tree:s,treeDepths:a,dataRowIds:c,groupingName:d}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:i.updates,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIdToModelLookup:i.dataRowIdToModelLookup}),p=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:s,treeDepths:a,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIds:c,dataRowIdToModelLookup:i.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},E({},p,{totalRowCount:Math.max(t,p.dataRowIds.length),totalTopLevelRowCount:DA({tree:p.tree,rowCountProp:t}),groupingName:d,loading:n})},sp=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,JS=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let i=0;i<r.children.length;i+=1){const s=r.children[i];(!n||!sp(e[s]))&&o.push(s),o.push(...JS(e,s,n))}return!n&&r.footerId!=null&&o.push(r.footerId),o},Vae=({previousCache:e,getRowId:t,updates:n})=>{var r,o,i;if(e.updates.type==="full")throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const s=new Map;n.forEach(m=>{const g=Og(m,t,"A row was provided without id when calling updateRows():");s.has(g)?s.set(g,E({},s.get(g),m)):s.set(g,m)});const a={type:"partial",actions:{insert:[...(r=e.updates.actions.insert)!=null?r:[]],modify:[...(o=e.updates.actions.modify)!=null?o:[]],remove:[...(i=e.updates.actions.remove)!=null?i:[]]},idToActionLookup:E({},e.updates.idToActionLookup)},c=E({},e.dataRowIdToModelLookup),d=E({},e.dataRowIdToIdLookup),p={insert:{},modify:{},remove:{}};s.forEach((m,g)=>{const y=a.idToActionLookup[g];if(m._action==="delete"){if(y==="remove"||!c[g])return;y!=null&&(p[y][g]=!0),a.actions.remove.push(g),delete c[g],delete d[g];return}const v=c[g];if(v){y==="remove"?(p.remove[g]=!0,a.actions.modify.push(g)):y==null&&a.actions.modify.push(g),c[g]=E({},v,m);return}y==="remove"?(p.remove[g]=!0,a.actions.insert.push(g)):y==null&&a.actions.insert.push(g),c[g]=m,d[g]=g});const h=Object.keys(p);for(let m=0;m<h.length;m+=1){const g=h[m],y=p[g];Object.keys(y).length>0&&(a.actions[g]=a.actions[g].filter(v=>!y[v]))}return{dataRowIdToModelLookup:c,dataRowIdToIdLookup:d,updates:a,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function zA(e){var t,n;const r=sd(e),o=(r==null||(t=r.top)==null?void 0:t.reduce((s,a)=>(s+=e.current.unstable_getRowHeight(a.id),s),0))||0,i=(r==null||(n=r.bottom)==null?void 0:n.reduce((s,a)=>(s+=e.current.unstable_getRowHeight(a.id),s),0))||0;return{top:o,bottom:i}}function jA(e,t){const n=ld(e);return 2*Math.floor(t*n)}const Uae=gr("div",{name:"MuiDataGrid",slot:"OverlayWrapper",overridesResolver:(e,t)=>t.overlayWrapper})({position:"sticky",top:0,left:0,width:0,height:0,zIndex:4}),Wae=gr("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),Gae=e=>{const{classes:t}=e;return Me({root:["overlayWrapper"],inner:["overlayWrapperInner"]},Bt,t)};function Kae(e){var t,n;const r=Dt(),o=et(),[i,s]=u.useState(()=>{var p,h;return(p=(h=r.current.getRootDimensions())==null?void 0:h.viewportInnerSize)!=null?p:null}),a=u.useCallback(()=>{var p,h;s((p=(h=r.current.getRootDimensions())==null?void 0:h.viewportInnerSize)!=null?p:null)},[r]);ln(()=>r.current.subscribeEvent("viewportInnerSizeChange",a),[r,a]);let c=(t=i==null?void 0:i.height)!=null?t:0;o.autoHeight&&c===0&&(c=jA(r,o.rowHeight));const d=Gae(E({},e,{classes:o.classes}));return i?T.jsx(Uae,{className:he(d.root),children:T.jsx(Wae,E({className:he(d.inner),style:{height:c,width:(n=i==null?void 0:i.width)!=null?n:0}},e))}):null}function qae(){const e=Dt(),t=et(),n=Ge(e,gy),r=Ge(e,LA),o=Ge(e,Sae),i=!o&&n===0,s=!o&&n>0&&r===0;let a=null;if(i){var c;a=T.jsx(t.slots.noRowsOverlay,E({},(c=t.slotProps)==null?void 0:c.noRowsOverlay))}if(s){var d;a=T.jsx(t.slots.noResultsOverlay,E({},(d=t.slotProps)==null?void 0:d.noResultsOverlay))}if(o){var p;a=T.jsx(t.slots.loadingOverlay,E({},(p=t.slotProps)==null?void 0:p.loadingOverlay))}return a===null?null:T.jsx(Kae,{children:a})}function xy(e){return u.memo(e,RA)}let K1;function Yae(){return K1===void 0&&document.createElement("div").focus({get preventScroll(){return K1=!0,!1}}),K1}var gs=function(e){return e.Cell="cell",e.Row="row",e}(gs||{}),rn=function(e){return e.Edit="edit",e.View="view",e}(rn||{}),mn=function(e){return e.Edit="edit",e.View="view",e}(mn||{}),ro=function(e){return e.And="and",e.Or="or",e}(ro||{}),hl=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(hl||{}),ki=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(ki||{}),ml=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(ml||{}),Ts=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Ts||{});function HA(e){return e.field!==void 0}function Qae(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Xae(e,t){return e.closest(`.${t}`)}function ZS(e){return e.replace(/["\\]/g,"\\$&")}function Jae(e,t){return e.querySelector(`[role="columnheader"][data-field="${ZS(t)}"]`)}function VA(e){return`.${X.row}[data-id="${ZS(String(e))}"]`}function Zae(e,t){return e.querySelector(VA(t))}function ece(e,{id:t,field:n}){const r=VA(t),o=`.${X.cell}[data-field="${ZS(n)}"]`,i=`${r} ${o}`;return e.querySelector(i)}function Lt(e,t,n){const r=u.useRef(!0);u.useEffect(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}class ru extends Error{}function tce(e,t){const{getRowId:n}=t,r=u.useCallback(y=>({field:y,colDef:e.current.getColumn(y)}),[e]),o=u.useCallback(y=>{const v=e.current.getRow(y);if(!v)throw new ru(`No row with id #${y} found`);return{id:y,columns:e.current.getAllColumns(),row:v}},[e]),i=u.useCallback((y,v)=>{const S=e.current.getRow(y),w=e.current.getRowNode(y);if(!S||!w)throw new ru(`No row with id #${y} found`);const C=ni(e),x=Tg(e);return{id:y,field:v,row:S,rowNode:w,value:S[v],colDef:e.current.getColumn(v),cellMode:e.current.getCellMode(y,v),api:e.current,hasFocus:C!==null&&C.field===v&&C.id===y,tabIndex:x&&x.field===v&&x.id===y?0:-1}},[e]),s=u.useCallback((y,v)=>{const S=e.current.getColumn(v),w=e.current.getCellValue(y,v),C=e.current.getRow(y),x=e.current.getRowNode(y);if(!C||!x)throw new ru(`No row with id #${y} found`);const P=ni(e),_=Tg(e),k={id:y,field:v,row:C,rowNode:x,colDef:S,cellMode:e.current.getCellMode(y,v),hasFocus:P!==null&&P.field===v&&P.id===y,tabIndex:_&&_.field===v&&_.id===y?0:-1,value:w,formattedValue:w,isEditable:!1};return S&&S.valueFormatter&&(k.formattedValue=S.valueFormatter({id:y,field:k.field,value:k.value,api:e.current})),k.isEditable=S&&e.current.isCellEditable(k),k},[e]),a=u.useCallback((y,v)=>{const S=e.current.getColumn(v);if(!S||!S.valueGetter){const w=e.current.getRow(y);if(!w)throw new ru(`No row with id #${y} found`);return w[v]}return S.valueGetter(i(y,v))},[e,i]),c=u.useCallback((y,v)=>{var S;const w=Om in y?y[Om]:(S=n==null?void 0:n(y))!=null?S:y.id,C=v.field;return!v||!v.valueGetter?y[C]:v.valueGetter(i(w,C))},[i,n]),d=u.useCallback((y,v)=>{var S;const w=c(y,v);if(!v||!v.valueFormatter)return w;const C=(S=n?n(y):y.id)!=null?S:y[Om],x=v.field;return v.valueFormatter({id:C,field:x,value:w,api:e.current})},[e,n,c]),p=u.useCallback(y=>e.current.rootElementRef.current?Jae(e.current.rootElementRef.current,y):null,[e]),h=u.useCallback(y=>e.current.rootElementRef.current?Zae(e.current.rootElementRef.current,y):null,[e]),m=u.useCallback((y,v)=>e.current.rootElementRef.current?ece(e.current.rootElementRef.current,{id:y,field:v}):null,[e]);Lt(e,{getCellValue:a,getCellParams:s,getCellElement:m,getRowValue:c,getRowFormattedValue:d,getRowParams:o,getRowElement:h,getColumnHeaderParams:r,getColumnHeaderElement:p},"public")}const nce=["changeReason","unstable_updateValueOnRender"],rce=["column","rowId","editCellState","align","children","colIndex","height","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],oce=["changeReason","unstable_updateValueOnRender"],Fg={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:rn.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},ice=e=>{const{align:t,showRightBorder:n,isEditable:r,isSelected:o,classes:i}=e,s={root:["cell",`cell--text${ue(t)}`,r&&"cell--editable",o&&"selected",n&&"cell--withRightBorder","withBorderColor"],content:["cellContent"]};return Me(s,Bt,i)},sce=u.forwardRef((e,t)=>{const{column:n,rowId:r,editCellState:o}=e,i=Dt(),s=et(),a=n.field,c=Ge(i,()=>{try{const L=i.current.getCellParams(r,a);return L.api=i.current,L}catch(R){if(R instanceof ru)return Fg;throw R}},WS),d=Ge(i,()=>i.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:a}));if(c===Fg)return null;const{cellMode:p,hasFocus:h,isEditable:m,value:g,formattedValue:y}=c,v=n.type==="actions",S=(p==="view"||!m)&&!v?c.tabIndex:-1,{classes:w,getCellClassName:C}=s,x=i.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:a});n.cellClassName&&x.push(typeof n.cellClassName=="function"?n.cellClassName(c):n.cellClassName),C&&x.push(C(c));let P;if(o==null&&n.renderCell&&(P=n.renderCell(c),x.push(X["cell--withRenderer"]),x.push(w==null?void 0:w["cell--withRenderer"])),o!=null&&n.renderEditCell){const R=i.current.getRowWithUpdatedValues(r,n.field),L=ne(o,nce),N=E({},c,{row:R},L);P=n.renderEditCell(N),x.push(X["cell--editing"]),x.push(w==null?void 0:w["cell--editing"])}const{slots:_}=s,k=_.cell,I=E({},e,{ref:t,field:a,formattedValue:y,hasFocus:h,isEditable:m,isSelected:d,value:g,cellMode:p,children:P,tabIndex:S,className:he(x)});return u.createElement(k,I)}),lce=xy(sce),ace=u.forwardRef((e,t)=>{const{column:n,rowId:r,editCellState:o,align:i,colIndex:s,height:a,width:c,className:d,showRightBorder:p,colSpan:h,disableDragEvents:m,onClick:g,onDoubleClick:y,onMouseDown:v,onMouseUp:S,onMouseOver:w,onKeyDown:C,onKeyUp:x,onDragEnter:P,onDragOver:_}=e,k=ne(e,rce),I=Dt(),R=et(),L=n.field,N=Ge(I,()=>{try{const be=I.current.getCellParams(r,L);return be.api=I.current,be}catch(pe){if(pe instanceof ru)return Fg;throw pe}},WS),O=Ge(I,()=>I.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:L})),{cellMode:D,hasFocus:B,isEditable:M,value:F,formattedValue:z}=N,V=n.type==="actions",A=(D==="view"||!M)&&!V?N.tabIndex:-1,{classes:H,getCellClassName:W}=R,K=I.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:L});n.cellClassName&&K.push(typeof n.cellClassName=="function"?n.cellClassName(N):n.cellClassName),W&&K.push(W(N));const Y=z==null?F:z,ie=u.useRef(null),re=Vt(t,ie),de=u.useRef(null),se={align:i,showRightBorder:p,isEditable:M,classes:R.classes,isSelected:O},le=ice(se),ke=u.useCallback(pe=>be=>{const te=I.current.getCellParams(r,L||"");I.current.publishEvent(pe,te,be),S&&S(be)},[I,L,S,r]),ve=u.useCallback(pe=>be=>{const te=I.current.getCellParams(r,L||"");I.current.publishEvent(pe,te,be),v&&v(be)},[I,L,v,r]),Pe=u.useCallback((pe,be)=>te=>{if(!I.current.getRow(r))return;const Oe=I.current.getCellParams(r,L||"");I.current.publishEvent(pe,Oe,te),be&&be(te)},[I,L,r]),ee={minWidth:c,maxWidth:c,minHeight:a,maxHeight:a==="auto"?"none":a};if(u.useEffect(()=>{if(!B||D===rn.Edit)return;const pe=vn(I.current.rootElementRef.current);if(ie.current&&!ie.current.contains(pe.activeElement)){const be=ie.current.querySelector('[tabindex="0"]'),te=de.current||be||ie.current;if(Yae())te.focus({preventScroll:!0});else{const Oe=I.current.getScrollPosition();te.focus(),I.current.scroll(Oe)}}},[B,D,I]),N===Fg)return null;let _e=k.onFocus,Re;if(o==null&&n.renderCell&&(Re=n.renderCell(N),K.push(X["cell--withRenderer"]),K.push(H==null?void 0:H["cell--withRenderer"])),o!=null&&n.renderEditCell){const pe=I.current.getRowWithUpdatedValues(r,n.field),be=ne(o,oce),te=E({},N,{row:pe},be);Re=n.renderEditCell(te),K.push(X["cell--editing"]),K.push(H==null?void 0:H["cell--editing"])}if(Re===void 0){const pe=Y==null?void 0:Y.toString();Re=T.jsx("div",{className:le.content,title:pe,children:pe})}u.isValidElement(Re)&&V&&(Re=u.cloneElement(Re,{focusElementRef:de}));const Se=m?null:{onDragEnter:Pe("cellDragEnter",P),onDragOver:Pe("cellDragOver",_)};return T.jsx("div",E({ref:re,className:he(d,K,le.root),role:"cell","data-field":L,"data-colindex":s,"aria-colindex":s+1,"aria-colspan":h,style:ee,tabIndex:A,onClick:Pe("cellClick",g),onDoubleClick:Pe("cellDoubleClick",y),onMouseOver:Pe("cellMouseOver",w),onMouseDown:ve("cellMouseDown"),onMouseUp:ke("cellMouseUp"),onKeyDown:Pe("cellKeyDown",C),onKeyUp:Pe("cellKeyUp",x)},Se,k,{onFocus:_e,children:Re}))}),Bw=xy(ace),cce=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex"],uce=e=>{const{classes:t}=e;return Me({root:["booleanCell"]},Bt,t)};function dce(e){const{value:t}=e,n=ne(e,cce),r=Dt(),o=et(),i={classes:o.classes},s=uce(i),a=u.useMemo(()=>t?o.slots.booleanCellTrueIcon:o.slots.booleanCellFalseIcon,[o.slots.booleanCellFalseIcon,o.slots.booleanCellTrueIcon,t]);return T.jsx(a,E({fontSize:"small",className:s.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},n))}const fce=u.memo(dce),pce=e=>sp(e.rowNode)?"":T.jsx(fce,E({},e)),hce=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],mce=e=>{const{classes:t}=e;return Me({root:["editBooleanCell"]},Bt,t)};function gce(e){var t;const{id:n,value:r,field:o,className:i,hasFocus:s,onValueChange:a}=e,c=ne(e,hce),d=Dt(),p=u.useRef(null),h=on(),[m,g]=u.useState(r),y=et(),v={classes:y.classes},S=mce(v),w=u.useCallback(C=>mt(this,null,function*(){const x=C.target.checked;a&&(yield a(C,x)),g(x),yield d.current.setEditCellValue({id:n,field:o,value:x},C)}),[d,o,n,a]);return u.useEffect(()=>{g(r)},[r]),ln(()=>{s&&p.current.focus()},[s]),T.jsx("label",E({htmlFor:h,className:he(S.root,i)},c,{children:T.jsx(y.slots.baseCheckbox,E({id:h,inputRef:p,checked:!!m,onChange:w,size:"small"},(t=y.slotProps)==null?void 0:t.baseCheckbox))}))}const vce=e=>T.jsx(gce,E({},e)),yce=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],bce=oe(ed)({fontSize:"inherit"}),wce=e=>{const{classes:t}=e;return Me({root:["editInputCell"]},Bt,t)};function Cce(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,inputProps:s,onValueChange:a}=e,c=ne(e,yce),d=o.type==="dateTime",p=Dt(),h=u.useRef(),m=u.useMemo(()=>{let I;n==null?I=null:n instanceof Date?I=n:I=new Date((n!=null?n:"").toString());let R;return I==null||Number.isNaN(I.getTime())?R="":R=new Date(I.getTime()-I.getTimezoneOffset()*60*1e3).toISOString().substr(0,d?16:10),{parsed:I,formatted:R}},[n,d]),[g,y]=u.useState(m),S={classes:et().classes},w=wce(S),C=u.useRef(!1),x=u.useCallback(I=>{if(I==="")return null;const[R,L]=I.split("T"),[N,O,D]=R.split("-"),B=new Date;if(B.setFullYear(Number(N),Number(O)-1,Number(D)),B.setHours(0,0,0,0),L){const[M,F]=L.split(":");B.setHours(Number(M),Number(F),0,0)}return B},[]),P=u.useCallback(I=>mt(this,null,function*(){const R=I.target.value,L=x(R);a&&(yield a(I,L)),y({parsed:L,formatted:R}),p.current.setEditCellValue({id:t,field:r,value:L},I)}),[p,r,t,a,x]);u.useEffect(()=>{y(I=>{var R,L;return m.parsed!==I.parsed&&((R=m.parsed)==null?void 0:R.getTime())!==((L=I.parsed)==null?void 0:L.getTime())?m:I})},[m]),ln(()=>{i&&h.current.focus()},[i]);const _=p.current.unstable_getEditCellMeta(t,r),k=I=>{if(h.current=I,_!=null&&_.unstable_updateValueOnRender&&!C.current){const R=h.current.value,L=x(R);y({parsed:L,formatted:R}),p.current.setEditCellValue({id:t,field:r,value:L}),C.current=!0}};return T.jsx(bce,E({inputRef:k,fullWidth:!0,className:w.root,type:d?"datetime-local":"date",inputProps:E({max:d?"9999-12-31T23:59":"9999-12-31"},s),value:g.formatted,onChange:P},c))}const UA=e=>T.jsx(Cce,E({},e)),xce=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],Sce=e=>{const{classes:t}=e;return Me({root:["editInputCell"]},Bt,t)},Ece=oe(ed,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>E({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),Pce=u.forwardRef((e,t)=>{const n=et(),{id:r,value:o,field:i,colDef:s,hasFocus:a,debounceMs:c=200,isProcessingProps:d,onValueChange:p}=e,h=ne(e,xce),m=Dt(),g=u.useRef(),[y,v]=u.useState(o),S=Sce(n),w=u.useCallback(x=>mt(void 0,null,function*(){const P=x.target.value;p&&(yield p(x,P));const _=m.current.getColumn(i);let k=P;_.valueParser&&(k=_.valueParser(P,m.current.getCellParams(r,i))),v(k),m.current.setEditCellValue({id:r,field:i,value:k,debounceMs:c,unstable_skipValueParser:!0},x)}),[m,c,i,r,p]),C=m.current.unstable_getEditCellMeta(r,i);return u.useEffect(()=>{(C==null?void 0:C.changeReason)!=="debouncedSetEditCellValue"&&v(o)},[C,o]),ln(()=>{a&&g.current.focus()},[a]),T.jsx(Ece,E({ref:t,inputRef:g,className:S.root,ownerState:n,fullWidth:!0,type:s.type==="number"?s.type:"text",value:y!=null?y:"",onChange:w,endAdornment:d?T.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},h))}),Ice=e=>T.jsx(Pce,E({},e)),Lg=e=>e==="Escape",kce=e=>e==="Enter",WA=e=>e==="Tab",GA=e=>e===" ",_ce=e=>e.indexOf("Arrow")===0,$ce=e=>e==="Home"||e==="End",Rce=e=>e.indexOf("Page")===0;function KA(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const Ag=e=>$ce(e)||_ce(e)||Rce(e)||GA(e),Mce=e=>!!e.key,Tce=e=>WA(e)||Lg(e);function Oa(e){return(e==null?void 0:e.type)==="singleSelect"}function zw(e,t,n){if(t===void 0)return;const r=t.find(o=>{const i=n(o);return String(i)===String(e)});return n(r)}const Oce=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","getOptionLabel","getOptionValue"],Fce=["MenuProps"];function Lce(e){return!!e.key}function Ace(e){var t,n,r;const o=et(),{id:i,value:s,field:a,row:c,colDef:d,hasFocus:p,error:h,onValueChange:m,initialOpen:g=o.editMode===gs.Cell,getOptionLabel:y,getOptionValue:v}=e,S=ne(e,Oce),w=Dt(),C=u.useRef(),x=u.useRef(),[P,_]=u.useState(g),I=(n=(((t=o.slotProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1,R=((r=o.slotProps)==null?void 0:r.baseSelect)||{},{MenuProps:L}=R,N=ne(R,Fce);if(ln(()=>{if(p){var V;(V=x.current)==null||V.focus()}},[p]),!Oa(d))return null;let O;if(typeof(d==null?void 0:d.valueOptions)=="function"?O=d==null?void 0:d.valueOptions({id:i,row:c,field:a}):O=d==null?void 0:d.valueOptions,!O)return null;const D=v||d.getOptionValue,B=y||d.getOptionLabel,M=V=>mt(this,null,function*(){if(!Oa(d)||!O)return;_(!1);const A=V.target,H=zw(A.value,O,D);m&&(yield m(V,H)),yield w.current.setEditCellValue({id:i,field:a,value:H},V)}),F=(V,A)=>{if(o.editMode===gs.Row){_(!1);return}if(A==="backdropClick"||Lg(V.key)){const H=w.current.getCellParams(i,a);w.current.publishEvent("cellEditStop",E({},H,{reason:Lg(V.key)?ki.escapeKeyDown:ki.cellFocusOut}))}},z=V=>{Lce(V)&&V.key==="Enter"||_(!0)};return!O||!d?null:T.jsx(o.slots.baseSelect,E({ref:C,inputRef:x,value:s,onChange:M,open:P,onOpen:z,MenuProps:E({onClose:F},L),error:h,native:I,fullWidth:!0},S,N,{children:O.map(V=>{var A;const H=D(V);return u.createElement(o.slots.baseSelectOption,E({},((A=o.slotProps)==null?void 0:A.baseSelectOption)||{},{native:I,key:H,value:H}),B(V))})}))}const Nce=e=>T.jsx(Ace,E({},e)),Dce=["open","target","onClickAway","children","position","className","onExited"],Bce=e=>{const{classes:t}=e;return Me({root:["menu"]},Bt,t)},zce=oe(oc,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${X.menuList}`]:{outline:0}})),jce={"bottom-start":"top left","bottom-end":"top right"};function qA(e){var t;const{open:n,target:r,onClickAway:o,children:i,position:s,className:a,onExited:c}=e,d=ne(e,Dce),p=Dt(),h=et(),m=Bce(h);u.useEffect(()=>{const y=n?"menuOpen":"menuClose";p.current.publishEvent(y,{target:r})},[p,n,r]);const g=y=>v=>{y&&y(),c&&c(v)};return T.jsx(zce,E({as:h.slots.basePopper,className:he(a,m.root),ownerState:h,open:n,anchorEl:r,transition:!0,placement:s},d,(t=h.slotProps)==null?void 0:t.basePopper,{children:({TransitionProps:y,placement:v})=>T.jsx(OF,{onClickAway:o,mouseEvent:"onMouseDown",children:T.jsx(Cg,E({},y,{style:{transformOrigin:jce[v]},onExited:g(y==null?void 0:y.onExited),children:T.jsx(bi,{children:i})}))})}))}const Hce=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],Vce=e=>typeof e.getActions=="function";function Uce(e){var t;const{colDef:n,id:r,hasFocus:o,tabIndex:i,position:s="bottom-end",focusElementRef:a}=e,c=ne(e,Hce),[d,p]=u.useState(-1),[h,m]=u.useState(!1),g=Dt(),y=u.useRef(null),v=u.useRef(null),S=u.useRef(!1),w=u.useRef({}),C=sr(),x=on(),P=on(),_=et();if(!Vce(n))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const k=n.getActions(g.current.getRowParams(r)),I=k.filter(z=>!z.props.showInMenu),R=k.filter(z=>z.props.showInMenu),L=I.length+(R.length?1:0);u.useLayoutEffect(()=>{o||Object.entries(w.current).forEach(([z,V])=>{V==null||V.stop({},()=>{delete w.current[z]})})},[o]),u.useEffect(()=>{if(d<0||!y.current||d>=y.current.children.length)return;y.current.children[d].focus({preventScroll:!0})},[d]),u.useEffect(()=>{o||(p(-1),S.current=!1)},[o]),u.useImperativeHandle(a,()=>({focus(){S.current||p(0)}}),[]),u.useEffect(()=>{d>=L&&p(L-1)},[d,L]);const N=()=>{m(!0),p(L-1),S.current=!0},O=()=>{m(!1)},D=z=>V=>{w.current[z]=V},B=(z,V)=>A=>{p(z),S.current=!0,V&&V(A)},M=z=>{if(L<=1)return;let V=d;z.key==="ArrowRight"?C.direction==="rtl"?V-=1:V+=1:z.key==="ArrowLeft"&&(C.direction==="rtl"?V+=1:V-=1),!(V<0||V>=L)&&V!==d&&(z.preventDefault(),z.stopPropagation(),p(V))},F=z=>{z.key==="Tab"&&z.preventDefault(),["Tab","Enter","Escape"].includes(z.key)&&O()};return T.jsxs("div",E({role:"menu",ref:y,tabIndex:-1,className:X.actionsCell,onKeyDown:M},c,{children:[I.map((z,V)=>u.cloneElement(z,{key:V,touchRippleRef:D(V),onClick:B(V,z.props.onClick),tabIndex:d===V?i:-1})),R.length>0&&P&&T.jsx(_.slots.baseIconButton,E({ref:v,id:P,"aria-label":g.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":h,"aria-controls":h?x:void 0,role:"menuitem",size:"small",onClick:N,touchRippleRef:D(P),tabIndex:d===I.length?i:-1},(t=_.slotProps)==null?void 0:t.baseIconButton,{children:T.jsx(_.slots.moreActionsIcon,{fontSize:"small"})})),R.length>0&&T.jsx(qA,{onClickAway:O,onClick:O,open:h,target:v.current,position:s,children:T.jsx(ty,{id:x,className:X.menuList,onKeyDown:F,"aria-labelledby":P,variant:"menu",autoFocusItem:!0,children:R.map((z,V)=>u.cloneElement(z,{key:V}))})})]}))}const Wce=e=>T.jsx(Uce,E({},e)),Gce=["label","icon","showInMenu","onClick"],am=u.forwardRef((e,t)=>{const{label:n,icon:r,showInMenu:o,onClick:i}=e,s=ne(e,Gce),a=et(),c=p=>{i&&i(p)};if(!o){var d;return T.jsx(a.slots.baseIconButton,E({ref:t,size:"small",role:"menuitem","aria-label":n},s,{onClick:c},(d=a.slotProps)==null?void 0:d.baseIconButton,{children:u.cloneElement(r,{fontSize:"small"})}))}return T.jsxs(Ur,E({ref:t},s,{onClick:i,children:[r&&T.jsx(Bs,{children:r}),n]}))}),Kce=["field","align","width","contentWidth"],qce=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${ue(t)}`,"withBorderColor"]};return Me(r,Bt,n)};function Yce(e){const{align:t,width:n,contentWidth:r}=e,o=ne(e,Kce),s={classes:et().classes,align:t},a=qce(s);return T.jsx("div",E({className:a.root,style:{width:n}},o,{children:T.jsx(kne,{width:`${r}%`})}))}function Qce(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?Ua(ut(e.palette.divider,1),.88):Va(ut(e.palette.divider,1),.68)}const bR={[`.${X.columnSeparator}, .${X["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},wR={[`& .${X.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${X.menuIcon}`]:{width:"auto",visibility:"visible"}},Xce=oe("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${X.autoHeight}`]:t.autoHeight},{[`&.${X.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${X["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${X["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${X["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${X.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${X["root--disableUserSelection"]} .${X.cell}`]:t["root--disableUserSelection"]},{[`& .${X.editBooleanCell}`]:t.editBooleanCell},{[`& .${X["cell--editing"]}`]:t["cell--editing"]},{[`& .${X["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${X["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${X["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${X["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${X.cell}`]:t.cell},{[`& .${X["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${X["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${X["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${X["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${X["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${X.cellContent}`]:t.cellContent},{[`& .${X.cellCheckbox}`]:t.cellCheckbox},{[`& .${X.cellSkeleton}`]:t.cellSkeleton},{[`& .${X.checkboxInput}`]:t.checkboxInput},{[`& .${X["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${X["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${X["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${X["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${X["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${X["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${X["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${X["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${X["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${X.columnHeader}`]:t.columnHeader},{[`& .${X.headerFilterRow}`]:t.headerFilterRow},{[`& .${X.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${X.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${X.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${X["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${X["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${X.columnSeparator}`]:t.columnSeparator},{[`& .${X.filterIcon}`]:t.filterIcon},{[`& .${X.iconSeparator}`]:t.iconSeparator},{[`& .${X.menuIcon}`]:t.menuIcon},{[`& .${X.menuIconButton}`]:t.menuIconButton},{[`& .${X.menuOpen}`]:t.menuOpen},{[`& .${X.menuList}`]:t.menuList},{[`& .${X["row--editable"]}`]:t["row--editable"]},{[`& .${X["row--editing"]}`]:t["row--editing"]},{[`& .${X["row--dragging"]}`]:t["row--dragging"]},{[`& .${X.row}`]:t.row},{[`& .${X.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${X.rowReorderCell}`]:t.rowReorderCell},{[`& .${X["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${X.sortIcon}`]:t.sortIcon},{[`& .${X.withBorderColor}`]:t.withBorderColor},{[`& .${X.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${X.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${X.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${X["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=Qce(e),n=e.shape.borderRadius;return E({"--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})`:ut(e.palette.background.default,e.palette.action.disabledOpacity),flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:t,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflowAnchor:"none",[`&.${X.autoHeight}`]:{height:"auto",[`& .${X["row--lastVisible"]} .${X.cell}`]:{borderBottomColor:"transparent"}},[`& .${X["virtualScrollerContent--overflowed"]} .${X["row--lastVisible"]} .${X.cell}`]:{borderBottomColor:"transparent"},[`& .${X.columnHeader}, & .${X.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${X.columnHeader}:focus-within, & .${X.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:ut(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${X.columnHeader}:focus, & .${X.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${X.columnHeaderCheckbox}, & .${X.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${X.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${X["columnHeader--sorted"]} .${X.iconButtonContainer}, & .${X["columnHeader--filtered"]} .${X.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${X.columnHeader}:not(.${X["columnHeader--sorted"]}) .${X.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${X.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${X.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${X["columnHeader--filledGroup"]} .${X.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${X["columnHeader--filledGroup"]}.${X["columnHeader--showColumnBorder"]} .${X.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${X["columnHeader--filledGroup"]}.${X["columnHeader--showColumnBorder"]}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${X.headerFilterRow}`]:{borderTop:`1px solid ${t}`},[`& .${X.sortIcon}, & .${X.filterIcon}`]:{fontSize:"inherit"},[`& .${X["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${X["columnHeader--alignCenter"]} .${X.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${X["columnHeader--alignRight"]} .${X.columnHeaderDraggableContainer}, & .${X["columnHeader--alignRight"]} .${X.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${X["columnHeader--alignCenter"]} .${X.menuIcon}, & .${X["columnHeader--alignRight"]} .${X.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${X["columnHeader--alignRight"]} .${X.menuIcon}, & .${X["columnHeader--alignRight"]} .${X.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${X["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${X.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},"@media (hover: hover)":{[`& .${X.columnHeaders}:hover`]:bR,[`& .${X.columnHeader}:hover`]:wR,[`& .${X.columnHeader}:not(.${X["columnHeader--sorted"]}):hover .${X.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${X.columnHeaders}`]:bR,[`& .${X.columnHeader}`]:wR},[`& .${X["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${X["columnSeparator--sideRight"]}`]:{right:-12},[`& .${X["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(e.vars||e).palette.text.primary,"@media (hover: none)":{color:t}},[`&.${X["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${X.iconSeparator}`]:{color:"inherit"},[`& .${X.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${X.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${X.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ut(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})`:ut(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})`:ut(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${X.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ut(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})`:ut(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})`:ut(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`&.${X["root--disableUserSelection"]} .${X.cell}`]:{userSelect:"none"},[`& .${X.row}:not(.${X["row--dynamicHeight"]}) > .${X.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${X.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${X.cell}.${X["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${X["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${X["row--editing"]} .${X.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${X.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${X.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${X.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${X.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${X.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${X["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${X.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${X.withBorderColor}`]:{borderColor:t},[`& .${X["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${X["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${X["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${X["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${X["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${X.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${X.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${X["columnHeader--dragging"]}, & .${X["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${X["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${X.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${X.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${X.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${X.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${X.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),Jce=["children","className"],Zce=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${ue(n)}`,"withBorderColor"]};return Me(o,Bt,r)},eue=u.forwardRef(function(t,n){const r=et(),{children:o,className:i}=t,s=ne(t,Jce),a=lc(),c=Ge(a,Tr),d=Ge(a,gy),p=Ge(a,Aae),h=Ge(a,Fp),m=u.useRef(null),g=Vt(m,n),y=Ge(a,kae),v=E({},r,{density:p}),S=Zce(v);a.current.register("public",{rootElementRef:m});const[w,C]=u.useState(!1);return ln(()=>{C(!0)},[]),w?T.jsx(Xce,E({ref:g,className:he(i,S.root),ownerState:v,role:"grid","aria-colcount":c.length,"aria-rowcount":h+1+y+d,"aria-multiselectable":!r.disableMultipleRowSelection},s,{children:o})):null}),tue=["className"],nue=e=>{const{classes:t}=e;return Me({root:["footerContainer","withBorderColor"]},Bt,t)},rue=gr("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),oue=u.forwardRef(function(t,n){const{className:r}=t,o=ne(t,tue),i=et(),s=nue(i);return T.jsx(rue,E({ref:n,className:he(s.root,r),ownerState:i},o))}),iue=["className"],sue=e=>{const{classes:t}=e;return Me({root:["overlay"]},Bt,t)},lue=gr("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),eE=u.forwardRef(function(t,n){const{className:r}=t,o=ne(t,iue),i=et(),s=sue(i);return T.jsx(lue,E({ref:n,className:he(s.root,r),ownerState:i},o))}),aue=["className"],cue=e=>{const{classes:t}=e;return Me({root:["iconButtonContainer"]},Bt,t)},uue=gr("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),YA=u.forwardRef(function(t,n){const{className:r}=t,o=ne(t,aue),i=et(),s=cue(i);return T.jsx(uue,E({ref:n,className:he(s.root,r),ownerState:i},o))}),due=e=>{const{classes:t}=e;return Me({icon:["sortIcon"]},Bt,t)};function fue(e,t,n,r){let o;const i={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,i.sortingOrder=r),o?T.jsx(o,E({fontSize:"small",className:n},i)):null}function pue(e){var t;const{direction:n,index:r,sortingOrder:o}=e,i=Dt(),s=et(),a=E({},e,{classes:s.classes}),c=due(a),d=fue(s.slots,n,c.icon,o);if(!d)return null;const p=T.jsx(s.slots.baseIconButton,E({tabIndex:-1,"aria-label":i.current.getLocaleText("columnHeaderSortIconLabel"),title:i.current.getLocaleText("columnHeaderSortIconLabel"),size:"small"},(t=s.slotProps)==null?void 0:t.baseIconButton,{children:d}));return T.jsxs(YA,{children:[r!=null&&T.jsx(ZF,{badgeContent:r,color:"default",children:p}),r==null&&p]})}const hue=u.memo(pue),mue=e=>{const{classes:t,open:n}=e;return Me({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Bt,t)},gue=u.memo(e=>{var t,n;const{colDef:r,open:o,columnMenuId:i,columnMenuButtonId:s,iconButtonRef:a}=e,c=Dt(),d=et(),p=E({},e,{classes:d.classes}),h=mue(p),m=u.useCallback(g=>{g.preventDefault(),g.stopPropagation(),c.current.toggleColumnMenu(r.field)},[c,r.field]);return T.jsx("div",{className:h.root,children:T.jsx(d.slots.baseTooltip,E({title:c.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(t=d.slotProps)==null?void 0:t.baseTooltip,{children:T.jsx(d.slots.baseIconButton,E({ref:a,tabIndex:-1,className:h.button,"aria-label":c.current.getLocaleText("columnMenuLabel"),size:"small",onClick:m,"aria-haspopup":"menu","aria-expanded":o,"aria-controls":o?i:void 0,id:s},(n=d.slotProps)==null?void 0:n.baseIconButton,{children:T.jsx(d.slots.columnMenuIcon,{fontSize:"small"})}))}))})});function vue({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:s,onExited:a}){const c=Dt(),d=c.current.getColumn(o),p=u.useCallback(h=>{h.stopPropagation(),s!=null&&s.contains(h.target)||c.current.hideColumnMenu()},[c,s]);return!s||!d?null:T.jsx(qA,{placement:`bottom-${d.align==="right"?"start":"end"}`,open:i,target:s,onClickAway:p,onExited:a,children:T.jsx(n,E({colDef:d,hideMenu:p,open:i,id:e,labelledby:t},r))})}const yue=["className"],bue=e=>{const{classes:t}=e;return Me({root:["columnHeaderTitle"]},Bt,t)},wue=gr("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),Cue=u.forwardRef(function(t,n){const{className:r}=t,o=ne(t,yue),i=et(),s=bue(i);return T.jsx(wue,E({ref:n,className:he(s.root,r),ownerState:i},o))});function xue(e){var t;const{label:n,description:r}=e,o=et(),i=u.useRef(null),[s,a]=u.useState(""),c=u.useCallback(()=>{if(!r&&i!=null&&i.current){const d=Qae(i.current);a(d?n:"")}},[r,n]);return T.jsx(o.slots.baseTooltip,E({title:r||s},(t=o.slotProps)==null?void 0:t.baseTooltip,{children:T.jsx(Cue,{onMouseOver:c,ref:i,children:n})}))}const Sue=["resizable","resizing","height","side"];var QA=function(e){return e.Left="left",e.Right="right",e}(QA||{});const Eue=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${ue(o)}`],icon:["iconSeparator"]};return Me(i,Bt,r)};function Pue(e){const{height:t,side:n=QA.Right}=e,r=ne(e,Sue),o=et(),i=E({},e,{side:n,classes:o.classes}),s=Eue(i),a=u.useCallback(c=>{c.preventDefault(),c.stopPropagation()},[]);return T.jsx("div",E({className:s.root,style:{minHeight:t,opacity:o.showColumnVerticalBorder?0:1}},r,{onClick:a,children:T.jsx(o.slots.columnResizeIcon,{className:s.icon})}))}const Iue=u.memo(Pue),kue=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps"],XA=u.forwardRef(function(t,n){const{classes:r,columnMenuOpen:o,colIndex:i,height:s,isResizing:a,sortDirection:c,hasFocus:d,tabIndex:p,separatorSide:h,isDraggable:m,headerComponent:g,description:y,width:v,columnMenuIconButton:S=null,columnMenu:w=null,columnTitleIconButtons:C=null,headerClassName:x,label:P,resizable:_,draggableContainerProps:k,columnHeaderSeparatorProps:I}=t,R=ne(t,kue),L=lc(),N=et(),O=u.useRef(null),[D,B]=u.useState(o),M=Vt(O,n);let F="none";return c!=null&&(F=c==="asc"?"ascending":"descending"),u.useEffect(()=>{D||B(o)},[D,o]),u.useLayoutEffect(()=>{const z=L.current.state.columnMenu;if(d&&!z.open){const A=O.current.querySelector('[tabindex="0"]')||O.current;A==null||A.focus(),L.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[L,d]),T.jsxs("div",E({ref:M,className:he(r.root,x),style:{height:s,width:v,minWidth:v,maxWidth:v},role:"columnheader",tabIndex:p,"aria-colindex":i+1,"aria-sort":F,"aria-label":g==null?P:void 0},R,{children:[T.jsxs("div",E({className:r.draggableContainer,draggable:m},k,{children:[T.jsxs("div",{className:r.titleContainer,children:[T.jsx("div",{className:r.titleContainerContent,children:g!==void 0?g:T.jsx(xue,{label:P,description:y,columnWidth:v})}),C]}),S]})),T.jsx(Iue,E({resizable:!N.disableColumnResize&&!!_,resizing:a,height:s,side:h},I)),w]}))}),_ue=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,filterItemsCounter:s}=e,a=o!=null,c=s!=null&&s>0,d=t.type==="number",p={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",a&&"columnHeader--sorted",c&&"columnHeader--filtered",d&&"columnHeader--numeric","withBorderColor",i&&"columnHeader--withRightBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return Me(p,Bt,n)};function $ue(e){var t,n,r,o;const{colDef:i,columnMenuOpen:s,colIndex:a,headerHeight:c,isResizing:d,sortDirection:p,sortIndex:h,filterItemsCounter:m,hasFocus:g,tabIndex:y,disableReorder:v,separatorSide:S}=e,w=lc(),C=et(),x=u.useRef(null),P=on(),_=on(),k=u.useRef(null),[I,R]=u.useState(s),L=u.useMemo(()=>!C.disableColumnReorder&&!v&&!i.disableReorder,[C.disableColumnReorder,v,i.disableReorder]);let N;i.renderHeader&&(N=i.renderHeader(w.current.getColumnHeaderParams(i.field)));const O=E({},e,{classes:C.classes,showRightBorder:C.showColumnVerticalBorder}),D=_ue(O),B=u.useCallback(re=>de=>{de.currentTarget.contains(de.target)&&w.current.publishEvent(re,w.current.getColumnHeaderParams(i.field),de)},[w,i.field]),M=u.useMemo(()=>({onClick:B("columnHeaderClick"),onDoubleClick:B("columnHeaderDoubleClick"),onMouseOver:B("columnHeaderOver"),onMouseOut:B("columnHeaderOut"),onMouseEnter:B("columnHeaderEnter"),onMouseLeave:B("columnHeaderLeave"),onKeyDown:B("columnHeaderKeyDown"),onFocus:B("columnHeaderFocus"),onBlur:B("columnHeaderBlur")}),[B]),F=u.useMemo(()=>L?{onDragStart:B("columnHeaderDragStart"),onDragEnter:B("columnHeaderDragEnter"),onDragOver:B("columnHeaderDragOver"),onDragEnd:B("columnHeaderDragEnd")}:{},[L,B]),z=u.useMemo(()=>({onMouseDown:B("columnSeparatorMouseDown")}),[B]);u.useEffect(()=>{I||R(s)},[I,s]);const V=u.useCallback(()=>{R(!1)},[]),A=!C.disableColumnMenu&&!i.disableColumnMenu&&T.jsx(gue,{colDef:i,columnMenuId:P,columnMenuButtonId:_,open:I,iconButtonRef:k}),H=T.jsx(vue,{columnMenuId:P,columnMenuButtonId:_,field:i.field,open:s,target:k.current,ContentComponent:C.slots.columnMenu,contentComponentProps:(t=C.slotProps)==null?void 0:t.columnMenu,onExited:V}),W=(n=i.sortingOrder)!=null?n:C.sortingOrder,K=T.jsxs(u.Fragment,{children:[!C.disableColumnFilter&&T.jsx(C.slots.columnHeaderFilterIconButton,E({field:i.field,counter:m},(r=C.slotProps)==null?void 0:r.columnHeaderFilterIconButton)),i.sortable&&!i.hideSortIcons&&T.jsx(hue,{direction:p,index:h,sortingOrder:W})]});u.useLayoutEffect(()=>{const re=w.current.state.columnMenu;if(g&&!re.open){const se=x.current.querySelector('[tabindex="0"]')||x.current;se==null||se.focus(),w.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[w,g]);const Y=typeof i.headerClassName=="function"?i.headerClassName({field:i.field,colDef:i}):i.headerClassName,ie=(o=i.headerName)!=null?o:i.field;return T.jsx(XA,E({ref:x,classes:D,columnMenuOpen:s,colIndex:a,height:c,isResizing:d,sortDirection:p,hasFocus:g,tabIndex:y,separatorSide:S,isDraggable:L,headerComponent:N,description:i.description,elementId:i.field,width:i.computedWidth,columnMenuIconButton:A,columnTitleIconButtons:K,headerClassName:Y,label:ie,resizable:!C.disableColumnResize&&!!i.resizable,"data-field":i.field,columnMenu:H,draggableContainerProps:F,columnHeaderSeparatorProps:z},M))}const lp=()=>({items:[],logicOperator:ro.And,quickFilterValues:[],quickFilterLogicOperator:ro.And}),CR=1e3;class Rue{constructor(t=CR){this.timeouts=new Map,this.cleanupTimeout=CR,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 Mue{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 ds=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e}(ds||{});class Tue{}function Oue(e){let t=0;return function(r,o,i,s){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new Mue:new Rue);const[a]=u.useState(new Tue),c=u.useRef(null),d=u.useRef();d.current=i;const p=u.useRef(null);if(!c.current&&d.current){const h=(m,g,y)=>{if(!g.defaultMuiPrevented){var v;(v=d.current)==null||v.call(d,m,g,y)}};c.current=r.current.subscribeEvent(o,h,s),t+=1,p.current={cleanupToken:t},e.registry.register(a,()=>{var m;(m=c.current)==null||m.call(c),c.current=null,p.current=null},p.current)}else!d.current&&c.current&&(c.current(),c.current=null,p.current&&(e.registry.unregister(p.current),p.current=null));u.useEffect(()=>{if(!c.current&&d.current){const h=(m,g,y)=>{if(!g.defaultMuiPrevented){var v;(v=d.current)==null||v.call(d,m,g,y)}};c.current=r.current.subscribeEvent(o,h,s)}return p.current&&e.registry&&(e.registry.unregister(p.current),p.current=null),()=>{var h;(h=c.current)==null||h.call(c),c.current=null}},[r,o,s])}}const Fue={registry:null},ot=Oue(Fue),Lue={isFirst:!0};function xn(e,t,n){ot(e,t,n,Lue)}function Lr(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 Aue(e){return typeof e=="number"}function JA(e){return typeof e=="function"}function tE(e){return typeof e=="object"&&e!==null}function Nue(){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 Lm(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Vu=(e,t,n)=>Math.max(t,Math.min(n,e));function Fa(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(!Fa(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;for(let i=0;i<o.length;i+=1){const s=o[i];if(!Fa(s[1],t.get(s[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let o=0;o<r;o+=1)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(let o=0;o<r;o+=1){const i=n[o];if(!Fa(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Due(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 Bue(e,t,n){const r=Due(e);return()=>t+(n-t)*r()}function ZA(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const zue=(e,t,n,r,o)=>{const i=Lr(e,"useNativeEventListener"),[s,a]=u.useState(!1),c=u.useRef(r),d=u.useCallback(p=>c.current&&c.current(p),[]);u.useEffect(()=>{c.current=r},[r]),u.useEffect(()=>{let p;if(JA(t)?p=t():p=t&&t.current?t.current:null,p&&n&&!s){i.debug(`Binding native ${n} event`),p.addEventListener(n,d,o);const h=p;a(!0);const m=()=>{i.debug(`Clearing native ${n} event`),h.removeEventListener(n,d,o)};e.current.subscribeEvent("unmount",m)}},[t,d,n,s,i,o,e])},Lp=e=>{const t=u.useRef(!0);t.current&&(t.current=!1,e())},jue=100,Hue=e=>e?0:100,e4=(e,t)=>t>0&&e>0?Math.ceil(e/t):0;bs(["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 t4=e=>({page:0,pageSize:e?0:100}),Vue=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),n4=(e,t)=>{if(t===ds.DataGrid&&e>jue)throw new Error(["MUI: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
|
|
332
|
-
`))},r4=e=>e.pagination,ri=Tt(r4,e=>e.paginationModel),Uue=Tt(ri,e=>e.page),Wue=Tt(ri,e=>e.pageSize);Tt(ri,yy,(e,t)=>e4(t,e.pageSize));const nE=In(ri,Ri,vy,ia,FA,(e,t,n,r,o)=>{const i=o.length,s=Math.min(e.pageSize*e.page,i-1),a=Math.min(s+e.pageSize-1,i-1);if(s===-1||a===-1)return null;if(n<2)return{firstRowIndex:s,lastRowIndex:a};const c=o[s],d=a-s+1,p=r.findIndex(y=>y.id===c.id);let h=p,m=0;for(;h<r.length&&m<=d;){var g;const y=r[h],v=(g=t[y.id])==null?void 0:g.depth;v===void 0?h+=1:((m<d||v>0)&&(h+=1),v===0&&(m+=1))}return{firstRowIndex:p,lastRowIndex:h-1}}),Gue=In(ia,nE,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),o4=In(If,nE,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),ap=e=>e.preferencePanel;var Xa=function(e){return e.filters="filters",e.columns="columns",e}(Xa||{});const cp=e=>e.rowsMeta,ei=e=>e.rowSelection,Kue=Tt(ei,e=>e.length),que=In(ei,$l,(e,t)=>new Map(e.map(n=>[n,t[n]]))),Ng=In(ei,e=>e.reduce((t,n)=>(t[n]=n,t),{})),Yue=bs(["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"),i4=(e,t)=>t&&e.length>1?(Yue(),[e[0]]):e,xR=(e,t)=>n=>E({},n,{sorting:E({},n.sorting,{sortModel:i4(e,t)})}),Que=e=>e==="desc",Xue=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=Que(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator;return{getSortCellParams:i=>({id:i,field:n.field,rowNode:t.current.getRowNode(i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}},Jue=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const s=t.params[i],a=n.params[i];return r=o.comparator(s.value,a.value,s,a),r},0),Zue=(e,t)=>{const n=e.map(r=>Xue(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>Jue(n,o,i)).map(o=>o.node.id)},SR=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},rE=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,ede=new Intl.Collator,tde=(e,t)=>{const n=rE(e,t);return n!==null?n:typeof e=="string"?ede.compare(e.toString(),t.toString()):e-t},s4=(e,t)=>{const n=rE(e,t);return n!==null?n:Number(e)-Number(t)},l4=(e,t)=>{const n=rE(e,t);return n!==null?n:e>t?1:e<t?-1:0},a4=e=>e.headerFiltering,nde=Tt(a4,e=>e.editing),rde=Tt(a4,e=>e.menuOpen),ode=e=>{const{classes:t}=e;return Me({icon:["filterIcon"]},Bt,t)};function ide(e){var t,n;const{counter:r,field:o,onClick:i}=e,s=Dt(),a=et(),c=E({},e,{classes:a.classes}),d=ode(c),p=Ge(s,ap),h=on(),m=on(),g=u.useCallback(S=>{S.preventDefault(),S.stopPropagation();const{open:w,openedPanelValue:C}=ap(s.current.state);w&&C===Xa.filters?s.current.hideFilterPanel():s.current.showFilterPanel(void 0,m,h),i&&i(s.current.getColumnHeaderParams(o),S)},[s,o,i,m,h]);if(!r)return null;const y=p.open&&p.labelId===h,v=T.jsx(a.slots.baseIconButton,E({id:h,onClick:g,color:"default","aria-label":s.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":y,"aria-controls":y?m:void 0},(t=a.slotProps)==null?void 0:t.baseIconButton,{children:T.jsx(a.slots.columnFilteredIcon,{className:d.icon,fontSize:"small"})}));return T.jsx(a.slots.baseTooltip,E({title:s.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(n=a.slotProps)==null?void 0:n.baseTooltip,{children:T.jsxs(YA,{children:[r>1&&T.jsx(ZF,{badgeContent:r,color:"default",children:v}),r===1&&v]})}))}const sde=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],lde=e=>{const{classes:t}=e;return Me({root:["checkboxInput"]},Bt,t)},ade=u.forwardRef(function(t,n){var r;const{field:o,id:i,value:s,rowNode:a,hasFocus:c,tabIndex:d}=t,p=ne(t,sde),h=Dt(),m=et(),g={classes:m.classes},y=lde(g),v=u.useRef(null),S=u.useRef(null),w=Vt(v,n),C=h.current.getCellElement(i,o),x=I=>{const R={value:I.target.checked,id:i};h.current.publishEvent("rowSelectionCheckboxChange",R,I)};u.useLayoutEffect(()=>{d===0&&C&&(C.tabIndex=-1)},[C,d]),u.useEffect(()=>{if(c){var I;const R=(I=v.current)==null?void 0:I.querySelector("input");R==null||R.focus({preventScroll:!0})}else S.current&&S.current.stop({})},[c]);const P=u.useCallback(I=>{GA(I.key)&&I.stopPropagation()},[]);if(a.type==="footer"||a.type==="pinnedRow")return null;const _=h.current.isRowSelectable(i),k=h.current.getLocaleText(s?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return T.jsx(m.slots.baseCheckbox,E({ref:w,tabIndex:d,checked:s,onChange:x,className:y.root,inputProps:{"aria-label":k},onKeyDown:P,disabled:!_,touchRippleRef:S},(r=m.slotProps)==null?void 0:r.baseCheckbox,p))}),cde=ade,ude=["field","colDef"],dde=e=>{const{classes:t}=e;return Me({root:["checkboxInput"]},Bt,t)},fde=u.forwardRef(function(t,n){var r;const o=ne(t,ude),[,i]=u.useState(!1),s=Dt(),a=et(),c={classes:a.classes},d=dde(c),p=Ge(s,AA),h=Ge(s,ei),m=Ge(s,If),g=Ge(s,o4),y=u.useMemo(()=>typeof a.isRowSelectable!="function"?h:h.filter(R=>s.current.getRow(R)?a.isRowSelectable(s.current.getRowParams(R)):!1),[s,a.isRowSelectable,h]),v=u.useMemo(()=>(!a.pagination||!a.checkboxSelectionVisibleOnly?m:g).reduce((L,N)=>(L[N]=!0,L),{}),[a.pagination,a.checkboxSelectionVisibleOnly,g,m]),S=u.useMemo(()=>y.filter(R=>v[R]).length,[y,v]),w=S>0&&S<Object.keys(v).length,C=S>0,x=R=>{const L={value:R.target.checked};s.current.publishEvent("headerSelectionCheckboxChange",L)},P=p!==null&&p.field===t.field?0:-1;u.useLayoutEffect(()=>{const R=s.current.getColumnHeaderElement(t.field);P===0&&R&&(R.tabIndex=-1)},[P,s,t.field]);const _=u.useCallback(R=>{R.key===" "&&s.current.publishEvent("headerSelectionCheckboxChange",{value:!C})},[s,C]),k=u.useCallback(()=>{i(R=>!R)},[]);u.useEffect(()=>s.current.subscribeEvent("rowSelectionChange",k),[s,k]);const I=s.current.getLocaleText(C?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return T.jsx(a.slots.baseCheckbox,E({ref:n,indeterminate:w,checked:C,onChange:x,className:d.root,inputProps:{"aria-label":I},tabIndex:P,onKeyDown:_},(r=a.slotProps)==null?void 0:r.baseCheckbox,o))}),ER=_t(T.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),PR=_t(T.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),IR=_t(T.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),kR=_t(T.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),pde=_t(T.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),_R=_t(T.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),hde=_t(T.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");_t(T.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");_t(T.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const mde=_t(T.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),gde=_t(T.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),vde=_t(T.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),yde=_t(T.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),bde=_t(T.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),wde=_t(T.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),q1=_t(T.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),$R=_t(T.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),Cde=_t(T.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),xde=_t(T.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),RR=_t(T.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),Sde=_t(T.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),Ede=_t(T.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Pde=_t(T.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),Ide=_t(T.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),kde=_t(T.jsx("g",{children:T.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),_de=_t(T.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");_t(T.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const $de=_t(T.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),Rde=["hideMenu","colDef","id","labelledby","className","children","open"],Mde=oe(ty)(()=>({minWidth:248})),Tde=u.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:i,className:s,children:a,open:c}=t,d=ne(t,Rde),p=u.useCallback(h=>{WA(h.key)&&h.preventDefault(),Tce(h.key)&&r(h)},[r]);return T.jsx(Mde,E({id:o,ref:n,className:he(X.menuList,s),"aria-labelledby":i,onKeyDown:p,autoFocus:c},d,{children:a}))}),Ode=["displayOrder"],Fde=e=>{const t=lc(),{defaultSlots:n,defaultSlotProps:r,slots:o={},slotProps:i={},hideMenu:s,colDef:a,addDividers:c=!0}=e,d=u.useMemo(()=>E({},n,o),[n,o]),p=u.useMemo(()=>{if(!i||Object.keys(i).length===0)return r;const g=E({},i);return Object.entries(r).forEach(([y,v])=>{g[y]=E({},v,i[y]||{})}),g},[r,i]),h=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),m=u.useMemo(()=>{const g=Object.keys(n);return Object.keys(o).filter(y=>!g.includes(y))},[o,n]);return u.useMemo(()=>{const v=Array.from(new Set([...h,...m])).filter(S=>d[S]!=null).sort((S,w)=>{const C=p[S],x=p[w],P=Number.isFinite(C==null?void 0:C.displayOrder)?C.displayOrder:100,_=Number.isFinite(x==null?void 0:x.displayOrder)?x.displayOrder:100;return P-_});return v.reduce((S,w,C)=>{let x={colDef:a,onClick:s};const P=p[w];if(P){const _=ne(P,Ode);x=E({},x,_)}return c&&C!==v.length-1?[...S,[d[w],x],[AJ,{}]]:[...S,[d[w],x]]},[])},[c,a,h,s,d,p,m])};function Lde(e){const{colDef:t,onClick:n}=e,r=Dt(),o=et(),a=Tr(r).filter(d=>d.disableColumnMenu!==!0).length===1,c=u.useCallback(d=>{a||(r.current.setColumnVisibility(t.field,!1),n(d))},[r,t.field,n,a]);return o.disableColumnSelector||t.hideable===!1?null:T.jsxs(Ur,{onClick:c,disabled:a,children:[T.jsx(Bs,{children:T.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),T.jsx(as,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function Ade(e){const{onClick:t}=e,n=Dt(),r=et(),o=u.useCallback(i=>{t(i),n.current.showPreferences(Xa.columns)},[n,t]);return r.disableColumnSelector?null:T.jsxs(Ur,{onClick:o,children:[T.jsx(Bs,{children:T.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),T.jsx(as,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function Nde(e){return T.jsxs(u.Fragment,{children:[T.jsx(Lde,E({},e)),T.jsx(Ade,E({},e))]})}function Dde(e){const{colDef:t,onClick:n}=e,r=Dt(),o=et(),i=u.useCallback(s=>{n(s),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:T.jsxs(Ur,{onClick:i,children:[T.jsx(Bs,{children:T.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),T.jsx(as,{children:r.current.getLocaleText("columnMenuFilter")})]})}function Bde(e){var t;const{colDef:n,onClick:r}=e,o=Dt(),i=Ge(o,Zo),s=et(),a=u.useMemo(()=>{if(!n)return null;const p=i.find(h=>h.field===n.field);return p==null?void 0:p.sort},[n,i]),c=(t=n.sortingOrder)!=null?t:s.sortingOrder,d=u.useCallback(p=>{r(p);const h=p.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,h===a?null:h)},[o,n,r,a]);return!n||!n.sortable||!c.some(p=>!!p)?null:T.jsxs(u.Fragment,{children:[c.includes("asc")&&a!=="asc"?T.jsxs(Ur,{onClick:d,"data-value":"asc",children:[T.jsx(Bs,{children:T.jsx(s.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),T.jsx(as,{children:o.current.getLocaleText("columnMenuSortAsc")})]}):null,c.includes("desc")&&a!=="desc"?T.jsxs(Ur,{onClick:d,"data-value":"desc",children:[T.jsx(Bs,{children:T.jsx(s.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),T.jsx(as,{children:o.current.getLocaleText("columnMenuSortDesc")})]}):null,c.includes(null)&&a!=null?T.jsxs(Ur,{onClick:d,children:[T.jsx(Bs,{}),T.jsx(as,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})}const zde=["defaultSlots","defaultSlotProps","slots","slotProps"],jde={columnMenuSortItem:Bde,columnMenuFilterItem:Dde,columnMenuColumnsItem:Nde},Hde={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},Vde=u.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:s}=t,a=ne(t,zde),c=Fde(E({},a,{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:s}));return T.jsx(Tde,E({ref:n},a,{children:c.map(([d,p],h)=>T.jsx(d,E({},p),h))}))}),Ude=u.forwardRef(function(t,n){return T.jsx(Vde,E({},t,{ref:n,defaultSlots:jde,defaultSlotProps:Hde}))}),Wde=["className"],Gde=e=>{const{classes:t}=e;return Me({root:["panelContent"]},Bt,t)},Kde=gr("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function c4(e){const{className:t}=e,n=ne(e,Wde),r=et(),o=Gde(r);return T.jsx(Kde,E({className:he(t,o.root),ownerState:r},n))}const qde=["className"],Yde=e=>{const{classes:t}=e;return Me({root:["panelFooter"]},Bt,t)},Qde=gr("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function u4(e){const{className:t}=e,n=ne(e,qde),r=et(),o=Yde(r);return T.jsx(Qde,E({className:he(t,o.root),ownerState:r},n))}const Xde=["className"],Jde=e=>{const{classes:t}=e;return Me({root:["panelHeader"]},Bt,t)},Zde=gr("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function efe(e){const{className:t}=e,n=ne(e,Xde),r=et(),o=Jde(r);return T.jsx(Zde,E({className:he(t,o.root),ownerState:r},n))}const tfe=["className","slotProps"],nfe=e=>{const{classes:t}=e;return Me({root:["panelWrapper"]},Bt,t)},rfe=oe("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),ofe=()=>!0,d4=u.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,i=ne(t,tfe),s=et(),a=nfe(s);return T.jsx(FF,E({open:!0,disableEnforceFocus:!0,isEnabled:ofe},o.TrapFocus,{children:T.jsx(rfe,E({ref:n,tabIndex:-1,className:he(r,a.root),ownerState:s},i))}))}),ife=!1,sfe=["sort","searchPredicate","autoFocusSearchField","disableHideAllButton","disableShowAllButton","getTogglableColumns"],lfe=e=>{const{classes:t}=e;return Me({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},Bt,t)},afe=oe("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),cfe=oe("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${$r.root}`]:{marginRight:e.spacing(.5)}})),ufe=oe(li)({justifyContent:"flex-end"}),MR=new Intl.Collator,dfe=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function ffe(e){var t,n,r;const o=Dt(),i=u.useRef(null),s=Ge(o,us),a=Ge(o,Fi),c=et(),[d,p]=u.useState(""),h=lfe(c),{sort:m,searchPredicate:g=dfe,autoFocusSearchField:y=!0,disableHideAllButton:v=!1,disableShowAllButton:S=!1,getTogglableColumns:w}=e,C=ne(e,sfe),x=u.useMemo(()=>{switch(m){case"asc":return[...s].sort((O,D)=>MR.compare(O.headerName||O.field,D.headerName||D.field));case"desc":return[...s].sort((O,D)=>-MR.compare(O.headerName||O.field,D.headerName||D.field));default:return s}},[s,m]),P=O=>{const{name:D}=O.target;o.current.setColumnVisibility(D,a[D]===!1)},_=u.useCallback(O=>{const D=Fi(o),B=E({},D),M=w?w(s):null;return s.forEach(F=>{F.hideable&&(M==null||M.includes(F.field))&&(O?delete B[F.field]:B[F.field]=!1)}),o.current.setColumnVisibilityModel(B)},[o,s,w]),k=u.useCallback(O=>{p(O.target.value)},[]),I=u.useMemo(()=>{const O=w?w(x):null,D=O?x.filter(({field:B})=>O.includes(B)):x;return d?D.filter(B=>g(B,d.toLowerCase())):D},[x,d,g,w]),R=u.useRef(null);u.useEffect(()=>{y?i.current.focus():R.current&&typeof R.current.focus=="function"&&R.current.focus()},[y]);let L=!1;const N=O=>L===!1&&O.hideable!==!1?(L=!0,!0):!1;return T.jsxs(d4,E({},C,{children:[T.jsx(efe,{children:T.jsx(c.slots.baseTextField,E({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:i,value:d,onChange:k,variant:"standard",fullWidth:!0},(t=c.slotProps)==null?void 0:t.baseTextField))}),T.jsx(c4,{children:T.jsx(afe,{className:h.root,ownerState:c,children:I.map(O=>{var D;return T.jsxs(cfe,{className:h.columnsPanelRow,ownerState:c,children:[T.jsx(cL,{control:T.jsx(c.slots.baseSwitch,E({disabled:O.hideable===!1,checked:a[O.field]!==!1,onClick:P,name:O.field,size:"small",inputRef:N(O)?R:void 0},(D=c.slotProps)==null?void 0:D.baseSwitch)),label:O.headerName||O.field}),!c.disableColumnReorder&&ife&&T.jsx(ufe,{draggable:!0,"aria-label":o.current.getLocaleText("columnsPanelDragIconLabel"),title:o.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:T.jsx(c.slots.columnReorderIcon,{})})]},O.field)})})}),S&&v?null:T.jsxs(u4,{children:[v?T.jsx("span",{}):T.jsx(c.slots.baseButton,E({onClick:()=>_(!1)},(n=c.slotProps)==null?void 0:n.baseButton,{disabled:v,children:o.current.getLocaleText("columnsPanelHideAllButton")})),S?null:T.jsx(c.slots.baseButton,E({onClick:()=>_(!0)},(r=c.slotProps)==null?void 0:r.baseButton,{disabled:S,children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const pfe=["children","className","classes"],hfe=Xe("MuiDataGrid",["panel","paper"]),mfe=oe(oc,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),gfe=oe(bi,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),vfe=u.forwardRef((e,t)=>{const{children:n,className:r}=e,o=ne(e,pfe),i=Dt(),s=et(),a=hfe,[c,d]=u.useState(!1),p=u.useCallback(()=>{i.current.hidePreferences()},[i]),h=u.useCallback(v=>{Lg(v.key)&&i.current.hidePreferences()},[i]),m=u.useMemo(()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{d(!0)},effect:()=>()=>{d(!1)}}],[]),[g,y]=u.useState(null);return u.useEffect(()=>{var v,S;const w=(v=i.current.rootElementRef)==null||(S=v.current)==null?void 0:S.querySelector(`.${X.columnHeaders}`);w&&y(w)},[i]),g?T.jsx(mfe,E({ref:t,placement:"bottom-start",className:he(r,a.panel),ownerState:s,anchorEl:g,modifiers:m},o,{children:T.jsx(OF,{mouseEvent:"onMouseUp",onClickAway:p,children:T.jsx(gfe,{className:a.paper,ownerState:s,elevation:8,onKeyDown:h,children:c&&n})})})):null}),yfe=u.forwardRef(function(t,n){var r,o,i;const s=Dt(),a=Ge(s,us),c=et(),d=Ge(s,ap),p=s.current.unstable_applyPipeProcessors("preferencePanel",null,(r=d.openedPanelValue)!=null?r:Xa.filters);return T.jsx(c.slots.panel,E({ref:n,as:c.slots.basePopper,open:a.length>0&&d.open,id:d.panelId,"aria-labelledby":d.labelId},(o=c.slotProps)==null?void 0:o.panel,t,(i=c.slotProps)==null?void 0:i.basePopper,{children:p}))}),bfe=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],wfe=["InputComponentProps"],Cfe=e=>{const{classes:t}=e;return Me({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Bt,t)},xfe=oe("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),Sfe=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)})),Efe=oe("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),Pfe=oe("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),Ife=oe("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),kfe=oe("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),_fe=e=>{switch(e){case ro.And:return"filterPanelOperatorAnd";case ro.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `logicOperator` property in the `GridFilterPanel`.")}},Yd=e=>e.headerName||e.field,TR=new Intl.Collator,$fe=u.forwardRef(function(t,n){var r,o,i,s,a,c,d,p,h,m;const{item:g,hasMultipleFilters:y,deleteFilter:v,applyFilterChanges:S,multiFilterOperator:w,showMultiFilterOperators:C,disableMultiFilterOperator:x,applyMultiFilterOperatorChanges:P,focusElementRef:_,logicOperators:k=[ro.And,ro.Or],columnsSort:I,filterColumns:R,deleteIconProps:L={},logicOperatorInputProps:N={},operatorInputProps:O={},columnInputProps:D={},valueInputProps:B={}}=t,M=ne(t,bfe),F=Dt(),z=Ge(F,MA),V=Ge(F,wr),A=on(),H=on(),W=on(),K=on(),Y=et(),ie=Cfe(Y),re=u.useRef(null),de=u.useRef(null),se=y&&k.length>0,le=((r=Y.slotProps)==null?void 0:r.baseFormControl)||{},ve=(i=(((o=Y.slotProps)==null?void 0:o.baseSelect)||{}).native)!=null?i:!0,Pe=((s=Y.slotProps)==null?void 0:s.baseInputLabel)||{},ee=((a=Y.slotProps)==null?void 0:a.baseSelectOption)||{},{InputComponentProps:_e}=B,Re=ne(B,wfe),Se=u.useMemo(()=>{if(R===void 0||typeof R!="function")return z;const De=R({field:g.field,columns:z,currentFilters:(V==null?void 0:V.items)||[]});return z.filter(dt=>De.includes(dt.field))},[R,V==null?void 0:V.items,z,g.field]),pe=u.useMemo(()=>{switch(I){case"asc":return Se.sort((De,dt)=>TR.compare(Yd(De),Yd(dt)));case"desc":return Se.sort((De,dt)=>-TR.compare(Yd(De),Yd(dt)));default:return Se}},[Se,I]),be=g.field?F.current.getColumn(g.field):null,te=u.useMemo(()=>{var De;return!g.operator||!be?null:(De=be.filterOperators)==null?void 0:De.find(dt=>dt.value===g.operator)},[g,be]),Oe=u.useCallback(De=>{const dt=De.target.value,vt=F.current.getColumn(dt);if(vt.field===be.field)return;const ct=vt.filterOperators.find(yt=>yt.value===g.operator)||vt.filterOperators[0],Pt=!ct.InputComponent||ct.InputComponent!==(te==null?void 0:te.InputComponent);S(E({},g,{field:dt,operator:ct.value,value:Pt?void 0:g.value}))},[F,S,g,be,te]),Ye=u.useCallback(De=>{const dt=De.target.value,vt=be==null?void 0:be.filterOperators.find(Pt=>Pt.value===dt),ct=!(vt!=null&&vt.InputComponent)||(vt==null?void 0:vt.InputComponent)!==(te==null?void 0:te.InputComponent);S(E({},g,{operator:dt,value:ct?void 0:g.value}))},[S,g,be,te]),Ke=u.useCallback(De=>{const dt=De.target.value===ro.And.toString()?ro.And:ro.Or;P(dt)},[P]),Ue=()=>{Y.disableMultipleColumnsFiltering?g.value===void 0?v(g):S(E({},g,{value:void 0})):v(g)};return u.useImperativeHandle(_,()=>({focus:()=>{if(te!=null&&te.InputComponent){var De;re==null||(De=re.current)==null||De.focus()}else de.current.focus()}}),[te]),T.jsxs(xfe,E({ref:n,className:ie.root,"data-id":g.id,ownerState:Y},M,{children:[T.jsx(Sfe,E({variant:"standard",as:Y.slots.baseFormControl},le,L,{className:he(ie.deleteIcon,le.className,L.className),ownerState:Y,children:T.jsx(Y.slots.baseIconButton,E({"aria-label":F.current.getLocaleText("filterPanelDeleteIconLabel"),title:F.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:Ue,size:"small"},(c=Y.slotProps)==null?void 0:c.baseIconButton,{children:T.jsx(Y.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),T.jsx(Efe,E({variant:"standard",as:Y.slots.baseFormControl},le,N,{sx:E({display:se?"flex":"none",visibility:C?"visible":"hidden"},le.sx||{},N.sx||{}),className:he(ie.logicOperatorInput,le.className,N.className),ownerState:Y,children:T.jsx(Y.slots.baseSelect,E({inputProps:{"aria-label":F.current.getLocaleText("filterPanelLogicOperator")},value:w,onChange:Ke,disabled:!!x||k.length===1,native:ve},(d=Y.slotProps)==null?void 0:d.baseSelect,{children:k.map(De=>u.createElement(Y.slots.baseSelectOption,E({},ee,{native:ve,key:De.toString(),value:De.toString()}),F.current.getLocaleText(_fe(De))))}))})),T.jsxs(Pfe,E({variant:"standard",as:Y.slots.baseFormControl},le,D,{className:he(ie.columnInput,le.className,D.className),ownerState:Y,children:[T.jsx(Y.slots.baseInputLabel,E({},Pe,{htmlFor:A,id:H,children:F.current.getLocaleText("filterPanelColumns")})),T.jsx(Y.slots.baseSelect,E({labelId:H,id:A,label:F.current.getLocaleText("filterPanelColumns"),value:g.field||"",onChange:Oe,native:ve},(p=Y.slotProps)==null?void 0:p.baseSelect,{children:pe.map(De=>u.createElement(Y.slots.baseSelectOption,E({},ee,{native:ve,key:De.field,value:De.field}),Yd(De)))}))]})),T.jsxs(Ife,E({variant:"standard",as:Y.slots.baseFormControl},le,O,{className:he(ie.operatorInput,le.className,O.className),ownerState:Y,children:[T.jsx(Y.slots.baseInputLabel,E({},Pe,{htmlFor:W,id:K,children:F.current.getLocaleText("filterPanelOperator")})),T.jsx(Y.slots.baseSelect,E({labelId:K,label:F.current.getLocaleText("filterPanelOperator"),id:W,value:g.operator,onChange:Ye,native:ve,inputRef:de},(h=Y.slotProps)==null?void 0:h.baseSelect,{children:be==null||(m=be.filterOperators)==null?void 0:m.map(De=>u.createElement(Y.slots.baseSelectOption,E({},ee,{native:ve,key:De.value,value:De.value}),De.label||F.current.getLocaleText(`filterOperator${ue(De.value)}`)))}))]})),T.jsx(kfe,E({variant:"standard",as:Y.slots.baseFormControl},le,Re,{className:he(ie.valueInput,le.className,Re.className),ownerState:Y,children:te!=null&&te.InputComponent?T.jsx(te.InputComponent,E({apiRef:F,item:g,applyValue:S,focusElementRef:re},te.InputComponentProps,_e)):null}))]}))}),Rfe=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps"],Mfe=500;function es(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:s,focusElementRef:a,tabIndex:c,disabled:d,clearButton:p,InputProps:h}=e,m=ne(e,Rfe),g=u.useRef(),[y,v]=u.useState((t=r.value)!=null?t:""),[S,w]=u.useState(!1),C=on(),x=et(),P=u.useCallback(_=>{const{value:k}=_.target;clearTimeout(g.current),v(String(k)),w(!0),g.current=setTimeout(()=>{o(E({},r,{value:k})),w(!1)},Mfe)},[o,r]);return u.useEffect(()=>()=>{clearTimeout(g.current)},[]),u.useEffect(()=>{var _;const k=(_=r.value)!=null?_:"";v(String(k))},[r.value]),T.jsx(x.slots.baseTextField,E({id:C,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:y,onChange:P,variant:"standard",type:i||"text",InputProps:E({},S||p?{endAdornment:S?T.jsx(x.slots.loadIcon,{fontSize:"small",color:"action"}):p}:{},{disabled:d},h,{inputProps:E({tabIndex:c},h==null?void 0:h.inputProps)}),InputLabelProps:{shrink:!0},inputRef:a},m,(n=x.slotProps)==null?void 0:n.baseTextField))}const Tfe=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"],Ofe=500;function Tc(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:s,focusElementRef:a,InputProps:c,clearButton:d,tabIndex:p,disabled:h}=e,m=ne(e,Tfe),g=u.useRef(),[y,v]=u.useState((t=r.value)!=null?t:""),[S,w]=u.useState(!1),C=on(),x=et(),P=u.useCallback(_=>{const k=_.target.value;clearTimeout(g.current),v(String(k)),w(!0),g.current=setTimeout(()=>{o(E({},r,{value:k})),w(!1)},Ofe)},[o,r]);return u.useEffect(()=>()=>{clearTimeout(g.current)},[]),u.useEffect(()=>{var _;const k=(_=r.value)!=null?_:"";v(String(k))},[r.value]),T.jsx(x.slots.baseTextField,E({fullWidth:!0,id:C,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:y,onChange:P,variant:"standard",type:i||"text",InputLabelProps:{shrink:!0},inputRef:a,InputProps:E({},S||d?{endAdornment:S?T.jsx(x.slots.loadIcon,{fontSize:"small",color:"action"}):d}:{},{disabled:h},c,{inputProps:E({max:i==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:p},c==null?void 0:c.inputProps)})},m,(n=x.slotProps)==null?void 0:n.baseTextField))}const Ffe=["item","applyValue","type","apiRef","focusElementRef","getOptionLabel","getOptionValue","placeholder","tabIndex","label","isFilterActive","clearButton"],Lfe=({column:{valueOptions:e,field:t},OptionComponent:n,getOptionLabel:r,getOptionValue:o,isSelectNative:i,baseSelectOptionProps:s})=>(typeof e=="function"?["",...e({field:t})]:["",...e||[]]).map(c=>{const d=o(c),p=r(c);return u.createElement(n,E({},s,{native:i,key:d,value:d}),p)}),Afe=oe("div")({display:"flex",alignItems:"flex-end",width:"100%",["& button"]:{margin:"auto 0px 5px 5px"}});function OR(e){var t,n,r,o,i,s,a,c,d;const{item:p,applyValue:h,type:m,apiRef:g,focusElementRef:y,getOptionLabel:v,getOptionValue:S,placeholder:w,tabIndex:C,label:x,clearButton:P}=e,_=ne(e,Ffe),[k,I]=u.useState((t=p.value)!=null?t:""),R=on(),L=on(),N=et(),O=(n=(r=N.slotProps)==null||(o=r.baseSelect)==null?void 0:o.native)!=null?n:!0;let D=null;if(p.field){const A=g.current.getColumn(p.field);Oa(A)&&(D=A)}const B=S||((i=D)==null?void 0:i.getOptionValue),M=v||((s=D)==null?void 0:s.getOptionLabel),F=u.useMemo(()=>{if(D)return typeof D.valueOptions=="function"?D.valueOptions({field:D.field}):D.valueOptions},[D]),z=u.useCallback(A=>{let H=A.target.value;H=zw(H,F,B),I(String(H)),h(E({},p,{value:H}))},[F,B,h,p]);if(u.useEffect(()=>{var A;let H;if(F!==void 0){if(H=zw(p.value,F,B),H!==p.value){h(E({},p,{value:H}));return}}else H=p.value;H=(A=H)!=null?A:"",I(String(H))},[p,F,h,B]),!Oa(D)||!Oa(D))return null;const V=x!=null?x:g.current.getLocaleText("filterPanelInputLabel");return T.jsxs(Afe,{children:[T.jsxs(N.slots.baseFormControl,{children:[T.jsx(N.slots.baseInputLabel,E({},(a=N.slotProps)==null?void 0:a.baseInputLabel,{id:L,htmlFor:R,shrink:!0,variant:"standard",children:V})),T.jsx(N.slots.baseSelect,E({id:R,label:V,labelId:L,value:k,onChange:z,variant:"standard",type:m||"text",inputProps:{tabIndex:C,ref:y,placeholder:w!=null?w:g.current.getLocaleText("filterPanelInputPlaceholder")},native:O},_,(c=N.slotProps)==null?void 0:c.baseSelect,{children:Lfe({column:D,OptionComponent:N.slots.baseSelectOption,getOptionLabel:M,getOptionValue:B,isSelectNative:O,baseSelectOptionProps:(d=N.slotProps)==null?void 0:d.baseSelectOption})}))]}),P]})}const Nfe=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label"],Dfe=oe("div")({display:"flex",alignItems:"center",width:"100%",["& button"]:{margin:"auto 0px 5px 5px"}});function Bfe(e){var t,n,r,o;const{item:i,applyValue:s,apiRef:a,focusElementRef:c,clearButton:d,tabIndex:p,label:h}=e,m=ne(e,Nfe),[g,y]=u.useState(i.value||""),v=et(),S=on(),w=on(),C=((t=v.slotProps)==null?void 0:t.baseSelect)||{},x=(n=C.native)!=null?n:!0,P=((r=v.slotProps)==null?void 0:r.baseSelectOption)||{},_=u.useCallback(I=>{const R=I.target.value;y(R),s(E({},i,{value:R}))},[s,i]);u.useEffect(()=>{y(i.value||"")},[i.value]);const k=h!=null?h:a.current.getLocaleText("filterPanelInputLabel");return T.jsxs(Dfe,{children:[T.jsxs(v.slots.baseFormControl,{fullWidth:!0,children:[T.jsx(v.slots.baseInputLabel,E({},(o=v.slotProps)==null?void 0:o.baseInputLabel,{id:S,shrink:!0,variant:"standard",children:k})),T.jsxs(v.slots.baseSelect,E({labelId:S,id:w,label:k,value:g,onChange:_,variant:"standard",native:x,displayEmpty:!0,inputProps:{ref:c,tabIndex:p}},m,C,{children:[T.jsx(v.slots.baseSelectOption,E({},P,{native:x,value:"",children:a.current.getLocaleText("filterValueAny")})),T.jsx(v.slots.baseSelectOption,E({},P,{native:x,value:"true",children:a.current.getLocaleText("filterValueTrue")})),T.jsx(v.slots.baseSelectOption,E({},P,{native:x,value:"false",children:a.current.getLocaleText("filterValueFalse")}))]}))]}),d]})}const zfe=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],FR=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),jfe=u.forwardRef(function(t,n){var r,o;const i=Dt(),s=et(),a=Ge(i,wr),c=Ge(i,MA),d=u.useRef(null),p=u.useRef(null),{logicOperators:h=[ro.And,ro.Or],columnsSort:m,filterFormProps:g,getColumnForNewFilter:y,disableAddFilterButton:v=!1,disableRemoveAllButton:S=!1}=t,w=ne(t,zfe),C=u.useCallback(O=>{i.current.upsertFilterItem(O)},[i]),x=u.useCallback(O=>{i.current.setFilterLogicOperator(O)},[i]),P=u.useCallback(()=>{let O;if(y&&typeof y=="function"){const D=y({currentFilters:(a==null?void 0:a.items)||[],columns:c});if(D===null)return null;O=c.find(({field:B})=>B===D)}else O=c.find(D=>{var B;return(B=D.filterOperators)==null?void 0:B.length});return O?FR(O):null},[a==null?void 0:a.items,c,y]),_=u.useCallback(()=>{if(y===void 0||typeof y!="function")return P();const O=a.items.length?a.items:[P()].filter(Boolean),D=y({currentFilters:O,columns:c});if(D===null)return null;const B=c.find(({field:M})=>M===D);return B?FR(B):null},[a.items,c,y,P]),k=u.useMemo(()=>a.items.length?a.items:(p.current||(p.current=P()),p.current?[p.current]:[]),[a.items,P]),I=k.length>1,R=()=>{const O=_();O&&i.current.upsertFilterItems([...k,O])},L=u.useCallback(O=>{const D=k.length===1;i.current.deleteFilterItem(O),D&&i.current.hideFilterPanel()},[i,k.length]),N=()=>{k.length===1&&k[0].value===void 0&&(i.current.deleteFilterItem(k[0]),i.current.hideFilterPanel()),i.current.setFilterModel(E({},a,{items:[]}))};return u.useEffect(()=>{h.length>0&&a.logicOperator&&!h.includes(a.logicOperator)&&x(h[0])},[h,x,a.logicOperator]),u.useEffect(()=>{k.length>0&&d.current.focus()},[k.length]),T.jsxs(d4,E({ref:n},w,{children:[T.jsx(c4,{children:k.map((O,D)=>T.jsx($fe,E({item:O,applyFilterChanges:C,deleteFilter:L,hasMultipleFilters:I,showMultiFilterOperators:D>0,multiFilterOperator:a.logicOperator,disableMultiFilterOperator:D!==1,applyMultiFilterOperatorChanges:x,focusElementRef:D===k.length-1?d:null,logicOperators:h,columnsSort:m},g),O.id==null?D:O.id))}),!s.disableMultipleColumnsFiltering&&!(v&&S)?T.jsxs(u4,{children:[v?T.jsx("span",{}):T.jsx(s.slots.baseButton,E({onClick:R,startIcon:T.jsx(s.slots.filterPanelAddIcon,{})},(r=s.slotProps)==null?void 0:r.baseButton,{children:i.current.getLocaleText("filterPanelAddFilter")})),S?null:T.jsx(s.slots.baseButton,E({onClick:N,startIcon:T.jsx(s.slots.filterPanelRemoveAllIcon,{})},(o=s.slotProps)==null?void 0:o.baseButton,{children:i.current.getLocaleText("filterPanelRemoveAll")}))]}):null]}))}),Hfe=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function f4(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,color:s,error:a,helperText:c,size:d,variant:p}=e,h=ne(e,Hfe),m={color:s,error:a,helperText:c,size:d,variant:p},[g,y]=u.useState(t.value||[]),v=on(),S=et();u.useEffect(()=>{var C;const x=(C=t.value)!=null?C:[];y(x.map(String))},[t.value]);const w=u.useCallback((C,x)=>{y(x.map(String)),n(E({},t,{value:[...x]}))},[n,t]);return T.jsx(Nx,E({multiple:!0,freeSolo:!0,options:[],filterOptions:(C,x)=>{const{inputValue:P}=x;return P==null||P===""?[]:[P]},id:v,value:g,onChange:w,renderTags:(C,x)=>C.map((P,_)=>T.jsx(S.slots.baseChip,E({variant:"outlined",size:"small",label:P},x({index:_})))),renderInput:C=>{var x;return T.jsx(S.slots.baseTextField,E({},C,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:E({},C.InputLabelProps,{shrink:!0}),inputRef:i,type:r||"text"},m,(x=S.slotProps)==null?void 0:x.baseTextField))}},h))}const Vfe=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant","getOptionLabel","getOptionValue"],Ufe=WF();function Wfe(e){var t,n;const{item:r,applyValue:o,apiRef:i,focusElementRef:s,color:a,error:c,helperText:d,size:p,variant:h="standard",getOptionLabel:m,getOptionValue:g}=e,y=ne(e,Vfe),v={color:a,error:c,helperText:d,size:p,variant:h},S=on(),w=et();let C=null;if(r.field){const N=i.current.getColumn(r.field);Oa(N)&&(C=N)}const x=g||((t=C)==null?void 0:t.getOptionValue),P=m||((n=C)==null?void 0:n.getOptionLabel),_=u.useCallback((N,O)=>x(N)===x(O),[x]),k=u.useMemo(()=>{var N;return(N=C)!=null&&N.valueOptions?typeof C.valueOptions=="function"?C.valueOptions({field:C.field}):C.valueOptions:[]},[C]),I=u.useMemo(()=>k==null?void 0:k.map(x),[k,x]),R=u.useMemo(()=>Array.isArray(r.value)?k!==void 0?r.value.map(O=>I==null?void 0:I.findIndex(D=>D===O)).filter(O=>O>=0).map(O=>k[O]):r.value:[],[r.value,k,I]);u.useEffect(()=>{(!Array.isArray(r.value)||R.length!==r.value.length)&&o(E({},r,{value:R.map(x)}))},[r,R,o,x]);const L=u.useCallback((N,O)=>{o(E({},r,{value:O.map(x)}))},[o,r,x]);return T.jsx(Nx,E({multiple:!0,options:k,isOptionEqualToValue:_,filterOptions:Ufe,id:S,value:R,onChange:L,getOptionLabel:P,renderTags:(N,O)=>N.map((D,B)=>T.jsx(w.slots.baseChip,E({variant:"outlined",size:"small",label:P(D)},O({index:B})))),renderInput:N=>{var O;return T.jsx(w.slots.baseTextField,E({},N,{label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:E({},N.InputLabelProps,{shrink:!0}),inputRef:s,type:"singleSelect"},v,(O=w.slotProps)==null?void 0:O.baseTextField))}},y))}const Gfe=["hideMenu","options"],Kfe=["hideMenu","options"];function qfe(e){const t=Dt(),{hideMenu:n,options:r}=e,o=ne(e,Gfe);return T.jsx(Ur,E({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function Yfe(e){const t=Dt(),{hideMenu:n,options:r}=e,o=ne(e,Kfe);return T.jsx(Ur,E({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const Qfe=["className","rowCount","visibleRowCount"],Xfe=e=>{const{classes:t}=e;return Me({root:["rowCount"]},Bt,t)},Jfe=gr("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),Zfe=u.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,s=ne(t,Qfe),a=Dt(),c=et(),d=Xfe(c);if(o===0)return null;const p=i<o?a.current.getLocaleText("footerTotalVisibleRows")(i,o):o.toLocaleString();return T.jsxs(Jfe,E({ref:n,className:he(d.root,r),ownerState:c},s,{children:[a.current.getLocaleText("footerTotalRows")," ",p]}))}),epe=["className","selectedRowCount"],tpe=e=>{const{classes:t}=e;return Me({root:["selectedRowCount"]},Bt,t)},npe=gr("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),rpe=u.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,i=ne(t,epe),s=Dt(),a=et(),c=tpe(a),d=s.current.getLocaleText("footerRowSelected")(o);return T.jsx(npe,E({ref:n,className:he(c.root,r),ownerState:a},i,{children:d}))}),ope=u.forwardRef(function(t,n){var r;const o=Dt(),i=et(),s=Ge(o,Eae),a=Ge(o,Kue),c=Ge(o,yy),d=!i.hideFooterSelectedRowCount&&a>0?T.jsx(rpe,{selectedRowCount:a}):T.jsx("div",{}),p=!i.hideFooterRowCount&&!i.pagination?T.jsx(Zfe,{rowCount:s,visibleRowCount:c}):null,h=i.pagination&&!i.hideFooterPagination&&i.slots.pagination&&T.jsx(i.slots.pagination,E({},(r=i.slotProps)==null?void 0:r.pagination));return T.jsxs(oue,E({ref:n},t,{children:[d,p,h]}))});function ipe(){var e,t;const n=et();return T.jsxs(u.Fragment,{children:[T.jsx(n.slots.preferencesPanel,E({},(e=n.slotProps)==null?void 0:e.preferencesPanel)),n.slots.toolbar&&T.jsx(n.slots.toolbar,E({},(t=n.slotProps)==null?void 0:t.toolbar))]})}const spe=u.forwardRef(function(t,n){return T.jsx(eE,E({ref:n},t,{children:T.jsx(Ka,{})}))}),lpe=u.forwardRef(function(t,n){const o=Dt().current.getLocaleText("noRowsLabel");return T.jsx(eE,E({ref:n},t,{children:o}))}),ape=oe(Mre)(({theme:e})=>({[`& .${Ma.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${Ma.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),cpe=u.forwardRef(function(t,n){const r=Dt(),o=et(),i=Ge(r,ri),s=Ge(r,yy),a=u.useMemo(()=>{var g,y;return(g=(y=o.rowCount)!=null?y:s)!=null?g:0},[o.rowCount,s]),c=u.useMemo(()=>Math.floor(a/(i.pageSize||1)),[a,i.pageSize]),d=u.useCallback(g=>{const y=Number(g.target.value);r.current.setPageSize(y)},[r]),p=u.useCallback((g,y)=>{r.current.setPage(y)},[r]),m=(g=>{for(let y=0;y<o.pageSizeOptions.length;y+=1){const v=o.pageSizeOptions[y];if(typeof v=="number"){if(v===g)return!0}else if(v.value===g)return!0}return!1})(i.pageSize)?o.pageSizeOptions:[];return T.jsx(ape,E({ref:n,component:"div",count:a,page:i.page<=c?i.page:c,rowsPerPageOptions:m,rowsPerPage:i.pageSize,onPageChange:p,onRowsPerPageChange:d},r.current.getLocaleText("MuiTablePagination"),t))}),oE=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=nE(e),n=Gue(e)):(n=ia(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},ac=(e,t)=>{const n=oE(e,t);return u.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},jw={current:null};function Ap(e){return e.isInternal=!0,e}function Dg(e){return e!==void 0&&e.isInternal===!0}function upe(e){return Ap((t,n)=>{const r=e(t,n);return r&&(o=>r(o.value,o.row,n,jw.current))})}function Np(e){return e.map(t=>E({},t,{getApplyFilterFn:upe(t.getApplyFilterFnV7),getApplyFilterFnV7:Ap(t.getApplyFilterFnV7)}))}function p4(e){return Ap((t,n,r)=>{const o=e(t,n,r);return o&&(i=>o(i.value,i.row,n,r))})}const LR=Ap(e=>{if(!e)return null;const t=new RegExp(Lm(e),"i");return(n,r,o,i)=>{const s=i.current.getRowFormattedValue(r,o);return s!=null?t.test(s.toString()):!1}}),dpe=(e=!1)=>Np([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(Lm(n),"i");return o=>o!=null?r.test(String(o)):!1},InputComponent:es},{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:es},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${Lm(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:es},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${Lm(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:es},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t===""||t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!==""&&t!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:f4}]),Xl={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:tde,type:"string",align:"left",filterOperators:dpe(),renderEditCell:Ice,getApplyQuickFilterFn:p4(LR),getApplyQuickFilterFnV7:LR},fpe=()=>Np([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t=e.value==="true";return n=>!!n===t},InputComponent:Bfe}]);function ppe({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const hpe=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}},h4=E({},Xl,{type:"boolean",align:"center",headerAlign:"center",renderCell:pce,renderEditCell:vce,sortComparator:s4,valueFormatter:ppe,filterOperators:fpe(),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>hpe(e)}),gl="__check__",Dp=E({},h4,{field:gl,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=>Ng(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>T.jsx(fde,E({},e)),renderCell:e=>T.jsx(cde,E({},e))}),Sy="actions",mpe=E({},Xl,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:Wce,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0}),iE="__detail_panel_toggle__",jr=e=>e.editRows,gpe=["selected","rowId","row","index","style","position","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","isLastVisible","focusedCell","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave"],vpe=e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:i,classes:s}=e;return Me({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible",i==="auto"&&"row--dynamicHeight"]},Bt,s)};function ype({width:e}){if(!e)return null;const t={width:e};return T.jsx("div",{className:`${X.cell} ${X.withBorderColor}`,style:t})}const bpe=u.forwardRef(function(t,n){const{selected:r,rowId:o,row:i,index:s,style:a,position:c,rowHeight:d,className:p,renderedColumns:h,containerWidth:m,firstColumnToRender:g,isLastVisible:y=!1,onClick:v,onDoubleClick:S,onMouseEnter:w,onMouseLeave:C}=t,x=ne(t,gpe),P=Dt(),_=u.useRef(null),k=et(),I=ac(P,k),R=Ge(P,KS),L=Ge(P,Zo),N=Ge(P,vy),O=Ge(P,Fp),D=Ge(P,jr),B=Vt(_,n),M=s+O+2,F={selected:r,isLastVisible:y,classes:k.classes,editing:P.current.getRowMode(o)===mn.Edit,editable:k.editMode===gs.Row,rowHeight:d},z=vpe(F);u.useLayoutEffect(()=>{d==="auto"&&_.current&&typeof ResizeObserver=="undefined"&&P.current.unstable_storeRowHeightMeasurement(o,_.current.clientHeight,c)},[P,d,o,c]),u.useLayoutEffect(()=>{if(I.range){const Ye=P.current.getRowIndexRelativeToVisibleRows(o);Ye!=null&&P.current.unstable_setLastMeasuredRowIndex(Ye)}const be=_.current;if(!be||d!=="auto"||typeof ResizeObserver=="undefined")return;const Oe=new ResizeObserver(Ye=>{const[Ke]=Ye,Ue=Ke.borderBoxSize&&Ke.borderBoxSize.length>0?Ke.borderBoxSize[0].blockSize:Ke.contentRect.height;P.current.unstable_storeRowHeightMeasurement(o,Ue,c)});return Oe.observe(be),()=>Oe.disconnect()},[P,I.range,s,d,o,c]);const V=u.useCallback((be,te)=>Oe=>{Oe.target.nodeType===1&&!Oe.currentTarget.contains(Oe.target)||P.current.getRow(o)&&(P.current.publishEvent(be,P.current.getRowParams(o),Oe),te&&te(Oe))},[P,o]),A=u.useCallback(be=>{const te=Xae(be.target,X.cell),Oe=te==null?void 0:te.getAttribute("data-field");Oe&&(Oe===Dp.field||Oe===iE||Oe==="__reorder__"||P.current.getCellMode(o,Oe)===rn.Edit||P.current.getColumn(Oe).type===Sy)||V("rowClick",v)(be)},[P,v,V,o]),{slots:H,slotProps:W,disableColumnReorder:K}=k,Y=H.cell===Bw?Bw:lce,ie=k.rowReordering,re=(be,te)=>{var Oe,Ye;const Ke=K&&be.disableReorder||!ie&&!!L.length&&N>1&&Object.keys(D).length>0,Ue=(Oe=(Ye=D[o])==null?void 0:Ye[be.field])!=null?Oe:null;return T.jsx(Y,E({column:be,width:te.width,rowId:o,height:d,showRightBorder:te.showRightBorder,align:be.align||"left",colIndex:te.indexRelativeToAllColumns,colSpan:te.colSpan,disableDragEvents:Ke,editCellState:Ue},W==null?void 0:W.cell),be.field)},de=Ge(P,()=>E({},P.current.unstable_getRowInternalSizes(o)),WS);let se=d;if(se==="auto"&&de){let be=0;const te=Object.entries(de).reduce((Oe,[Ye,Ke])=>/^base[A-Z]/.test(Ye)?(be+=1,Ke>Oe?Ke:Oe):Oe,0);te>0&&be>1&&(se=te)}const le=E({},a,{maxHeight:d==="auto"?"none":d,minHeight:se});if(de!=null&&de.spacingTop){const be=k.rowSpacingType==="border"?"borderTopWidth":"marginTop";le[be]=de.spacingTop}if(de!=null&&de.spacingBottom){const be=k.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let te=le[be];typeof te!="number"&&(te=parseInt(te||"0",10)),te+=de.spacingBottom,le[be]=te}const ke=P.current.unstable_applyPipeProcessors("rowClassName",[],o);if(typeof k.getRowClassName=="function"){var ve;const be=s-(((ve=I.range)==null?void 0:ve.firstRowIndex)||0),te=E({},P.current.getRowParams(o),{isFirstVisible:be===0,isLastVisible:be===I.rows.length-1,indexRelativeToCurrentPage:be});ke.push(k.getRowClassName(te))}const Pe=Bue(1e4,20,80),ee=P.current.getRowNode(o);if(!ee)return null;const _e=ee.type,Re=[];for(let be=0;be<h.length;be+=1){const te=h[be],Oe=g+be,Ye=P.current.unstable_getCellColSpanInfo(o,Oe);if(Ye&&!Ye.spannedByColSpan)if(_e!=="skeletonRow"){const{colSpan:Ke,width:Ue}=Ye.cellProps,De={width:Ue,colSpan:Ke,showRightBorder:k.showCellVerticalBorder,indexRelativeToAllColumns:Oe};Re.push(re(te,De))}else{const{width:Ke}=Ye.cellProps,Ue=Math.round(Pe());Re.push(T.jsx(H.skeletonCell,{width:Ke,contentWidth:Ue,field:te.field,align:te.align},te.field))}}const Se=m-R,pe=i?{onClick:A,onDoubleClick:V("rowDoubleClick",S),onMouseEnter:V("rowMouseEnter",w),onMouseLeave:V("rowMouseLeave",C)}:null;return T.jsxs("div",E({ref:B,"data-id":o,"data-rowindex":s,role:"row",className:he(...ke,z.root,p),"aria-rowindex":M,"aria-selected":r,style:le},pe,x,{children:[Re,Se>0&&T.jsx(ype,{width:Se})]}))}),wpe=xy(bpe);function Cpe({privateApiRef:e,props:t,children:n}){const r=u.useRef(e.current.getPublicApi());return T.jsx(_A.Provider,{value:t,children:T.jsx($A.Provider,{value:e,children:T.jsx(kA.Provider,{value:r,children:n})})})}const xpe=Nue()&&window.localStorage.getItem("DEBUG")!=null,af=()=>{},Spe={debug:af,info:af,warn:af,error:af},AR=["debug","info","warn","error"];function NR(e,t,n=console){const r=AR.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return AR.reduce((i,s,a)=>(a>=r?i[s]=(...c)=>{const[d,...p]=c;n[s](`MUI: ${e} - ${d}`,...p)}:i[s]=af,i),{})}const Epe=(e,t)=>{const n=u.useCallback(r=>xpe?NR(r,"debug",t.logger):t.logLevel?NR(r,t.logLevel.toString(),t.logger):Spe,[t.logLevel,t.logger]);Lt(e,{getLogger:n},"private")};class sE{static create(t){return new sE(t)}constructor(t){this.value=void 0,this.listeners=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(r=>r(n))},this.value=t,this.listeners=new Set}}class Ppe{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let s=o.length-1;s>=0;s-=1){const a=o[s];r.highPriority.has(a)&&a.apply(this,n)}for(let s=0;s<i.length;s+=1){const a=i[s];r.regular.has(a)&&a.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...i){r.removeListener(t,o),n.apply(r,i)})}}const m4=Symbol("mui.api_private"),Ipe=e=>e.isPropagationStopped!==void 0;let DR=0;function kpe(e){var t;const n=(t=e.current)==null?void 0:t[m4];if(n)return n;const r={},o={state:r,store:sE.create(r),instanceId:{id:DR}};return DR+=1,o.getPublicApi=()=>e.current,o.register=(i,s)=>{Object.keys(s).forEach(a=>{const c=s[a],d=o[a];if((d==null?void 0:d.spying)===!0?d.target=c:o[a]=c,i==="public"){const p=e.current,h=p[a];(h==null?void 0:h.spying)===!0?h.target=c:p[a]=c}})},o.register("private",{caches:{},eventManager:new Ppe}),o}function _pe(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[m4]:e.current}}function $pe(e,t){const n=u.useRef(),r=u.useRef();r.current||(r.current=kpe(n)),n.current||(n.current=_pe(r));const o=u.useCallback((...s)=>{const[a,c,d={}]=s;if(d.defaultMuiPrevented=!1,Ipe(d)&&d.isPropagationStopped())return;const p=t.signature===ds.DataGridPro?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(a,c,d,p)},[r,t.signature]),i=u.useCallback((s,a,c)=>{r.current.eventManager.on(s,a,c);const d=r.current;return()=>{d.eventManager.removeListener(s,a)}},[r]);return Lt(r,{subscribeEvent:i,publishEvent:o},"public"),u.useImperativeHandle(e,()=>n.current,[n]),u.useEffect(()=>{const s=r.current;return()=>{s.publishEvent("unmount")}},[r]),r}const Rpe=(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 up(e){return up=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},up(e)}function Mpe(e,t){if(up(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(up(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dp(e){var t=Mpe(e,"string");return up(t)==="symbol"?t:String(t)}const Tpe=e=>{const t=u.useRef({}),n=u.useRef(!1),r=u.useCallback(p=>{n.current||!p||(n.current=!0,Object.values(p.appliers).forEach(h=>{h()}),n.current=!1)},[]),o=u.useCallback((p,h,m)=>{t.current[p]||(t.current[p]={processors:new Map,appliers:{}});const g=t.current[p];return g.processors.get(h)!==m&&(g.processors.set(h,m),r(g)),()=>{t.current[p].processors.set(h,null)}},[r]),i=u.useCallback((p,h,m)=>(t.current[p]||(t.current[p]={processors:new Map,appliers:{}}),t.current[p].appliers[h]=m,()=>{const g=t.current[p].appliers,y=ne(g,[h].map(dp));t.current[p].appliers=y}),[]),s=u.useCallback(p=>{const h=t.current[p];r(h)},[r]),a=u.useCallback((...p)=>{const[h,m,g]=p;return t.current[h]?Array.from(t.current[h].processors.values()).reduce((v,S)=>S?S(v,g):v,m):m},[]),c={registerPipeProcessor:o,registerPipeApplier:i,requestPipeProcessorsApplication:s},d={unstable_applyPipeProcessors:a};Lt(e,c,"private"),Lt(e,d,"public")},or=(e,t,n)=>{const r=u.useRef(),o=u.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=u.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);Lp(()=>{i()});const s=u.useRef(!0);u.useEffect(()=>(s.current?s.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},lE=(e,t,n)=>{const r=u.useRef(),o=u.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=u.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);Lp(()=>{i()});const s=u.useRef(!0);u.useEffect(()=>(s.current?s.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},Bg=(e,t,n,r)=>{const o=u.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);Lp(()=>{o()});const i=u.useRef(!0);u.useEffect(()=>{i.current?i.current=!1:o()},[o])},Ja="none",BR={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},Ope=e=>{const t=u.useRef(new Map),n=u.useRef({}),r=u.useCallback((c,d,p)=>{const h=()=>{const y=n.current[d],v=ne(y,[c].map(dp));n.current[d]=v};n.current[d]||(n.current[d]={});const m=n.current[d],g=m[c];return m[c]=p,!g||g===p||c===e.current.getActiveStrategy(BR[d])&&e.current.publishEvent("activeStrategyProcessorChange",d),h},[e]),o=u.useCallback((c,d)=>{const p=e.current.getActiveStrategy(BR[c]);if(p==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const h=n.current[c];if(!h||!h[p])throw new Error(`No processor found for processor "${c}" on strategy "${p}"`);const m=h[p];return m(d)},[e]),i=u.useCallback(c=>{var d;const h=Array.from(t.current.entries()).find(([,m])=>m.group!==c?!1:m.isAvailable());return(d=h==null?void 0:h[0])!=null?d:Ja},[]),s=u.useCallback((c,d,p)=>{t.current.set(d,{group:c,isAvailable:p}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Lt(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:i,setStrategyAvailability:s},"private")},Fpe=(e,t)=>{const n=u.useRef({}),[,r]=u.useState(),o=u.useCallback(p=>{n.current[p.stateId]=p},[]),i=u.useCallback((p,h)=>{let m;if(JA(p)?m=p(e.current.state):m=p,e.current.state===m)return!1;let g=!1;const y=[];if(Object.keys(n.current).forEach(v=>{const S=n.current[v],w=S.stateSelector(e.current.state,e.current.instanceId),C=S.stateSelector(m,e.current.instanceId);C!==w&&(y.push({stateId:S.stateId,hasPropChanged:C!==S.propModel}),S.propModel!==void 0&&C!==S.propModel&&(g=!0))}),y.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${y[0].stateId}, therefore, you're not allowed to update ${y.map(v=>v.stateId).join(", ")} in the same transaction.`);if(g||(e.current.state=m,e.current.publishEvent&&e.current.publishEvent("stateChange",m),e.current.store.update(m)),y.length===1){const{stateId:v,hasPropChanged:S}=y[0],w=n.current[v],C=w.stateSelector(m,e.current.instanceId);if(w.propOnChange&&S){const x=t.signature===ds.DataGridPro?{api:e.current,reason:h}:{reason:h};w.propOnChange(C,x)}g||e.current.publishEvent(w.changeEvent,C,{reason:h})}return!g},[e,t.signature]),s=u.useCallback((p,h,m)=>e.current.setState(g=>E({},g,{[p]:h(g[p])}),m),[e]),a=u.useCallback(()=>r(()=>e.current.state),[e]),c={setState:i,forceUpdate:a},d={updateControlState:s,registerControlState:o};Lt(e,c,"public"),Lt(e,d,"private")},Lpe=(e,t)=>{const n=$pe(e,t);return Epe(n,t),Fpe(n,t),Tpe(n),Ope(n),Rpe(n,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)},Ape=/(\d+)-(\d+)-(\d+)/,Npe=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function Oc(e,t,n,r){if(!e.value)return null;const[o,i,s,a,c]=e.value.match(n?Npe:Ape).slice(1).map(Number),d=new Date(o,i-1,s,a||0,c||0).getTime();return p=>{if(!p)return!1;if(r)return t(p.getTime(),d);const m=new Date(p).setHours(n?p.getHours():0,n?p.getMinutes():0,0,0);return t(m,d)}}const g4=e=>Np([{value:"is",getApplyFilterFnV7:t=>Oc(t,(n,r)=>n===r,e),InputComponent:Tc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFnV7:t=>Oc(t,(n,r)=>n!==r,e),InputComponent:Tc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFnV7:t=>Oc(t,(n,r)=>n>r,e),InputComponent:Tc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFnV7:t=>Oc(t,(n,r)=>n>=r,e),InputComponent:Tc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFnV7:t=>Oc(t,(n,r)=>n<r,e,!e),InputComponent:Tc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFnV7:t=>Oc(t,(n,r)=>n<=r,e),InputComponent:Tc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!=null,requiresFilterValue:!1}]);function v4({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(`
|
|
333
|
-
`))}function Dpe({value:e,field:t,id:n}){return e?(v4({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""}function Bpe({value:e,field:t,id:n}){return e?(v4({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""}const zpe=E({},Xl,{type:"date",sortComparator:l4,valueFormatter:Dpe,filterOperators:g4(),renderEditCell:UA,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,pastedValueParser:e=>new Date(e)}),jpe=E({},Xl,{type:"dateTime",sortComparator:l4,valueFormatter:Bpe,filterOperators:g4(!0),renderEditCell:UA,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,pastedValueParser:e=>new Date(e)}),wl=e=>e==null?null:Number(e),zR=Ap(e=>e==null||Number.isNaN(e)||e===""?null:t=>wl(t)===wl(e)),Hpe=()=>Np([{value:"=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>wl(t)===e.value,InputComponent:es,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>wl(t)!==e.value,InputComponent:es,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:wl(t)>e.value,InputComponent:es,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:wl(t)>=e.value,InputComponent:es,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:wl(t)<e.value,InputComponent:es,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:wl(t)<=e.value,InputComponent:es,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:f4,InputComponentProps:{type:"number"}}]),Vpe=E({},Xl,{type:"number",align:"right",headerAlign:"right",sortComparator:s4,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>Aue(e)?e.toLocaleString():e||"",filterOperators:Hpe(),getApplyQuickFilterFn:p4(zR),getApplyQuickFilterFnV7:zR}),Fc=e=>e==null||!tE(e)?e:e.value,Upe=()=>Np([{value:"is",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>Fc(t)===Fc(e.value),InputComponent:OR},{value:"not",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>Fc(t)!==Fc(e.value),InputComponent:OR},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(Fc);return n=>t.includes(Fc(n))},InputComponent:Wfe}]),Wpe=e=>typeof e[0]=="object",Gpe=e=>tE(e)?e.value:e,Kpe=e=>tE(e)?e.label:String(e),qpe=E({},Xl,{type:"singleSelect",getOptionLabel:Kpe,getOptionValue:Gpe,valueFormatter(e){const{id:t,field:n,value:r,api:o}=e,i=e.api.getColumn(n);if(!Oa(i))return"";let s;if(typeof i.valueOptions=="function"?s=i.valueOptions({id:t,row:t?o.getRow(t):null,field:n}):s=i.valueOptions,r==null)return"";if(!s)return r;if(!Wpe(s))return i.getOptionLabel(r);const a=s.find(c=>i.getOptionValue(c)===r);return a?i.getOptionLabel(a):""},renderEditCell:Nce,filterOperators:Upe(),pastedValueParser:(e,t)=>{const n=t.colDef,r=n.valueOptions,o=typeof r=="function"?r({field:n.field}):r||[],i=n.getOptionValue;if(o.find(a=>i(a)===e))return e}}),y4="__default__",Ype=()=>({string:Xl,number:Vpe,date:zpe,dateTime:jpe,boolean:h4,singleSelect:qpe,[Sy]:mpe,[y4]:Xl});function Hw(e,t){if(typeof e=="string"){const n=e.replace(/"/g,'""');return[t,`
|
|
334
|
-
`,"\r"].some(r=>n.includes(r))?`"${n}"`:n}return e}const b4=(e,t)=>{const{delimiterCharacter:n,ignoreValueFormatter:r}=t;let o;if(r){var i;const a=e.colDef.type;if(a==="number")o=String(e.value);else if(a==="date"||a==="dateTime"){var s;o=(s=e.value)==null?void 0:s.toISOString()}else typeof((i=e.value)==null?void 0:i.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return Hw(o,n)};bs(["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 Vw{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 Qpe=({id:e,columns:t,getCellParams:n,delimiterCharacter:r,ignoreValueFormatter:o})=>{const i=new Vw({delimiterCharacter:r});return t.forEach(s=>{const a=n(e,s.field);i.addValue(b4(a,{delimiterCharacter:r,ignoreValueFormatter:o}))}),i.getRowString()};function Xpe(e){const{columns:t,rowIds:n,delimiterCharacter:r,includeHeaders:o,includeColumnGroupsHeaders:i,ignoreValueFormatter:s,apiRef:a}=e,c=n.reduce((g,y)=>`${g}${Qpe({id:y,columns:t,getCellParams:a.current.getCellParams,delimiterCharacter:r,ignoreValueFormatter:s})}\r
|
|
335
|
-
`,"").trim();if(!o)return c;const d=t.filter(g=>g.field!==Dp.field),p=[];if(i){const g=a.current.unstable_getAllGroupDetails();let y=0;const v=d.reduce((S,w)=>{const C=a.current.unstable_getColumnGroupPath(w.field);return S[w.field]=C,y=Math.max(y,C.length),S},{});for(let S=0;S<y;S+=1){const w=new Vw({delimiterCharacter:r,sanitizeCellValue:Hw});p.push(w),d.forEach(C=>{const x=(v[C.field]||[])[S],P=g[x];w.addValue(P?P.headerName||P.groupId:"")})}}const h=new Vw({delimiterCharacter:r,sanitizeCellValue:Hw});return d.forEach(g=>{h.addValue(g.headerName||g.field)}),p.push(h),`${`${p.map(g=>g.getRowString()).join(`\r
|
|
336
|
-
`)}\r
|
|
337
|
-
`}${c}`.trim()}function jR(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 Jpe(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{jR(e)}):jR(e)}function Zpe(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const ehe=(e,t)=>{const n=t.unstable_ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=u.useCallback(s=>{if(!((s.ctrlKey||s.metaKey)&&s.key==="c")||Zpe(s.target))return;let a="";if(e.current.getSelectedRows().size>0)a=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o});else{const d=ni(e);if(d){const p=e.current.getCellParams(d.id,d.field);a=b4(p,{delimiterCharacter:o,ignoreValueFormatter:r})}}a=e.current.unstable_applyPipeProcessors("clipboardCopy",a),a&&(Jpe(a),e.current.publishEvent("clipboardCopy",a))},[e,r,o]);zue(e,e.current.rootElementRef,"keydown",i),xn(e,"clipboardCopy",t.onClipboardCopy)},the=e=>E({},e,{columnMenu:{open:!1}}),nhe=e=>{const t=Lr(e,"useGridColumnMenu"),n=u.useCallback(s=>{e.current.setState(c=>c.columnMenu.open&&c.columnMenu.field===s?c:(t.debug("Opening Column Menu"),E({},c,{columnMenu:{open:!0,field:s}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=u.useCallback(()=>{const s=Dw(e.current.state);if(s.field){const c=id(e),d=Fi(e),p=zs(e);let h=s.field;if(c[h]||(h=p[0]),d[h]===!1){const m=p.filter(y=>y===h?!0:d[y]!==!1),g=m.indexOf(h);h=m[g+1]||m[g-1]}e.current.setColumnHeaderFocus(h)}e.current.setState(c=>!c.columnMenu.open&&c.columnMenu.field===void 0?c:(t.debug("Hiding Column Menu"),E({},c,{columnMenu:E({},c.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=u.useCallback(s=>{t.debug("Toggle Column Menu");const a=Dw(e.current.state);!a.open||a.field!==s?n(s):r()},[e,t,n,r]);Lt(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),ot(e,"columnResizeStart",r),ot(e,"virtualScrollerWheel",e.current.hideColumnMenu),ot(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},w4=["maxWidth","minWidth","width","flex"];function rhe({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(s=>s.field)),o={all:{},frozenFields:[],freeze:s=>{const a=o.all[s];a&&a.frozen!==!0&&(o.all[s].frozen=!0,o.frozenFields.push(s))}};function i(){if(o.frozenFields.length===r.size)return;const s={min:{},max:{}};let a=e,c=t,d=0;o.frozenFields.forEach(p=>{a-=o.all[p].computedWidth,c-=o.all[p].flex});for(let p=0;p<n.length;p+=1){const h=n[p];if(o.all[h.field]&&o.all[h.field].frozen===!0)continue;let g=a/c*h.flex;g<h.minWidth?(d+=h.minWidth-g,g=h.minWidth,s.min[h.field]=!0):g>h.maxWidth&&(d+=h.maxWidth-g,g=h.maxWidth,s.max[h.field]=!0),o.all[h.field]={frozen:!1,computedWidth:g,flex:h.flex}}d<0?Object.keys(s.max).forEach(p=>{o.freeze(p)}):d>0?Object.keys(s.min).forEach(p=>{o.freeze(p)}):n.forEach(({field:p})=>{o.freeze(p)}),i()}return i(),o.all}const C4=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach(a=>{const c=E({},e.lookup[a]);if(e.columnVisibilityModel[a]===!1)c.computedWidth=0;else{let d;c.flex&&c.flex>0?(r+=c.flex,d=0,i.push(c)):d=Vu(c.width,c.minWidth,c.maxWidth),o+=d,c.computedWidth=d}n[a]=c});const s=Math.max(t-o,0);if(r>0&&t>0){const a=rhe({initialFreeSpace:s,totalFlexUnits:r,flexColumns:i});Object.keys(a).forEach(c=>{n[c].computedWidth=a[c].computedWidth})}return E({},e,{lookup:n})},ohe=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},s=[];for(let p=0;p<n.length;p+=1){const h=n[p];e.lookup[h]&&(i[h]=!0,s.push(h))}const a=s.length===0?e.orderedFields:[...s,...e.orderedFields.filter(p=>!i[p])],c=E({},e.lookup);for(let p=0;p<o.length;p+=1){const h=o[p],m=E({},c[h],{hasBeenResized:!0});Object.entries(r[h]).forEach(([g,y])=>{m[g]=y===-1?1/0:y}),c[h]=m}return E({},e,{orderedFields:a,lookup:c})},Vc=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,columnVisibilityModel:o=Fi(e),keepOnlyColumnsToUpsert:i=!1})=>{var s,a,c,d;const p=!e.current.state.columns;let h;if(p)h={orderedFields:[],lookup:{},columnVisibilityModel:o};else{const v=ju(e.current.state);h={orderedFields:i?[]:[...v.orderedFields],lookup:E({},v.lookup),columnVisibilityModel:o}}let m={};i&&!p&&(m=Object.keys(h.lookup).reduce((v,S)=>E({},v,{[S]:!1}),{})),t.forEach(v=>{const{field:S}=v;m[S]=!0;let w=h.lookup[S];if(w==null){let x=r[y4];v.type&&r[v.type]&&(x=r[v.type]),w=E({},x,{field:S,hasBeenResized:!1}),h.orderedFields.push(S)}else i&&h.orderedFields.push(S);let C=w.hasBeenResized;w4.forEach(x=>{v[x]!==void 0&&(C=!0,v[x]===-1&&(v[x]=1/0))}),h.lookup[S]=E({},w,v,{hasBeenResized:C})}),i&&!p&&Object.keys(h.lookup).forEach(v=>{m[v]||delete h.lookup[v]});const g=e.current.unstable_applyPipeProcessors("hydrateColumns",h),y=ohe(g,n);return C4(y,(s=(a=(c=e.current).getRootDimensions)==null||(d=a.call(c))==null?void 0:d.viewportInnerSize.width)!=null?s:0)},HR=e=>t=>E({},t,{columns:e});function Uw({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=e;for(let s=n;s<r;s+=1)if(o[s]){const c=o[s].id,d=t.current.unstable_getCellColSpanInfo(c,e);d&&d.spannedByColSpan&&(i=d.leftVisibleCellIndex)}return i}function ihe({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:r,lastRowToRender:o,apiRef:i,visibleRows:s}){const a=Math.max(e-n,t);return Uw({firstColumnToRender:a,apiRef:i,firstRowToRender:r,lastRowToRender:o,visibleRows:s})}function aE(e,t){const n=ld(e),r=Fp(e);return Math.floor(t*n)*((r!=null?r:0)+1)}const x4=Ype(),she=(e,t,n)=>{var r,o,i,s,a;const c=Vc({apiRef:n,columnTypes:x4,columnsToUpsert:t.columns,initialState:(r=t.initialState)==null?void 0:r.columns,columnVisibilityModel:(o=(i=t.columnVisibilityModel)!=null?i:(s=t.initialState)==null||(a=s.columns)==null?void 0:a.columnVisibilityModel)!=null?o:{},keepOnlyColumnsToUpsert:!0});return E({},e,{columns:c})};function lhe(e,t){var n,r;const o=Lr(e,"useGridColumns"),i=x4,s=u.useRef(t.columns),a=u.useRef(i);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:Fi,changeEvent:"columnVisibilityModelChange"});const c=u.useCallback(M=>{o.debug("Updating columns state."),e.current.setState(HR(M)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",M.orderedFields)},[o,e]),d=u.useCallback(M=>id(e)[M],[e]),p=u.useCallback(()=>us(e),[e]),h=u.useCallback(()=>Tr(e),[e]),m=u.useCallback((M,F=!0)=>(F?Tr(e):us(e)).findIndex(V=>V.field===M),[e]),g=u.useCallback(M=>{const F=m(M);return Hu(e)[F]},[e,m]),y=u.useCallback(M=>{Fi(e)!==M&&(e.current.setState(z=>E({},z,{columns:Vc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:M,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,i]),v=u.useCallback(M=>{const F=Vc({apiRef:e,columnTypes:i,columnsToUpsert:M,initialState:void 0,keepOnlyColumnsToUpsert:!1});c(F)},[e,c,i]),S=u.useCallback((M,F)=>{var z;const V=Fi(e),A=(z=V[M])!=null?z:!0;if(F!==A){const H=E({},V,{[M]:F});e.current.setColumnVisibilityModel(H)}},[e]),w=u.useCallback(M=>zs(e).findIndex(z=>z===M),[e]),C=u.useCallback((M,F)=>{const z=zs(e),V=w(M);if(V===F)return;o.debug(`Moving column ${M} to index ${F}`);const A=[...z],H=A.splice(V,1)[0];A.splice(F,0,H),c(E({},ju(e.current.state),{orderedFields:A}));const W={column:e.current.getColumn(M),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(M),oldIndex:V};e.current.publishEvent("columnIndexChange",W)},[e,o,c,w]),x=u.useCallback((M,F)=>{o.debug(`Updating column ${M} width to ${F}`);const z=e.current.getColumn(M),V=E({},z,{width:F});e.current.updateColumns([V]),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(M),colDef:V,width:F})},[e,o]),P={getColumn:d,getAllColumns:p,getColumnIndex:m,getColumnPosition:g,getVisibleColumns:h,getColumnIndexRelativeToVisibleColumns:w,updateColumns:v,setColumnVisibilityModel:y,setColumnVisibility:S,setColumnWidth:x},_={setColumnIndex:C};Lt(e,P,"public"),Lt(e,_,t.signature===ds.DataGrid?"private":"public");const k=u.useCallback((M,F)=>{var z,V,A;const H={},W=Fi(e);(!F.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((z=(V=t.initialState)==null||(A=V.columns)==null?void 0:A.columnVisibilityModel)!=null?z:{}).length>0||Object.keys(W).length>0)&&(H.columnVisibilityModel=W),H.orderedFields=zs(e);const Y=us(e),ie={};return Y.forEach(re=>{if(re.hasBeenResized){const de={};w4.forEach(se=>{let le=re[se];le===1/0&&(le=-1),de[se]=le}),ie[re.field]=de}}),Object.keys(ie).length>0&&(H.dimensions=ie),E({},M,{columns:H})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),I=u.useCallback((M,F)=>{var z;const V=(z=F.stateToRestore.columns)==null?void 0:z.columnVisibilityModel,A=F.stateToRestore.columns;if(V==null&&A==null)return M;const H=Vc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:A,columnVisibilityModel:V,keepOnlyColumnsToUpsert:!1});return e.current.setState(HR(H)),A!=null&&e.current.publishEvent("columnsChange",H.orderedFields),M},[e,i]),R=u.useCallback((M,F)=>{if(F===Xa.columns){var z;const V=t.slots.columnsPanel;return T.jsx(V,E({},(z=t.slotProps)==null?void 0:z.columnsPanel))}return M},[t.slots.columnsPanel,(r=t.slotProps)==null?void 0:r.columnsPanel]),L=u.useCallback(M=>t.disableColumnSelector?M:[...M,"columnMenuColumnsItem"],[t.disableColumnSelector]);or(e,"columnMenu",L),or(e,"exportState",k),or(e,"restoreState",I),or(e,"preferencePanel",R);const N=u.useRef(null);ot(e,"viewportInnerSizeChange",M=>{N.current!==M.width&&(N.current=M.width,c(C4(ju(e.current.state),M.width)))});const D=u.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const M=Vc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});c(M)},[e,o,c,i]);lE(e,"hydrateColumns",D);const B=u.useRef(!0);u.useEffect(()=>{if(B.current){B.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),s.current===t.columns&&a.current===i)return;const M=Vc({apiRef:e,columnTypes:i,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});s.current=t.columns,a.current=i,c(M)},[o,e,c,t.columns,i]),u.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const ahe=.7,che=1.3,S4={compact:ahe,comfortable:che,standard:1},uhe=(e,t)=>E({},e,{density:{value:t.density,factor:S4[t.density]}}),dhe=(e,t)=>{const n=Lr(e,"useDensity"),r=u.useCallback(i=>{n.debug(`Set grid density to ${i}`),e.current.setState(s=>{const a=XS(s),c={value:i,factor:S4[i]};return Fa(a,c)?s:E({},s,{density:c})}),e.current.forceUpdate()},[n,e]);u.useEffect(()=>{e.current.setDensity(t.density)},[e,t.density]),Lt(e,{setDensity:r},"public")};function fhe(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=r,i.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI: exportAs not supported")}const E4=({apiRef:e,options:t})=>{const n=us(e);return t.fields?t.fields.map(o=>n.find(i=>i.field===o)).filter(o=>!!o):(t.allColumns?n:Tr(e)).filter(o=>!o.disableExport)},phe=({apiRef:e})=>{var t,n;const r=Mae(e),o=Ri(e),i=e.current.getSelectedRows(),s=r.filter(p=>o[p].type!=="footer"),a=sd(e),c=(a==null||(t=a.top)==null?void 0:t.map(p=>p.id))||[],d=(a==null||(n=a.bottom)==null?void 0:n.map(p=>p.id))||[];return s.unshift(...c),s.push(...d),i.size>0?s.filter(p=>i.has(p)):s},hhe=(e,t)=>{const n=Lr(e,"useGridCsvExport"),r=t.unstable_ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,i=u.useCallback((d={})=>{var p,h,m;n.debug("Get data as CSV");const g=E4({apiRef:e,options:d}),v=((p=d.getRowsToExport)!=null?p:phe)({apiRef:e});return Xpe({columns:g,rowIds:v,delimiterCharacter:d.delimiter||",",includeHeaders:(h=d.includeHeaders)!=null?h:!0,includeColumnGroupsHeaders:(m=d.includeColumnGroupsHeaders)!=null?m:!0,ignoreValueFormatter:o,apiRef:e})},[n,e,o]),s=u.useCallback(d=>{n.debug("Export data as CSV");const p=i(d),h=new Blob([d!=null&&d.utf8WithBom?new Uint8Array([239,187,191]):"",p],{type:"text/csv"});fhe(h,"csv",d==null?void 0:d.fileName)},[n,i]);Lt(e,{getDataAsCsv:i,exportDataAsCsv:s},"public");const c=u.useCallback((d,p)=>{var h;return(h=p.csvOptions)!=null&&h.disableToolbarButton?d:[...d,{component:T.jsx(qfe,{options:p.csvOptions}),componentName:"csvExport"}]},[]);or(e,"exportMenu",c)};function mhe(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function ghe(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 vhe=(e,t)=>{const n=Lr(e,"useGridPrintExport"),r=u.useRef(null),o=u.useRef(null),i=u.useRef({});u.useEffect(()=>{r.current=vn(e.current.rootElementRef.current)},[e]);const s=u.useCallback((m,g)=>new Promise(y=>{if(!m&&!g){y();return}const v=E4({apiRef:e,options:{fields:m,allColumns:g}}).map(C=>C.field),S=us(e),w={};S.forEach(C=>{w[C.field]=v.includes(C.field)}),e.current.setColumnVisibilityModel(w),y()}),[e]),a=u.useCallback((m,g)=>{var y,v;const S=E({copyStyles:!0,hideToolbar:!1,hideFooter:!1},g),w=m.contentDocument;if(!w)return;const C=cp(e.current.state),x=e.current.rootElementRef.current,P=x.cloneNode(!0),_=P.querySelector(`.${X.main}`);_.style.overflow="visible",P.style.contain="size";const I=P.querySelector(`.${X.columnHeaders}`).querySelector(`.${X.columnHeadersInner}`);I.style.width="100%";let R=((y=x.querySelector(`.${X.toolbarContainer}`))==null?void 0:y.offsetHeight)||0,L=((v=x.querySelector(`.${X.footerContainer}`))==null?void 0:v.offsetHeight)||0;if(S.hideToolbar){var N;(N=P.querySelector(`.${X.toolbarContainer}`))==null||N.remove(),R=0}if(S.hideFooter){var O;(O=P.querySelector(`.${X.footerContainer}`))==null||O.remove(),L=0}P.style.height=`${C.currentPageTotalHeight+aE(e,t.columnHeaderHeight)+R+L}px`,P.style.boxSizing="content-box";const D=document.createElement("div");D.appendChild(P),w.body.innerHTML=D.innerHTML;const B=typeof S.pageStyle=="function"?S.pageStyle():S.pageStyle;if(typeof B=="string"){const M=w.createElement("style");M.appendChild(w.createTextNode(B)),w.head.appendChild(M)}if(S.bodyClassName&&w.body.classList.add(...S.bodyClassName.split(" ")),S.copyStyles){const M=x.getRootNode(),z=(M.constructor.name==="ShadowRoot"?M:r.current).querySelectorAll("style, link[rel='stylesheet']");for(let V=0;V<z.length;V+=1){const A=z[V];if(A.tagName==="STYLE"){const H=w.createElement(A.tagName),W=A.sheet;if(W){let K="";for(let Y=0;Y<W.cssRules.length;Y+=1)typeof W.cssRules[Y].cssText=="string"&&(K+=`${W.cssRules[Y].cssText}\r
|
|
338
|
-
`);H.appendChild(w.createTextNode(K)),w.head.appendChild(H)}}else if(A.getAttribute("href")){const H=w.createElement(A.tagName);for(let W=0;W<A.attributes.length;W+=1){const K=A.attributes[W];K&&H.setAttribute(K.nodeName,K.nodeValue||"")}w.head.appendChild(H)}}}m.contentWindow.print()},[e,r,t.columnHeaderHeight]),c=u.useCallback(m=>{var g,y;r.current.body.removeChild(m),e.current.restoreState(o.current||{}),(g=o.current)!=null&&(y=g.columns)!=null&&y.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.unstable_enableVirtualization(),o.current=null,i.current={}},[e]),p={exportDataAsPrint:u.useCallback(m=>mt(void 0,null,function*(){if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");if(o.current=e.current.exportState(),i.current=Fi(e),t.pagination){const y=LA(e);e.current.setPageSize(y)}yield s(m==null?void 0:m.fields,m==null?void 0:m.allColumns),e.current.unstable_disableVirtualization(),yield mhe();const g=ghe(m==null?void 0:m.fileName);g.onload=()=>{a(g,m),g.contentWindow.matchMedia("print").addEventListener("change",v=>{v.matches===!1&&c(g)})},r.current.body.appendChild(g)}),[t,n,e,a,c,s])};Lt(e,p,"public");const h=u.useCallback((m,g)=>{var y;return(y=g.printOptions)!=null&&y.disableToolbarButton?m:[...m,{component:T.jsx(Yfe,{options:g.printOptions}),componentName:"printExport"}]},[]);or(e,"exportMenu",h)},Ww=(e,t)=>{const n=E({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=id(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},yhe=bs(["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"),bhe=bs("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),whe=bs("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),P4=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(yhe(),o=[e.items[0]]):o=e.items;const i=r&&o.some(a=>a.id==null),s=o.some(a=>a.operator==null);return i&&bhe(),s&&whe(),s||i?E({},e,{items:o.map(a=>Ww(a,n))}):e.items!==o?E({},e,{items:o}):e},VR=(e,t,n)=>r=>E({},r,{filterModel:P4(e,t,n)}),I4=(e,t)=>{if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){var o;const h=n.valueParser;r=Array.isArray(e.value)?(o=e.value)==null?void 0:o.map(m=>h(m)):h(e.value)}else r=e.value;const i=E({},e,{value:r}),s=n.filterOperators;if(!(s!=null&&s.length))throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const a=s.find(h=>h.value===i.operator);if(!a)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${i.operator}'.`);const c=!Dg(a.getApplyFilterFn),d=!Dg(a.getApplyFilterFnV7);if(a.getApplyFilterFnV7&&!(c&&!d)){const h=a.getApplyFilterFnV7(i,n);return typeof h!="function"?null:{v7:!0,item:i,fn:m=>{const g=t.current.getRowValue(m,n);return h(g,m,n,t)}}}const p=a.getApplyFilterFn(i,n);return typeof p!="function"?null:{v7:!1,item:i,fn:h=>{const m=t.current.getCellParams(h,i.field);jw.current=t;const g=p(m);return jw.current=null,g}}},Che=(e,t,n)=>{const{items:r}=t,o=r.map(i=>I4(i,n)).filter(i=>!!i);return o.length===0?null:(i,s)=>{const a={};for(let c=0;c<o.length;c+=1){const d=o[c];(!s||s(d.item.field))&&(a[d.item.id]=d.v7?d.fn(i):d.fn(e?e(i):i.id))}return a}},xhe=(e,t,n)=>{var r,o,i;const s=(r=(o=t.quickFilterValues)==null?void 0:o.filter(Boolean))!=null?r:[];if(s.length===0)return null;const c=((i=t.quickFilterExcludeHiddenColumns)!=null?i:!1)?my(n):zs(n),d=[];return c.forEach(p=>{const h=n.current.getColumn(p),m=h==null?void 0:h.getApplyQuickFilterFn,g=h==null?void 0:h.getApplyQuickFilterFnV7,y=!Dg(m),v=!Dg(g);g&&!(y&&!v)?d.push({column:h,appliers:s.map(S=>({v7:!0,fn:g(S,h,n)}))}):m&&d.push({column:h,appliers:s.map(S=>({v7:!1,fn:m(S,h,n)}))})}),function(h,m){const g={},y={};e:for(let S=0;S<s.length;S+=1){const w=s[S];for(let C=0;C<d.length;C+=1){const{column:x,appliers:P}=d[C],{field:_}=x;if(m&&!m(_))continue;const k=P[S],I=n.current.getRowValue(h,x);if(k.fn!==null)if(k.v7){if(k.fn(I,h,x,n)){g[w]=!0;continue e}}else{var v;const R=(v=y[_])!=null?v:n.current.getCellParams(e?e(h):h.id,_);if(y[_]=R,k.fn(R)){g[w]=!0;continue e}}}g[w]=!1}return g}},She=(e,t,n)=>{const r=Che(e,t,n),o=xhe(e,t,n);return function(s,a,c){var d,p;c.passingFilterItems=(d=r==null?void 0:r(s,a))!=null?d:null,c.passingQuickFilterValues=(p=o==null?void 0:o(s,a))!=null?p:null}},UR=e=>e!=null,Ehe=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>I4(r,t)!==null)),e.cleanedFilterItems),Phe=(e,t,n,r,o)=>{const i=Ehe(o,r,n.items),s=e.filter(UR),a=t.filter(UR);if(s.length>0){var c;const p=m=>s.some(g=>g[m.id]);if(((c=n.logicOperator)!=null?c:lp().logicOperator)===ro.And){if(!i.every(p))return!1}else if(!i.some(p))return!1}if(a.length>0&&n.quickFilterValues!=null){var d;const p=m=>a.some(g=>g[m]);if(((d=n.quickFilterLogicOperator)!=null?d:lp().quickFilterLogicOperator)===ro.And){if(!n.quickFilterValues.every(p))return!1}else if(!n.quickFilterValues.some(p))return!1}return!0},Ihe=(e,t,n)=>{var r,o,i,s;const a=(r=(o=t.filterModel)!=null?o:(i=t.initialState)==null||(s=i.filter)==null?void 0:s.filterModel)!=null?r:lp();return E({},e,{filter:{filterModel:P4(a,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},khe=e=>e.filteredRowsLookup;function WR(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}const _he=(e,t)=>{var n,r,o;const i=Lr(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:wr,changeEvent:"filterModelChange"});const s=u.useCallback(()=>{e.current.setState(D=>{const B=wr(D,e.current.instanceId),M=t.filterMode==="client"?She(t.getRowId,B,e):null,F=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:M,filterModel:B!=null?B:lp()}),z=E({},D,{filter:E({},D.filter,F)}),V=WR(e,z);return E({},z,{visibleRowsLookup:V})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.getRowId]),a=u.useCallback((D,B)=>B==null||B.filterable===!1||t.disableColumnFilter?D:[...D,"columnMenuFilterItem"],[t.disableColumnFilter]),c=u.useCallback(()=>{s(),e.current.forceUpdate()},[e,s]),d=u.useCallback(D=>{const B=wr(e),M=[...B.items],F=M.findIndex(z=>z.id===D.id);F===-1?M.push(D):M[F]=D,e.current.setFilterModel(E({},B,{items:M}),"upsertFilterItem")},[e]),p=u.useCallback(D=>{const B=wr(e),M=[...B.items];D.forEach(F=>{const z=D.findIndex(V=>V.id===F.id);z===-1?M.push(F):M[z]=F}),e.current.setFilterModel(E({},B,{items:D}),"upsertFilterItems")},[e]),h=u.useCallback(D=>{const B=wr(e),M=B.items.filter(F=>F.id!==D.id);M.length!==B.items.length&&e.current.setFilterModel(E({},B,{items:M}),"deleteFilterItem")},[e]),m=u.useCallback((D,B,M)=>{if(i.debug("Displaying filter panel"),D){const F=wr(e),z=F.items.filter(W=>{var K;if(W.value!==void 0)return!(Array.isArray(W.value)&&W.value.length===0);const ie=(K=e.current.getColumn(W.field).filterOperators)==null?void 0:K.find(de=>de.value===W.operator);return!(typeof(ie==null?void 0:ie.requiresFilterValue)=="undefined"?!0:ie==null?void 0:ie.requiresFilterValue)});let V;const A=z.find(W=>W.field===D),H=e.current.getColumn(D);A?V=z:t.disableMultipleColumnsFiltering?V=[Ww({field:D,operator:H.filterOperators[0].value},e)]:V=[...z,Ww({field:D,operator:H.filterOperators[0].value},e)],e.current.setFilterModel(E({},F,{items:V}))}e.current.showPreferences(Xa.filters,B,M)},[e,i,t.disableMultipleColumnsFiltering]),g=u.useCallback(()=>{i.debug("Hiding filter panel"),e.current.hidePreferences()},[e,i]),y=u.useCallback(D=>{const B=wr(e);B.logicOperator!==D&&e.current.setFilterModel(E({},B,{logicOperator:D}),"changeLogicOperator")},[e]),v=u.useCallback(D=>{const B=wr(e);Fa(B.quickFilterValues,D)||e.current.setFilterModel(E({},B,{quickFilterValues:[...D]}))},[e]),S=u.useCallback((D,B)=>{wr(e)!==D&&(i.debug("Setting filter model"),e.current.updateControlState("filter",VR(D,t.disableMultipleColumnsFiltering,e),B),e.current.unstable_applyFilters())},[e,i,t.disableMultipleColumnsFiltering]);Lt(e,{setFilterLogicOperator:y,unstable_applyFilters:c,deleteFilterItem:h,upsertFilterItem:d,upsertFilterItems:p,setFilterModel:S,showFilterPanel:m,hideFilterPanel:g,setQuickFilterValues:v},"public");const C=u.useCallback((D,B)=>{var M,F;const z=wr(e);return!B.exportOnlyDirtyModels||t.filterModel!=null||((M=t.initialState)==null||(F=M.filter)==null?void 0:F.filterModel)!=null||!Fa(z,lp())?E({},D,{filter:{filterModel:z}}):D},[e,t.filterModel,(n=t.initialState)==null||(r=n.filter)==null?void 0:r.filterModel]),x=u.useCallback((D,B)=>{var M;const F=(M=B.stateToRestore.filter)==null?void 0:M.filterModel;return F==null?D:(e.current.updateControlState("filter",VR(F,t.disableMultipleColumnsFiltering,e),"restoreState"),E({},D,{callbacks:[...D.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),P=u.useCallback((D,B)=>{if(B===Xa.filters){var M;const F=t.slots.filterPanel;return T.jsx(F,E({},(M=t.slotProps)==null?void 0:M.filterPanel))}return D},[t.slots.filterPanel,(o=t.slotProps)==null?void 0:o.filterPanel]),_=e.current.state.rows.dataRowIdToModelLookup,k=u.useMemo(()=>Object.values(_),[_]),{getRowId:I}=t,R=u.useCallback(D=>{if(t.filterMode!=="client"||!D.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const B=$l(e),M={},{isRowMatchingFilters:F}=D,z={},V={passingFilterItems:null,passingQuickFilterValues:null};for(let W=0;W<k.length;W+=1){const K=k[W],Y=I?I(K):K.id;F(K,void 0,V);const ie=Phe([V.passingFilterItems],[V.passingQuickFilterValues],D.filterModel,e,z);M[Y]=ie}const A="auto-generated-group-footer-root";return B[A]&&(M[A]=!0),{filteredRowsLookup:M,filteredDescendantCountLookup:{}}},[e,k,t.filterMode,I]);or(e,"columnMenu",a),or(e,"exportState",C),or(e,"restoreState",x),or(e,"preferencePanel",P),Bg(e,Ja,"filtering",R),Bg(e,Ja,"visibleRowsLookupCreation",khe);const L=u.useCallback(()=>{i.debug("onColUpdated - GridColumns changed, applying filters");const D=wr(e),B=xae(e),M=D.items.filter(F=>F.field&&B[F.field]);M.length<D.items.length&&e.current.setFilterModel(E({},D,{items:M}))},[e,i]),N=u.useCallback(D=>{D==="filtering"&&e.current.unstable_applyFilters()},[e]),O=u.useCallback(()=>{e.current.setState(D=>E({},D,{visibleRowsLookup:WR(e,D)})),e.current.forceUpdate()},[e]);ot(e,"rowsSet",s),ot(e,"columnsChange",L),ot(e,"activeStrategyProcessorChange",N),ot(e,"rowExpansionChange",O),ot(e,"columnVisibilityModelChange",()=>{const D=wr(e);D.quickFilterValues&&D.quickFilterExcludeHiddenColumns&&e.current.unstable_applyFilters()}),Lp(()=>{e.current.unstable_applyFilters()}),ln(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,i,t.filterModel])},$he=e=>E({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),Rhe=(e,t)=>{const n=Lr(e,"useGridFocus"),r=u.useRef(null),o=u.useCallback((k,I)=>{k&&e.current.getRow(k.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(k.id,k.field),I)},[e]),i=u.useCallback((k,I)=>{const R=ni(e);(R==null?void 0:R.id)===k&&(R==null?void 0:R.field)===I||(e.current.setState(L=>(n.debug(`Focusing on cell with id=${k} and field=${I}`),E({},L,{tabIndex:{cell:{id:k,field:I},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:k,field:I},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(k)&&(R&&o(R,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(k,I))))},[e,n,o]),s=u.useCallback((k,I={})=>{const R=ni(e);o(R,I),e.current.setState(L=>(n.debug(`Focusing on column header with colIndex=${k}`),E({},L,{tabIndex:{columnHeader:{field:k},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:k},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),a=u.useCallback((k,I={})=>{const R=ni(e);o(R,I),e.current.setState(L=>(n.debug(`Focusing on column header filter with colIndex=${k}`),E({},L,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:k},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:k},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),c=u.useCallback((k,I,R={})=>{const L=ni(e);L&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(L.id,L.field),R),e.current.setState(N=>E({},N,{tabIndex:{columnGroupHeader:{field:k,depth:I},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:k,depth:I},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),d=u.useCallback(()=>Mg(e),[e]),p=u.useCallback((k,I,R)=>{let L=e.current.getColumnIndex(I);const N=Tr(e),O=oE(e,{pagination:t.pagination,paginationMode:t.paginationMode}),D=sd(e),B=[].concat(D.top||[],O.rows,D.bottom||[]);let M=B.findIndex(A=>A.id===k);R==="right"?L+=1:R==="left"?L-=1:M+=1,L>=N.length?(M+=1,M<B.length&&(L=0)):L<0&&(M-=1,M>=0&&(L=N.length-1)),M=Vu(M,0,B.length-1);const F=B[M];if(!F)return;const z=e.current.unstable_getCellColSpanInfo(F.id,L);z&&z.spannedByColSpan&&(R==="left"||R==="below"?L=z.leftVisibleCellIndex:R==="right"&&(L=z.rightVisibleCellIndex)),L=Vu(L,0,N.length-1);const V=N[L];e.current.setCellFocus(F.id,V.field)},[e,t.pagination,t.paginationMode]),h=u.useCallback(({id:k,field:I})=>{e.current.setCellFocus(k,I)},[e]),m=u.useCallback((k,I)=>{I.key==="Enter"||I.key==="Tab"||I.key==="Shift"||Ag(I.key)||e.current.setCellFocus(k.id,k.field)},[e]),g=u.useCallback(({field:k},I)=>{I.target===I.currentTarget&&e.current.setColumnHeaderFocus(k,I)},[e]),y=u.useCallback(({fields:k,depth:I},R)=>{if(R.target!==R.currentTarget)return;const L=Mg(e);L!==null&&L.depth===I&&k.includes(L.field)||e.current.setColumnGroupHeaderFocus(k[0],I,R)},[e]),v=u.useCallback((k,I)=>{var R;(R=I.relatedTarget)!=null&&R.className.includes(X.columnHeader)||(n.debug("Clearing focus"),e.current.setState(L=>E({},L,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),S=u.useCallback(k=>{r.current=k},[]),w=u.useCallback(k=>{const I=r.current;r.current=null;const R=ni(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:k,cell:I}))return;if(!R){I&&e.current.setCellFocus(I.id,I.field);return}if((I==null?void 0:I.id)===R.id&&(I==null?void 0:I.field)===R.field)return;const N=e.current.getCellElement(R.id,R.field);N!=null&&N.contains(k.target)||(I?e.current.setCellFocus(I.id,I.field):(e.current.setState(O=>E({},O,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),o(R,k)))},[e,o]),C=u.useCallback(k=>{if(k.cellMode==="view")return;const I=ni(e);((I==null?void 0:I.id)!==k.id||(I==null?void 0:I.field)!==k.field)&&e.current.setCellFocus(k.id,k.field)},[e]),x=u.useCallback(()=>{const k=ni(e);k&&!e.current.getRow(k.id)&&e.current.setState(I=>E({},I,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[e]),P={setCellFocus:i,setColumnHeaderFocus:s,setColumnHeaderFilterFocus:a},_={moveFocusToRelativeCell:p,setColumnGroupHeaderFocus:c,getColumnGroupHeaderFocus:d};Lt(e,P,"public"),Lt(e,_,"private"),u.useEffect(()=>{const k=vn(e.current.rootElementRef.current);return k.addEventListener("mouseup",w),()=>{k.removeEventListener("mouseup",w)}},[e,w]),ot(e,"columnHeaderBlur",v),ot(e,"headerFilterBlur",v),ot(e,"cellDoubleClick",h),ot(e,"cellMouseDown",S),ot(e,"cellKeyDown",m),ot(e,"cellModeChange",C),ot(e,"columnHeaderFocus",g),ot(e,"columnGroupHeaderFocus",y),ot(e,"rowsSet",x)};function Mhe(e,t){const n=sd(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const Y1=({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},Q1=({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},The=(e,t)=>{const n=Lr(e,"useGridKeyboardNavigation"),r=ac(e,t).rows,o=sr(),i=u.useMemo(()=>Mhe(e,r),[e,r]),s=t.signature!=="DataGrid"&&t.unstable_headerFilters,a=u.useCallback((w,C,x="left")=>{const P=ia(e),_=e.current.unstable_getCellColSpanInfo(C,w);_&&_.spannedByColSpan&&(x==="left"?w=_.leftVisibleCellIndex:x==="right"&&(w=_.rightVisibleCellIndex));const k=P.findIndex(R=>R.id===C);n.debug(`Navigating to cell row ${k}, col ${w}`),e.current.scrollToIndexes({colIndex:w,rowIndex:k});const I=e.current.getVisibleColumns()[w].field;e.current.setCellFocus(C,I)},[e,n]),c=u.useCallback((w,C)=>{n.debug(`Navigating to header col ${w}`),e.current.scrollToIndexes({colIndex:w});const x=e.current.getVisibleColumns()[w].field;e.current.setColumnHeaderFocus(x,C)},[e,n]),d=u.useCallback((w,C)=>{n.debug(`Navigating to header filter col ${w}`),e.current.scrollToIndexes({colIndex:w});const x=e.current.getVisibleColumns()[w].field;e.current.setColumnHeaderFilterFocus(x,C)},[e,n]),p=u.useCallback((w,C,x)=>{n.debug(`Navigating to header col ${w}`),e.current.scrollToIndexes({colIndex:w});const{field:P}=e.current.getVisibleColumns()[w];e.current.setColumnGroupHeaderFocus(P,C,x)},[e,n]),h=u.useCallback(w=>i==null?void 0:i[w].id,[i]),m=u.useCallback((w,C)=>{const x=C.currentTarget.querySelector(`.${X.columnHeaderTitleContainerContent}`);if(!!x&&x.contains(C.target)&&w.field!==Dp.field||!e.current.getRootDimensions())return;const k=e.current.getViewportPageSize(),I=w.field?e.current.getColumnIndex(w.field):0,R=0,L=i.length-1,N=0,O=Tr(e).length-1,D=Fp(e);let B=!0;switch(C.key){case"ArrowDown":{s?d(I,C):a(I,h(R));break}case"ArrowRight":{const M=Q1({currentColIndex:I,firstColIndex:N,lastColIndex:O,direction:o.direction});M!==null&&c(M,C);break}case"ArrowLeft":{const M=Y1({currentColIndex:I,firstColIndex:N,lastColIndex:O,direction:o.direction});M!==null&&c(M,C);break}case"ArrowUp":{D>0&&p(I,D-1,C);break}case"PageDown":{L!==null&&a(I,h(Math.min(R+k,L)));break}case"Home":{c(N,C);break}case"End":{c(O,C);break}case"Enter":{(C.ctrlKey||C.metaKey)&&e.current.toggleColumnMenu(w.field);break}case" ":break;default:B=!1}B&&C.preventDefault()},[e,i.length,s,d,a,h,o.direction,c,p]),g=u.useCallback((w,C)=>{if(!e.current.getRootDimensions())return;const P=nde(e)===w.field,_=rde(e)===w.field;if(P||_||!Ag(C.key))return;const k=e.current.getViewportPageSize(),I=w.field?e.current.getColumnIndex(w.field):0,R=0,L=i.length-1,N=0,O=Tr(e).length-1;let D=!0;switch(C.key){case"ArrowDown":{const B=h(R);B!=null&&a(I,B);break}case"ArrowRight":{const B=Q1({currentColIndex:I,firstColIndex:N,lastColIndex:O,direction:o.direction});B!==null&&d(B,C);break}case"ArrowLeft":{const B=Y1({currentColIndex:I,firstColIndex:N,lastColIndex:O,direction:o.direction});B!==null?d(B,C):e.current.setColumnHeaderFilterFocus(w.field,C);break}case"ArrowUp":{c(I,C);break}case"PageDown":{L!==null&&a(I,h(Math.min(R+k,L)));break}case"Home":{d(N,C);break}case"End":{d(O,C);break}case" ":break;default:D=!1}D&&C.preventDefault()},[e,i.length,d,o.direction,c,a,h]),y=u.useCallback((w,C)=>{if(!e.current.getRootDimensions())return;const P=Mg(e);if(P===null)return;const{field:_,depth:k}=P,{fields:I,depth:R,maxDepth:L}=w,N=e.current.getViewportPageSize(),O=e.current.getColumnIndex(_),D=_?e.current.getColumnIndex(_):0,B=0,M=i.length-1,F=0,z=Tr(e).length-1;let V=!0;switch(C.key){case"ArrowDown":{R===L-1?c(O,C):p(O,k+1,C);break}case"ArrowUp":{R>0&&p(O,k-1,C);break}case"ArrowRight":{const A=I.length-I.indexOf(_)-1;O+A+1<=z&&p(O+A+1,k,C);break}case"ArrowLeft":{const A=I.indexOf(_);O-A-1>=F&&p(O-A-1,k,C);break}case"PageDown":{M!==null&&a(D,h(Math.min(B+N,M)));break}case"Home":{p(F,k,C);break}case"End":{p(z,k,C);break}case" ":break;default:V=!1}V&&C.preventDefault()},[e,i.length,c,p,a,h]),v=u.useCallback((w,C)=>{if(!C.currentTarget.contains(C.target))return;const x=e.current.getCellParams(w.id,w.field);if(x.cellMode===rn.Edit||!Ag(C.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:C,cell:x}))return;const _=e.current.getRootDimensions();if(i.length===0||!_)return;const k=o.direction,I=e.current.getViewportPageSize(),R=w.field?e.current.getColumnIndex(w.field):0,L=i.findIndex(F=>F.id===w.id),N=0,O=i.length-1,D=0,B=Tr(e).length-1;let M=!0;switch(C.key){case"ArrowDown":{L<O&&a(R,h(L+1));break}case"ArrowUp":{L>N?a(R,h(L-1)):s?d(R,C):c(R,C);break}case"ArrowRight":{const F=Q1({currentColIndex:R,firstColIndex:D,lastColIndex:B,direction:k});F!==null&&a(F,h(L),k==="rtl"?"left":"right");break}case"ArrowLeft":{const F=Y1({currentColIndex:R,firstColIndex:D,lastColIndex:B,direction:k});F!==null&&a(F,h(L),k==="rtl"?"right":"left");break}case"Tab":{C.shiftKey&&R>D?a(R-1,h(L),"left"):!C.shiftKey&&R<B&&a(R+1,h(L),"right");break}case" ":{if(w.field===iE)break;const z=w.colDef;if(z&&z.type==="treeDataGroup")break;!C.shiftKey&&L<O&&a(R,h(Math.min(L+I,O)));break}case"PageDown":{L<O&&a(R,h(Math.min(L+I,O)));break}case"PageUp":{const F=Math.max(L-I,N);F!==L&&F>=N?a(R,h(F)):c(R,C);break}case"Home":{C.ctrlKey||C.metaKey||C.shiftKey?a(D,h(N)):a(D,h(L));break}case"End":{C.ctrlKey||C.metaKey||C.shiftKey?a(B,h(O)):a(B,h(L));break}default:M=!1}M&&C.preventDefault()},[e,i,o.direction,a,h,s,d,c]),S=u.useCallback((w,{event:C})=>C.key===" "?!1:w,[]);or(e,"canStartEditing",S),ot(e,"columnHeaderKeyDown",m),ot(e,"headerFilterKeyDown",g),ot(e,"columnGroupHeaderKeyDown",y),ot(e,"cellKeyDown",v)},Ohe=(e,t)=>{var n,r,o;const i=E({},t4(t.autoPageSize),(n=t.paginationModel)!=null?n:(r=t.initialState)==null||(o=r.pagination)==null?void 0:o.paginationModel);return n4(i.pageSize,t.signature),E({},e,{pagination:{paginationModel:i}})},X1=(e,t,n)=>r=>{var o;let i=r.paginationModel;const s=(o=n==null?void 0:n.pageSize)!=null?o:i.pageSize,a=e4(e,s);n&&((n==null?void 0:n.page)!==i.page||(n==null?void 0:n.pageSize)!==i.pageSize)&&(i=n);const c=Vue(i.page,a);return c!==i.page&&(i=E({},i,{page:c})),n4(i.pageSize,t),{paginationModel:i}},Fhe=(e,t)=>{var n,r;const o=Lr(e,"useGridPagination"),i=Ge(e,yy),s=Ge(e,ld),a=Math.floor(t.rowHeight*s);e.current.registerControlState({stateId:"pagination",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:ri,changeEvent:"paginationModelChange"});const c=u.useCallback(S=>{const w=ri(e);S!==w.page&&(o.debug(`Setting page to ${S}`),e.current.setPaginationModel({page:S,pageSize:w.pageSize}))},[e,o]),d=u.useCallback(S=>{const w=ri(e);S!==w.pageSize&&(o.debug(`Setting page size to ${S}`),e.current.setPaginationModel({pageSize:S,page:w.page}))},[e,o]),p=u.useCallback(S=>{var w;const C=ri(e);S!==C&&(o.debug("Setting 'paginationModel' to",S),e.current.updateControlState("pagination",X1((w=t.rowCount)!=null?w:i,t.signature,S),"setPaginationModel"),e.current.forceUpdate())},[e,o,t.rowCount,t.signature,i]);Lt(e,{setPage:c,setPageSize:d,setPaginationModel:p},"public");const m=u.useCallback((S,w)=>{var C,x;const P=ri(e);return!w.exportOnlyDirtyModels||t.paginationModel!=null||((C=t.initialState)==null||(x=C.pagination)==null?void 0:x.paginationModel)!=null||P.page!==0&&P.pageSize!==Hue(t.autoPageSize)?E({},S,{pagination:E({},S.pagination,{paginationModel:P})}):S},[e,t.paginationModel,(n=t.initialState)==null||(r=n.pagination)==null?void 0:r.paginationModel,t.autoPageSize]),g=u.useCallback((S,w)=>{var C,x,P;const _=(C=w.stateToRestore.pagination)!=null&&C.paginationModel?E({},t4(t.autoPageSize),(x=w.stateToRestore.pagination)==null?void 0:x.paginationModel):ri(e);return e.current.updateControlState("pagination",X1((P=t.rowCount)!=null?P:i,t.signature,_),"stateRestorePreProcessing"),S},[e,t.autoPageSize,t.rowCount,t.signature,i]);or(e,"exportState",m),or(e,"restoreState",g);const y=()=>{var S;const w=ri(e);(S=e.current.virtualScrollerRef)!=null&&S.current&&e.current.scrollToIndexes({rowIndex:w.page*w.pageSize}),e.current.forceUpdate()},v=u.useCallback(()=>{const S=e.current.getRootDimensions();if(!t.autoPageSize||!S)return;const w=zA(e),C=Math.floor((S.viewportInnerSize.height-w.top-w.bottom)/a);e.current.setPageSize(C)},[e,t.autoPageSize,a]);ot(e,"viewportInnerSizeChange",v),ot(e,"paginationModelChange",y),u.useEffect(()=>{},[t.rowCount,t.paginationMode]),u.useEffect(()=>{var S;e.current.updateControlState("pagination",X1((S=t.rowCount)!=null?S:i,t.signature,t.paginationModel))},[e,t.paginationModel,t.rowCount,t.paginationMode,i,t.signature]),u.useEffect(()=>{v()},[v])},Lhe=(e,t)=>{var n,r;return E({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},Ahe=(e,t)=>{var n;const r=Lr(e,"useGridPreferencesPanel"),o=u.useRef(),i=u.useRef(),s=u.useCallback(()=>{r.debug("Hiding Preferences Panel");const m=ap(e.current.state);m.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:m.openedPanelValue}),e.current.setState(g=>E({},g,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,r]),a=u.useCallback(()=>{i.current=setTimeout(()=>clearTimeout(o.current),0)},[]),c=u.useCallback(()=>{o.current=setTimeout(s,100)},[s]),d=u.useCallback((m,g,y)=>{r.debug("Opening Preferences Panel"),a(),e.current.setState(v=>E({},v,{preferencePanel:E({},v.preferencePanel,{open:!0,openedPanelValue:m,panelId:g,labelId:y})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:m}),e.current.forceUpdate()},[r,a,e]);Lt(e,{showPreferences:d,hidePreferences:c},"public");const p=u.useCallback((m,g)=>{var y;const v=ap(e.current.state);return!g.exportOnlyDirtyModels||((y=t.initialState)==null?void 0:y.preferencePanel)!=null||v.open?E({},m,{preferencePanel:v}):m},[e,(n=t.initialState)==null?void 0:n.preferencePanel]),h=u.useCallback((m,g)=>{const y=g.stateToRestore.preferencePanel;return y!=null&&e.current.setState(v=>E({},v,{preferencePanel:y})),m},[e]);or(e,"exportState",p),or(e,"restoreState",h),u.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(i.current)},[])},Nhe=["id","field"],Dhe=["id","field"],Bhe=bs(["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"),zhe=(e,t)=>{const[n,r]=u.useState({}),o=u.useRef(n),i=u.useRef({}),{processRowUpdate:s,onProcessRowUpdateError:a,cellModesModel:c,onCellModesModelChange:d}=t,p=M=>(...F)=>{t.editMode===gs.Cell&&M(...F)},h=u.useCallback((M,F)=>{const z=e.current.getCellParams(M,F);if(!e.current.isCellEditable(z))throw new Error(`MUI: The cell with id=${M} and field=${F} is not editable.`)},[e]),m=u.useCallback((M,F,z)=>{if(e.current.getCellMode(M,F)!==z)throw new Error(`MUI: The cell with id=${M} and field=${F} is not in ${z} mode.`)},[e]),g=u.useCallback((M,F)=>{if(!M.isEditable||M.cellMode===rn.Edit)return;const z=E({},M,{reason:hl.cellDoubleClick});e.current.publishEvent("cellEditStart",z,F)},[e]),y=u.useCallback((M,F)=>{if(M.cellMode===rn.View||e.current.getCellMode(M.id,M.field)===rn.View)return;const z=E({},M,{reason:ki.cellFocusOut});e.current.publishEvent("cellEditStop",z,F)},[e]),v=u.useCallback((M,F)=>{if(M.cellMode===rn.Edit){if(F.which===229)return;let z;if(F.key==="Escape"?z=ki.escapeKeyDown:F.key==="Enter"?z=ki.enterKeyDown:F.key==="Tab"&&(z=F.shiftKey?ki.shiftTabKeyDown:ki.tabKeyDown,F.preventDefault()),z){const V=E({},M,{reason:z});e.current.publishEvent("cellEditStop",V,F)}}else if(M.isEditable){let z;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:F,cellParams:M,editMode:"cell"}))return;if(KA(F)||(F.ctrlKey||F.metaKey)&&F.key==="v"?z=hl.printableKeyDown:F.key==="Enter"?z=hl.enterKeyDown:(F.key==="Delete"||F.key==="Backspace")&&(z=hl.deleteKeyDown),z){const A=E({},M,{reason:z,key:F.key});e.current.publishEvent("cellEditStart",A,F)}}},[e]),S=u.useCallback(M=>{const{id:F,field:z,reason:V,key:A,colDef:H}=M,W={id:F,field:z};if(V===hl.printableKeyDown)if(u.version.startsWith("17"))W.deleteValue=!0;else{const K=H.valueParser?H.valueParser(A):A;W.initialValue=K}else V===hl.deleteKeyDown&&(W.deleteValue=!0);e.current.startCellEditMode(W)},[e]),w=u.useCallback(M=>{const{id:F,field:z,reason:V}=M;e.current.runPendingEditCellValueMutation(F,z);let A;V===ki.enterKeyDown?A="below":V===ki.tabKeyDown?A="right":V===ki.shiftTabKeyDown&&(A="left");const H=V==="escapeKeyDown";e.current.stopCellEditMode({id:F,field:z,ignoreModifications:H,cellToFocusAfter:A})},[e]);ot(e,"cellDoubleClick",p(g)),ot(e,"cellFocusOut",p(y)),ot(e,"cellKeyDown",p(v)),ot(e,"cellEditStart",p(S)),ot(e,"cellEditStop",p(w)),xn(e,"cellEditStart",t.onCellEditStart),xn(e,"cellEditStop",t.onCellEditStop);const C=u.useCallback((M,F)=>{const z=jr(e.current.state);return z[M]&&z[M][F]?rn.Edit:rn.View},[e]),x=Pn(M=>{const F=M!==t.cellModesModel;d&&F&&d(M,{}),!(t.cellModesModel&&F)&&(r(M),o.current=M,e.current.publishEvent("cellModesModelChange",M))}),P=u.useCallback((M,F,z)=>{const V=E({},o.current);if(z!==null)V[M]=E({},V[M],{[F]:E({},z)});else{const A=V[M],H=ne(A,[F].map(dp));V[M]=H,Object.keys(V[M]).length===0&&delete V[M]}x(V)},[x]),_=u.useCallback((M,F,z)=>{e.current.setState(V=>{const A=E({},V.editRows);return z!==null?A[M]=E({},A[M],{[F]:E({},z)}):(delete A[M][F],Object.keys(A[M]).length===0&&delete A[M]),E({},V,{editRows:A})}),e.current.forceUpdate()},[e]),k=u.useCallback(M=>{const{id:F,field:z}=M,V=ne(M,Nhe);h(F,z),m(F,z,rn.View),P(F,z,E({mode:rn.Edit},V))},[h,m,P]),I=Pn(M=>{const{id:F,field:z,deleteValue:V,initialValue:A}=M;let H=e.current.getCellValue(F,z),W=!1;(V||A)&&(H=V?"":A,W=!0),_(F,z,{value:H,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:W}),e.current.setCellFocus(F,z)}),R=u.useCallback(M=>{const{id:F,field:z}=M,V=ne(M,Dhe);m(F,z,rn.Edit),P(F,z,E({mode:rn.View},V))},[m,P]),L=Pn(M=>mt(void 0,null,function*(){const{id:F,field:z,ignoreModifications:V,cellToFocusAfter:A="none"}=M;m(F,z,rn.Edit),e.current.runPendingEditCellValueMutation(F,z);const H=()=>{_(F,z,null),P(F,z,null),A!=="none"&&e.current.moveFocusToRelativeCell(F,z,A)};if(V){H();return}const W=jr(e.current.state),{error:K,isProcessingProps:Y}=W[F][z];if(K||Y){i.current[F][z].mode=rn.Edit,P(F,z,{mode:rn.Edit});return}const ie=e.current.getRowWithUpdatedValuesFromCellEditing(F,z);if(s){const re=de=>{i.current[F][z].mode=rn.Edit,P(F,z,{mode:rn.Edit}),a?a(de):Bhe()};try{const de=e.current.getRow(F);Promise.resolve(s(ie,de)).then(se=>{e.current.updateRows([se]),H()}).catch(re)}catch(de){re(de)}}else e.current.updateRows([ie]),H()})),N=u.useCallback(M=>mt(void 0,null,function*(){var F,z;const{id:V,field:A,value:H,debounceMs:W,unstable_skipValueParser:K}=M;h(V,A),m(V,A,rn.Edit);const Y=e.current.getColumn(A),ie=e.current.getRow(V);let re=H;Y.valueParser&&!K&&(re=Y.valueParser(H,e.current.getCellParams(V,A)));let de=jr(e.current.state),se=E({},de[V][A],{value:re,changeReason:W?"debouncedSetEditCellValue":"setEditCellValue"});if(Y.preProcessEditCellProps){const le=H!==de[V][A].value;se=E({},se,{isProcessingProps:!0}),_(V,A,se),se=yield Promise.resolve(Y.preProcessEditCellProps({id:V,row:ie,props:se,hasChanged:le}))}return e.current.getCellMode(V,A)===rn.View?!1:(de=jr(e.current.state),se=E({},se,{isProcessingProps:!1}),se.value=Y.preProcessEditCellProps?de[V][A].value:re,_(V,A,se),de=jr(e.current.state),!((F=de[V])!=null&&(z=F[A])!=null&&z.error))}),[e,h,m,_]),O=u.useCallback((M,F)=>{const z=e.current.getColumn(F),V=jr(e.current.state),A=e.current.getRow(M);if(!V[M]||!V[M][F])return e.current.getRow(M);const{value:H}=V[M][F];return z.valueSetter?z.valueSetter({value:H,row:A}):E({},A,{[F]:H})},[e]),D={getCellMode:C,startCellEditMode:k,stopCellEditMode:R},B={setCellEditingEditCellValue:N,getRowWithUpdatedValuesFromCellEditing:O};Lt(e,D,"public"),Lt(e,B,"private"),u.useEffect(()=>{c&&x(c)},[c,x]),u.useEffect(()=>{const M=Rg(e),F=i.current;i.current=ZA(n),Object.entries(n).forEach(([z,V])=>{Object.entries(V).forEach(([A,H])=>{var W,K,Y;const ie=((W=F[z])==null||(K=W[A])==null?void 0:K.mode)||rn.View,re=(Y=M[z])!=null?Y:z;H.mode===rn.Edit&&ie===rn.View?I(E({id:re,field:A},H)):H.mode===rn.View&&ie===rn.Edit&&L(E({id:re,field:A},H))})})},[e,n,I,L])},jhe=["id"],Hhe=["id"],Vhe=bs(["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"),Uhe=(e,t)=>{const[n,r]=u.useState({}),o=u.useRef(n),i=u.useRef({}),s=u.useRef(null),a=u.useRef(null),{processRowUpdate:c,onProcessRowUpdateError:d,rowModesModel:p,onRowModesModelChange:h}=t,m=A=>(...H)=>{t.editMode===gs.Row&&A(...H)},g=u.useCallback((A,H)=>{const W=e.current.getCellParams(A,H);if(!e.current.isCellEditable(W))throw new Error(`MUI: The cell with id=${A} and field=${H} is not editable.`)},[e]),y=u.useCallback((A,H)=>{if(e.current.getRowMode(A)!==H)throw new Error(`MUI: The row with id=${A} is not in ${H} mode.`)},[e]),v=u.useCallback((A,H)=>{if(!A.isEditable||e.current.getRowMode(A.id)===mn.Edit)return;const W=e.current.getRowParams(A.id),K=E({},W,{field:A.field,reason:ml.cellDoubleClick});e.current.publishEvent("rowEditStart",K,H)},[e]),S=u.useCallback(A=>{a.current=A},[]),w=u.useCallback((A,H)=>{A.isEditable&&e.current.getRowMode(A.id)!==mn.View&&(a.current=null,s.current=setTimeout(()=>{var W;if(s.current=null,((W=a.current)==null?void 0:W.id)!==A.id){if(!e.current.getRow(A.id)||e.current.getRowMode(A.id)===mn.View)return;const K=e.current.getRowParams(A.id),Y=E({},K,{field:A.field,reason:Ts.rowFocusOut});e.current.publishEvent("rowEditStop",Y,H)}}))},[e]);u.useEffect(()=>()=>{clearTimeout(s.current)},[]);const C=u.useCallback((A,H)=>{if(A.cellMode===mn.Edit){if(H.which===229)return;let W;if(H.key==="Escape")W=Ts.escapeKeyDown;else if(H.key==="Enter")W=Ts.enterKeyDown;else if(H.key==="Tab"){const K=my(e).filter(Y=>e.current.getColumn(Y).type===Sy?!0:e.current.isCellEditable(e.current.getCellParams(A.id,Y)));if(H.shiftKey?A.field===K[0]&&(W=Ts.shiftTabKeyDown):A.field===K[K.length-1]&&(W=Ts.tabKeyDown),H.preventDefault(),!W){const Y=K.findIndex(re=>re===A.field),ie=K[H.shiftKey?Y-1:Y+1];e.current.setCellFocus(A.id,ie)}}if(W){const K=E({},e.current.getRowParams(A.id),{reason:W,field:A.field});e.current.publishEvent("rowEditStop",K,H)}}else if(A.isEditable){let W;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:H,cellParams:A,editMode:"row"}))return;if(KA(H)||(H.ctrlKey||H.metaKey)&&H.key==="v"?W=ml.printableKeyDown:H.key==="Enter"?W=ml.enterKeyDown:(H.key==="Delete"||H.key==="Backspace")&&(W=ml.deleteKeyDown),W){const Y=e.current.getRowParams(A.id),ie=E({},Y,{field:A.field,key:H.key,reason:W});e.current.publishEvent("rowEditStart",ie,H)}}},[e]),x=u.useCallback(A=>{const{id:H,field:W,reason:K,key:Y,columns:ie}=A,re={id:H,fieldToFocus:W};if(K===ml.printableKeyDown)if(u.version.startsWith("17"))re.deleteValue=!!W;else{const de=ie.find(se=>se.field===W);re.initialValue=de.valueParser?de.valueParser(Y):Y}else K===ml.deleteKeyDown&&(re.deleteValue=!!W);e.current.startRowEditMode(re)},[e]),P=u.useCallback(A=>{const{id:H,reason:W,field:K}=A;e.current.runPendingEditCellValueMutation(H);let Y;W===Ts.enterKeyDown?Y="below":W===Ts.tabKeyDown?Y="right":W===Ts.shiftTabKeyDown&&(Y="left");const ie=W==="escapeKeyDown";e.current.stopRowEditMode({id:H,ignoreModifications:ie,field:K,cellToFocusAfter:Y})},[e]);ot(e,"cellDoubleClick",m(v)),ot(e,"cellFocusIn",m(S)),ot(e,"cellFocusOut",m(w)),ot(e,"cellKeyDown",m(C)),ot(e,"rowEditStart",m(x)),ot(e,"rowEditStop",m(P)),xn(e,"rowEditStart",t.onRowEditStart),xn(e,"rowEditStop",t.onRowEditStop);const _=u.useCallback(A=>{if(t.editMode===gs.Cell)return mn.View;const H=jr(e.current.state);return H[A]&&Object.keys(H[A]).length>0?mn.Edit:mn.View},[e,t.editMode]),k=Pn(A=>{const H=A!==t.rowModesModel;h&&H&&h(A,{}),!(t.rowModesModel&&H)&&(r(A),o.current=A,e.current.publishEvent("rowModesModelChange",A))}),I=u.useCallback((A,H)=>{const W=E({},o.current);H!==null?W[A]=E({},H):delete W[A],k(W)},[k]),R=u.useCallback((A,H)=>{e.current.setState(W=>{const K=E({},W.editRows);return H!==null?K[A]=H:delete K[A],E({},W,{editRows:K})}),e.current.forceUpdate()},[e]),L=u.useCallback((A,H,W)=>{e.current.setState(K=>{const Y=E({},K.editRows);return W!==null?Y[A]=E({},Y[A],{[H]:E({},W)}):(delete Y[A][H],Object.keys(Y[A]).length===0&&delete Y[A]),E({},K,{editRows:Y})}),e.current.forceUpdate()},[e]),N=u.useCallback(A=>{const{id:H}=A,W=ne(A,jhe);y(H,mn.View),I(H,E({mode:mn.Edit},W))},[y,I]),O=Pn(A=>{const{id:H,fieldToFocus:W,deleteValue:K,initialValue:Y}=A,re=zs(e).reduce((de,se)=>{if(!e.current.getCellParams(H,se).isEditable)return de;let ke=e.current.getCellValue(H,se),ve=!1;return W===se&&(K||Y)&&(ke=K?"":Y,ve=!0),de[se]={value:ke,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:ve},de},{});R(H,re),W&&e.current.setCellFocus(H,W)}),D=u.useCallback(A=>{const{id:H}=A,W=ne(A,Hhe);y(H,mn.Edit),I(H,E({mode:mn.View},W))},[y,I]),B=Pn(A=>{const{id:H,ignoreModifications:W,field:K,cellToFocusAfter:Y="none"}=A;e.current.runPendingEditCellValueMutation(H);const ie=()=>{Y!=="none"&&K&&e.current.moveFocusToRelativeCell(H,K,Y),R(H,null),I(H,null)};if(W){ie();return}const re=jr(e.current.state),de=e.current.getRow(H);if(Object.values(re[H]).some(ve=>ve.isProcessingProps)){i.current[H].mode=mn.Edit;return}if(Object.values(re[H]).some(ve=>ve.error)){i.current[H].mode=mn.Edit,I(H,{mode:mn.Edit});return}const ke=e.current.getRowWithUpdatedValuesFromRowEditing(H);if(c){const ve=Pe=>{i.current[H].mode=mn.Edit,I(H,{mode:mn.Edit}),d?d(Pe):Vhe()};try{Promise.resolve(c(ke,de)).then(Pe=>{e.current.updateRows([Pe]),ie()}).catch(ve)}catch(Pe){ve(Pe)}}else e.current.updateRows([ke]),ie()}),M=u.useCallback(A=>{const{id:H,field:W,value:K,debounceMs:Y,unstable_skipValueParser:ie}=A;g(H,W);const re=e.current.getColumn(W),de=e.current.getRow(H);let se=K;re.valueParser&&!ie&&(se=re.valueParser(K,e.current.getCellParams(H,W)));let le=jr(e.current.state),ke=E({},le[H][W],{value:se,changeReason:Y?"debouncedSetEditCellValue":"setEditCellValue"});return re.preProcessEditCellProps||L(H,W,ke),new Promise(ve=>{const Pe=[];if(re.preProcessEditCellProps){const ee=ke.value!==le[H][W].value;ke=E({},ke,{isProcessingProps:!0}),L(H,W,ke);const _e=le[H],Re=ne(_e,[W].map(dp)),Se=Promise.resolve(re.preProcessEditCellProps({id:H,row:de,props:ke,hasChanged:ee,otherFieldsProps:Re})).then(pe=>{if(e.current.getRowMode(H)===mn.View){ve(!1);return}le=jr(e.current.state),pe=E({},pe,{isProcessingProps:!1}),pe.value=re.preProcessEditCellProps?le[H][W].value:se,L(H,W,pe)});Pe.push(Se)}Object.entries(le[H]).forEach(([ee,_e])=>{if(ee===W)return;const Re=e.current.getColumn(ee);if(!Re.preProcessEditCellProps)return;_e=E({},_e,{isProcessingProps:!0}),L(H,ee,_e),le=jr(e.current.state);const Se=le[H],pe=ne(Se,[ee].map(dp)),be=Promise.resolve(Re.preProcessEditCellProps({id:H,row:de,props:_e,hasChanged:!1,otherFieldsProps:pe})).then(te=>{if(e.current.getRowMode(H)===mn.View){ve(!1);return}te=E({},te,{isProcessingProps:!1}),L(H,ee,te)});Pe.push(be)}),Promise.all(Pe).then(()=>{e.current.getRowMode(H)===mn.Edit?(le=jr(e.current.state),ve(!le[H][W].error)):ve(!1)})})},[e,g,L]),F=u.useCallback(A=>{const H=jr(e.current.state),W=e.current.getRow(A);if(!H[A])return e.current.getRow(A);let K=E({},W);return Object.entries(H[A]).forEach(([Y,ie])=>{const re=e.current.getColumn(Y);re.valueSetter?K=re.valueSetter({value:ie.value,row:K}):K[Y]=ie.value}),K},[e]),z={getRowMode:_,startRowEditMode:N,stopRowEditMode:D},V={setRowEditingEditCellValue:M,getRowWithUpdatedValuesFromRowEditing:F};Lt(e,z,"public"),Lt(e,V,"private"),u.useEffect(()=>{p&&k(p)},[p,k]),u.useEffect(()=>{const A=Rg(e),H=i.current;i.current=ZA(n),Object.entries(n).forEach(([W,K])=>{var Y,ie;const re=((Y=H[W])==null?void 0:Y.mode)||mn.View,de=(ie=A[W])!=null?ie:W;K.mode===mn.Edit&&re===mn.View?O(E({id:de},K)):K.mode===mn.View&&re===mn.Edit&&B(E({id:de},K))})},[e,n,O,B])},Whe=e=>E({},e,{editRows:{}}),Ghe=(e,t)=>{zhe(e,t),Uhe(e,t);const n=u.useRef({}),{isCellEditable:r}=t,o=u.useCallback(m=>sp(m.rowNode)||!m.colDef.editable||!m.colDef.renderEditCell?!1:r?r(m):!0,[r]),i=(m,g,y,v)=>{if(!y){v();return}if(n.current[m]||(n.current[m]={}),n.current[m][g]){const[C]=n.current[m][g];clearTimeout(C)}const S=()=>{const[C]=n.current[m][g];clearTimeout(C),v(),delete n.current[m][g]},w=setTimeout(()=>{v(),delete n.current[m][g]},y);n.current[m][g]=[w,S]};u.useEffect(()=>{const m=n.current;return()=>{Object.entries(m).forEach(([g,y])=>{Object.keys(y).forEach(v=>{const[S]=m[g][v];clearTimeout(S),delete m[g][v]})})}},[]);const s=u.useCallback((m,g)=>{if(n.current[m]){if(!g)Object.keys(n.current[m]).forEach(y=>{const[,v]=n.current[m][y];v()});else if(n.current[m][g]){const[,y]=n.current[m][g];y()}}},[]),a=u.useCallback(m=>{const{id:g,field:y,debounceMs:v}=m;return new Promise(S=>{i(g,y,v,()=>mt(void 0,null,function*(){const w=t.editMode===gs.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(g,y)===rn.Edit){const C=yield w(m);S(C)}}))})},[e,t.editMode]),c=u.useCallback((m,g)=>t.editMode===gs.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(m,g):e.current.getRowWithUpdatedValuesFromRowEditing(m),[e,t.editMode]),d=u.useCallback((m,g)=>{var y,v;return(y=(v=jr(e.current.state)[m])==null?void 0:v[g])!=null?y:null},[e]),p={isCellEditable:o,setEditCellValue:a,getRowWithUpdatedValues:c,unstable_getEditCellMeta:d},h={runPendingEditCellValueMutation:s};Lt(e,p,"public"),Lt(e,h,"private")},Khe=(e,t,n)=>(n.current.caches.rows=Fm({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),E({},e,{rows:BA({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),qhe=(e,t)=>{const n=Lr(e,"useGridRows"),r=ac(e,t),o=u.useRef(Date.now()),i=u.useRef(null),s=u.useCallback(O=>{const D=$l(e)[O];if(D)return D;const B=e.current.getRowNode(O);return B&&sp(B)?{[Om]:O}:null},[e]),a=u.useMemo(()=>r.rows.reduce((O,{id:D},B)=>(O[D]=B,O),{}),[r.rows]),c=u.useCallback(({cache:O,throttle:D})=>{const B=()=>{i.current=null,o.current=Date.now(),e.current.setState(F=>E({},F,{rows:BA({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:Ri(e),previousTreeDepths:yR(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(i.current&&(clearTimeout(i.current),i.current=null),e.current.caches.rows=O,!D){B();return}const M=t.throttleRowsMs-(Date.now()-o.current);if(M>0){i.current=setTimeout(B,M);return}B()},[t.throttleRowsMs,t.rowCount,t.loading,e]),d=u.useCallback(O=>{n.debug(`Updating all rows, new length ${O.length}`);const D=Fm({rows:O,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),B=e.current.caches.rows;D.rowsBeforePartialUpdates=B.rowsBeforePartialUpdates,c({cache:D,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,c,e]),p=u.useCallback(O=>{if(t.signature===ds.DataGrid&&O.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
|
|
339
|
-
`));const D=[];O.forEach(M=>{const F=Og(M,t.getRowId,"A row was provided without id when calling updateRows():"),z=e.current.getRowNode(F);if((z==null?void 0:z.type)==="pinnedRow"){const V=e.current.caches.pinnedRows,A=V.idLookup[F];A&&(V.idLookup[F]=E({},A,M))}else D.push(M)});const B=Vae({updates:D,getRowId:t.getRowId,previousCache:e.current.caches.rows});c({cache:B,throttle:!0})},[t.signature,t.getRowId,c,e]),h=u.useCallback(()=>{const O=lm(e),D=$l(e);return new Map(O.map(B=>{var M;return[B,(M=D[B])!=null?M:{}]}))},[e]),m=u.useCallback(()=>gy(e),[e]),g=u.useCallback(()=>lm(e),[e]),y=u.useCallback(O=>a[O],[a]),v=u.useCallback((O,D)=>{const B=e.current.getRowNode(O);if(!B)throw new Error(`MUI: No row with id #${O} found`);if(B.type!=="group")throw new Error("MUI: Only group nodes can be expanded or collapsed");const M=E({},B,{childrenExpanded:D});e.current.setState(F=>E({},F,{rows:E({},F.rows,{tree:E({},F.rows.tree,{[O]:M})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",M)},[e]),S=u.useCallback(O=>{var D;return(D=Ri(e)[O])!=null?D:null},[e]),w=u.useCallback(({skipAutoGeneratedRows:O=!0,groupId:D,applySorting:B,applyFiltering:M})=>{const F=Ri(e);let z;if(B){const V=F[D];if(!V)return[];const A=qS(e);z=[];const H=A.findIndex(W=>W===D)+1;for(let W=H;W<A.length&&F[A[W]].depth>V.depth;W+=1){const K=A[W];(!O||!sp(F[K]))&&z.push(K)}}else z=JS(F,D,O);if(M){const V=OA(e);z=z.filter(A=>V[A]!==!1)}return z},[e]),C=u.useCallback((O,D)=>{const B=e.current.getRowNode(O);if(!B)throw new Error(`MUI: No row with id #${O} found`);if(B.parent!==Hr)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if(B.type!=="leaf")throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState(M=>{const F=Ri(M,e.current.instanceId)[Hr],z=F.children,V=z.findIndex(H=>H===O);if(V===-1||V===D)return M;n.debug(`Moving row ${O} to index ${D}`);const A=[...z];return A.splice(D,0,A.splice(V,1)[0]),E({},M,{rows:E({},M.rows,{tree:E({},M.rows.tree,{[Hr]:E({},F,{children:A})})})})}),e.current.publishEvent("rowsSet")},[e,n]),x=u.useCallback((O,D)=>{if(t.signature===ds.DataGrid&&D.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
|
|
340
|
-
`));if(D.length===0)return;if(vy(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const M=E({},Ri(e)),F=E({},$l(e)),z=E({},Rg(e)),V=M[Hr],A=[...V.children];for(let W=0;W<D.length;W+=1){const K=D[W],Y=Og(K,t.getRowId,"A row was provided without id when calling replaceRows()."),[ie]=A.splice(O+W,1,Y);delete F[ie],delete z[ie],delete M[ie];const re={id:Y,depth:0,parent:Hr,type:"leaf",groupingKey:null};F[Y]=K,z[Y]=Y,M[Y]=re}M[Hr]=E({},V,{children:A});const H=A.filter(W=>M[W].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=F,e.current.caches.rows.dataRowIdToIdLookup=z,e.current.setState(W=>E({},W,{rows:E({},W.rows,{dataRowIdToModelLookup:F,dataRowIdToIdLookup:z,dataRowIds:H,tree:M})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),P={getRow:s,getRowModels:h,getRowsCount:m,getAllRowIds:g,setRows:d,updateRows:p,getRowNode:S,getRowIndexRelativeToVisibleRows:y,unstable_replaceRows:x},_={setRowIndex:C,setRowChildrenExpansion:v,getRowGroupChildren:w},k=u.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let O;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?O=E({},e.current.caches.rows,{updates:{type:"full",rows:lm(e)}}):O=Fm({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),c({cache:O,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,c]),I=u.useCallback(O=>{O==="rowTreeCreation"&&k()},[k]),R=u.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==Pae(e)&&k()},[e,k]);ot(e,"activeStrategyProcessorChange",I),ot(e,"strategyAvailabilityChange",R);const L=u.useCallback(()=>{e.current.setState(O=>{const D=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:Ri(O,e.current.instanceId),treeDepths:yR(O,e.current.instanceId),dataRowIds:lm(O,e.current.instanceId),dataRowIdToModelLookup:$l(O,e.current.instanceId),dataRowIdToIdLookup:Rg(O,e.current.instanceId)});return E({},O,{rows:E({},O.rows,D,{totalTopLevelRowCount:DA({tree:D.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);lE(e,"hydrateRows",L),Lt(e,P,"public"),Lt(e,_,t.signature===ds.DataGrid?"private":"public"),u.useEffect(()=>()=>{i.current!==null&&clearTimeout(i.current)},[]);const N=u.useRef(!0);u.useEffect(()=>{if(N.current){N.current=!1;return}const O=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,D=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,B=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(O){D||(e.current.setState(M=>E({},M,{rows:E({},M.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),B||(e.current.setState(M=>E({},M,{rows:E({},M.rows,{totalRowCount:Math.max(t.rowCount||0,M.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,M.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),c({cache:Fm({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1})},[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])},Yhe=e=>{const t={[Hr]:E({},jae(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:Hr,type:"leaf",groupingKey:null}}return{groupingName:Ja,tree:t,treeDepths:{0:e.length},dataRowIds:e}},Qhe=({previousTree:e,actions:t})=>{const n=E({},e),r={};for(let s=0;s<t.remove.length;s+=1){const a=t.remove[s];r[a]=!0,delete n[a]}for(let s=0;s<t.insert.length;s+=1){const a=t.insert[s];n[a]={id:a,depth:0,parent:Hr,type:"leaf",groupingKey:null}}const o=n[Hr];let i=[...o.children,...t.insert];return Object.values(r).length&&(i=i.filter(s=>!r[s])),n[Hr]=E({},o,{children:i}),{groupingName:Ja,tree:n,treeDepths:{0:i.length},dataRowIds:i}},Xhe=e=>e.updates.type==="full"?Yhe(e.updates.rows):Qhe({previousTree:e.previousTree,actions:e.updates.actions}),Jhe=e=>{Bg(e,Ja,"rowTreeCreation",Xhe)},k4=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],Zhe=(e,t)=>{var n;return E({},e,{rowSelection:t.rowSelection?(n=k4(t.rowSelectionModel))!=null?n:[]:[]})},eme=(e,t)=>{const n=Lr(e,"useGridSelection"),r=M=>(...F)=>{t.rowSelection&&M(...F)},o=u.useMemo(()=>k4(t.rowSelectionModel,ei(e.current.state)),[e,t.rowSelectionModel]),i=u.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:ei,changeEvent:"rowSelectionChange"});const{checkboxSelection:s,disableMultipleRowSelection:a,disableRowSelectionOnClick:c,isRowSelectable:d}=t,p=!a||s,h=ac(e,t),m=u.useCallback(M=>{var F;let z=M;const V=(F=i.current)!=null?F:M,A=e.current.isRowSelected(M);if(A){const H=If(e),W=H.findIndex(Y=>Y===V),K=H.findIndex(Y=>Y===z);if(W===K)return;W>K?z=H[K+1]:z=H[K-1]}i.current=M,e.current.selectRowRange({startId:V,endId:z},!A)},[e]),g=u.useCallback(M=>{if(t.signature===ds.DataGrid&&!t.checkboxSelection&&Array.isArray(M)&&M.length>1)throw new Error(["MUI: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(`
|
|
341
|
-
`));ei(e.current.state)!==M&&(n.debug("Setting selection model"),e.current.setState(z=>E({},z,{rowSelection:t.rowSelection?M:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),y=u.useCallback(M=>ei(e.current.state).includes(M),[e]),v=u.useCallback(M=>{if(d&&!d(e.current.getRowParams(M)))return!1;const F=e.current.getRowNode(M);return!((F==null?void 0:F.type)==="footer"||(F==null?void 0:F.type)==="pinnedRow")},[e,d]),S=u.useCallback(()=>que(e),[e]),w=u.useCallback((M,F=!0,z=!1)=>{if(e.current.isRowSelectable(M))if(i.current=M,z)n.debug(`Setting selection for row ${M}`),e.current.setRowSelectionModel(F?[M]:[]);else{n.debug(`Toggling selection for row ${M}`);const A=ei(e.current.state).filter(W=>W!==M);F&&A.push(M),(A.length<2||p)&&e.current.setRowSelectionModel(A)}},[e,n,p]),C=u.useCallback((M,F=!0,z=!1)=>{n.debug("Setting selection for several rows");const V=M.filter(W=>e.current.isRowSelectable(W));let A;if(z)A=F?V:[];else{const W=E({},Ng(e));V.forEach(K=>{F?W[K]=K:delete W[K]}),A=Object.values(W)}(A.length<2||p)&&e.current.setRowSelectionModel(A)},[e,n,p]),x=u.useCallback(({startId:M,endId:F},z=!0,V=!1)=>{if(!e.current.getRow(M)||!e.current.getRow(F))return;n.debug(`Expanding selection from row ${M} to row ${F}`);const A=If(e),H=A.indexOf(M),W=A.indexOf(F),[K,Y]=H>W?[W,H]:[H,W],ie=A.slice(K,Y+1);e.current.selectRows(ie,z,V)},[e,n]),P={selectRow:w,setRowSelectionModel:g,getSelectedRows:S,isRowSelected:y,isRowSelectable:v},_={selectRows:C,selectRowRange:x};Lt(e,P,"public"),Lt(e,_,t.signature===ds.DataGrid?"private":"public");const k=u.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const M=ei(e.current.state),F=$l(e),z=E({},Ng(e));let V=!1;M.forEach(A=>{F[A]||(delete z[A],V=!0)}),V&&e.current.setRowSelectionModel(Object.values(z))},[e,t.keepNonExistentRowsSelected]),I=u.useCallback((M,F)=>{const z=F.metaKey||F.ctrlKey,V=!s&&!z&&!Mce(F),A=!p||V,H=e.current.isRowSelected(M);A?e.current.selectRow(M,V?!0:!H,!0):e.current.selectRow(M,!H,!1)},[e,p,s]),R=u.useCallback((M,F)=>{var z;if(c)return;const V=(z=F.target.closest(`.${X.cell}`))==null?void 0:z.getAttribute("data-field");V===Dp.field||V===iE||V&&e.current.getColumn(V).type===Sy||e.current.getRowNode(M.id).type==="pinnedRow"||(F.shiftKey&&(p||s)?m(M.id):I(M.id,F))},[c,p,s,e,m,I]),L=u.useCallback((M,F)=>{if(p&&F.shiftKey){var z;(z=window.getSelection())==null||z.removeAllRanges()}},[p]),N=u.useCallback((M,F)=>{F.nativeEvent.shiftKey?m(M.id):e.current.selectRow(M.id,M.value)},[e,m]),O=u.useCallback(M=>{const z=t.checkboxSelectionVisibleOnly&&t.pagination?o4(e):If(e);e.current.selectRows(z,M.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),D=u.useCallback((M,F)=>{if(e.current.getCellMode(M.id,M.field)!==rn.Edit&&F.currentTarget.contains(F.target)){if(Ag(F.key)&&F.shiftKey){const z=ni(e);if(z&&z.id!==M.id){F.preventDefault();const V=e.current.isRowSelected(z.id);if(!p){e.current.selectRow(z.id,!V,!0);return}const A=e.current.getRowIndexRelativeToVisibleRows(z.id),H=e.current.getRowIndexRelativeToVisibleRows(M.id);let W,K;A>H?V?(W=H,K=A-1):(W=H,K=A):V?(W=A+1,K=H):(W=A,K=H);const Y=h.rows.slice(W,K+1).map(ie=>ie.id);e.current.selectRows(Y,!V);return}}if(F.key===" "&&F.shiftKey){F.preventDefault(),I(M.id,F);return}F.key==="a"&&(F.ctrlKey||F.metaKey)&&(F.preventDefault(),C(e.current.getAllRowIds(),!0))}},[e,I,C,h.rows,p]);ot(e,"sortedRowsSet",r(k)),ot(e,"rowClick",r(R)),ot(e,"rowSelectionCheckboxChange",r(N)),ot(e,"headerSelectionCheckboxChange",O),ot(e,"cellMouseDown",r(L)),ot(e,"cellKeyDown",r(D)),u.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),u.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const B=o!=null;u.useEffect(()=>{if(B||!t.rowSelection)return;const M=ei(e.current.state);if(v){const F=M.filter(z=>v(z));F.length<M.length&&e.current.setRowSelectionModel(F)}},[e,v,B,t.rowSelection]),u.useEffect(()=>{if(!t.rowSelection||B)return;const M=ei(e.current.state);!p&&M.length>1&&e.current.setRowSelectionModel([])},[e,p,s,B,t.rowSelection])},tme={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"},nme=e=>{const{classes:t}=e;return u.useMemo(()=>Me({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Bt,t),[t])},rme=(e,t)=>{const n={classes:t.classes},r=nme(n),o=u.useCallback(i=>{const s=E({},Dp,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),a=t.checkboxSelection,c=i.lookup[gl]!=null;return a&&!c?(i.lookup[gl]=s,i.orderedFields=[gl,...i.orderedFields]):!a&&c?(delete i.lookup[gl],i.orderedFields=i.orderedFields.filter(d=>d!==gl)):a&&c&&(i.lookup[gl]=E({},s,i.lookup[gl])),i},[e,r,t.checkboxSelection]);or(e,"hydrateColumns",o)},ome=(e,t)=>{var n,r,o,i;const s=(n=(r=t.sortModel)!=null?r:(o=t.initialState)==null||(i=o.sorting)==null?void 0:i.sortModel)!=null?n:[];return E({},e,{sorting:{sortModel:i4(s,t.disableMultipleColumnsSorting),sortedRows:[]}})},ime=(e,t)=>{var n,r;const o=Lr(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:Zo,changeEvent:"sortModelChange"});const i=u.useCallback((I,R)=>{const L=Zo(e),N=L.findIndex(D=>D.field===I);let O=[...L];return N>-1?R?O.splice(N,1,R):O.splice(N,1):O=[...L,R],O},[e]),s=u.useCallback((I,R)=>{var L;const O=Zo(e).find(B=>B.field===I.field);if(O){var D;const B=R===void 0?SR((D=I.sortingOrder)!=null?D:t.sortingOrder,O.sort):R;return B==null?void 0:E({},O,{sort:B})}return{field:I.field,sort:R===void 0?SR((L=I.sortingOrder)!=null?L:t.sortingOrder):R}},[e,t.sortingOrder]),a=u.useCallback((I,R)=>R==null||R.sortable===!1?I:(R.sortingOrder||t.sortingOrder).some(N=>!!N)?[...I,"columnMenuSortItem"]:I,[t.sortingOrder]),c=u.useCallback(()=>{e.current.setState(I=>{if(t.sortingMode==="server")return o.debug("Skipping sorting rows as sortingMode = server"),E({},I,{sorting:E({},I.sorting,{sortedRows:JS(Ri(e),Hr,!1)})});const R=Zo(I,e.current.instanceId),L=Zue(R,e),N=e.current.applyStrategyProcessor("sorting",{sortRowList:L});return E({},I,{sorting:E({},I.sorting,{sortedRows:N})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,o,t.sortingMode]),d=u.useCallback(I=>{Zo(e)!==I&&(o.debug("Setting sort model"),e.current.setState(xR(I,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,o,t.disableMultipleColumnsSorting]),p=u.useCallback((I,R,L)=>{if(!I.sortable)return;const N=s(I,R);let O;!L||t.disableMultipleColumnsSorting?O=N?[N]:[]:O=i(I.field,N),e.current.setSortModel(O)},[e,i,s,t.disableMultipleColumnsSorting]),h=u.useCallback(()=>Zo(e),[e]),m=u.useCallback(()=>YS(e).map(R=>R.model),[e]),g=u.useCallback(()=>qS(e),[e]),y=u.useCallback(I=>e.current.getSortedRowIds()[I],[e]);Lt(e,{getSortModel:h,getSortedRows:m,getSortedRowIds:g,getRowIdFromRowIndex:y,setSortModel:d,sortColumn:p,applySorting:c},"public");const S=u.useCallback((I,R)=>{var L,N;const O=Zo(e);return!R.exportOnlyDirtyModels||t.sortModel!=null||((L=t.initialState)==null||(N=L.sorting)==null?void 0:N.sortModel)!=null||O.length>0?E({},I,{sorting:{sortModel:O}}):I},[e,t.sortModel,(n=t.initialState)==null||(r=n.sorting)==null?void 0:r.sortModel]),w=u.useCallback((I,R)=>{var L;const N=(L=R.stateToRestore.sorting)==null?void 0:L.sortModel;return N==null?I:(e.current.setState(xR(N,t.disableMultipleColumnsSorting)),E({},I,{callbacks:[...I.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),C=u.useCallback(I=>{const R=Ri(e),L=R[Hr],N=I.sortRowList?I.sortRowList(L.children.map(O=>R[O])):[...L.children];return L.footerId!=null&&N.push(L.footerId),N},[e]);or(e,"exportState",S),or(e,"restoreState",w),Bg(e,Ja,"sorting",C);const x=u.useCallback(({colDef:I},R)=>{const L=R.shiftKey||R.metaKey||R.ctrlKey;p(I,void 0,L)},[p]),P=u.useCallback(({colDef:I},R)=>{kce(R.key)&&!R.ctrlKey&&!R.metaKey&&p(I,void 0,R.shiftKey)},[p]),_=u.useCallback(()=>{const I=Zo(e),R=id(e);if(I.length>0){const L=I.filter(N=>R[N.field]);L.length<I.length&&e.current.setSortModel(L)}},[e]),k=u.useCallback(I=>{I==="sorting"&&e.current.applySorting()},[e]);or(e,"columnMenu",a),ot(e,"columnHeaderClick",x),ot(e,"columnHeaderKeyDown",P),ot(e,"rowsSet",e.current.applySorting),ot(e,"columnsChange",_),ot(e,"activeStrategyProcessorChange",k),Lp(()=>{e.current.applySorting()}),ln(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function GR(e){const{clientHeight:t,scrollTop:n,offsetHeight:r,offsetTop:o}=e,i=o+r;if(r>t)return o;if(i-t>n)return i-t;if(o<n)return o}const sme=(e,t)=>{const n=sr(),r=Lr(e,"useGridScroll"),o=e.current.columnHeadersElementRef,i=e.current.virtualScrollerRef,s=Ge(e,ia),a=u.useCallback(h=>{const m=gy(e),g=Tr(e);if(!(h.rowIndex==null)&&m===0||g.length===0)return!1;r.debug(`Scrolling to cell at row ${h.rowIndex}, col: ${h.colIndex} `);let v={};if(h.colIndex!=null){const x=Hu(e);let P;if(typeof h.rowIndex!="undefined"){var S;const _=(S=s[h.rowIndex])==null?void 0:S.id,k=e.current.unstable_getCellColSpanInfo(_,h.colIndex);k&&!k.spannedByColSpan&&(P=k.cellProps.width)}typeof P=="undefined"&&(P=g[h.colIndex].computedWidth),v.left=GR({clientHeight:i.current.clientWidth,scrollTop:Math.abs(i.current.scrollLeft),offsetHeight:P,offsetTop:x[h.colIndex]})}if(h.rowIndex!=null){var w,C;const x=cp(e.current.state),P=Uue(e),_=Wue(e),k=t.pagination?h.rowIndex-P*_:h.rowIndex,I=x.positions[k+1]?x.positions[k+1]-x.positions[k]:x.currentPageTotalHeight-x.positions[k],R=((w=i.current.querySelector(`.${X["pinnedRows--top"]}`))==null?void 0:w.clientHeight)||0,L=((C=i.current.querySelector(`.${X["pinnedRows--bottom"]}`))==null?void 0:C.clientHeight)||0;v.top=GR({clientHeight:i.current.clientHeight-R-L,scrollTop:i.current.scrollTop,offsetHeight:I,offsetTop:x.positions[k]})}return v=e.current.unstable_applyPipeProcessors("scrollToIndexes",v,h),typeof v.left!==void 0||typeof v.top!==void 0?(e.current.scroll(v),!0):!1},[r,e,i,t.pagination,s]),c=u.useCallback(h=>{if(i.current&&h.left!=null&&o.current){const m=n.direction==="rtl"?-1:1;o.current.scrollLeft=h.left,i.current.scrollLeft=m*h.left,r.debug(`Scrolling left: ${h.left}`)}i.current&&h.top!=null&&(i.current.scrollTop=h.top,r.debug(`Scrolling top: ${h.top}`)),r.debug("Scrolling, updating container, and viewport")},[i,n.direction,o,r]),d=u.useCallback(()=>i!=null&&i.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0},[i]);Lt(e,{scroll:c,scrollToIndexes:a,getScrollPosition:d},"public")};function lme(e,t){xn(e,"columnHeaderClick",t.onColumnHeaderClick),xn(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),xn(e,"columnHeaderOver",t.onColumnHeaderOver),xn(e,"columnHeaderOut",t.onColumnHeaderOut),xn(e,"columnHeaderEnter",t.onColumnHeaderEnter),xn(e,"columnHeaderLeave",t.onColumnHeaderLeave),xn(e,"cellClick",t.onCellClick),xn(e,"cellDoubleClick",t.onCellDoubleClick),xn(e,"cellKeyDown",t.onCellKeyDown),xn(e,"preferencePanelClose",t.onPreferencePanelClose),xn(e,"preferencePanelOpen",t.onPreferencePanelOpen),xn(e,"menuOpen",t.onMenuOpen),xn(e,"menuClose",t.onMenuClose),xn(e,"rowDoubleClick",t.onRowDoubleClick),xn(e,"rowClick",t.onRowClick),xn(e,"stateChange",t.onStateChange)}const ame=({content:e,container:t,scrollBarSize:n})=>{const r=e.width>t.width,o=e.height>t.height;let i=!1,s=!1;return(r||o)&&(i=r,s=e.height+(i?n:0)>t.height,s&&(i=e.width+n>t.width)),{hasScrollX:i,hasScrollY:s}};function cme(e,t){const n=Lr(e,"useResizeContainer"),r=u.useRef(!1),o=u.useRef(null),i=u.useRef(null),s=Ge(e,cp),a=Ge(e,ld),c=Math.floor(t.rowHeight*a),d=aE(e,t.columnHeaderHeight),p=u.useCallback(()=>{var I;const R=(I=e.current.rootElementRef)==null?void 0:I.current,L=KS(e),N=zA(e);if(!o.current)return;let O;if(t.scrollbarSize!=null)O=t.scrollbarSize;else if(!L||!R)O=0;else{const H=vn(R).createElement("div");H.style.width="99px",H.style.height="99px",H.style.position="absolute",H.style.overflow="scroll",H.className="scrollDiv",R.appendChild(H),O=H.offsetWidth-H.clientWidth,R.removeChild(H)}let D,B,M;if(t.autoHeight)M=!1,B=Math.round(L)>Math.round(o.current.width),D={width:o.current.width,height:s.currentPageTotalHeight+(B?O:0)};else{D={width:o.current.width,height:o.current.height-d};const A=ame({content:{width:Math.round(L),height:s.currentPageTotalHeight},container:{width:Math.round(D.width),height:D.height-N.top-N.bottom},scrollBarSize:O});M=A.hasScrollY,B=A.hasScrollX}const F={width:D.width-(M?O:0),height:D.height-(B?O:0)},z={viewportOuterSize:D,viewportInnerSize:F,hasScrollX:B,hasScrollY:M,scrollBarSize:O},V=i.current;i.current=z,(z.viewportInnerSize.width!==(V==null?void 0:V.viewportInnerSize.width)||z.viewportInnerSize.height!==(V==null?void 0:V.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",z.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,s.currentPageTotalHeight,d]),[h,m]=u.useState(),g=u.useMemo(()=>Ws(m,60),[]),y=u.useRef();ln(()=>{h&&(p(),e.current.publishEvent("debouncedResize",o.current))},[e,h,p]);const v=u.useCallback(()=>{e.current.computeSizeAndPublishResizeEvent()},[e]),S=u.useCallback(()=>i.current,[]),w=u.useCallback(()=>{const I=e.current.getRootDimensions();if(!I)return 0;const R=oE(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const N=e.current.getRenderContext(),O=N.lastRowIndex-N.firstRowIndex;return Math.min(O-1,R.rows.length)}const L=Math.floor(I.viewportInnerSize.height/c);return Math.min(L,R.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,c]),C=u.useCallback(()=>{var I,R,L;const N=(I=e.current.mainElementRef)==null?void 0:I.current;if(!N)return;const D=Oo(N).getComputedStyle(N),B=parseFloat(D.height)||0,M=parseFloat(D.width)||0,F=B!==((R=y.current)==null?void 0:R.height),z=M!==((L=y.current)==null?void 0:L.width);if(!y.current||F||z){const V={width:M,height:B};e.current.publishEvent("resize",V),y.current=V}},[e]),x={resize:v,getRootDimensions:S},P={getViewportPageSize:w,updateGridDimensionsRef:p,computeSizeAndPublishResizeEvent:C};Lt(e,x,"public"),Lt(e,P,"private");const _=u.useRef(!0),k=u.useCallback(I=>{o.current=I;const R=/jsdom/.test(window.navigator.userAgent);if(I.height===0&&!r.current&&!t.autoHeight&&!R&&(n.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
|
|
342
|
-
`)),r.current=!0),I.width===0&&!r.current&&!R&&(n.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
|
|
343
|
-
`)),r.current=!0),_.current){m(I),_.current=!1;return}g(I)},[t.autoHeight,g,n]);ln(()=>p(),[p]),xn(e,"sortedRowsSet",p),xn(e,"paginationModelChange",p),xn(e,"columnsChange",p),ot(e,"resize",k),xn(e,"debouncedResize",t.onResize)}const ume=["style"],dme=["style"];function bu(e,t,n=0,r=t.length){if(t.length<=0)return-1;if(n>=r)return n;const o=n+Math.floor((r-n)/2),i=t[o];return e<=i?bu(e,t,n,o):bu(e,t,o+1,r)}function fme(e,t,n){let r=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=r,r*=2;return bu(e,t,Math.floor(n/2),Math.min(n,t.length))}const Cl=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[Vu(e-n,r,o),Vu(t+n,r,o)],_4=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,pme={maxSize:3},hme=e=>{var t,n;const r=lc(),o=et(),i=Ge(r,Tr),{ref:s,disableVirtualization:a,onRenderZonePositioning:c,renderZoneMinColumnIndex:d=0,renderZoneMaxColumnIndex:p=i.length,getRowProps:h}=e,m=sr(),g=Ge(r,Hu),y=Ge(r,KS),v=Ge(r,ni),S=Ge(r,Tg),w=Ge(r,cp),C=Ge(r,Ng),x=ac(r,o),P=u.useRef(null),_=u.useRef(null),k=Vt(s,_),[I,R]=u.useState(null),L=u.useRef(I),N=u.useRef({top:0,left:0}),[O,D]=u.useState({width:null,height:null}),B=u.useRef(y),M=u.useRef(Object.create(null)),F=u.useRef(),z=u.useRef(),V=u.useRef(GS((ee,_e,Re)=>ee.slice(_e,Re),pme)),A=u.useCallback(ee=>{var _e,Re;const Se=r.current.getLastMeasuredRowIndex();let pe=Se===1/0;(_e=x.range)!=null&&_e.lastRowIndex&&!pe&&(pe=Se>=x.range.lastRowIndex);const be=Vu(Se-(((Re=x.range)==null?void 0:Re.firstRowIndex)||0),0,w.positions.length);return pe||w.positions[be]>=ee?bu(ee,w.positions):fme(ee,w.positions,be)},[r,(t=x.range)==null?void 0:t.firstRowIndex,(n=x.range)==null?void 0:n.lastRowIndex,w.positions]),H=u.useCallback(()=>{if(a)return{firstRowIndex:0,lastRowIndex:x.rows.length,firstColumnIndex:0,lastColumnIndex:i.length};const{top:ee,left:_e}=N.current,Re=Math.min(A(ee),w.positions.length-1),Se=o.autoHeight?Re+x.rows.length:A(ee+O.height);let pe=!1,be=0,te=g.length;const[Oe,Ye]=Cl({firstIndex:Re,lastIndex:Se,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:o.rowBuffer});for(let Ke=Oe;Ke<Ye&&!pe;Ke+=1){const Ue=x.rows[Ke];pe=r.current.rowHasAutoHeight(Ue.id)}return pe||(be=bu(Math.abs(_e),g),te=bu(Math.abs(_e)+O.width,g)),{firstRowIndex:Re,lastRowIndex:Se,firstColumnIndex:be,lastColumnIndex:te}},[a,A,w.positions.length,o.autoHeight,o.rowBuffer,x.rows,g,i.length,r,O]);ln(()=>{a?P.current.style.transform="translate3d(0px, 0px, 0px)":(_.current.scrollLeft=0,_.current.scrollTop=0)},[a]),ln(()=>{D({width:_.current.clientWidth,height:_.current.clientHeight})},[w.currentPageTotalHeight]);const W=u.useCallback(()=>{_.current&&D({width:_.current.clientWidth,height:_.current.clientHeight})},[]);ot(r,"debouncedResize",W);const K=u.useCallback(ee=>{const[_e,Re]=Cl({firstIndex:ee.firstRowIndex,lastIndex:ee.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:o.rowBuffer}),[Se]=Cl({firstIndex:ee.firstColumnIndex,lastIndex:ee.lastColumnIndex,minFirstIndex:d,maxLastIndex:p,buffer:o.columnBuffer}),pe=Uw({firstColumnToRender:Se,apiRef:r,firstRowToRender:_e,lastRowToRender:Re,visibleRows:x.rows}),be=m.direction==="ltr"?1:-1,te=cp(r.current.state).positions[_e],Oe=be*Hu(r)[pe];P.current.style.transform=`translate3d(${Oe}px, ${te}px, 0px)`,typeof c=="function"&&c({top:te,left:Oe})},[r,x.rows,c,d,p,o.columnBuffer,o.rowBuffer,m.direction]),Y=u.useCallback(ee=>{if(L.current&&_4(ee,L.current)){K(ee);return}R(ee),K(ee);const[_e,Re]=Cl({firstIndex:ee.firstRowIndex,lastIndex:ee.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:o.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:_e,lastRowToRender:Re}),L.current=ee},[r,R,L,x.rows.length,o.rowBuffer,K]);ln(()=>{if(O.width==null)return;const ee=H();Y(ee);const{top:_e,left:Re}=N.current,Se={top:_e,left:Re,renderContext:ee};r.current.publishEvent("scrollPositionChange",Se)},[r,H,O.width,Y]);const ie=Pn(ee=>{const{scrollTop:_e,scrollLeft:Re}=ee.currentTarget;if(N.current.top=_e,N.current.left=Re,!L.current||_e<0||m.direction==="ltr"&&Re<0||m.direction==="rtl"&&Re>0)return;const Se=a?L.current:H(),pe=Math.abs(Se.firstRowIndex-L.current.firstRowIndex),be=Math.abs(Se.lastRowIndex-L.current.lastRowIndex),te=Math.abs(Se.firstColumnIndex-L.current.firstColumnIndex),Oe=Math.abs(Se.lastColumnIndex-L.current.lastColumnIndex),Ye=pe>=o.rowThreshold||be>=o.rowThreshold||te>=o.columnThreshold||Oe>=o.columnThreshold||B.current!==y;r.current.publishEvent("scrollPositionChange",{top:_e,left:Re,renderContext:Ye?Se:L.current},ee),Ye&&(Yu.flushSync(()=>{Y(Se)}),B.current=y)}),re=Pn(ee=>{r.current.publishEvent("virtualScrollerWheel",{},ee)}),de=Pn(ee=>{r.current.publishEvent("virtualScrollerTouchMove",{},ee)}),se=(ee={renderContext:I})=>{var _e;const{onRowRender:Re,renderContext:Se,minFirstColumn:pe=d,maxLastColumn:be=p,availableSpace:te=O.width,rowIndexOffset:Oe=0,position:Ye="center"}=ee;if(!Se||te==null)return null;const Ke=a?0:o.rowBuffer,Ue=a?0:o.columnBuffer,[De,dt]=Cl({firstIndex:Se.firstRowIndex,lastIndex:Se.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:Ke}),vt=[];if(ee.rows)ee.rows.forEach(nt=>{vt.push(nt),r.current.calculateColSpan({rowId:nt.id,minFirstColumn:pe,maxLastColumn:be,columns:i})});else{if(!x.range)return null;for(let nt=De;nt<dt;nt+=1){const ht=x.rows[nt];vt.push(ht),r.current.calculateColSpan({rowId:ht.id,minFirstColumn:pe,maxLastColumn:be,columns:i})}}const[ct,Pt]=Cl({firstIndex:Se.firstColumnIndex,lastIndex:Se.lastColumnIndex,minFirstIndex:pe,maxLastIndex:be,buffer:Ue}),yt=Uw({firstColumnToRender:ct,apiRef:r,firstRowToRender:De,lastRowToRender:dt,visibleRows:x.rows}),Ae=V.current(i,yt,Pt),Le=((_e=o.slotProps)==null?void 0:_e.row)||{},{style:Be}=Le,Ze=ne(Le,ume);(F.current!==h||z.current!==Be)&&(M.current=Object.create(null));const Fe=[];for(let nt=0;nt<vt.length;nt+=1){var Ve;const{id:ht,model:Zt}=vt[nt],kn=De+nt===x.rows.length-1,On=r.current.rowHasAutoHeight(ht)?"auto":r.current.unstable_getRowHeight(ht);let Xn;C[ht]==null?Xn=!1:Xn=r.current.isRowSelectable(ht),Re&&Re(ht);const lr=v!==null&&v.id===ht?v.field:null;let ar=null;S!==null&&S.id===ht&&(ar=r.current.getCellParams(ht,S.field).cellMode==="view"?S.field:null);const bn=typeof h=="function"&&h(ht,Zt)||{},{style:en}=bn,jn=ne(bn,dme);if(!M.current[ht]){const Vo=E({},en,Be);M.current[ht]=Vo}Fe.push(T.jsx(o.slots.row,E({row:Zt,rowId:ht,rowHeight:On,focusedCell:lr,tabbableCell:ar,renderedColumns:Ae,visibleColumns:i,firstColumnToRender:yt,lastColumnToRender:Pt,selected:Xn,index:Oe+((x==null||(Ve=x.range)==null?void 0:Ve.firstRowIndex)||0)+De+nt,containerWidth:te,isLastVisible:kn,position:Ye},jn,Ze,{style:M.current[ht]}),ht))}return F.current=h,z.current=Be,Fe},le=O.width&&y>=O.width,ke=u.useMemo(()=>{const ee=Math.max(w.currentPageTotalHeight,1);let _e=!1;_!=null&&_.current&&ee<=(_==null?void 0:_.current.clientHeight)&&(_e=!0);const Re={width:le?y:"auto",height:ee,minHeight:_e?"100%":"auto"};return o.autoHeight&&x.rows.length===0&&(Re.height=jA(r,o.rowHeight)),Re},[r,_,y,w.currentPageTotalHeight,le,o.autoHeight,o.rowHeight,x.rows.length]);u.useEffect(()=>{r.current.publishEvent("virtualScrollerContentSizeChange")},[r,ke]);const ve=u.useMemo(()=>{const ee={};return le||(ee.overflowX="hidden"),o.autoHeight&&(ee.overflowY="hidden"),ee},[le,o.autoHeight]),Pe=u.useCallback(()=>L.current,[]);return r.current.register("private",{getRenderContext:Pe}),{renderContext:I,updateRenderZonePosition:K,getRows:se,getRootProps:(ee={})=>E({ref:k,onScroll:ie,onWheel:re,onTouchMove:de},ee,{style:ee.style?E({},ee.style,ve):ve}),getContentProps:({style:ee}={})=>({style:ee?E({},ee,ke):ke}),getRenderZoneProps:()=>({ref:P})}},mme=e=>{const{classes:t,headerAlign:n,isDragging:r,showColumnBorder:o,groupId:i}=e;return Me({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",o&&"columnHeader--showColumnBorder",o&&"columnHeader--withRightBorder","withBorderColor",i===null?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},Bt,t)};function gme(e){var t;const{groupId:n,width:r,depth:o,maxDepth:i,fields:s,height:a,colIndex:c,hasFocus:d,tabIndex:p,isLastColumn:h}=e,m=et(),g=u.useRef(null),y=Dt(),v=Ge(y,NA),S=n?v[n]:{},{headerName:w=n!=null?n:"",description:C="",headerAlign:x=void 0}=S;let P;const _=n&&((t=v[n])==null?void 0:t.renderHeaderGroup),k=u.useMemo(()=>({groupId:n,headerName:w,description:C,depth:o,maxDepth:i,fields:s,colIndex:c,isLastColumn:h}),[n,w,C,o,i,s,c,h]);n&&_&&(P=_(k));const I=m.showColumnVerticalBorder,R=E({},e,{classes:m.classes,showColumnBorder:I,headerAlign:x,depth:o,isDragging:!1}),L=w!=null?w:n,N=on(),O=n===null?`empty-group-cell-${N}`:n,D=mme(R);u.useLayoutEffect(()=>{if(d){const V=g.current.querySelector('[tabindex="0"]')||g.current;V==null||V.focus()}},[y,d]);const B=u.useCallback(z=>V=>{V.currentTarget.contains(V.target)&&y.current.publishEvent(z,k,V)},[y,k]),M=u.useMemo(()=>({onKeyDown:B("columnGroupHeaderKeyDown"),onFocus:B("columnGroupHeaderFocus"),onBlur:B("columnGroupHeaderBlur")}),[B]),F=typeof S.headerClassName=="function"?S.headerClassName(k):S.headerClassName;return T.jsx(XA,E({ref:g,classes:D,columnMenuOpen:!1,colIndex:c,height:a,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:p,isDraggable:!1,headerComponent:P,headerClassName:F,description:C,elementId:O,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:L,"aria-colspan":s.length,"data-fields":`|-${s.join("-|-")}-|`},M))}const KR=gr("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function vme(e){return!!e.target}const yme=e=>{const{innerRef:t,minColumnIndex:n=0,visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnPositions:s,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:c,columnHeaderFocus:d,columnGroupHeaderFocus:p,densityFactor:h,headerGroupingMaxDepth:m,columnMenuState:g,columnVisibility:y,columnGroupsHeaderStructure:v,hasOtherElementInTabSequence:S}=e,w=Pp(),[C,x]=u.useState(""),[P,_]=u.useState(""),k=lc(),I=et(),R=u.useRef(null),L=Vt(t,R),[N,O]=u.useState(null),D=u.useRef(N),B=u.useRef(0),M=ac(k,I),F=aE(k,I.columnHeaderHeight),z=Math.floor(I.columnHeaderHeight*h),V=u.useCallback(ve=>{N&&ve&&_4(N,ve)||O(ve)},[N]);u.useEffect(()=>{k.current.columnHeadersContainerElementRef.current.scrollLeft=0},[k]);const A=u.useRef(GS(ihe,{equalityCheck:(ve,Pe)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(ee=>ve[ee]===Pe[ee])})),H=u.useCallback(ve=>{const[Pe,ee]=Cl({firstIndex:ve.firstRowIndex,lastIndex:ve.lastRowIndex,minFirstIndex:0,maxLastIndex:M.rows.length,buffer:I.rowBuffer}),_e=A.current({firstColumnIndex:ve.firstColumnIndex,minColumnIndex:n,columnBuffer:I.columnBuffer,firstRowToRender:Pe,lastRowToRender:ee,apiRef:k,visibleRows:M.rows}),Re=w.direction==="ltr"?1:-1,Se=_e>0?B.current-Re*s[_e]:B.current;R.current.style.transform=`translate3d(${-Se}px, 0px, 0px)`},[s,n,I.columnBuffer,k,M.rows,I.rowBuffer,w.direction]);u.useLayoutEffect(()=>{N&&H(N)},[N,H]);const W=u.useCallback(({left:ve,renderContext:Pe=null},ee)=>{var _e,Re;if(!R.current||B.current===ve&&((_e=D.current)==null?void 0:_e.firstColumnIndex)===(Pe==null?void 0:Pe.firstColumnIndex)&&((Re=D.current)==null?void 0:Re.lastColumnIndex)===(Pe==null?void 0:Pe.lastColumnIndex))return;B.current=ve;let Se=!1;Pe!==D.current||!D.current?(vme(ee)?(Yu.flushSync(()=>{V(Pe)}),Se=!0):V(Pe),D.current=Pe):Se=!0,Pe&&Se&&H(Pe)},[H,V]),K=u.useCallback(ve=>_(ve.field),[]),Y=u.useCallback(()=>_(""),[]),ie=u.useCallback(ve=>x(ve.field),[]),re=u.useCallback(()=>x(""),[]);ot(k,"columnResizeStart",K),ot(k,"columnResizeStop",Y),ot(k,"columnHeaderDragStart",ie),ot(k,"columnHeaderDragEnd",re),ot(k,"scrollPositionChange",W);const de=ve=>{const{renderContext:Pe=N,minFirstColumn:ee=n,maxLastColumn:_e=r.length}=ve||{};if(!Pe)return null;const[Re,Se]=Cl({firstIndex:Pe.firstRowIndex,lastIndex:Pe.lastRowIndex,minFirstIndex:0,maxLastIndex:M.rows.length,buffer:I.rowBuffer}),pe=A.current({firstColumnIndex:Pe.firstColumnIndex,minColumnIndex:ee,columnBuffer:I.columnBuffer,apiRef:k,firstRowToRender:Re,lastRowToRender:Se,visibleRows:M.rows}),be=Math.min(Pe.lastColumnIndex+I.columnBuffer,_e);return{renderedColumns:r.slice(pe,be),firstColumnToRender:pe,lastColumnToRender:be,minFirstColumn:ee,maxLastColumn:_e}},se=(ve,Pe={})=>{const ee=de(ve);if(ee==null)return null;const{renderedColumns:_e,firstColumnToRender:Re}=ee,Se=[];for(let pe=0;pe<_e.length;pe+=1){const be=_e[pe],te=Re+pe,Oe=te===0,Ye=a!==null&&a.field===be.field||Oe&&!S?0:-1,Ke=d!==null&&d.field===be.field,Ue=g.open&&g.field===be.field;Se.push(T.jsx($ue,E({},o[be.field],{columnMenuOpen:Ue,filterItemsCounter:i[be.field]&&i[be.field].length,headerHeight:z,isDragging:be.field===C,colDef:be,colIndex:te,isResizing:P===be.field,hasFocus:Ke,tabIndex:Ye},Pe),be.field))}return T.jsx(KR,{role:"row","aria-rowindex":m+1,ownerState:I,children:Se})},le=ve=>{if(m===0)return null;const Pe=de(ve);if(Pe==null||Pe.renderedColumns.length===0)return null;const{firstColumnToRender:ee,lastColumnToRender:_e}=Pe,Re=[],Se=[];for(let te=0;te<m;te+=1){var pe,be;const Oe=v[te],Ye=r[ee].field,Ke=(pe=k.current.unstable_getColumnGroupPath(Ye)[te])!=null?pe:null,Ue=Oe.findIndex(({groupId:Ze,columnFields:Ie})=>Ze===Ke&&Ie.includes(Ye)),De=r[_e-1].field,dt=(be=k.current.unstable_getColumnGroupPath(De)[te])!=null?be:null,vt=Oe.findIndex(({groupId:Ze,columnFields:Ie})=>Ze===dt&&Ie.includes(De)),ct=Oe.slice(Ue,vt+1).map(Ze=>E({},Ze,{columnFields:Ze.columnFields.filter(Ie=>y[Ie]!==!1)})).filter(Ze=>Ze.columnFields.length>0),Pt=ct[0].columnFields.indexOf(Ye),Ae=ct[0].columnFields.slice(0,Pt).reduce((Ze,Ie)=>{var Fe;const Ve=k.current.getColumn(Ie);return Ze+((Fe=Ve.computedWidth)!=null?Fe:0)},0);let Le=ee;const Be=ct.map(({groupId:Ze,columnFields:Ie})=>{const Fe=p!==null&&p.depth===te&&Ie.includes(p.field),Ve=c!==null&&c.depth===te&&Ie.includes(c.field)?0:-1,nt={groupId:Ze,width:Ie.reduce((ht,Zt)=>ht+k.current.getColumn(Zt).computedWidth,0),fields:Ie,colIndex:Le,hasFocus:Fe,tabIndex:Ve};return Le+=Ie.length,nt});Se.push({leftOverflow:Ae,elements:Be})}return Se.forEach((te,Oe)=>{Re.push(T.jsx(KR,{style:{height:`${z}px`,transform:`translateX(-${te.leftOverflow}px)`},role:"row","aria-rowindex":Oe+1,ownerState:I,children:te.elements.map(({groupId:Ye,width:Ke,fields:Ue,colIndex:De,hasFocus:dt,tabIndex:vt},ct)=>T.jsx(gme,{groupId:Ye,width:Ke,fields:Ue,colIndex:De,depth:Oe,isLastColumn:De===r.length-Ue.length,maxDepth:Se.length,height:z,hasFocus:dt,tabIndex:vt},ct))},Oe))}),Re},ke={minHeight:F,maxHeight:F,lineHeight:`${z}px`};return{renderContext:N,getColumnHeaders:se,getColumnsToRender:de,getColumnGroupHeaders:le,isDragging:!!C,getRootProps:(ve={})=>E({style:ke},ve),getInnerProps:()=>({ref:L,role:"rowgroup"}),headerHeight:z}},bme=["className"],wme=e=>{const{classes:t}=e;return Me({root:["columnHeaders","withBorderColor"]},Bt,t)},Cme=gr("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({position:"relative",overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",borderBottom:"1px solid",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),xme=u.forwardRef(function(t,n){const{className:r}=t,o=ne(t,bme),i=et(),s=wme(i);return T.jsx(Cme,E({ref:n,className:he(r,s.root),ownerState:i},o))}),Sme=["isDragging","className"],Eme=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return Me({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},Bt,r)},Pme=gr("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${X.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${X.columnHeaderDropZone} .${X.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${X["columnHeadersInner--scrollable"]} .${X.columnHeader}:last-child`]:{borderRight:"none"}})),Ime=u.forwardRef(function(t,n){var r,o;const{isDragging:i,className:s}=t,a=ne(t,Sme),c=Dt(),d=et(),p=E({},d,{isDragging:i,hasScrollX:(r=(o=c.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1}),h=Eme(p);return T.jsx(Pme,E({ref:n,className:he(s,h.root),ownerState:p},a))}),kme=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],_me=u.forwardRef(function(t,n){const{innerRef:r,visibleColumns:o,sortColumnLookup:i,filterColumnLookup:s,columnPositions:a,columnHeaderTabIndexState:c,columnGroupHeaderTabIndexState:d,columnHeaderFocus:p,columnGroupHeaderFocus:h,densityFactor:m,headerGroupingMaxDepth:g,columnMenuState:y,columnVisibility:v,columnGroupsHeaderStructure:S,hasOtherElementInTabSequence:w}=t,C=ne(t,kme),{isDragging:x,getRootProps:P,getInnerProps:_,getColumnHeaders:k,getColumnGroupHeaders:I}=yme({innerRef:r,visibleColumns:o,sortColumnLookup:i,filterColumnLookup:s,columnPositions:a,columnHeaderTabIndexState:c,columnGroupHeaderTabIndexState:d,columnHeaderFocus:p,columnGroupHeaderFocus:h,densityFactor:m,headerGroupingMaxDepth:g,columnMenuState:y,columnVisibility:v,columnGroupsHeaderStructure:S,hasOtherElementInTabSequence:w});return T.jsx(xme,E({ref:n},P(C),{children:T.jsxs(Ime,E({isDragging:x},_(),{children:[I(),k()]}))}))}),$me=xy(_me),Rme=u.forwardRef(function(t,n){const o=Dt().current.getLocaleText("noResultsOverlayLabel");return T.jsx(eE,E({ref:n},t,{children:o}))}),Mme=["sortingOrder"],Tme=u.memo(function(t){const{sortingOrder:n}=t,r=ne(t,Mme),o=et(),[i]=n,s=i==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return s?T.jsx(s,E({},r)):null}),Ome=["native"];function Fme(e){let{native:t}=e,n=ne(e,Ome);return t?T.jsx("option",E({},n)):T.jsx(Ur,E({},n))}const Lme={BooleanCellTrueIcon:Ede,BooleanCellFalseIcon:q1,ColumnMenuIcon:wde,OpenFilterButtonIcon:pde,FilterPanelDeleteIcon:q1,ColumnFilteredIcon:_R,ColumnSelectorIcon:mde,ColumnUnsortedIcon:Tme,ColumnSortedAscendingIcon:ER,ColumnSortedDescendingIcon:PR,ColumnResizeIcon:gde,DensityCompactIcon:vde,DensityStandardIcon:yde,DensityComfortableIcon:bde,ExportIcon:Sde,MoreActionsIcon:Pde,TreeDataCollapseIcon:kR,TreeDataExpandIcon:IR,GroupingCriteriaCollapseIcon:kR,GroupingCriteriaExpandIcon:IR,DetailPanelExpandIcon:$R,DetailPanelCollapseIcon:Cde,RowReorderIcon:RR,QuickFilterIcon:hde,QuickFilterClearIcon:q1,ColumnMenuHideIcon:Ide,ColumnMenuSortAscendingIcon:ER,ColumnMenuSortDescendingIcon:PR,ColumnMenuFilterIcon:_R,ColumnMenuManageColumnsIcon:kde,ColumnMenuClearIcon:_de,LoadIcon:xde,FilterPanelAddIcon:$R,FilterPanelRemoveAllIcon:$de,ColumnReorderIcon:RR},Ame=E({},Lme,{BaseCheckbox:nL,BaseTextField:$p,BaseFormControl:aL,BaseSelect:Ux,BaseSwitch:$L,BaseButton:hr,BaseIconButton:li,BaseInputAdornment:qa,BaseTooltip:nd,BasePopper:oc,BaseInputLabel:vL,BaseSelectOption:Fme,BaseChip:Lx}),Nme=Ame,Dme=E({},Nme,{Cell:Bw,SkeletonCell:Yce,ColumnHeaderFilterIconButton:ide,ColumnMenu:Ude,ColumnHeaders:$me,Footer:ope,Toolbar:null,PreferencesPanel:yfe,LoadingOverlay:spe,NoResultsOverlay:Rme,NoRowsOverlay:lpe,Pagination:cpe,FilterPanel:jfe,ColumnsPanel:ffe,Panel:vfe,Row:wpe}),$4=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>E({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function Bme({defaultSlots:e,slots:t,components:n}){const r=t!=null?t:n?$4(n):null;return!r||Object.keys(r).length===0?e:E({},e,r)}const zme=["components","componentsProps"];function jme(e){var t;const n=Object.keys(e);if(!n.some(i=>i.startsWith("aria-")||i.startsWith("data-")))return e;const r={},o=(t=e.forwardedProps)!=null?t:{};for(let i=0;i<n.length;i+=1){const s=n[i];s.startsWith("aria-")||s.startsWith("data-")?o[s]=e[s]:r[s]=e[s]}return r.forwardedProps=o,r}function Hme(e){return u.useMemo(()=>{const{components:t,componentsProps:n}=e,r=ne(e,zme);return[t,n,jme(r)]},[e])}const Vme={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},R4={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,rowSelection:!0,density:"standard",disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableMultipleColumnsFiltering:!1,disableMultipleRowSelection:!1,disableMultipleColumnsSorting:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:gs.Cell,filterMode:"client",columnHeaderHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:"client",rowHeight:52,pageSizeOptions:[25,50,100],rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingOrder:["asc","desc",null],sortingMode:"client",throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1,unstable_ignoreValueFormatterDuringExport:!1,clipboardCopyCellDelimiter:" "},Ume=$4(Dme),Wme=e=>{const[t,n,r]=Hme(tt({props:e,name:"MuiDataGrid"})),o=u.useMemo(()=>E({},tme,r.localeText),[r.localeText]),i=u.useMemo(()=>Bme({defaultSlots:Ume,slots:r.slots,components:t}),[t,r.slots]);return u.useMemo(()=>{var s;return E({},R4,r,{localeText:o,slots:i,slotProps:(s=r.slotProps)!=null?s:n},Vme)},[r,o,i,n])},Gme=e=>E({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),qR=(e,t,n)=>typeof e=="number"&&e>0?e:t,Kme=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=u.useRef(Object.create(null)),s=u.useRef(-1),a=u.useRef(!1),c=Ge(e,ld),d=Ge(e,wr),p=Ge(e,r4),h=Ge(e,Zo),m=ac(e,t),g=Ge(e,sd),y=qR(t.rowHeight,R4.rowHeight),v=Math.floor(y*c),S=u.useCallback(()=>{var D,B;a.current=!1;const M=V=>{i.current[V.id]||(i.current[V.id]={sizes:{baseCenter:v},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:A,needsFirstMeasurement:H,sizes:W}=i.current[V.id];let K=typeof v=="number"&&v>0?v:52;const Y=W.baseCenter;if(A)K=Y;else if(n){const le=n(E({},V,{densityFactor:c}));if(le==="auto"){if(H){const ke=o?o(E({},V,{densityFactor:c})):v;K=ke!=null?ke:v}else K=Y;a.current=!0,i.current[V.id].autoHeight=!0}else K=qR(le,v),i.current[V.id].needsFirstMeasurement=!1,i.current[V.id].autoHeight=!1}else i.current[V.id].needsFirstMeasurement=!1;const ie={};for(const le in W)/^base[A-Z]/.test(le)&&(ie[le]=W[le]);if(ie.baseCenter=K,r){var re,de;const le=e.current.getRowIndexRelativeToVisibleRows(V.id),ke=r(E({},V,{isFirstVisible:le===0,isLastVisible:le===m.rows.length-1,indexRelativeToCurrentPage:le}));ie.spacingTop=(re=ke.top)!=null?re:0,ie.spacingBottom=(de=ke.bottom)!=null?de:0}const se=e.current.unstable_applyPipeProcessors("rowHeight",ie,V);return i.current[V.id].sizes=se,se},F=[],z=m.rows.reduce((V,A)=>{F.push(V);let H=0,W=0;const K=M(A);for(const Y in K){const ie=K[Y];/^base[A-Z]/.test(Y)?H=ie>H?ie:H:W+=ie}return V+H+W},0);g==null||(D=g.top)==null||D.forEach(V=>{M(V)}),g==null||(B=g.bottom)==null||B.forEach(V=>{M(V)}),e.current.setState(V=>E({},V,{rowsMeta:{currentPageTotalHeight:z,positions:F}})),a.current||(s.current=1/0),e.current.forceUpdate()},[e,m.rows,v,n,r,o,g,c]),w=u.useCallback(D=>{const B=i.current[D];return B?B.sizes.baseCenter:v},[v]),C=D=>{var B;return(B=i.current[D])==null?void 0:B.sizes},x=u.useCallback((D,B)=>{i.current[D].sizes.baseCenter=B,i.current[D].isResized=!0,i.current[D].needsFirstMeasurement=!1,S()},[S]),P=u.useMemo(()=>Ws(S),[S]),_=u.useCallback((D,B,M)=>{if(!i.current[D]||!i.current[D].autoHeight)return;const F=i.current[D].sizes[`base${ue(M)}`]!==B;i.current[D].needsFirstMeasurement=!1,i.current[D].sizes[`base${ue(M)}`]=B,F&&P()},[P]),k=u.useCallback(D=>{var B;return((B=i.current[D])==null?void 0:B.autoHeight)||!1},[]),I=u.useCallback(()=>s.current,[]),R=u.useCallback(D=>{a.current&&D>s.current&&(s.current=D)},[]),L=u.useCallback(()=>{i.current={},S()},[S]);u.useEffect(()=>{S()},[v,d,p,h,S]),lE(e,"rowHeight",S);const N={unstable_setLastMeasuredRowIndex:R,unstable_getRowHeight:w,unstable_getRowInternalSizes:C,unstable_setRowHeight:x,unstable_storeRowHeightMeasurement:_,resetRowHeights:L},O={getLastMeasuredRowIndex:I,rowHasAutoHeight:k};Lt(e,N,"public"),Lt(e,O,"private")},qme=e=>{const t=u.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=u.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(s=>{s()}),e.current.forceUpdate()},[e]);Lt(e,{exportState:t,restoreState:n},"public")},Yme=e=>{const t=u.useRef({}),n=u.useCallback((d,p,h)=>{const m=t.current;m[d]||(m[d]={}),m[d][p]=h},[]),r=u.useCallback((d,p)=>{var h;return(h=t.current[d])==null?void 0:h[p]},[]),o=u.useCallback(d=>{const{columnIndex:p,rowId:h,minFirstColumnIndex:m,maxLastColumnIndex:g,columns:y}=d,v=y.length,S=y[p],w=typeof S.colSpan=="function"?S.colSpan(e.current.getCellParams(h,S.field)):S.colSpan;if(!w||w===1)return n(h,p,{spannedByColSpan:!1,cellProps:{colSpan:1,width:S.computedWidth}}),{colSpan:1};let C=S.computedWidth;for(let x=1;x<w;x+=1){const P=p+x;if(P>=m&&P<g){const _=y[P];C+=_.computedWidth,n(h,p+x,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(p+w,v-1),leftVisibleCellIndex:p})}n(h,p,{spannedByColSpan:!1,cellProps:{colSpan:w,width:C}})}return{colSpan:w}},[e,n]),i=u.useCallback(({rowId:d,minFirstColumn:p,maxLastColumn:h,columns:m})=>{for(let g=p;g<h;g+=1){const y=o({columnIndex:g,rowId:d,minFirstColumnIndex:p,maxLastColumnIndex:h,columns:m});y.colSpan>1&&(g+=y.colSpan-1)}},[o]),s={unstable_getCellColSpanInfo:r},a={calculateColSpan:i};Lt(e,s,"public"),Lt(e,a,"private");const c=u.useCallback(()=>{t.current={}},[]);ot(e,"columnOrderChange",c)},M4=(e,t,n)=>{if(HA(e)){if(n[e.field]!==void 0)throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
|
|
344
|
-
`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{M4(i,[...t,r],n)})},Gw=e=>{if(!e)return{};const t={};return e.forEach(n=>{M4(n,[],t)}),t},Kw=(e,t)=>{const n=s=>{var a;return(a=t[s])!=null?a:[]},r=[],o=Math.max(...e.map(s=>n(s).length)),i=(s,a,c)=>Fa(n(s).slice(0,c+1),n(a).slice(0,c+1));for(let s=0;s<o;s+=1){const a=e.reduce((c,d)=>{var p;const h=(p=n(d)[s])!=null?p:null;if(c.length===0)return[{columnFields:[d],groupId:h}];const m=c[c.length-1],g=m.columnFields[m.columnFields.length-1];return m.groupId!==h||!i(g,d,s)?[...c,{columnFields:[d],groupId:h}]:[...c.slice(0,c.length-1),{columnFields:[...m.columnFields,d],groupId:h}]},[]);r.push(a)}return r},Qme=["groupId","children"],cE=e=>{let t={};return e.forEach(n=>{if(HA(n))return;const{groupId:r,children:o}=n,i=ne(n,Qme);if(!r)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");o||console.warn(`MUI: group groupId=${r} has no children.`);const s=E({},i,{groupId:r}),a=cE(o);if(a[r]!==void 0||t[r]!==void 0)throw new Error(`MUI: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=E({},t,a,{[r]:s})}),E({},t)},Xme=(e,t,n)=>{var r,o,i;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const s=zs(n),a=my(n),c=cE((o=t.columnGroupingModel)!=null?o:[]),d=Gw((i=t.columnGroupingModel)!=null?i:[]),p=Kw(s,d),h=a.length===0?0:Math.max(...a.map(m=>{var g,y;return(g=(y=d[m])==null?void 0:y.length)!=null?g:0}));return E({},e,{columnGrouping:{lookup:c,unwrappedGroupingModel:d,headerStructure:p,maxDepth:h}})},Jme=(e,t)=>{var n;const r=u.useCallback(c=>{var d;return(d=Nae(e)[c])!=null?d:[]},[e]),o=u.useCallback(()=>NA(e),[e]);Lt(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const s=u.useCallback(()=>{var c;const d=Gw((c=t.columnGroupingModel)!=null?c:[]);e.current.setState(p=>{var h,m;const g=(h=(m=p.columns)==null?void 0:m.orderedFields)!=null?h:[],y=Kw(g,d);return E({},p,{columnGrouping:E({},p.columnGrouping,{headerStructure:y})})})},[e,t.columnGroupingModel]),a=u.useCallback(c=>{var d;if(!((d=t.experimentalFeatures)!=null&&d.columnGrouping))return;const p=zs(e),h=my(e),m=cE(c!=null?c:[]),g=Gw(c!=null?c:[]),y=Kw(p,g),v=h.length===0?0:Math.max(...h.map(S=>{var w,C;return(w=(C=g[S])==null?void 0:C.length)!=null?w:0}));e.current.setState(S=>E({},S,{columnGrouping:{lookup:m,unwrappedGroupingModel:g,headerStructure:y,maxDepth:v}}))},[e,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);ot(e,"columnIndexChange",s),ot(e,"columnsChange",()=>{a(t.columnGroupingModel)}),ot(e,"columnVisibilityModelChange",()=>{a(t.columnGroupingModel)}),u.useEffect(()=>{a(t.columnGroupingModel)},[a,t.columnGroupingModel])},Zme=(e,t)=>{const n=Lpe(e,t);return rme(n,t),Jhe(n),bo(Zhe,n,t),bo(she,n,t),bo(Khe,n,t),bo(Whe,n,t),bo($he,n,t),bo(ome,n,t),bo(Lhe,n,t),bo(Ihe,n,t),bo(uhe,n,t),bo(Ohe,n,t),bo(Gme,n,t),bo(the,n,t),bo(Xme,n,t),The(n,t),eme(n,t),lhe(n,t),qhe(n,t),tce(n,t),Yme(n),Jme(n,t),Ghe(n,t),Rhe(n,t),Ahe(n,t),_he(n,t),ime(n,t),dhe(n,t),Fhe(n,t),Kme(n,t),sme(n,t),nhe(n),hhe(n,t),vhe(n,t),ehe(n,t),cme(n,t),lme(n,t),qme(n),n},ege=e=>{const{classes:t}=e;return Me({root:["virtualScroller"]},Bt,t)},tge=gr("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"}}),nge=u.forwardRef(function(t,n){const r=et(),o=ege(r);return T.jsx(tge,E({ref:n},t,{className:he(o.root,t.className),ownerState:r}))}),rge=(e,t)=>{const{classes:n}=e;return Me({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},Bt,n)},oge=gr("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),ige=u.forwardRef(function(t,n){var r;const o=et(),i=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",s=rge(o,i);return T.jsx(oge,E({ref:n},t,{ownerState:o,className:he(s.root,t.className)}))}),sge=["className"],lge=e=>{const{classes:t}=e;return Me({root:["virtualScrollerRenderZone"]},Bt,t)},age=gr("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),cge=u.forwardRef(function(t,n){const{className:r}=t,o=ne(t,sge),i=et(),s=lge(i);return T.jsx(age,E({ref:n,className:he(s.root,r),ownerState:i},o))}),uge=["className","disableVirtualization"],dge=u.forwardRef(function(t,n){const{className:r,disableVirtualization:o}=t,i=ne(t,uge),{getRootProps:s,getContentProps:a,getRenderZoneProps:c,getRows:d}=hme({ref:n,disableVirtualization:o});return T.jsxs(nge,E({className:r},s(i),{children:[T.jsx(qae,{}),T.jsx(ige,E({},a(),{children:T.jsx(cge,E({},c(),{children:d()}))}))]}))}),T4=u.forwardRef(function(t,n){const r=Wme(t),o=Zme(r.apiRef,r);return T.jsx(Cpe,{privateApiRef:o,props:r,children:T.jsxs(eue,E({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[T.jsx(ipe,{}),T.jsx(Bae,{VirtualScrollerComponent:dge}),T.jsx(zae,{})]}))})}),O4=u.memo(T4);T4.propTypes={apiRef:ae.shape({current:ae.object.isRequired}),"aria-label":ae.string,"aria-labelledby":ae.string,autoHeight:ae.bool,autoPageSize:ae.bool,cellModesModel:ae.object,checkboxSelection:ae.bool,classes:ae.object,clipboardCopyCellDelimiter:ae.string,columnBuffer:ae.number,columnGroupingModel:ae.arrayOf(ae.object),columnHeaderHeight:ae.number,columns:a7(ae.array.isRequired),columnThreshold:ae.number,columnVisibilityModel:ae.object,components:ae.object,componentsProps:ae.object,density:ae.oneOf(["comfortable","compact","standard"]),disableColumnFilter:ae.bool,disableColumnMenu:ae.bool,disableColumnSelector:ae.bool,disableDensitySelector:ae.bool,disableRowSelectionOnClick:ae.bool,disableVirtualization:ae.bool,editMode:ae.oneOf(["cell","row"]),experimentalFeatures:ae.shape({columnGrouping:ae.bool,warnIfFocusStateIsNotSynced:ae.bool}),filterMode:ae.oneOf(["client","server"]),filterModel:ae.shape({items:ae.arrayOf(ae.shape({field:ae.string.isRequired,id:ae.oneOfType([ae.number,ae.string]),operator:ae.string.isRequired,value:ae.any})).isRequired,logicOperator:ae.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:ae.bool,quickFilterLogicOperator:ae.oneOf(["and","or"]),quickFilterValues:ae.array}),forwardedProps:ae.object,getCellClassName:ae.func,getDetailPanelContent:ae.func,getEstimatedRowHeight:ae.func,getRowClassName:ae.func,getRowHeight:ae.func,getRowId:ae.func,getRowSpacing:ae.func,hideFooter:ae.bool,hideFooterPagination:ae.bool,hideFooterSelectedRowCount:ae.bool,initialState:ae.object,isCellEditable:ae.func,isRowSelectable:ae.func,keepNonExistentRowsSelected:ae.bool,loading:ae.bool,localeText:ae.object,logger:ae.shape({debug:ae.func.isRequired,error:ae.func.isRequired,info:ae.func.isRequired,warn:ae.func.isRequired}),logLevel:ae.oneOf(["debug","error","info","warn",!1]),nonce:ae.string,onCellClick:ae.func,onCellDoubleClick:ae.func,onCellEditStart:ae.func,onCellEditStop:ae.func,onCellKeyDown:ae.func,onCellModesModelChange:ae.func,onClipboardCopy:ae.func,onColumnHeaderClick:ae.func,onColumnHeaderDoubleClick:ae.func,onColumnHeaderEnter:ae.func,onColumnHeaderLeave:ae.func,onColumnHeaderOut:ae.func,onColumnHeaderOver:ae.func,onColumnOrderChange:ae.func,onColumnVisibilityModelChange:ae.func,onFilterModelChange:ae.func,onMenuClose:ae.func,onMenuOpen:ae.func,onPaginationModelChange:ae.func,onPreferencePanelClose:ae.func,onPreferencePanelOpen:ae.func,onProcessRowUpdateError:ae.func,onResize:ae.func,onRowClick:ae.func,onRowDoubleClick:ae.func,onRowEditCommit:ae.func,onRowEditStart:ae.func,onRowEditStop:ae.func,onRowModesModelChange:ae.func,onRowSelectionModelChange:ae.func,onSortModelChange:ae.func,onStateChange:ae.func,pageSizeOptions:ae.arrayOf(ae.oneOfType([ae.number,ae.shape({label:ae.string.isRequired,value:ae.number.isRequired})]).isRequired),pagination:e=>e.pagination===!1?new Error(["MUI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join(`
|
|
345
|
-
`)):null,paginationMode:ae.oneOf(["client","server"]),paginationModel:ae.shape({page:ae.number.isRequired,pageSize:ae.number.isRequired}),processRowUpdate:ae.func,rowBuffer:ae.number,rowCount:ae.number,rowHeight:ae.number,rowModesModel:ae.object,rows:ae.arrayOf(ae.object).isRequired,rowSelection:ae.bool,rowSelectionModel:ae.oneOfType([ae.arrayOf(ae.oneOfType([ae.number,ae.string]).isRequired),ae.number,ae.string]),rowSpacingType:ae.oneOf(["border","margin"]),rowThreshold:ae.number,scrollbarSize:ae.number,showCellVerticalBorder:ae.bool,showColumnVerticalBorder:ae.bool,slotProps:ae.object,slots:ae.object,sortingMode:ae.oneOf(["client","server"]),sortingOrder:ae.arrayOf(ae.oneOf(["asc","desc"])),sortModel:ae.arrayOf(ae.shape({field:ae.string.isRequired,sort:ae.oneOf(["asc","desc"])})),sx:ae.oneOfType([ae.arrayOf(ae.oneOfType([ae.func,ae.object,ae.bool])),ae.func,ae.object]),unstable_ignoreValueFormatterDuringExport:ae.oneOfType([ae.shape({clipboardExport:ae.bool,csvExport:ae.bool}),ae.bool])};const J1="Actions";function Bp(a){var c=a,{columns:e,initialState:t={},actions:n,actionsProps:r,initializing:o,noRows:i}=c,s=nn(c,["columns","initialState","actions","actionsProps","initializing","noRows"]);const{width:d}=qL(),p=sr(),h=rae(),[m,g]=u.useState(0),y=u.useMemo(()=>{const P=e.map(_=>{const{mergeRender:k}=_;if(!k)return _;const N=k,{other:I,override:R}=N,L=nn(N,["other","override"]);return $t(Ee({},_),{originalRenderCell:_.renderCell||!0,renderCell(O){const{columns:D}=O.api.store.getSnapshot(),B=D.columnVisibilityModel[I]===!1;return u.createElement(je,{},_.renderCell?_.renderCell(O):O.formattedValue,B&&u.createElement(je,L,x(Ee(Ee({},D.lookup[I]),R),O.row)))}})});return n&&P.push(Ee({field:J1,width:40*m,headerName:"",align:"center",headerAlign:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell(_){const k=n(Ee(Ee({},_.row),_));return setTimeout(()=>g(k.length)),u.createElement(je,{whiteSpace:"nowrap"},...k)}},r)),P},[e,n,m]),v=u.useMemo(()=>{if(!d)return;const P=rd(y.map(({field:k,hideUnder:I})=>I&&d<(typeof I=="number"?I:p.breakpoints.values[I])&&k)),_=Object.fromEntries(P.map(k=>[k,!1]));return St.merge(t,{columns:{columnVisibilityModel:_}}),P},[y]),[S,w]=u.useState({}),C=u.useRef({});if(u.useEffect(()=>{const{current:{id:P,setCurRow:_}}=C;_==null||_(St.find(s.rows,{id:P}))}),!v)return null;return u.createElement(u.Fragment,{},o&&u.createElement(je,{position:"relative"},u.createElement(yL,{sx:{position:"absolute",width:"calc(100% - 2px)",borderRadius:1,m:"1px 1px"}})),u.createElement(O4,$t(Ee({initialState:t,columns:y,apiRef:h,slots:Ee({},(i||o)&&{noRowsOverlay:()=>o?null:u.createElement(py,{},i)}),onCellClick({field:P,row:_}){if(P===J1)return;const k=h.current.getVisibleColumns().length,I=y.filter(R=>R.renderCell||R.field===J1||_[R.field]!==void 0);I.length<=k||Ho({title:"Details",onClose(){C.current={}},Content(){const[R,L]=u.useState(_),N=u.useRef(_);R&&(N.current=R);const O=N.current;return C.current={id:O.id,setCurRow:L},u.createElement(je,{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(8em,1fr))",gap:"1em",gridAutoFlow:"dense",minWidth:"max(16em, 40vw)",sx:{opacity:R?void 0:.5}},I.map(D=>u.createElement(je,{key:D.field,gridColumn:D.flex&&"1/-1"},u.createElement(je,{bgcolor:"#0003",p:1},D.headerName||D.field),u.createElement(Ql,{minHeight:"2.5em",px:1,alignItems:"center",wordBreak:"break-word"},x(D,O)))))}})}},s),{onColumnVisibilityModelChange:P=>w(P),columnVisibilityModel:Ee(Ee(Ee({},Object.fromEntries(v.map(P=>[P,!1]))),s.columnVisibilityModel),S)})));function x(P,_){const k=h.current;let I=_[P.field];P.valueGetter&&(I=P.valueGetter({value:I,api:k,row:_,field:P.field,id:_.id}));const R=P.originalRenderCell||P.renderCell;return R&&R!==!0?R(Ee({value:I,row:_,api:k},_)):P.valueFormatter?P.valueFormatter(Ee({value:I},_)):I}}function fge(){return u.createElement(u.Fragment,{},u.createElement(hge),u.createElement(mge))}const pge=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function hge(){const{data:e,element:t}=Mo("get_status"),{data:n}=Sie("get_connection_stats");e&&n&&Object.assign(e,n);const r=Yl("md"),o=Yl("sm");return t||u.createElement(je,{display:"flex",flexWrap:"wrap",gap:"1em",mb:2},r&&i("started"),r&&i("http",{label:"HTTP",render:s}),r&&i("https",{label:"HTTPS",render:s}),o&&i("connections"),i("sent",{render:ql,minWidth:"4em"}),o&&i("got",{render:ql,minWidth:"4em"}),i("outSpeed",{label:"Output speed",render:F4}));function i(a,{label:c,minWidth:d,render:p}={}){let h=St.get(e,a);if(h===void 0)return null;typeof h=="string"&&pge.test(h)&&(h=new Date(h).toLocaleString());let m;return p&&(h=p(h),Array.isArray(h)&&([h,m]=h)),c||(c=St.capitalize(a.replaceAll("_"," "))),u.createElement(Lx,{variant:"filled",color:m,label:u.createElement(u.Fragment,{},u.createElement("b",{},c),": ",u.createElement("span",{style:{display:"inline-block",minWidth:d}},h))})}function s(a){return a.listening?["port "+a.port,"success"]:a.error?[a.error,"error"]:"off"}}function mge(){const{list:e,error:t,props:n}=sc("get_connections"),[r,o]=u.useState(!0),[i,s]=u.useState(!1),a=u.useMemo(()=>e==null?void 0:e.filter(c=>!r||c.path).map((c,d)=>Ee({id:d},c)),[!i&&e,r]);return u.createElement(u.Fragment,{},u.createElement(je,{display:"flex",alignItems:"center"},u.createElement(ms,{fullWidth:!1,value:r,onChange:o,options:{"Show only files":!0,"Show all connections":!1}}),u.createElement(je,{flex:1}),u.createElement(Gn,{title:i?"Resume":"Pause",icon:i?hy:SA,sx:{mr:1},onClick(){s(!i)}})),t?u.createElement(jo,{severity:"error"},t):u.createElement(Bp,{rows:a,noRows:r&&"No downloads at the moment",columns:[{field:"ip",headerName:"Address",flex:1,maxWidth:400,renderCell:({row:c,value:d})=>(d.includes(":")?`[${d}]`:d)+" :"+c.port,mergeRender:{other:"user",fontSize:"small"}},{field:"user",headerName:"User",hideUnder:"md"},{field:"started",headerName:"Started",type:"dateTime",width:100,hideUnder:"lg",valueFormatter:({value:c})=>new Date(c).toLocaleTimeString()},{field:"path",headerName:"File",flex:1.5,renderCell({value:c,row:d}){var h;if(!c)return;if(d.archive)return u.createElement(u.Fragment,{},u.createElement(IA,{sx:{mr:1}}),d.archive,u.createElement(je,{ml:2,color:"text.secondary"},c));const p=c==null?void 0:c.lastIndexOf("/");return u.createElement(u.Fragment,{},d.op&&u.createElement(vA,{icon:d.op==="upload"?Op:US,progress:(h=d.opProgress)!=null?h:d.opOffset,offset:d.opOffset,addTitle:d.opTotal&&u.createElement("div",{},"Total: "+ql(d.opTotal)),sx:{mr:1}}),u.createElement(je,{},c.slice(p+1),p>0&&u.createElement(je,{ml:2,fontSize:"x-small",color:"text.secondary"},c.slice(0,p))))}},{field:"outSpeed",headerName:"Speed",width:110,hideUnder:"sm",type:"number",renderCell:({value:c,row:d})=>F4(Math.max(c||0,d.inSpeed||0)),mergeRender:{other:"sent",fontSize:"small",textAlign:"right"}},{field:"sent",headerName:"Sent",type:"number",hideUnder:"md",renderCell:({value:c,row:d})=>ql(Math.max(c||0,d.got||0))},{field:"v",headerName:"Protocol",align:"center",hideUnder:1/0,renderCell:({value:c,row:d})=>u.createElement(u.Fragment,{},"IPv"+c,Zr(BS,"HTTPS",{opacity:.5}))},{field:"agent",headerName:"Agent",hideUnder:"lg"}],actionsProps:{hideUnder:"sm"},actions:({row:c})=>[u.createElement(Gn,{icon:EA,title:"Disconnect",onClick:()=>Et("disconnect",St.pick(c,["ip","port"])).then(()=>Wr("Disconnection requested"))}),u.createElement(Gn,{icon:PA,title:"Block IP",disabled:c.ip===(n==null?void 0:n.you),onClick:()=>gge(c.ip)})]}))}function gge(e){return sle("block",t=>[...t,{ip:e}])}function F4(e){return e?ql(e*1e3,{post:"B/s",k:1e3,digits:1}):""}var uE={},vge=lt;Object.defineProperty(uE,"__esModule",{value:!0});var dE=uE.default=void 0,yge=vge(at()),bge=st(),wge=(0,yge.default)((0,bge.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");dE=uE.default=wge;var fE={},Cge=lt;Object.defineProperty(fE,"__esModule",{value:!0});var pE=fE.default=void 0,xge=Cge(at()),Sge=st(),Ege=(0,xge.default)((0,Sge.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");pE=fE.default=Ege;var hE={},Pge=lt;Object.defineProperty(hE,"__esModule",{value:!0});var Zs=hE.default=void 0,Ige=Pge(at()),kge=st(),_ge=(0,Ige.default)((0,kge.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");Zs=hE.default=_ge;var mE={},$ge=lt;Object.defineProperty(mE,"__esModule",{value:!0});var gE=mE.default=void 0,Rge=$ge(at()),Mge=st(),Tge=(0,Rge.default)((0,Mge.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");gE=mE.default=Tge;var vE={},Oge=lt;Object.defineProperty(vE,"__esModule",{value:!0});var L4=vE.default=void 0,Fge=Oge(at()),Lge=st(),Age=(0,Fge.default)((0,Lge.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");L4=vE.default=Age;var yE={},Nge=lt;Object.defineProperty(yE,"__esModule",{value:!0});var A4=yE.default=void 0,Dge=Nge(at()),Bge=st(),zge=(0,Dge.default)((0,Bge.jsx)("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"}),"Undo");A4=yE.default=zge;function bE(p){var h=p,{label:e,helperText:t,fields:n,value:r,onChange:o,onError:i,setApi:s,reorder:a,prepend:c}=h,d=nn(h,["label","helperText","fields","value","onChange","onError","setApi","reorder","prepend"]);const m=u.useMemo(()=>(r||[]).map((w,C)=>fse(Ee({},w),w.hasOwnProperty("id")?{$idx:C}:{id:C})),[JSON.stringify(r)]),g={fields:n.map(P=>{var _=P,{$width:w,$column:C}=_,x=nn(_,["$width","$column"]);return x})};s==null||s({isEqual:iA});const[y,v]=u.useState();return u.createElement(u.Fragment,{},e&&u.createElement(uL,{sx:{ml:1}},e),t&&u.createElement(_p,{},t),u.createElement(je,Ee({},d),u.createElement(O4,{rows:m,sx:{".MuiDataGrid-virtualScroller":{minHeight:"3em"}},hideFooterSelectedRowCount:!0,hideFooter:!0,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}},columns:[...n.map(w=>{var C;return Ee(Ee({field:w.k,headerName:(C=w.headerName)!=null?C:typeof w.label=="string"?w.label:fA(w.k),disableColumnMenu:!0},w.$width>=8?{width:w.$width}:{flex:w.$width||1}),w.$column)}),{field:"",type:"actions",width:90,headerAlign:"center",renderHeader(){const w="Add";return u.createElement(u.Fragment,{},u.createElement(Gn,{icon:dE,title:w,size:"small",onClick:C=>rp({form:g,title:w}).then(x=>{if(!x)return;const P=(r==null?void 0:r.slice())||[];c?P.unshift(x):P.push(x),S(P,C)})}),y!==void 0&&u.createElement(Gn,{icon:A4,title:"Undo",size:"small",onClick:C=>S(y,C)}))},getActions({row:w}){const{$idx:C=w.id}=w,x="Modify";return[u.createElement(am,{icon:u.createElement(pE),label:x,title:x,onClick(P){rp({values:w,form:g,title:x}).then(_=>{_&&S(r.map((k,I)=>I===C?_:k),P)})}}),u.createElement(am,{icon:u.createElement(Zs),label:"Delete",showInMenu:a,onClick:P=>S(r.filter((_,k)=>k!==C),P)}),a&&C&&u.createElement(am,{icon:u.createElement(gE),label:"Move up",showInMenu:!0,onClick:P=>S(oR(r.slice(),C,C-1),P)}),a&&C<m.length-1&&u.createElement(am,{icon:u.createElement(L4),label:"Move down",showInMenu:!0,onClick:P=>S(oR(r.slice(),C,C+1),P)})].filter(Boolean)}}]})));function S(w,C){o(w,{was:r,event:C}),v(r)}}var wE={},jge=lt;Object.defineProperty(wE,"__esModule",{value:!0});var N4=wE.default=void 0,Hge=jge(at()),Vge=st(),Uge=(0,Hge.default)((0,Vge.jsx)("path",{d:"M5 17h14v2H5zm7-12L5.33 15h13.34z"}),"Eject");N4=wE.default=Uge;var CE={},Wge=lt;Object.defineProperty(CE,"__esModule",{value:!0});var D4=CE.default=void 0,Gge=Wge(at()),Kge=st(),qge=(0,Gge.default)((0,Kge.jsx)("path",{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}),"VerticalAlignTop");D4=CE.default=qge;var xE={},Yge=lt;Object.defineProperty(xE,"__esModule",{value:!0});var B4=xE.default=void 0,Qge=Yge(at()),Xge=st(),Jge=(0,Qge.default)((0,Xge.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");B4=xE.default=Jge;var SE={},Zge=lt;Object.defineProperty(SE,"__esModule",{value:!0});var z4=SE.default=void 0,eve=Zge(at()),tve=st(),nve=(0,eve.default)((0,tve.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");z4=SE.default=nve;var EE={},rve=lt;Object.defineProperty(EE,"__esModule",{value:!0});var j4=EE.default=void 0,ove=rve(at()),YR=st(),ive=(0,ove.default)([(0,YR.jsx)("path",{d:"M2 16.5C2 19.54 4.46 22 7.5 22s5.5-2.46 5.5-5.5V10H2v6.5zm5.5 2C6.12 18.5 5 17.83 5 17h5c0 .83-1.12 1.5-2.5 1.5zM10 13c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-5 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z"},"0"),(0,YR.jsx)("path",{d:"M11 3v6h3v2.5c0-.83 1.12-1.5 2.5-1.5s2.5.67 2.5 1.5h-5v2.89c.75.38 1.6.61 2.5.61 3.04 0 5.5-2.46 5.5-5.5V3H11zm3 5.08c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1c0 .56-.45 1-1 1zm5 0c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1c0 .56-.45 1-1 1z"},"1")],"TheaterComedy");j4=EE.default=ive;var PE={},sve=lt;Object.defineProperty(PE,"__esModule",{value:!0});var H4=PE.default=void 0,lve=sve(at()),ave=st(),cve=(0,lve.default)((0,ave.jsx)("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}),"Folder");H4=PE.default=cve;var IE={},uve=lt;Object.defineProperty(IE,"__esModule",{value:!0});var V4=IE.default=void 0,dve=uve(at()),fve=st(),pve=(0,dve.default)((0,fve.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");V4=IE.default=pve;var kE={},hve=lt;Object.defineProperty(kE,"__esModule",{value:!0});var U4=kE.default=void 0,mve=hve(at()),gve=st(),vve=(0,mve.default)((0,gve.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}),"InsertDriveFileOutlined");U4=kE.default=vve;var _E={},yve=lt;Object.defineProperty(_E,"__esModule",{value:!0});var W4=_E.default=void 0,bve=yve(at()),wve=st(),Cve=(0,bve.default)((0,wve.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"RemoveRedEye");W4=_E.default=Cve;var $E={},xve=lt;Object.defineProperty($E,"__esModule",{value:!0});var G4=$E.default=void 0,Sve=xve(at()),Eve=st(),Pve=(0,Sve.default)((0,Eve.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"}),"Web");G4=$E.default=Pve;var RE={},Ive=lt;Object.defineProperty(RE,"__esModule",{value:!0});var K4=RE.default=void 0,kve=Ive(at()),_ve=st(),$ve=(0,kve.default)((0,_ve.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z"}),"Cloud");K4=RE.default=$ve;var ME={},Rve=lt;Object.defineProperty(ME,"__esModule",{value:!0});var q4=ME.default=void 0,Mve=Rve(at()),Tve=st(),Ove=(0,Mve.default)((0,Tve.jsx)("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"HighlightOff");q4=ME.default=Ove;function Fve(){const{close:e}=Ho({title:"Add files or folders",dialogProps:{sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){const t=Y4();return u.createElement(u.Fragment,{},u.createElement(je,{sx:{typography:"body1",px:1,py:2}},"Selected elements will be added under ",t.isRoot?u.createElement("i",{},"Home"):t.id),u.createElement(KN,{from:t.source,onSelect(r){return mt(this,null,function*(){const o=rd(yield Promise.all(r.map(i=>Et("add_vfs",{parent:t.id,source:i}).then(()=>null,s=>[i,s.message]))));o.length&&(yield un(u.createElement(je,{},"Some elements have been rejected",u.createElement("ul",{},o.map(([i,s])=>u.createElement("li",{key:i},i,": ",s)))),"error")),ec(),e()})}}))}})}function Lve(){return mt(this,null,function*(){try{const e=yield ole("Enter folder name");if(!e)return;const{id:t}=Y4();yield Et("add_vfs",{parent:t,name:e}),ec([t+e]),yield un(`Folder "${e}" created`,"success")}catch(e){yield un(e)}})}function Y4(){const e=pn.selectedFiles[0]||pn.vfs;return e.type==="folder"?e:e.parent}function Q4(n){var r=n,{items:e}=r,t=nn(r,["items"]);const[o,i]=Io.useState(),s=!!o,a=u.useCallback(()=>i(void 0),[]);return u.createElement(Io.Fragment,{},u.createElement(hr,Ee({"aria-controls":s?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":s?"true":void 0,onClick:c=>{i(c.currentTarget)}},t)),u.createElement(SL,{anchorEl:o,open:s,onClose:a,MenuListProps:{"aria-labelledby":"basic-button"},children:e.map((c,d)=>u.createElement(Ur,$t(Ee({key:d},c),{onClick(){var p;a(),(p=c.onClick)==null||p.apply(this,arguments)}})))}))}function Ave(){return u.createElement(je,{display:"flex",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},u.createElement(Q4,{variant:"contained",startIcon:u.createElement(dE),items:[{children:"from disk",onClick:Fve},{children:"virtual folder",onClick:Lve}]},"Add"),kS(()=>ec()))}const Nve={"`":"code","*":"i","**":"b"};function Ti(e,{linkTarget:t="",onText:n=r=>r}={}){return typeof e!="string"&&(e=e[0]),X4(e,/(`|_|\*\*?)(.+)\1|(\n)|\[(.+)\]\((.+)\)|<([^ >/]+)>(.*)<\/\6>|<([^ >/]+) *\/>/g,r=>r[4]?u.createElement(Ro,{href:r[5],target:t},n(r[4])):r[3]?u.createElement("br"):r[1]?u.createElement(Nve[r[1]]||u.Fragment,{},n(r[2])):u.createElement(r[6]||r[8],{},r[7]),n)}function X4(e,t,n,r=o=>o){const o=[];let i=0,s;for(;s=t.exec(e);)o.push(r(e.slice(i,s.index))),o.push(n(s)),i=s.index+s[0].length;return u.createElement(u.Fragment,{},...o,r(e.slice(i,1/0)))}const TE=Symbol.for("yaml.alias"),qw=Symbol.for("yaml.document"),jl=Symbol.for("yaml.map"),J4=Symbol.for("yaml.pair"),Ys=Symbol.for("yaml.scalar"),ad=Symbol.for("yaml.seq"),vi=Symbol.for("yaml.node.type"),cc=e=>!!e&&typeof e=="object"&&e[vi]===TE,cd=e=>!!e&&typeof e=="object"&&e[vi]===qw,ud=e=>!!e&&typeof e=="object"&&e[vi]===jl,Tn=e=>!!e&&typeof e=="object"&&e[vi]===J4,yn=e=>!!e&&typeof e=="object"&&e[vi]===Ys,dd=e=>!!e&&typeof e=="object"&&e[vi]===ad;function Dn(e){if(e&&typeof e=="object")switch(e[vi]){case jl:case ad:return!0}return!1}function Qn(e){if(e&&typeof e=="object")switch(e[vi]){case TE:case jl:case Ys:case ad:return!0}return!1}const Dve=e=>(yn(e)||Dn(e))&&!!e.anchor,no=Symbol("break visit"),Z4=Symbol("skip children"),fs=Symbol("remove node");function Jl(e,t){const n=eN(t);cd(e)?ou(null,e.contents,n,Object.freeze([e]))===fs&&(e.contents=null):ou(null,e,n,Object.freeze([]))}Jl.BREAK=no;Jl.SKIP=Z4;Jl.REMOVE=fs;function ou(e,t,n,r){const o=tN(e,t,n,r);if(Qn(o)||Tn(o))return nN(e,r,o),ou(e,o,n,r);if(typeof o!="symbol"){if(Dn(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const s=ou(i,t.items[i],n,r);if(typeof s=="number")i=s-1;else{if(s===no)return no;s===fs&&(t.items.splice(i,1),i-=1)}}}else if(Tn(t)){r=Object.freeze(r.concat(t));const i=ou("key",t.key,n,r);if(i===no)return no;i===fs&&(t.key=null);const s=ou("value",t.value,n,r);if(s===no)return no;s===fs&&(t.value=null)}}return o}function Ey(e,t){return mt(this,null,function*(){const n=eN(t);cd(e)?(yield iu(null,e.contents,n,Object.freeze([e])))===fs&&(e.contents=null):yield iu(null,e,n,Object.freeze([]))})}Ey.BREAK=no;Ey.SKIP=Z4;Ey.REMOVE=fs;function iu(e,t,n,r){return mt(this,null,function*(){const o=yield tN(e,t,n,r);if(Qn(o)||Tn(o))return nN(e,r,o),iu(e,o,n,r);if(typeof o!="symbol"){if(Dn(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const s=yield iu(i,t.items[i],n,r);if(typeof s=="number")i=s-1;else{if(s===no)return no;s===fs&&(t.items.splice(i,1),i-=1)}}}else if(Tn(t)){r=Object.freeze(r.concat(t));const i=yield iu("key",t.key,n,r);if(i===no)return no;i===fs&&(t.key=null);const s=yield iu("value",t.value,n,r);if(s===no)return no;s===fs&&(t.value=null)}}return o})}function eN(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 tN(e,t,n,r){var o,i,s,a,c;if(typeof n=="function")return n(e,t,r);if(ud(t))return(o=n.Map)==null?void 0:o.call(n,e,t,r);if(dd(t))return(i=n.Seq)==null?void 0:i.call(n,e,t,r);if(Tn(t))return(s=n.Pair)==null?void 0:s.call(n,e,t,r);if(yn(t))return(a=n.Scalar)==null?void 0:a.call(n,e,t,r);if(cc(t))return(c=n.Alias)==null?void 0:c.call(n,e,t,r)}function nN(e,t,n){const r=t[t.length-1];if(Dn(r))r.items[e]=n;else if(Tn(r))e==="key"?r.key=n:r.value=n;else if(cd(r))r.contents=n;else{const o=cc(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const Bve={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},zve=e=>e.replace(/[!,[\]{}]/g,t=>Bve[t]);class zr{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},zr.defaultYaml,t),this.tags=Object.assign({},zr.defaultTags,n)}clone(){const t=new zr(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new zr(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:zr.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},zr.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:zr.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},zr.defaultTags),this.atNextDocument=!1);const r=t.trim().split(/[ \t]+/),o=r.shift();switch(o){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[i,s]=r;return this.tags[i]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[i]=r;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const s=/^\d+\.\d+$/.test(i);return n(6,`Unsupported YAML version ${i}`,s),!1}}default:return n(0,`Unknown directive ${o}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const s=t.slice(2,-1);return s==="!"||s==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),s)}const[,r,o]=t.match(/^(.*!)([^!]*)$/);o||n(`The ${t} tag has no suffix`);const i=this.tags[r];return i?i+decodeURIComponent(o):r==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,r]of Object.entries(this.tags))if(t.startsWith(r))return n+zve(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&&Qn(t.contents)){const i={};Jl(t.contents,(s,a)=>{Qn(a)&&a.tag&&(i[a.tag]=!0)}),o=Object.keys(i)}else o=[];for(const[i,s]of r)i==="!!"&&s==="tag:yaml.org,2002:"||(!t||o.some(a=>a.startsWith(s)))&&n.push(`%TAG ${i} ${s}`);return n.join(`
|
|
346
|
-
`)}}zr.defaultYaml={explicit:!1,version:"1.2"};zr.defaultTags={"!!":"tag:yaml.org,2002:"};function rN(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 oN(e){const t=new Set;return Jl(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function iN(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function jve(e,t){const n=[],r=new Map;let o=null;return{onAnchor:i=>{n.push(i),o||(o=oN(e));const s=iN(t,o);return o.add(s),s},setAnchors:()=>{for(const i of n){const s=r.get(i);if(typeof s=="object"&&s.anchor&&(yn(s.node)||Dn(s.node)))s.node.anchor=s.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=i,a}}},sourceObjects:r}}function su(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let o=0,i=r.length;o<i;++o){const s=r[o],a=su(e,r,String(o),s);a===void 0?delete r[o]:a!==s&&(r[o]=a)}else if(r instanceof Map)for(const o of Array.from(r.keys())){const i=r.get(o),s=su(e,r,o,i);s===void 0?r.delete(o):s!==i&&r.set(o,s)}else if(r instanceof Set)for(const o of Array.from(r)){const i=su(e,r,o,o);i===void 0?r.delete(o):i!==o&&(r.delete(o),r.add(i))}else for(const[o,i]of Object.entries(r)){const s=su(e,r,o,i);s===void 0?delete r[o]:s!==i&&(r[o]=s)}return e.call(t,n,r)}function di(e,t,n){if(Array.isArray(e))return e.map((r,o)=>di(r,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!Dve(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=i=>{r.res=i,delete n.onCreate};const o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}class OE{constructor(t){Object.defineProperty(this,vi,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:o,reviver:i}={}){if(!cd(t))throw new TypeError("A document argument is required");const s={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},a=di(this,"",s);if(typeof o=="function")for(const{count:c,res:d}of s.anchors.values())o(d,c);return typeof i=="function"?su(i,{"":a},"",a):a}}class Py extends OE{constructor(t){super(TE),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Jl(t,{Node:(r,o)=>{if(o===this)return Jl.BREAK;o.anchor===this.source&&(n=o)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:o,maxAliasCount:i}=n,s=this.resolve(o);if(!s){const c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let a=r.get(s);if(a||(di(s,null,n),a=r.get(s)),!a||a.res===void 0){const c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=Am(o,s,r)),a.count*a.aliasCount>i)){const c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return a.res}toString(t,n,r){const o=`*${this.source}`;if(t){if(rN(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(t.implicitKey)return`${o} `}return o}}function Am(e,t,n){if(cc(t)){const r=t.resolve(e),o=n&&r&&n.get(r);return o?o.count*o.aliasCount:0}else if(Dn(t)){let r=0;for(const o of t.items){const i=Am(e,o,n);i>r&&(r=i)}return r}else if(Tn(t)){const r=Am(e,t.key,n),o=Am(e,t.value,n);return Math.max(r,o)}return 1}const sN=e=>!e||typeof e!="function"&&typeof e!="object";class Rt extends OE{constructor(t){super(Ys),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:di(this.value,t,n)}toString(){return String(this.value)}}Rt.BLOCK_FOLDED="BLOCK_FOLDED";Rt.BLOCK_LITERAL="BLOCK_LITERAL";Rt.PLAIN="PLAIN";Rt.QUOTE_DOUBLE="QUOTE_DOUBLE";Rt.QUOTE_SINGLE="QUOTE_SINGLE";const Hve="tag:yaml.org,2002:";function Vve(e,t,n){var r;if(t){const o=n.filter(s=>s.tag===t),i=(r=o.find(s=>!s.format))!=null?r:o[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find(o=>{var i;return((i=o.identify)==null?void 0:i.call(o,e))&&!o.format})}function fp(e,t,n){var h,m,g;if(cd(e)&&(e=e.contents),Qn(e))return e;if(Tn(e)){const y=(m=(h=n.schema[jl]).createNode)==null?void 0:m.call(h,n.schema,null,n);return y.items.push(e),y}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!="undefined"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:o,onTagObj:i,schema:s,sourceObjects:a}=n;let c;if(r&&e&&typeof e=="object"){if(c=a.get(e),c)return c.anchor||(c.anchor=o(e)),new Py(c.anchor);c={anchor:null,node:null},a.set(e,c)}t!=null&&t.startsWith("!!")&&(t=Hve+t.slice(2));let d=Vve(e,t,s.tags);if(!d){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const y=new Rt(e);return c&&(c.node=y),y}d=e instanceof Map?s[jl]:Symbol.iterator in Object(e)?s[ad]:s[jl]}i&&(i(d),delete n.onTagObj);const p=d!=null&&d.createNode?d.createNode(n.schema,e,n):typeof((g=d==null?void 0:d.nodeClass)==null?void 0:g.from)=="function"?d.nodeClass.from(n.schema,e,n):new Rt(e);return t?p.tag=t:d.default||(p.tag=d.tag),c&&(c.node=p),p}function zg(e,t,n){let r=n;for(let o=t.length-1;o>=0;--o){const i=t[o];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){const s=[];s[i]=r,r=s}else r=new Map([[i,r]])}return fp(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 cf=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class Iy extends OE{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=>Qn(r)||Tn(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(cf(t))this.add(n);else{const[r,...o]=t,i=this.get(r,!0);if(Dn(i))i.addIn(o,n);else if(i===void 0&&this.schema)this.set(r,zg(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(Dn(o))return o.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...o]=t,i=this.get(r,!0);return o.length===0?!n&&yn(i)?i.value:i:Dn(i)?i.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Tn(n))return!1;const r=n.value;return r==null||t&&yn(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const o=this.get(n,!0);return Dn(o)?o.hasIn(r):!1}setIn(t,n){const[r,...o]=t;if(o.length===0)this.set(r,n);else{const i=this.get(r,!0);if(Dn(i))i.setIn(o,n);else if(i===void 0&&this.schema)this.set(r,zg(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}}Iy.maxFlowStringSingleLineLength=60;const Uve=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Ns(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const Rl=(e,t,n)=>e.endsWith(`
|
|
347
|
-
`)?Ns(n,t):n.includes(`
|
|
348
|
-
`)?`
|
|
349
|
-
`+Ns(n,t):(e.endsWith(" ")?"":" ")+n,lN="flow",Yw="block",Nm="quoted";function ky(e,t,n="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:i=20,onFold:s,onOverflow:a}={}){if(!o||o<0)return e;const c=Math.max(1+i,1+o-t.length);if(e.length<=c)return e;const d=[],p={};let h=o-t.length;typeof r=="number"&&(r>o-Math.max(2,i)?d.push(0):h=o-r);let m,g,y=!1,v=-1,S=-1,w=-1;n===Yw&&(v=QR(e,v),v!==-1&&(h=v+c));for(let x;x=e[v+=1];){if(n===Nm&&x==="\\"){switch(S=v,e[v+1]){case"x":v+=3;break;case"u":v+=5;break;case"U":v+=9;break;default:v+=1}w=v}if(x===`
|
|
350
|
-
`)n===Yw&&(v=QR(e,v)),h=v+c,m=void 0;else{if(x===" "&&g&&g!==" "&&g!==`
|
|
351
|
-
`&&g!==" "){const P=e[v+1];P&&P!==" "&&P!==`
|
|
352
|
-
`&&P!==" "&&(m=v)}if(v>=h)if(m)d.push(m),h=m+c,m=void 0;else if(n===Nm){for(;g===" "||g===" ";)g=x,x=e[v+=1],y=!0;const P=v>w+1?v-2:S-1;if(p[P])return e;d.push(P),p[P]=!0,h=P+c,m=void 0}else y=!0}g=x}if(y&&a&&a(),d.length===0)return e;s&&s();let C=e.slice(0,d[0]);for(let x=0;x<d.length;++x){const P=d[x],_=d[x+1]||e.length;P===0?C=`
|
|
353
|
-
${t}${e.slice(0,_)}`:(n===Nm&&p[P]&&(C+=`${e[P]}\\`),C+=`
|
|
354
|
-
${t}${e.slice(P+1,_)}`)}return C}function QR(e,t){let n=e[t+1];for(;n===" "||n===" ";){do n=e[t+=1];while(n&&n!==`
|
|
355
|
-
`);n=e[t+1]}return t}const _y=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),$y=e=>/^(%|---|\.\.\.)/m.test(e);function Wve(e,t,n){if(!t||t<0)return!1;const r=t-n,o=e.length;if(o<=r)return!1;for(let i=0,s=0;i<o;++i)if(e[i]===`
|
|
356
|
-
`){if(i-s>r)return!0;if(s=i+1,o-s<=r)return!1}return!0}function kf(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||($y(e)?" ":"");let s="",a=0;for(let c=0,d=n[c];d;d=n[++c])if(d===" "&&n[c+1]==="\\"&&n[c+2]==="n"&&(s+=n.slice(a,c)+"\\ ",c+=1,a=c,d="\\"),d==="\\")switch(n[c+1]){case"u":{s+=n.slice(a,c);const p=n.substr(c+2,4);switch(p){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:p.substr(0,2)==="00"?s+="\\x"+p.substr(2):s+=n.substr(c,6)}c+=5,a=c+1}break;case"n":if(r||n[c+2]==='"'||n.length<o)c+=1;else{for(s+=n.slice(a,c)+`
|
|
357
|
-
|
|
358
|
-
`;n[c+2]==="\\"&&n[c+3]==="n"&&n[c+4]!=='"';)s+=`
|
|
359
|
-
`,c+=2;s+=i,n[c+2]===" "&&(s+="\\"),c+=1,a=c+1}break;default:c+=1}return s=a?s+n.slice(a):n,r?s:ky(s,i,Nm,_y(t,!1))}function Qw(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|
360
|
-
`)||/[ \t]\n|\n[ \t]/.test(e))return kf(e,t);const n=t.indent||($y(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
361
|
-
${n}`)+"'";return t.implicitKey?r:ky(r,n,lN,_y(t,!1))}function lu(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=kf;else{const o=e.includes('"'),i=e.includes("'");o&&!i?r=Qw:i&&!o?r=kf:r=n?Qw:kf}return r(e,t)}let Xw;try{Xw=new RegExp(`(^|(?<!
|
|
362
|
-
))
|
|
363
|
-
+(?!
|
|
364
|
-
|$)`,"g")}catch(e){Xw=/\n+(?!\n|$)/g}function Dm({comment:e,type:t,value:n},r,o,i){const{blockQuote:s,commentString:a,lineWidth:c}=r.options;if(!s||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return lu(n,r);const d=r.indent||(r.forceBlockIndent||$y(n)?" ":""),p=s==="literal"?!0:s==="folded"||t===Rt.BLOCK_FOLDED?!1:t===Rt.BLOCK_LITERAL?!0:!Wve(n,c,d.length);if(!n)return p?`|
|
|
365
|
-
`:`>
|
|
366
|
-
`;let h,m;for(m=n.length;m>0;--m){const k=n[m-1];if(k!==`
|
|
367
|
-
`&&k!==" "&&k!==" ")break}let g=n.substring(m);const y=g.indexOf(`
|
|
368
|
-
`);y===-1?h="-":n===g||y!==g.length-1?(h="+",i&&i()):h="",g&&(n=n.slice(0,-g.length),g[g.length-1]===`
|
|
369
|
-
`&&(g=g.slice(0,-1)),g=g.replace(Xw,`$&${d}`));let v=!1,S,w=-1;for(S=0;S<n.length;++S){const k=n[S];if(k===" ")v=!0;else if(k===`
|
|
370
|
-
`)w=S;else break}let C=n.substring(0,w<S?w+1:S);C&&(n=n.substring(C.length),C=C.replace(/\n+/g,`$&${d}`));let P=(p?"|":">")+(v?d?"2":"1":"")+h;if(e&&(P+=" "+a(e.replace(/ ?[\r\n]+/g," ")),o&&o()),p)return n=n.replace(/\n+/g,`$&${d}`),`${P}
|
|
371
|
-
${d}${C}${n}${g}`;n=n.replace(/\n+/g,`
|
|
372
|
-
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const _=ky(`${C}${n}${g}`,d,Yw,_y(r,!0));return`${P}
|
|
373
|
-
${d}${_}`}function Gve(e,t,n,r){const{type:o,value:i}=e,{actualString:s,implicitKey:a,indent:c,indentStep:d,inFlow:p}=t;if(a&&/[\n[\]{},]/.test(i)||p&&/[[\]{},]/.test(i))return lu(i,t);if(!i||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return a||p||!i.includes(`
|
|
374
|
-
`)?lu(i,t):Dm(e,t,n,r);if(!a&&!p&&o!==Rt.PLAIN&&i.includes(`
|
|
375
|
-
`))return Dm(e,t,n,r);if($y(i)){if(c==="")return t.forceBlockIndent=!0,Dm(e,t,n,r);if(a&&c===d)return lu(i,t)}const h=i.replace(/\n+/g,`$&
|
|
376
|
-
${c}`);if(s){const m=v=>{var S;return v.default&&v.tag!=="tag:yaml.org,2002:str"&&((S=v.test)==null?void 0:S.test(h))},{compat:g,tags:y}=t.doc.schema;if(y.some(m)||g!=null&&g.some(m))return lu(i,t)}return a?h:ky(h,c,lN,_y(t,!1))}function zp(e,t,n,r){const{implicitKey:o,inFlow:i}=t,s=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==Rt.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(a=Rt.QUOTE_DOUBLE);const c=p=>{switch(p){case Rt.BLOCK_FOLDED:case Rt.BLOCK_LITERAL:return o||i?lu(s.value,t):Dm(s,t,n,r);case Rt.QUOTE_DOUBLE:return kf(s.value,t);case Rt.QUOTE_SINGLE:return Qw(s.value,t);case Rt.PLAIN:return Gve(s,t,n,r);default:return null}};let d=c(a);if(d===null){const{defaultKeyType:p,defaultStringType:h}=t.options,m=o&&p||h;if(d=c(m),d===null)throw new Error(`Unsupported default string type ${m}`)}return d}function aN(e,t){const n=Object.assign({blockQuote:!0,commentString:Uve,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 Kve(e,t){var o,i,s,a;if(t.tag){const c=e.filter(d=>d.tag===t.tag);if(c.length>0)return(o=c.find(d=>d.format===t.format))!=null?o:c[0]}let n,r;if(yn(t)){r=t.value;const c=e.filter(d=>{var p;return(p=d.identify)==null?void 0:p.call(d,r)});n=(i=c.find(d=>d.format===t.format))!=null?i:c.find(d=>!d.format)}else r=t,n=e.find(c=>c.nodeClass&&r instanceof c.nodeClass);if(!n){const c=(a=(s=r==null?void 0:r.constructor)==null?void 0:s.name)!=null?a:typeof r;throw new Error(`Tag not resolved for ${c} value`)}return n}function qve(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const o=[],i=(yn(e)||Dn(e))&&e.anchor;i&&rN(i)&&(n.add(i),o.push(`&${i}`));const s=e.tag?e.tag:t.default?null:t.tag;return s&&o.push(r.directives.tagString(s)),o.join(" ")}function Uu(e,t,n,r){var c,d;if(Tn(e))return e.toString(t,n,r);if(cc(e)){if(t.doc.directives)return e.toString(t);if((c=t.resolvedAliases)!=null&&c.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const i=Qn(e)?e:t.doc.createNode(e,{onTagObj:p=>o=p});o||(o=Kve(t.doc.schema.tags,i));const s=qve(i,o,t);s.length>0&&(t.indentAtStart=((d=t.indentAtStart)!=null?d:0)+s.length+1);const a=typeof o.stringify=="function"?o.stringify(i,t,n,r):yn(i)?zp(i,t,n,r):i.toString(t,n,r);return s?yn(i)||a[0]==="{"||a[0]==="["?`${s} ${a}`:`${s}
|
|
377
|
-
${t.indent}${a}`:a}function Yve({key:e,value:t},n,r,o){var I,R;const{allNullValues:i,doc:s,indent:a,indentStep:c,options:{commentString:d,indentSeq:p,simpleKeys:h}}=n;let m=Qn(e)&&e.comment||null;if(h){if(m)throw new Error("With simple keys, key nodes cannot have comments");if(Dn(e)){const L="With simple keys, collection cannot be used as a key value";throw new Error(L)}}let g=!h&&(!e||m&&t==null&&!n.inFlow||Dn(e)||(yn(e)?e.type===Rt.BLOCK_FOLDED||e.type===Rt.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!g&&(h||!i),indent:a+c});let y=!1,v=!1,S=Uu(e,n,()=>y=!0,()=>v=!0);if(!g&&!n.inFlow&&S.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");g=!0}if(n.inFlow){if(i||t==null)return y&&r&&r(),S===""?"?":g?`? ${S}`:S}else if(i&&!h||t==null&&g)return S=`? ${S}`,m&&!y?S+=Rl(S,n.indent,d(m)):v&&o&&o(),S;y&&(m=null),g?(m&&(S+=Rl(S,n.indent,d(m))),S=`? ${S}
|
|
378
|
-
${a}:`):(S=`${S}:`,m&&(S+=Rl(S,n.indent,d(m))));let w,C,x;Qn(t)?(w=!!t.spaceBefore,C=t.commentBefore,x=t.comment):(w=!1,C=null,x=null,t&&typeof t=="object"&&(t=s.createNode(t))),n.implicitKey=!1,!g&&!m&&yn(t)&&(n.indentAtStart=S.length+1),v=!1,!p&&c.length>=2&&!n.inFlow&&!g&&dd(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let P=!1;const _=Uu(t,n,()=>P=!0,()=>v=!0);let k=" ";if(m||w||C){if(k=w?`
|
|
379
|
-
`:"",C){const L=d(C);k+=`
|
|
380
|
-
${Ns(L,n.indent)}`}_===""&&!n.inFlow?k===`
|
|
381
|
-
`&&(k=`
|
|
382
|
-
|
|
383
|
-
`):k+=`
|
|
384
|
-
${n.indent}`}else if(!g&&Dn(t)){const L=_[0],N=_.indexOf(`
|
|
385
|
-
`),O=N!==-1,D=(R=(I=n.inFlow)!=null?I:t.flow)!=null?R:t.items.length===0;if(O||!D){let B=!1;if(O&&(L==="&"||L==="!")){let M=_.indexOf(" ");L==="&"&&M!==-1&&M<N&&_[M+1]==="!"&&(M=_.indexOf(" ",M+1)),(M===-1||N<M)&&(B=!0)}B||(k=`
|
|
386
|
-
${n.indent}`)}}else(_===""||_[0]===`
|
|
387
|
-
`)&&(k="");return S+=k+_,n.inFlow?P&&r&&r():x&&!P?S+=Rl(S,n.indent,d(x)):v&&o&&o(),S}function cN(e,t){(e==="debug"||e==="warn")&&(typeof process!="undefined"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const XR="<<";function uN(e,t,{key:n,value:r}){if(e!=null&&e.doc.schema.merge&&Qve(n))if(r=cc(r)?r.resolve(e.doc):r,dd(r))for(const o of r.items)Z1(e,t,o);else if(Array.isArray(r))for(const o of r)Z1(e,t,o);else Z1(e,t,r);else{const o=di(n,"",e);if(t instanceof Map)t.set(o,di(r,o,e));else if(t instanceof Set)t.add(o);else{const i=Xve(n,o,e),s=di(r,i,e);i in t?Object.defineProperty(t,i,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[i]=s}}return t}const Qve=e=>e===XR||yn(e)&&e.value===XR&&(!e.type||e.type===Rt.PLAIN);function Z1(e,t,n){const r=e&&cc(n)?n.resolve(e.doc):n;if(!ud(r))throw new Error("Merge sources must be maps or map aliases");const o=r.toJSON(null,e,Map);for(const[i,s]of o)t instanceof Map?t.has(i)||t.set(i,s):t instanceof Set?t.add(i):Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{value:s,writable:!0,enumerable:!0,configurable:!0});return t}function Xve(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(Qn(e)&&n&&n.doc){const r=aN(n.doc,{});r.anchors=new Set;for(const i of n.anchors.keys())r.anchors.add(i.anchor);r.inFlow=!0,r.inStringifyKey=!0;const o=e.toString(r);if(!n.mapKeyWarned){let i=JSON.stringify(o);i.length>40&&(i=i.substring(0,36)+'..."'),cN(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return o}return JSON.stringify(t)}function FE(e,t,n){const r=fp(e,void 0,n),o=fp(t,void 0,n);return new Or(r,o)}class Or{constructor(t,n=null){Object.defineProperty(this,vi,{value:J4}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return Qn(n)&&(n=n.clone(t)),Qn(r)&&(r=r.clone(t)),new Or(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return uN(n,r,this)}toString(t,n,r){return t!=null&&t.doc?Yve(this,t,n,r):JSON.stringify(this)}}function dN(e,t,n){var i;return(((i=t.inFlow)!=null?i:e.flow)?Zve:Jve)(e,t,n)}function Jve({comment:e,items:t},n,{blockItemPrefix:r,flowChars:o,itemIndent:i,onChompKeep:s,onComment:a}){const{indent:c,options:{commentString:d}}=n,p=Object.assign({},n,{indent:i,type:null});let h=!1;const m=[];for(let y=0;y<t.length;++y){const v=t[y];let S=null;if(Qn(v))!h&&v.spaceBefore&&m.push(""),jg(n,m,v.commentBefore,h),v.comment&&(S=v.comment);else if(Tn(v)){const C=Qn(v.key)?v.key:null;C&&(!h&&C.spaceBefore&&m.push(""),jg(n,m,C.commentBefore,h))}h=!1;let w=Uu(v,p,()=>S=null,()=>h=!0);S&&(w+=Rl(w,i,d(S))),h&&S&&(h=!1),m.push(r+w)}let g;if(m.length===0)g=o.start+o.end;else{g=m[0];for(let y=1;y<m.length;++y){const v=m[y];g+=v?`
|
|
388
|
-
${c}${v}`:`
|
|
389
|
-
`}}return e?(g+=`
|
|
390
|
-
`+Ns(d(e),c),a&&a()):h&&s&&s(),g}function Zve({comment:e,items:t},n,{flowChars:r,itemIndent:o,onComment:i}){const{indent:s,indentStep:a,flowCollectionPadding:c,options:{commentString:d}}=n;o+=a;const p=Object.assign({},n,{indent:o,inFlow:!0,type:null});let h=!1,m=0;const g=[];for(let w=0;w<t.length;++w){const C=t[w];let x=null;if(Qn(C))C.spaceBefore&&g.push(""),jg(n,g,C.commentBefore,!1),C.comment&&(x=C.comment);else if(Tn(C)){const _=Qn(C.key)?C.key:null;_&&(_.spaceBefore&&g.push(""),jg(n,g,_.commentBefore,!1),_.comment&&(h=!0));const k=Qn(C.value)?C.value:null;k?(k.comment&&(x=k.comment),k.commentBefore&&(h=!0)):C.value==null&&_&&_.comment&&(x=_.comment)}x&&(h=!0);let P=Uu(C,p,()=>x=null);w<t.length-1&&(P+=","),x&&(P+=Rl(P,o,d(x))),!h&&(g.length>m||P.includes(`
|
|
391
|
-
`))&&(h=!0),g.push(P),m=g.length}let y;const{start:v,end:S}=r;if(g.length===0)y=v+S;else if(h||(h=g.reduce((C,x)=>C+x.length+2,2)>Iy.maxFlowStringSingleLineLength),h){y=v;for(const w of g)y+=w?`
|
|
392
|
-
${a}${s}${w}`:`
|
|
393
|
-
`;y+=`
|
|
394
|
-
${s}${S}`}else y=`${v}${c}${g.join(" ")}${c}${S}`;return e&&(y+=Rl(y,s,d(e)),i&&i()),y}function jg({indent:e,options:{commentString:t}},n,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){const i=Ns(t(r),e);n.push(i.trimStart())}}function Ia(e,t){const n=yn(t)?t.value:t;for(const r of e)if(Tn(r)&&(r.key===t||r.key===n||yn(r.key)&&r.key.value===n))return r}class Po extends Iy{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(jl,t),this.items=[]}static from(t,n,r){const{keepUndefined:o,replacer:i}=r,s=new this(t),a=(c,d)=>{if(typeof i=="function")d=i.call(n,c,d);else if(Array.isArray(i)&&!i.includes(c))return;(d!==void 0||o)&&s.items.push(FE(c,d,r))};if(n instanceof Map)for(const[c,d]of n)a(c,d);else if(n&&typeof n=="object")for(const c of Object.keys(n))a(c,n[c]);return typeof t.sortMapEntries=="function"&&s.items.sort(t.sortMapEntries),s}add(t,n){var s;let r;Tn(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new Or(t,t==null?void 0:t.value):r=new Or(t.key,t.value);const o=Ia(this.items,r.key),i=(s=this.schema)==null?void 0:s.sortMapEntries;if(o){if(!n)throw new Error(`Key ${r.key} already set`);yn(o.value)&&sN(r.value)?o.value.value=r.value:o.value=r.value}else if(i){const a=this.items.findIndex(c=>i(r,c)<0);a===-1?this.items.push(r):this.items.splice(a,0,r)}else this.items.push(r)}delete(t){const n=Ia(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){var i;const r=Ia(this.items,t),o=r==null?void 0:r.value;return(i=!n&&yn(o)?o.value:o)!=null?i:void 0}has(t){return!!Ia(this.items,t)}set(t,n){this.add(new Or(t,n),!0)}toJSON(t,n,r){const o=r?new r:n!=null&&n.mapAsMap?new Map:{};n!=null&&n.onCreate&&n.onCreate(o);for(const i of this.items)uN(n,o,i);return o}toString(t,n,r){if(!t)return JSON.stringify(this);for(const o of this.items)if(!Tn(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),dN(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const fd={collection:"map",default:!0,nodeClass:Po,tag:"tag:yaml.org,2002:map",resolve(e,t){return ud(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Po.from(e,t,n)};class Zl extends Iy{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(ad,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=cm(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=cm(t);if(typeof r!="number")return;const o=this.items[r];return!n&&yn(o)?o.value:o}has(t){const n=cm(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=cm(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[r];yn(o)&&sN(n)?o.value=n:this.items[r]=n}toJSON(t,n){const r=[];n!=null&&n.onCreate&&n.onCreate(r);let o=0;for(const i of this.items)r.push(di(i,String(o++),n));return r}toString(t,n,r){return t?dN(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:o}=r,i=new this(t);if(n&&Symbol.iterator in Object(n)){let s=0;for(let a of n){if(typeof o=="function"){const c=n instanceof Set?a:String(s++);a=o.call(n,c,a)}i.items.push(fp(a,void 0,r))}}return i}}function cm(e){let t=yn(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const pd={collection:"seq",default:!0,nodeClass:Zl,tag:"tag:yaml.org,2002:seq",resolve(e,t){return dd(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>Zl.from(e,t,n)},Ry={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),zp(e,t,n,r)}},My={identify:e=>e==null,createNode:()=>new Rt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Rt(null),stringify:({source:e},t)=>typeof e=="string"&&My.test.test(e)?e:t.options.nullStr},LE={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Rt(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&LE.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 ji({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r=="bigint")return String(r);const o=typeof r=="number"?r:Number(r);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let i=JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(i)){let s=i.indexOf(".");s<0&&(s=i.length,i+=".");let a=t-(i.length-s-1);for(;a-- >0;)i+="0"}return i}const fN={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:ji},pN={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():ji(e)}},hN={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Rt(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:ji},Ty=e=>typeof e=="bigint"||Number.isInteger(e),AE=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function mN(e,t,n){const{value:r}=e;return Ty(r)&&r>=0?n+r.toString(t):ji(e)}const gN={identify:e=>Ty(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>AE(e,2,8,n),stringify:e=>mN(e,8,"0o")},vN={identify:Ty,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>AE(e,0,10,n),stringify:ji},yN={identify:e=>Ty(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>AE(e,2,16,n),stringify:e=>mN(e,16,"0x")},eye=[fd,pd,Ry,My,LE,gN,vN,yN,fN,pN,hN];function JR(e){return typeof e=="bigint"||Number.isInteger(e)}const um=({value:e})=>JSON.stringify(e),tye=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:um},{identify:e=>e==null,createNode:()=>new Rt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:um},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:um},{identify:JR,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})=>JR(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:um}],nye={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},rye=[fd,pd].concat(tye,nye),NE={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer=="function")return Buffer.from(e,"base64");if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let o=0;o<n.length;++o)r[o]=n.charCodeAt(o);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,o,i){const s=n;let a;if(typeof Buffer=="function")a=s instanceof Buffer?s.toString("base64"):Buffer.from(s.buffer).toString("base64");else if(typeof btoa=="function"){let c="";for(let d=0;d<s.length;++d)c+=String.fromCharCode(s[d]);a=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=Rt.BLOCK_LITERAL),t!==Rt.QUOTE_DOUBLE){const c=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),d=Math.ceil(a.length/c),p=new Array(d);for(let h=0,m=0;h<d;++h,m+=c)p[h]=a.substr(m,c);a=p.join(t===Rt.BLOCK_LITERAL?`
|
|
395
|
-
`:" ")}return zp({comment:e,type:t,value:a},r,o,i)}};function bN(e,t){var n;if(dd(e))for(let r=0;r<e.items.length;++r){let o=e.items[r];if(!Tn(o)){if(ud(o)){o.items.length>1&&t("Each pair must have its own sequence indicator");const i=o.items[0]||new Or(new Rt(null));if(o.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${o.commentBefore}
|
|
396
|
-
${i.key.commentBefore}`:o.commentBefore),o.comment){const s=(n=i.value)!=null?n:i.key;s.comment=s.comment?`${o.comment}
|
|
397
|
-
${s.comment}`:o.comment}o=i}e.items[r]=Tn(o)?o:new Or(o)}}else t("Expected a sequence for this tag");return e}function wN(e,t,n){const{replacer:r}=n,o=new Zl(e);o.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let s of t){typeof r=="function"&&(s=r.call(t,String(i++),s));let a,c;if(Array.isArray(s))if(s.length===2)a=s[0],c=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){const d=Object.keys(s);if(d.length===1)a=d[0],c=s[a];else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else a=s;o.items.push(FE(a,c,n))}return o}const DE={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:bN,createNode:wN};class wu extends Zl{constructor(){super(),this.add=Po.prototype.add.bind(this),this.delete=Po.prototype.delete.bind(this),this.get=Po.prototype.get.bind(this),this.has=Po.prototype.has.bind(this),this.set=Po.prototype.set.bind(this),this.tag=wu.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n!=null&&n.onCreate&&n.onCreate(r);for(const o of this.items){let i,s;if(Tn(o)?(i=di(o.key,"",n),s=di(o.value,i,n)):i=di(o,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,s)}return r}static from(t,n,r){const o=wN(t,n,r),i=new this;return i.items=o.items,i}}wu.tag="tag:yaml.org,2002:omap";const BE={collection:"seq",identify:e=>e instanceof Map,nodeClass:wu,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=bN(e,t),r=[];for(const{key:o}of n.items)yn(o)&&(r.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):r.push(o.value));return Object.assign(new wu,n)},createNode:(e,t,n)=>wu.from(e,t,n)};function CN({value:e,source:t},n){return t&&(e?xN:SN).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const xN={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Rt(!0),stringify:CN},SN={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new Rt(!1),stringify:CN},oye={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:ji},iye={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():ji(e)}},sye={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Rt(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const r=e.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(t.minFractionDigits=r.length)}return t},stringify:ji},jp=e=>typeof e=="bigint"||Number.isInteger(e);function Oy(e,t,n,{intAsBigInt:r}){const o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const s=BigInt(e);return o==="-"?BigInt(-1)*s:s}const i=parseInt(e,n);return o==="-"?-1*i:i}function zE(e,t,n){const{value:r}=e;if(jp(r)){const o=r.toString(t);return r<0?"-"+n+o.substr(1):n+o}return ji(e)}const lye={identify:jp,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Oy(e,2,2,n),stringify:e=>zE(e,2,"0b")},aye={identify:jp,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Oy(e,1,8,n),stringify:e=>zE(e,8,"0")},cye={identify:jp,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Oy(e,0,10,n),stringify:ji},uye={identify:jp,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Oy(e,2,16,n),stringify:e=>zE(e,16,"0x")};class Cu extends Po{constructor(t){super(t),this.tag=Cu.tag}add(t){let n;Tn(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new Or(t.key,null):n=new Or(t,null),Ia(this.items,n.key)||this.items.push(n)}get(t,n){const r=Ia(this.items,t);return!n&&Tn(r)?yn(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=Ia(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new Or(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){const{replacer:o}=r,i=new this(t);if(n&&Symbol.iterator in Object(n))for(let s of n)typeof o=="function"&&(s=o.call(n,s,s)),i.items.push(FE(s,null,r));return i}}Cu.tag="tag:yaml.org,2002:set";const jE={collection:"map",identify:e=>e instanceof Set,nodeClass:Cu,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>Cu.from(e,t,n),resolve(e,t){if(ud(e)){if(e.hasAllNullValues(!0))return Object.assign(new Cu,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function HE(e,t){const n=e[0],r=n==="-"||n==="+"?e.substring(1):e,o=s=>t?BigInt(s):Number(s),i=r.replace(/_/g,"").split(":").reduce((s,a)=>s*o(60)+o(a),o(0));return n==="-"?o(-1)*i:i}function EN(e){let{value:t}=e,n=s=>s;if(typeof t=="bigint")n=s=>BigInt(s);else if(isNaN(t)||!isFinite(t))return ji(e);let r="";t<0&&(r="-",t*=n(-1));const o=n(60),i=[t%o];return t<60?i.unshift(0):(t=(t-i[0])/o,i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),r+i.map(s=>String(s).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const PN={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})=>HE(e,n),stringify:EN},IN={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=>HE(e,!1),stringify:EN},Fy={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(Fy.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,o,i,s,a]=t.map(Number),c=t[7]?Number((t[7]+"00").substr(1,3)):0;let d=Date.UTC(n,r-1,o,i||0,s||0,a||0,c);const p=t[8];if(p&&p!=="Z"){let h=HE(p,!1);Math.abs(h)<30&&(h*=60),d-=6e4*h}return new Date(d)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},ZR=[fd,pd,Ry,My,xN,SN,lye,aye,cye,uye,oye,iye,sye,NE,BE,DE,jE,PN,IN,Fy],eM=new Map([["core",eye],["failsafe",[fd,pd,Ry]],["json",rye],["yaml11",ZR],["yaml-1.1",ZR]]),tM={binary:NE,bool:LE,float:hN,floatExp:pN,floatNaN:fN,floatTime:IN,int:vN,intHex:yN,intOct:gN,intTime:PN,map:fd,null:My,omap:BE,pairs:DE,seq:pd,set:jE,timestamp:Fy},dye={"tag:yaml.org,2002:binary":NE,"tag:yaml.org,2002:omap":BE,"tag:yaml.org,2002:pairs":DE,"tag:yaml.org,2002:set":jE,"tag:yaml.org,2002:timestamp":Fy};function eb(e,t){let n=eM.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from(eM.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=tM[r];if(o)return o;const i=Object.keys(tM).map(s=>JSON.stringify(s)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${i}`)})}const fye=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Ly{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:o,schema:i,sortMapEntries:s,toStringDefaults:a}){this.compat=Array.isArray(t)?eb(t,"compat"):t?eb(null,t):null,this.merge=!!r,this.name=typeof i=="string"&&i||"core",this.knownTags=o?dye:{},this.tags=eb(n,this.name),this.toStringOptions=a!=null?a:null,Object.defineProperty(this,jl,{value:fd}),Object.defineProperty(this,Ys,{value:Ry}),Object.defineProperty(this,ad,{value:pd}),this.sortMapEntries=typeof s=="function"?s:s===!0?fye:null}clone(){const t=Object.create(Ly.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function pye(e,t){var c;const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const d=e.directives.toString(e);d?(n.push(d),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const o=aN(e,t),{commentString:i}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const d=i(e.commentBefore);n.unshift(Ns(d,""))}let s=!1,a=null;if(e.contents){if(Qn(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const h=i(e.contents.commentBefore);n.push(Ns(h,""))}o.forceBlockIndent=!!e.comment,a=e.contents.comment}const d=a?void 0:()=>s=!0;let p=Uu(e.contents,o,()=>a=null,d);a&&(p+=Rl(p,"",i(a))),(p[0]==="|"||p[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${p}`:n.push(p)}else n.push(Uu(e.contents,o));if((c=e.directives)!=null&&c.docEnd)if(e.comment){const d=i(e.comment);d.includes(`
|
|
398
|
-
`)?(n.push("..."),n.push(Ns(d,""))):n.push(`... ${d}`)}else n.push("...");else{let d=e.comment;d&&s&&(d=d.replace(/^\n+/,"")),d&&((!s||a)&&n[n.length-1]!==""&&n.push(""),n.push(Ns(i(d),"")))}return n.join(`
|
|
399
|
-
`)+`
|
|
400
|
-
`}class hd{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,vi,{value:qw});let o=null;typeof n=="function"||Array.isArray(n)?o=n:r===void 0&&n&&(r=n,n=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},r);this.options=i;let{version:s}=i;r!=null&&r._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new zr({version:s}),this.setSchema(s,r),this.contents=t===void 0?null:this.createNode(t,o,r)}clone(){const t=Object.create(hd.prototype,{[vi]:{value:qw}});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=Qn(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){Lc(this.contents)&&this.contents.add(t)}addIn(t,n){Lc(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=oN(this);t.anchor=!n||r.has(n)?iN(n||"a",r):n}return new Py(t.anchor)}createNode(t,n,r){let o;if(typeof n=="function")t=n.call({"":t},"",t),o=n;else if(Array.isArray(n)){const S=C=>typeof C=="number"||C instanceof String||C instanceof Number,w=n.filter(S).map(String);w.length>0&&(n=n.concat(w)),o=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:i,anchorPrefix:s,flow:a,keepUndefined:c,onTagObj:d,tag:p}=r!=null?r:{},{onAnchor:h,setAnchors:m,sourceObjects:g}=jve(this,s||"a"),y={aliasDuplicateObjects:i!=null?i:!0,keepUndefined:c!=null?c:!1,onAnchor:h,onTagObj:d,replacer:o,schema:this.schema,sourceObjects:g},v=fp(t,p,y);return a&&Dn(v)&&(v.flow=!0),m(),v}createPair(t,n,r={}){const o=this.createNode(t,null,r),i=this.createNode(n,null,r);return new Or(o,i)}delete(t){return Lc(this.contents)?this.contents.delete(t):!1}deleteIn(t){return cf(t)?this.contents==null?!1:(this.contents=null,!0):Lc(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Dn(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return cf(t)?!n&&yn(this.contents)?this.contents.value:this.contents:Dn(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Dn(this.contents)?this.contents.has(t):!1}hasIn(t){return cf(t)?this.contents!==void 0:Dn(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=zg(this.schema,[t],n):Lc(this.contents)&&this.contents.set(t,n)}setIn(t,n){cf(t)?this.contents=n:this.contents==null?this.contents=zg(this.schema,Array.from(t),n):Lc(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 zr({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 zr({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 Ly(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:o,onAnchor:i,reviver:s}={}){const a={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},c=di(this.contents,n!=null?n:"",a);if(typeof i=="function")for(const{count:d,res:p}of a.anchors.values())i(p,d);return typeof s=="function"?su(s,{"":c},"",c):c}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return pye(this,t)}}function Lc(e){if(Dn(e))return!0;throw new Error("Expected a YAML collection as document contents")}class VE extends Error{constructor(t,n,r,o){super(),this.name=t,this.code=r,this.message=o,this.pos=n}}class ka extends VE{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class kN extends VE{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const Hg=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(a=>t.linePos(a));const{line:r,col:o}=n.linePos[0];n.message+=` at line ${r}, column ${o}`;let i=o-1,s=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(i>=60&&s.length>80){const a=Math.min(i-39,s.length-79);s="…"+s.substring(a),i-=a-1}if(s.length>80&&(s=s.substring(0,79)+"…"),r>1&&/^ *$/.test(s.substring(0,i))){let a=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);a.length>80&&(a=a.substring(0,79)+`…
|
|
401
|
-
`),s=a+s}if(/[^ ]/.test(s)){let a=1;const c=n.linePos[1];c&&c.line===r&&c.col>o&&(a=Math.max(1,Math.min(c.col-o,80-i)));const d=" ".repeat(i)+"^".repeat(a);n.message+=`:
|
|
402
|
-
|
|
403
|
-
${s}
|
|
404
|
-
${d}
|
|
405
|
-
`}};function Wu(e,{flow:t,indicator:n,next:r,offset:o,onError:i,startOnNewline:s}){let a=!1,c=s,d=s,p="",h="",m=!1,g=!1,y=!1,v=null,S=null,w=null,C=null,x=null;for(const k of e)switch(y&&(k.type!=="space"&&k.type!=="newline"&&k.type!=="comma"&&i(k.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),y=!1),k.type){case"space":!t&&c&&n!=="doc-start"&&k.source[0]===" "&&i(k,"TAB_AS_INDENT","Tabs are not allowed as indentation"),d=!0;break;case"comment":{d||i(k,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const I=k.source.substring(1)||" ";p?p+=h+I:p=I,h="",c=!1;break}case"newline":c?p?p+=k.source:a=!0:h+=k.source,c=!0,m=!0,(v||S)&&(g=!0),d=!0;break;case"anchor":v&&i(k,"MULTIPLE_ANCHORS","A node can have at most one anchor"),k.source.endsWith(":")&&i(k.offset+k.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),v=k,x===null&&(x=k.offset),c=!1,d=!1,y=!0;break;case"tag":{S&&i(k,"MULTIPLE_TAGS","A node can have at most one tag"),S=k,x===null&&(x=k.offset),c=!1,d=!1,y=!0;break}case n:(v||S)&&i(k,"BAD_PROP_ORDER",`Anchors and tags must be after the ${k.source} indicator`),C&&i(k,"UNEXPECTED_TOKEN",`Unexpected ${k.source} in ${t!=null?t:"collection"}`),C=k,c=!1,d=!1;break;case"comma":if(t){w&&i(k,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),w=k,c=!1,d=!1;break}default:i(k,"UNEXPECTED_TOKEN",`Unexpected ${k.type} token`),c=!1,d=!1}const P=e[e.length-1],_=P?P.offset+P.source.length:o;return y&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:w,found:C,spaceBefore:a,comment:p,hasNewline:m,hasNewlineAfterProp:g,anchor:v,tag:S,end:_,start:x!=null?x:_}}function pp(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
|
|
406
|
-
`))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(pp(t.key)||pp(t.value))return!0}return!1;default:return!0}}function Jw(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&pp(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function _N(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const o=typeof r=="function"?r:(i,s)=>i===s||yn(i)&&yn(s)&&i.value===s.value&&!(i.value==="<<"&&e.schema.merge);return t.some(i=>o(i.key,n))}const nM="All mapping items must start at the same column";function hye({composeNode:e,composeEmptyNode:t},n,r,o,i){var p,h;const s=(p=i==null?void 0:i.nodeClass)!=null?p:Po,a=new s(n.schema);n.atRoot&&(n.atRoot=!1);let c=r.offset,d=null;for(const m of r.items){const{start:g,key:y,sep:v,value:S}=m,w=Wu(g,{indicator:"explicit-key-ind",next:y!=null?y:v==null?void 0:v[0],offset:c,onError:o,startOnNewline:!0}),C=!w.found;if(C){if(y&&(y.type==="block-seq"?o(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in y&&y.indent!==r.indent&&o(c,"BAD_INDENT",nM)),!w.anchor&&!w.tag&&!v){d=w.end,w.comment&&(a.comment?a.comment+=`
|
|
407
|
-
`+w.comment:a.comment=w.comment);continue}(w.hasNewlineAfterProp||pp(y))&&o(y!=null?y:g[g.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((h=w.found)==null?void 0:h.indent)!==r.indent&&o(c,"BAD_INDENT",nM);const x=w.end,P=y?e(n,y,w,o):t(n,x,g,null,w,o);n.schema.compat&&Jw(r.indent,y,o),_N(n,a.items,P)&&o(x,"DUPLICATE_KEY","Map keys must be unique");const _=Wu(v!=null?v:[],{indicator:"map-value-ind",next:S,offset:P.range[2],onError:o,startOnNewline:!y||y.type==="block-scalar"});if(c=_.end,_.found){C&&((S==null?void 0:S.type)==="block-map"&&!_.hasNewline&&o(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&w.start<_.found.offset-1024&&o(P.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const k=S?e(n,S,_,o):t(n,c,v,null,_,o);n.schema.compat&&Jw(r.indent,S,o),c=k.range[2];const I=new Or(P,k);n.options.keepSourceTokens&&(I.srcToken=m),a.items.push(I)}else{C&&o(P.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),_.comment&&(P.comment?P.comment+=`
|
|
408
|
-
`+_.comment:P.comment=_.comment);const k=new Or(P);n.options.keepSourceTokens&&(k.srcToken=m),a.items.push(k)}}return d&&d<c&&o(d,"IMPOSSIBLE","Map comment with trailing content"),a.range=[r.offset,c,d!=null?d:c],a}function mye({composeNode:e,composeEmptyNode:t},n,r,o,i){var p;const s=(p=i==null?void 0:i.nodeClass)!=null?p:Zl,a=new s(n.schema);n.atRoot&&(n.atRoot=!1);let c=r.offset,d=null;for(const{start:h,value:m}of r.items){const g=Wu(h,{indicator:"seq-item-ind",next:m,offset:c,onError:o,startOnNewline:!0});if(!g.found)if(g.anchor||g.tag||m)m&&m.type==="block-seq"?o(g.end,"BAD_INDENT","All sequence items must start at the same column"):o(c,"MISSING_CHAR","Sequence item without - indicator");else{d=g.end,g.comment&&(a.comment=g.comment);continue}const y=m?e(n,m,g,o):t(n,g.end,h,null,g,o);n.schema.compat&&Jw(r.indent,m,o),c=y.range[2],a.items.push(y)}return a.range=[r.offset,c,d!=null?d:c],a}function Hp(e,t,n,r){let o="";if(e){let i=!1,s="";for(const a of e){const{source:c,type:d}=a;switch(d){case"space":i=!0;break;case"comment":{n&&!i&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const p=c.substring(1)||" ";o?o+=s+p:o=p,s="";break}case"newline":o&&(s+=c),i=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${d} at node end`)}t+=c.length}}return{comment:o,offset:t}}const tb="Block collections are not allowed within flow collections",nb=e=>e&&(e.type==="block-map"||e.type==="block-seq");function gye({composeNode:e,composeEmptyNode:t},n,r,o,i){var S,w;const s=r.start.source==="{",a=s?"flow map":"flow sequence",c=(S=i==null?void 0:i.nodeClass)!=null?S:s?Po:Zl,d=new c(n.schema);d.flow=!0;const p=n.atRoot;p&&(n.atRoot=!1);let h=r.offset+r.start.source.length;for(let C=0;C<r.items.length;++C){const x=r.items[C],{start:P,key:_,sep:k,value:I}=x,R=Wu(P,{flow:a,indicator:"explicit-key-ind",next:_!=null?_:k==null?void 0:k[0],offset:h,onError:o,startOnNewline:!1});if(!R.found){if(!R.anchor&&!R.tag&&!k&&!I){C===0&&R.comma?o(R.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):C<r.items.length-1&&o(R.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),R.comment&&(d.comment?d.comment+=`
|
|
409
|
-
`+R.comment:d.comment=R.comment),h=R.end;continue}!s&&n.options.strict&&pp(_)&&o(_,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(C===0)R.comma&&o(R.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(R.comma||o(R.start,"MISSING_CHAR",`Missing , between ${a} items`),R.comment){let L="";e:for(const N of P)switch(N.type){case"comma":case"space":break;case"comment":L=N.source.substring(1);break e;default:break e}if(L){let N=d.items[d.items.length-1];Tn(N)&&(N=(w=N.value)!=null?w:N.key),N.comment?N.comment+=`
|
|
410
|
-
`+L:N.comment=L,R.comment=R.comment.substring(L.length+1)}}if(!s&&!k&&!R.found){const L=I?e(n,I,R,o):t(n,R.end,k,null,R,o);d.items.push(L),h=L.range[2],nb(I)&&o(L.range,"BLOCK_IN_FLOW",tb)}else{const L=R.end,N=_?e(n,_,R,o):t(n,L,P,null,R,o);nb(_)&&o(N.range,"BLOCK_IN_FLOW",tb);const O=Wu(k!=null?k:[],{flow:a,indicator:"map-value-ind",next:I,offset:N.range[2],onError:o,startOnNewline:!1});if(O.found){if(!s&&!R.found&&n.options.strict){if(k)for(const M of k){if(M===O.found)break;if(M.type==="newline"){o(M,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}R.start<O.found.offset-1024&&o(O.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else I&&("source"in I&&I.source&&I.source[0]===":"?o(I,"MISSING_CHAR",`Missing space after : in ${a}`):o(O.start,"MISSING_CHAR",`Missing , or : between ${a} items`));const D=I?e(n,I,O,o):O.found?t(n,O.end,k,null,O,o):null;D?nb(I)&&o(D.range,"BLOCK_IN_FLOW",tb):O.comment&&(N.comment?N.comment+=`
|
|
411
|
-
`+O.comment:N.comment=O.comment);const B=new Or(N,D);if(n.options.keepSourceTokens&&(B.srcToken=x),s){const M=d;_N(n,M.items,N)&&o(L,"DUPLICATE_KEY","Map keys must be unique"),M.items.push(B)}else{const M=new Po(n.schema);M.flow=!0,M.items.push(B),d.items.push(M)}h=D?D.range[2]:O.end}}const m=s?"}":"]",[g,...y]=r.end;let v=h;if(g&&g.source===m)v=g.offset+g.source.length;else{const C=a[0].toUpperCase()+a.substring(1),x=p?`${C} must end with a ${m}`:`${C} in block collection must be sufficiently indented and end with a ${m}`;o(h,p?"MISSING_CHAR":"BAD_INDENT",x),g&&g.source.length!==1&&y.unshift(g)}if(y.length>0){const C=Hp(y,v,n.options.strict,o);C.comment&&(d.comment?d.comment+=`
|
|
412
|
-
`+C.comment:d.comment=C.comment),d.range=[r.offset,v,C.offset]}else d.range=[r.offset,v,v];return d}function rb(e,t,n,r,o,i){const s=n.type==="block-map"?hye(e,t,n,r,i):n.type==="block-seq"?mye(e,t,n,r,i):gye(e,t,n,r,i),a=s.constructor;return o==="!"||o===a.tagName?(s.tag=a.tagName,s):(o&&(s.tag=o),s)}function vye(e,t,n,r,o){var h,m;const i=r?t.directives.tagName(r.source,g=>o(r,"TAG_RESOLVE_FAILED",g)):null,s=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!r||!i||i==="!"||i===Po.tagName&&s==="map"||i===Zl.tagName&&s==="seq"||!s)return rb(e,t,n,o,i);let a=t.schema.tags.find(g=>g.tag===i&&g.collection===s);if(!a){const g=t.schema.knownTags[i];if(g&&g.collection===s)t.schema.tags.push(Object.assign({},g,{default:!1})),a=g;else return g!=null&&g.collection?o(r,"BAD_COLLECTION_TYPE",`${g.tag} used for ${s} collection, but expects ${g.collection}`,!0):o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${i}`,!0),rb(e,t,n,o,i)}const c=rb(e,t,n,o,i,a),d=(m=(h=a.resolve)==null?void 0:h.call(a,c,g=>o(r,"TAG_RESOLVE_FAILED",g),t.options))!=null?m:c,p=Qn(d)?d:new Rt(d);return p.range=c.range,p.tag=i,a!=null&&a.format&&(p.format=a.format),p}function $N(e,t,n){const r=e.offset,o=yye(e,t,n);if(!o)return{value:"",type:null,comment:"",range:[r,r,r]};const i=o.mode===">"?Rt.BLOCK_FOLDED:Rt.BLOCK_LITERAL,s=e.source?bye(e.source):[];let a=s.length;for(let v=s.length-1;v>=0;--v){const S=s[v][1];if(S===""||S==="\r")a=v;else break}if(a===0){const v=o.chomp==="+"&&s.length>0?`
|
|
413
|
-
`.repeat(Math.max(1,s.length-1)):"";let S=r+o.length;return e.source&&(S+=e.source.length),{value:v,type:i,comment:o.comment,range:[r,S,S]}}let c=e.indent+o.indent,d=e.offset+o.length,p=0;for(let v=0;v<a;++v){const[S,w]=s[v];if(w===""||w==="\r")o.indent===0&&S.length>c&&(c=S.length);else{if(S.length<c){const C="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(d+S.length,"MISSING_CHAR",C)}o.indent===0&&(c=S.length),p=v;break}d+=S.length+w.length+1}for(let v=s.length-1;v>=a;--v)s[v][0].length>c&&(a=v+1);let h="",m="",g=!1;for(let v=0;v<p;++v)h+=s[v][0].slice(c)+`
|
|
414
|
-
`;for(let v=p;v<a;++v){let[S,w]=s[v];d+=S.length+w.length+1;const C=w[w.length-1]==="\r";if(C&&(w=w.slice(0,-1)),w&&S.length<c){const P=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(d-w.length-(C?2:1),"BAD_INDENT",P),S=""}i===Rt.BLOCK_LITERAL?(h+=m+S.slice(c)+w,m=`
|
|
415
|
-
`):S.length>c||w[0]===" "?(m===" "?m=`
|
|
416
|
-
`:!g&&m===`
|
|
417
|
-
`&&(m=`
|
|
418
|
-
|
|
419
|
-
`),h+=m+S.slice(c)+w,m=`
|
|
420
|
-
`,g=!0):w===""?m===`
|
|
421
|
-
`?h+=`
|
|
422
|
-
`:m=`
|
|
423
|
-
`:(h+=m+w,m=" ",g=!1)}switch(o.chomp){case"-":break;case"+":for(let v=a;v<s.length;++v)h+=`
|
|
424
|
-
`+s[v][0].slice(c);h[h.length-1]!==`
|
|
425
|
-
`&&(h+=`
|
|
426
|
-
`);break;default:h+=`
|
|
427
|
-
`}const y=r+o.length+e.source.length;return{value:h,type:i,comment:o.comment,range:[r,y,y]}}function yye({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],i=o[0];let s=0,a="",c=-1;for(let m=1;m<o.length;++m){const g=o[m];if(!a&&(g==="-"||g==="+"))a=g;else{const y=Number(g);!s&&y?s=y:c===-1&&(c=e+m)}}c!==-1&&r(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let d=!1,p="",h=o.length;for(let m=1;m<t.length;++m){const g=t[m];switch(g.type){case"space":d=!0;case"newline":h+=g.source.length;break;case"comment":n&&!d&&r(g,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),h+=g.source.length,p=g.source.substring(1);break;case"error":r(g,"UNEXPECTED_TOKEN",g.message),h+=g.source.length;break;default:{const y=`Unexpected token in block scalar header: ${g.type}`;r(g,"UNEXPECTED_TOKEN",y);const v=g.source;v&&typeof v=="string"&&(h+=v.length)}}}return{mode:i,indent:s,chomp:a,comment:p,length:h}}function bye(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r!=null&&r[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let s=1;s<t.length;s+=2)i.push([t[s],t[s+1]]);return i}function RN(e,t,n){const{offset:r,type:o,source:i,end:s}=e;let a,c;const d=(m,g,y)=>n(r+m,g,y);switch(o){case"scalar":a=Rt.PLAIN,c=wye(i,d);break;case"single-quoted-scalar":a=Rt.QUOTE_SINGLE,c=Cye(i,d);break;case"double-quoted-scalar":a=Rt.QUOTE_DOUBLE,c=xye(i,d);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[r,r+i.length,r+i.length]}}const p=r+i.length,h=Hp(s,p,t,n);return{value:c,type:a,comment:h.comment,range:[r,p,h.offset]}}function wye(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}`),MN(e)}function Cye(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),MN(e.slice(1,-1)).replace(/''/g,"'")}function MN(e){var c;let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
428
|
-
`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
429
|
-
`,"sy")}catch(d){t=new RegExp("(.*?)[ \\t]*\\r?\\n","sy"),n=new RegExp("[ \\t]*(.*?)[ \\t]*\\r?\\n","sy")}let r=t.exec(e);if(!r)return e;let o=r[1],i=" ",s=t.lastIndex;for(n.lastIndex=s;r=n.exec(e);)r[1]===""?i===`
|
|
430
|
-
`?o+=i:i=`
|
|
431
|
-
`:(o+=i+r[1],i=" "),s=n.lastIndex;const a=new RegExp("[ \\t]*(.*)","sy");return a.lastIndex=s,r=a.exec(e),o+i+((c=r==null?void 0:r[1])!=null?c:"")}function xye(e,t){let n="";for(let r=1;r<e.length-1;++r){const o=e[r];if(!(o==="\r"&&e[r+1]===`
|
|
432
|
-
`))if(o===`
|
|
433
|
-
`){const{fold:i,offset:s}=Sye(e,r);n+=i,r=s}else if(o==="\\"){let i=e[++r];const s=Eye[i];if(s)n+=s;else if(i===`
|
|
434
|
-
`)for(i=e[r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="\r"&&e[r+1]===`
|
|
435
|
-
`)for(i=e[++r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="x"||i==="u"||i==="U"){const a={x:2,u:4,U:8}[i];n+=Pye(e,r+1,a,t),r+=a}else{const a=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),n+=a}}else if(o===" "||o===" "){const i=r;let s=e[r+1];for(;s===" "||s===" ";)s=e[++r+1];s!==`
|
|
436
|
-
`&&!(s==="\r"&&e[r+2]===`
|
|
437
|
-
`)&&(n+=r>i?e.slice(i,r+1):o)}else n+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function Sye(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
|
|
438
|
-
`||r==="\r")&&!(r==="\r"&&e[t+2]!==`
|
|
439
|
-
`);)r===`
|
|
440
|
-
`&&(n+=`
|
|
441
|
-
`),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const Eye={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
442
|
-
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Pye(e,t,n,r){const o=e.substr(t,n),s=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(s)){const a=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(s)}function TN(e,t,n,r){const{value:o,type:i,comment:s,range:a}=t.type==="block-scalar"?$N(t,e.options.strict,r):RN(t,e.options.strict,r),c=n?e.directives.tagName(n.source,h=>r(n,"TAG_RESOLVE_FAILED",h)):null,d=n&&c?Iye(e.schema,o,c,n,r):t.type==="scalar"?kye(e,o,t,r):e.schema[Ys];let p;try{const h=d.resolve(o,m=>r(n!=null?n:t,"TAG_RESOLVE_FAILED",m),e.options);p=yn(h)?h:new Rt(h)}catch(h){const m=h instanceof Error?h.message:String(h);r(n!=null?n:t,"TAG_RESOLVE_FAILED",m),p=new Rt(o)}return p.range=a,p.source=o,i&&(p.type=i),c&&(p.tag=c),d.format&&(p.format=d.format),s&&(p.comment=s),p}function Iye(e,t,n,r,o){var a;if(n==="!")return e[Ys];const i=[];for(const c of e.tags)if(!c.collection&&c.tag===n)if(c.default&&c.test)i.push(c);else return c;for(const c of i)if((a=c.test)!=null&&a.test(t))return c;const s=e.knownTags[n];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[Ys])}function kye({directives:e,schema:t},n,r,o){var s;const i=t.tags.find(a=>{var c;return a.default&&((c=a.test)==null?void 0:c.test(n))})||t[Ys];if(t.compat){const a=(s=t.compat.find(c=>{var d;return c.default&&((d=c.test)==null?void 0:d.test(n))}))!=null?s:t[Ys];if(i.tag!==a.tag){const c=e.tagString(i.tag),d=e.tagString(a.tag),p=`Value may be parsed as either ${c} or ${d}`;o(r,"TAG_RESOLVE_FAILED",p,!0)}}return i}function _ye(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 $ye={composeNode:ON,composeEmptyNode:UE};function ON(e,t,n,r){const{spaceBefore:o,comment:i,anchor:s,tag:a}=n;let c,d=!0;switch(t.type){case"alias":c=Rye(e,t,r),(s||a)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=TN(e,t,a,r),s&&(c.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=vye($ye,e,t,a,r),s&&(c.anchor=s.source.substring(1));break;default:{const p=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",p),c=UE(e,t.offset,void 0,null,n,r),d=!1}}return s&&c.anchor===""&&r(s,"BAD_ALIAS","Anchor cannot be an empty string"),o&&(c.spaceBefore=!0),i&&(t.type==="scalar"&&t.source===""?c.comment=i:c.commentBefore=i),e.options.keepSourceTokens&&d&&(c.srcToken=t),c}function UE(e,t,n,r,{spaceBefore:o,comment:i,anchor:s,tag:a,end:c},d){const p={type:"scalar",offset:_ye(t,n,r),indent:-1,source:""},h=TN(e,p,a,d);return s&&(h.anchor=s.source.substring(1),h.anchor===""&&d(s,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(h.spaceBefore=!0),i&&(h.comment=i,h.range[2]=c),h}function Rye({options:e},{offset:t,source:n,end:r},o){const i=new Py(n.substring(1));i.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const s=t+n.length,a=Hp(r,s,e.strict,o);return i.range=[t,s,a.offset],a.comment&&(i.comment=a.comment),i}function Mye(e,t,{offset:n,start:r,value:o,end:i},s){const a=Object.assign({_directives:t},e),c=new hd(void 0,a),d={atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},p=Wu(r,{indicator:"doc-start",next:o!=null?o:i==null?void 0:i[0],offset:n,onError:s,startOnNewline:!0});p.found&&(c.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!p.hasNewline&&s(p.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=o?ON(d,o,p,s):UE(d,p.end,r,null,p,s);const h=c.contents.range[2],m=Hp(i,h,!1,s);return m.comment&&(c.comment=m.comment),c.range=[n,h,m.offset],c}function Qd(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 rM(e){var o;let t="",n=!1,r=!1;for(let i=0;i<e.length;++i){const s=e[i];switch(s[0]){case"#":t+=(t===""?"":r?`
|
|
443
|
-
|
|
444
|
-
`:`
|
|
445
|
-
`)+(s.substring(1)||" "),n=!0,r=!1;break;case"%":((o=e[i+1])==null?void 0:o[0])!=="#"&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class WE{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,o,i)=>{const s=Qd(n);i?this.warnings.push(new kN(s,r,o)):this.errors.push(new ka(s,r,o))},this.directives=new zr({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:o}=rM(this.prelude);if(r){const i=t.contents;if(n)t.comment=t.comment?`${t.comment}
|
|
446
|
-
${r}`:r;else if(o||t.directives.docStart||!i)t.commentBefore=r;else if(Dn(i)&&!i.flow&&i.items.length>0){let s=i.items[0];Tn(s)&&(s=s.key);const a=s.commentBefore;s.commentBefore=a?`${r}
|
|
447
|
-
${a}`:r}else{const s=i.commentBefore;i.commentBefore=s?`${r}
|
|
448
|
-
${s}`:r}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:rM(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const o of t)yield*this.next(o);yield*this.end(n,r)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,o)=>{const i=Qd(t);i[0]+=n,this.onError(i,"BAD_DIRECTIVE",r,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=Mye(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 ka(Qd(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 ka(Qd(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=Hp(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
|
|
449
|
-
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new ka(Qd(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 hd(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 Tye(e,t=!0,n){if(e){const r=(o,i,s)=>{const a=typeof o=="number"?o:Array.isArray(o)?o[0]:o.offset;if(n)n(a,i,s);else throw new ka([a,a+1],i,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return RN(e,t,r);case"block-scalar":return $N(e,t,r)}}return null}function Oye(e,t){var d;const{implicitKey:n=!1,indent:r,inFlow:o=!1,offset:i=-1,type:s="PLAIN"}=t,a=zp({type:s,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),c=(d=t.end)!=null?d:[{type:"newline",offset:-1,indent:r,source:`
|
|
450
|
-
`}];switch(a[0]){case"|":case">":{const p=a.indexOf(`
|
|
451
|
-
`),h=a.substring(0,p),m=a.substring(p+1)+`
|
|
452
|
-
`,g=[{type:"block-scalar-header",offset:i,indent:r,source:h}];return FN(g,c)||g.push({type:"newline",offset:-1,indent:r,source:`
|
|
453
|
-
`}),{type:"block-scalar",offset:i,indent:r,props:g,source:m}}case'"':return{type:"double-quoted-scalar",offset:i,indent:r,source:a,end:c};case"'":return{type:"single-quoted-scalar",offset:i,indent:r,source:a,end:c};default:return{type:"scalar",offset:i,indent:r,source:a,end:c}}}function Fye(e,t,n={}){let{afterKey:r=!1,implicitKey:o=!1,inFlow:i=!1,type:s}=n,a="indent"in e?e.indent:null;if(r&&typeof a=="number"&&(a+=2),!s)switch(e.type){case"single-quoted-scalar":s="QUOTE_SINGLE";break;case"double-quoted-scalar":s="QUOTE_DOUBLE";break;case"block-scalar":{const d=e.props[0];if(d.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s=d.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:s="PLAIN"}const c=zp({type:s,value:t},{implicitKey:o||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":Lye(e,c);break;case'"':ob(e,c,"double-quoted-scalar");break;case"'":ob(e,c,"single-quoted-scalar");break;default:ob(e,c,"scalar")}}function Lye(e,t){const n=t.indexOf(`
|
|
454
|
-
`),r=t.substring(0,n),o=t.substring(n+1)+`
|
|
455
|
-
`;if(e.type==="block-scalar"){const i=e.props[0];if(i.type!=="block-scalar-header")throw new Error("Invalid block scalar header");i.source=r,e.source=o}else{const{offset:i}=e,s="indent"in e?e.indent:-1,a=[{type:"block-scalar-header",offset:i,indent:s,source:r}];FN(a,"end"in e?e.end:void 0)||a.push({type:"newline",offset:-1,indent:s,source:`
|
|
456
|
-
`});for(const c of Object.keys(e))c!=="type"&&c!=="offset"&&delete e[c];Object.assign(e,{type:"block-scalar",indent:s,props:a,source:o})}}function FN(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 ob(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n,e.source=t;break;case"block-scalar":{const r=e.props.slice(1);let o=t.length;e.props[0].type==="block-scalar-header"&&(o-=e.props[0].source.length);for(const i of r)i.offset+=o;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case"block-map":case"block-seq":{const o={type:"newline",offset:e.offset+t.length,indent:e.indent,source:`
|
|
457
|
-
`};delete e.items,Object.assign(e,{type:n,source:t,end:[o]});break}default:{const r="indent"in e?e.indent:-1,o="end"in e&&Array.isArray(e.end)?e.end.filter(i=>i.type==="space"||i.type==="comment"||i.type==="newline"):[];for(const i of Object.keys(e))i!=="type"&&i!=="offset"&&delete e[i];Object.assign(e,{type:n,indent:r,source:t,end:o})}}}const Aye=e=>"type"in e?Vg(e):Bm(e);function Vg(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=Vg(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=Bm(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=Bm(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=Bm(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 Bm({start:e,key:t,sep:n,value:r}){let o="";for(const i of e)o+=i.source;if(t&&(o+=Vg(t)),n)for(const i of n)o+=i.source;return r&&(o+=Vg(r)),o}const Zw=Symbol("break visit"),Nye=Symbol("skip children"),LN=Symbol("remove item");function Za(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),AN(Object.freeze([]),e,t)}Za.BREAK=Zw;Za.SKIP=Nye;Za.REMOVE=LN;Za.itemAtPath=(e,t)=>{let n=e;for(const[r,o]of t){const i=n==null?void 0:n[r];if(i&&"items"in i)n=i.items[o];else return}return n};Za.parentCollection=(e,t)=>{const n=Za.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],o=n==null?void 0:n[r];if(o&&"items"in o)return o;throw new Error("Parent collection not found")};function AN(e,t,n){let r=n(t,e);if(typeof r=="symbol")return r;for(const o of["key","value"]){const i=t[o];if(i&&"items"in i){for(let s=0;s<i.items.length;++s){const a=AN(Object.freeze(e.concat([[o,s]])),i.items[s],n);if(typeof a=="number")s=a-1;else{if(a===Zw)return Zw;a===LN&&(i.items.splice(s,1),s-=1)}}typeof r=="function"&&o==="key"&&(r=r(t,e))}}return typeof r=="function"?r(t,e):r}const Ay="\uFEFF",Ny="",Dy="",hp="",Dye=e=>!!e&&"items"in e,Bye=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function zye(e){switch(e){case Ay:return"<BOM>";case Ny:return"<DOC>";case Dy:return"<FLOW_END>";case hp:return"<SCALAR>";default:return JSON.stringify(e)}}function NN(e){switch(e){case Ay:return"byte-order-mark";case Ny:return"doc-mode";case Dy:return"flow-error-end";case hp:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
458
|
-
`:case`\r
|
|
459
|
-
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}const jye=Object.freeze(Object.defineProperty({__proto__:null,BOM:Ay,DOCUMENT:Ny,FLOW_END:Dy,SCALAR:hp,createScalarToken:Oye,isCollection:Dye,isScalar:Bye,prettyToken:zye,resolveAsScalar:Tye,setScalarValue:Fye,stringify:Aye,tokenType:NN,visit:Za},Symbol.toStringTag,{value:"Module"}));function Jo(e){switch(e){case void 0:case" ":case`
|
|
460
|
-
`:case"\r":case" ":return!0;default:return!1}}const oM="0123456789ABCDEFabcdef".split(""),Hye="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),ib=",[]{}".split(""),Vye=` ,[]{}
|
|
461
|
-
\r `.split(""),sb=e=>!e||Vye.includes(e);class DN{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){var o;t&&(this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null),this.atEnd=!n;let r=(o=this.next)!=null?o:"stream";for(;r&&(n||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
|
|
462
|
-
`?!0:n==="\r"?this.buffer[t+1]===`
|
|
463
|
-
`:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let r=0;for(;n===" ";)n=this.buffer[++r+t];if(n==="\r"){const o=this.buffer[r+t+1];if(o===`
|
|
464
|
-
`||!o&&!this.atEnd)return t+r+1}return n===`
|
|
465
|
-
`||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&Jo(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
|
|
466
|
-
`,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===Ay&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length;const r=t.indexOf("#");if(r!==-1){const i=t[r-1];(i===" "||i===" ")&&(n=r-1)}for(;;){const i=t[n-1];if(i===" "||i===" ")n-=1;else break}const o=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-o),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield Ny,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if(n==="---"&&Jo(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if(n==="..."&&Jo(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Jo(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Jo(n)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(sb),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,r=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=r=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&o[0]!=="#"||r===0&&(o.startsWith("---")||o.startsWith("..."))&&Jo(o[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield Dy,yield*this.parseLineStart();let i=0;for(;o[i]===",";)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),o[i]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(sb),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const s=this.charAt(1);if(this.flowKey||Jo(s)||s===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let i=0;for(;this.buffer[n-1-i]==="\\";)i+=1;if(i%2===0)break;n=this.buffer.indexOf('"',n+1)}const r=this.buffer.substring(0,n);let o=r.indexOf(`
|
|
467
|
-
`,this.pos);if(o!==-1){for(;o!==-1;){const i=this.continueScalar(o+1);if(i===-1)break;o=r.indexOf(`
|
|
468
|
-
`,i)}o!==-1&&(n=o-(r[o-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>Jo(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,r;e:for(let o=this.pos;r=this.buffer[o];++o)switch(r){case" ":n+=1;break;case`
|
|
469
|
-
`:t=o,n=0;break;case"\r":{const i=this.buffer[o+1];if(!i&&!this.atEnd)return this.setNext("block-scalar");if(i===`
|
|
470
|
-
`)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext+=this.blockScalarIndent;do{const o=this.continueScalar(t+1);if(o===-1)break;t=this.buffer.indexOf(`
|
|
471
|
-
`,o)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)do{let o=t-1,i=this.buffer[o];i==="\r"&&(i=this.buffer[--o]);const s=o;for(;i===" "||i===" ";)i=this.buffer[--o];if(i===`
|
|
472
|
-
`&&o>=this.pos&&o+1+n>s)t=o;else break}while(!0);return yield hp,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,o;for(;o=this.buffer[++r];)if(o===":"){const i=this.buffer[r+1];if(Jo(i)||t&&i===",")break;n=r}else if(Jo(o)){let i=this.buffer[r+1];if(o==="\r"&&(i===`
|
|
473
|
-
`?(r+=1,o=`
|
|
474
|
-
`,i=this.buffer[r+1]):n=r),i==="#"||t&&ib.includes(i))break;if(o===`
|
|
475
|
-
`){const s=this.continueScalar(r+1);if(s===-1)break;r=Math.max(r,s-2)}}else{if(t&&ib.includes(o))break;n=r}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield hp,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const r=this.buffer.slice(this.pos,t);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(sb))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(Jo(n)||t&&ib.includes(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!Jo(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(Hye.includes(n))n=this.buffer[++t];else if(n==="%"&&oM.includes(this.buffer[t+1])&&oM.includes(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
|
|
476
|
-
`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
|
|
477
|
-
`?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||t&&r===" ");const o=n-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=n),o}*pushUntil(t){let n=this.pos,r=this.buffer[n];for(;!t(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class BN{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){const i=n+r>>1;this.lineStarts[i]<t?n=i+1:r=i}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const o=this.lineStarts[n-1];return{line:n,col:t-o+1}}}}function Pi(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function iM(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 zN(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 dm(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 Ac(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 sM(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!Pi(t.start,"explicit-key-ind")&&!Pi(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,zN(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 GE=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 DN,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(t,n))yield*this.next(r);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=NN(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const r=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t!=null?t:this.stack.pop();if(n)if(this.stack.length===0)yield n;else{const r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),n.type==="flow-collection"&&sM(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=!Pi(o.start,"explicit-key-ind");return}break}case"block-seq":{const o=r.items[r.items.length-1];o.value?r.items.push({start:[],value:n}):o.value=n;break}case"flow-collection":{const o=r.items[r.items.length-1];!o||o.value?r.items.push({start:[],key:n,sep:[]}):o.sep?o.value=n:Object.assign(o,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const o=n.items[n.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&iM(o.start)===-1&&(n.indent===0||o.start.every(i=>i.type!=="comment"||i.indent<n.indent))&&(r.type==="document"?r.end=o.start:r.items.push({start:o.start}),n.items.splice(-1,1))}}else{const r="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:r}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{iM(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=dm(this.peek(2)),r=Ac(n);let o;t.end?(o=t.end,o.push(this.sourceToken),delete t.end):o=[this.sourceToken];const i={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:r,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
|
|
478
|
-
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
479
|
-
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const o="end"in n.value?n.value.end:void 0,i=Array.isArray(o)?o[o.length-1]:void 0;(i==null?void 0:i.type)==="comment"?o==null||o.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2],i=(r=o==null?void 0:o.value)==null?void 0:r.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const o=!this.onKeyLine&&this.indent===t.indent&&n.sep;let i=[];if(o&&n.sep&&!n.value){const s=[];for(let a=0;a<n.sep.length;++a){const c=n.sep[a];switch(c.type){case"newline":s.push(a);break;case"space":break;case"comment":c.indent>t.indent&&(s.length=0);break;default:s.length=0}}s.length>=2&&(i=n.sep.splice(s[1]))}switch(this.type){case"anchor":case"tag":o||n.value?(i.push(this.sourceToken),t.items.push({start:i}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!Pi(n.start,"explicit-key-ind")?n.start.push(this.sourceToken):o||n.value?(i.push(this.sourceToken),t.items.push({start:i})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}),this.onKeyLine=!0;return;case"map-value-ind":if(Pi(n.start,"explicit-key-ind"))if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Pi(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(zN(n.key)&&!Pi(n.sep,"newline")){const s=Ac(n.start),a=n.key,c=n.sep;c.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:a,sep:c}]})}else i.length>0?n.sep=n.sep.concat(i,this.sourceToken):n.sep.push(this.sourceToken);else if(Pi(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const s=Ac(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||o?t.items.push({start:i,key:null,sep:[this.sourceToken]}):Pi(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);o||n.value?(t.items.push({start:i,key:s,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(s):(Object.assign(n,{key:s,sep:[]}),this.onKeyLine=!0);return}default:{const s=this.startBlockValue(t);if(s){o&&s.type!=="block-seq"&&Pi(n.start,"explicit-key-ind")&&t.items.push({start:i}),this.stack.push(s);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const o="end"in n.value?n.value.end:void 0,i=Array.isArray(o)?o[o.length-1]:void 0;(i==null?void 0:i.type)==="comment"?o==null||o.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2],i=(r=o==null?void 0:o.value)==null?void 0:r.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||Pi(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const o=this.startBlockValue(t);if(o){this.stack.push(o);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r&&r.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:o,sep:[]}):n.sep?this.stack.push(o):Object.assign(n,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const r=this.startBlockValue(t);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===t.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const o=dm(r),i=Ac(o);sM(t);const s=t.end.splice(1,t.end.length);s.push(this.sourceToken);const a={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
|
|
480
|
-
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
481
|
-
`,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=dm(t),r=Ac(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=dm(t),r=Ac(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};function jN(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new BN||null,prettyErrors:t}}function Uye(e,t={}){const{lineCounter:n,prettyErrors:r}=jN(t),o=new GE(n==null?void 0:n.addNewLine),i=new WE(t),s=Array.from(i.compose(o.parse(e)));if(r&&n)for(const a of s)a.errors.forEach(Hg(e,n)),a.warnings.forEach(Hg(e,n));return s.length>0?s:Object.assign([],{empty:!0},i.streamInfo())}function HN(e,t={}){const{lineCounter:n,prettyErrors:r}=jN(t),o=new GE(n==null?void 0:n.addNewLine),i=new WE(t);let s=null;for(const a of i.compose(o.parse(e),!0,e.length))if(!s)s=a;else if(s.options.logLevel!=="silent"){s.errors.push(new ka(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(s.errors.forEach(Hg(e,n)),s.warnings.forEach(Hg(e,n))),s}function Wye(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);const o=HN(e,n);if(!o)return null;if(o.warnings.forEach(i=>cN(o.options.logLevel,i)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:r},n))}function Gye(e,t,n){var o;let r=null;if(typeof t=="function"||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n=="string"&&(n=n.length),typeof n=="number"){const i=Math.round(n);n=i<1?void 0:i>8?{indent:8}:{indent:i}}if(e===void 0){const{keepUndefined:i}=(o=n!=null?n:t)!=null?o:{};if(!i)return}return new hd(e,r,n).toString(n)}const lM=Object.freeze(Object.defineProperty({__proto__:null,Alias:Py,CST:jye,Composer:WE,Document:hd,Lexer:DN,LineCounter:BN,Pair:Or,Parser:GE,Scalar:Rt,Schema:Ly,YAMLError:VE,YAMLMap:Po,YAMLParseError:ka,YAMLSeq:Zl,YAMLWarning:kN,isAlias:cc,isCollection:Dn,isDocument:cd,isMap:ud,isNode:Qn,isPair:Tn,isScalar:yn,isSeq:dd,parse:Wye,parseAllDocuments:Uye,parseDocument:HN,stringify:Gye,visit:Jl,visitAsync:Ey},Symbol.toStringTag,{value:"Module"}));var KE={},Kye=lt;Object.defineProperty(KE,"__esModule",{value:!0});var VN=KE.default=void 0,qye=Kye(at()),Yye=st(),Qye=(0,qye.default)((0,Yye.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}),"ContentCopy");VN=KE.default=Qye;const Xye="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept";function Jye({file:e,anyMask:t,defaultPerms:n,addToBar:r,statusApi:o}){var O;const N=e,{parent:i,children:s,isRoot:a,byMasks:c}=N,d=nn(N,["parent","children","isRoot","byMasks"]),[p,h]=u.useState(d);u.useEffect(()=>{h(Object.assign(yS(n,()=>null),d))},[e]);const{source:m}=e,g=e.type==="folder",y=m!==void 0,v=y&&g,S=u.useMemo(()=>{const B={};let M=i;for(;M;)St.defaults(B,M,M.byMasks),M=M.parent;return St.defaults(B,n)},[i]),w=y&&!!p.ctime,C=y&&!v,x=e.accept>""||g&&((O=e.can_upload)!=null?O:S.can_upload),P=ES(),{data:_,element:k}=Mo("get_accounts");if(k||!_)return k;const I=_.list,R=!y&&"Works only on folders with source! ";return u.createElement(Tp,{values:p,set(B,M){M!=="link"&&h(F=>{var A;const V=M==="source"&&((A=F.source)==null?void 0:A.endsWith(F.name))?gse(B):F.name;return $t(Ee({},F),{name:V,[M]:B})})},barSx:Ee({gap:2,width:"100%"},P),stickyBar:!0,addToBar:[!a&&u.createElement(Gn,{icon:Zs,title:"Delete",confirm:"Delete?",onClick:()=>Et("del_vfs",{uris:[e.id]}).then(()=>ec())}),r],onError:un,save:{sx:fy(!PS(p,d)),onClick(){return mt(this,null,function*(){const B=St.omit(p,["ctime","mtime","size","id"]);B.masks||(B.masks=null),yield Et("set_vfs",{uri:p.id,props:B}),B.name!==e.name&&(pn.selectedFiles[0].id=e.parent.id+B.name+(g?"/":"")),ec()})}},fields:[a?u.createElement(jo,{severity:"info"},"This is Home, the root of your shared files. Options set here will be applied to all files."):{k:"name",required:!0,helperText:y&&"You can decide a name that's different from the one on your disk"},{k:"id",comp:Zye,statusApi:o},{k:"source",label:"Source on disk",comp:_f,files:!g,folders:g,multiline:!0,placeholder:"Not on disk, this is a virtual folder"},L("can_read","Who can see but not download will be asked to login"),L("can_see","If you can't see, you may still download with a direct link"),g&&L("can_list","Permission to see content of folders",{contentText:"subfolders"}),g&&L("can_delete",[R,"Those who can delete can also rename"]),g&&L("can_upload",R,{lg:x?6:12,contentText:"subfolders"}),x&&{k:"accept",label:"Accept on upload",placeholder:"anything",lg:6,helperText:u.createElement(Ro,{href:Xye,target:"_blank"},"Example: .zip")},C&&{k:"size",comp:Tm,lg:4,toField:ql},w&&{k:"ctime",comp:Tm,md:6,lg:C&&4,label:"Created",toField:aM},w&&{k:"mtime",comp:Tm,md:6,lg:C&&4,label:"Modified",toField:aM},e.website&&{k:"default",comp:Co,label:"Serve index.html",toField:Boolean,fromField:B=>B?"index.html":null,helperText:Ti("This folder may be a website because contains `index.html`. Enabling this will show the website instead of the list of files.")},g&&{k:"masks",multiline:!0,lg:!0,toField:lM.stringify,fromField:B=>B?lM.parse(B):void 0,sx:{"& textarea":{fontFamily:"monospace"}},helperText:["Special field, leave empty unless you know what you are doing. YAML syntax. ",Ya("Permissions","(examples)")]}]});function L(B,M,F={}){return Ee({showInherited:t,otherPerms:St.without(Object.keys(n),B).map(z=>({value:z,label:"As "+eC(z)})),k:B,lg:6,comp:UN,parent:i,accounts:I,helperText:M,label:"Who can "+eC(B),inherit:S[B],byMasks:c==null?void 0:c[B],isDir:g},F)}}function eC(e){const t=e.split("_")[1];return t==="read"?"download":t}function aM(e){return e?new Date(e).toLocaleString():"-"}function UN(y){var v=y,{value:e,onChange:t,parent:n,inherit:r,accounts:o,helperText:i,showInherited:s,otherPerms:a,byMasks:c,isChildren:d,isDir:p,contentText:h="folder content",setApi:m}=v,g=nn(v,["value","onChange","parent","inherit","accounts","helperText","showInherited","otherPerms","byMasks","isChildren","isDir","contentText","setApi"]);const S=(c!==void 0?"As per mask: ":n!==void 0?"As parent: ":"Default: ")+cM(c!=null?c:r),w=e!=null&&typeof e=="object"&&!Array.isArray(e),C=w&&e.children,x=w?e.this:e,P=u.useMemo(()=>rd([{value:null,label:S},{value:!0},{value:!1},{value:"*"},...a,{value:[],label:"Select accounts"}].map(I=>(I.value===x||s||I.value!==r)&&Ee({label:St.capitalize(cM(I.value))},I))),[r,n,x]),_=500,k=Array.isArray(x);return u.createElement(je,{sx:{borderRight:w?"8px solid #8884":void 0,transition:`all ${_}ms`}},u.createElement(ms,$t(Ee({},g),{value:k?[]:x,onChange(I,{event:R}){t(w?{this:I,children:C}:I,{was:e,event:R})},options:P})),u.createElement(wg,{in:k,timeout:_},k&&u.createElement(SS,{label:o!=null&&o.length?"Choose accounts for "+g.label:"You didn't create any account yet",value:x,onChange:t,options:(o==null?void 0:o.map(I=>({value:I.username,label:I.username})))||[]})),u.createElement(_p,{},i,!d&&p&&u.createElement(Ro,{sx:{display:"block",cursor:"pointer",mt:-.5},onClick(I){x!==void 0&&t(w?x:{this:e},{was:e,event:I})}},w?"Different permission for ":"Same permission for ",h)),!d&&u.createElement(wg,{in:w,timeout:_},u.createElement(UN,{label:"Permission for "+h,parent:n,inherit:r,accounts:o,showInherited:s,otherPerms:a,isDir:p,isChildren:!0,value:C!=null?C:null,onChange(I,{event:R}){t({this:x,children:I},{was:e,event:R})}})))}function cM(e){return e===!1?"no one":e===!0?"anyone":e==="*"?"any account (login required)":Array.isArray(e)?e.join(", "):typeof e=="string"?"as "+eC(e):"*UNKNOWN*"+JSON.stringify(e)}function Zye({value:e,statusApi:t}){const{data:n,reload:r,error:o}=t,i=n==null?void 0:n.suggestedUrls,s=n==null?void 0:n.baseUrl,a=(s||(i==null?void 0:i[0])||"")+e;return u.createElement(je,{display:"flex"},i?u.createElement(Tm,{label:"Link",value:a,error:o,end:u.createElement(je,{},u.createElement(Gn,{icon:VN,title:"Copy",onClick:()=>navigator.clipboard.writeText(a)}),u.createElement(Gn,{icon:pE,title:"Change",onClick:c}))}):"error");function c(){const{close:d}=Ho({title:"Change link",Content(){const[p,h]=u.useState(s||""),m=new URL(p||i[0]).protocol+"//",g=i.includes(p)?"":p.slice(m.length);return u.createElement(je,{display:"flex",flexDirection:"column"},u.createElement(je,{mb:2},"You can choose a different base address for your links"),u.createElement(ty,{},i.map(S=>u.createElement(Ur,{key:S,selected:S===p,onClick:()=>y(S)},S,S===p&&u.createElement(iS,{sx:{ml:2}})))),u.createElement(ys,{label:"Custom IP or domain",helperText:Ti(`You can type any address but *you* are responsible to make the address work.
|
|
482
|
-
This functionality is just to help you copy the link in case you have a domain or a complex network configuration.`),value:g,onChange:S=>y(vu(m,S)),start:u.createElement(ms,{value:m,onChange:S=>g?y(S+g):Wr("Enter domain first"),options:["http://","https://"],size:"small",variant:"standard",sx:{"& .MuiSelect-select":{pt:"1px",pb:0}}}),sx:{mt:2}}),u.createElement(je,{mt:2,textAlign:"right"},u.createElement(yu,{icon:dy,children:"Save",onClick(){return mt(this,null,function*(){p!==s&&(yield Et("set_config",{values:{base_url:p}}),yield r()),d()})}})));function y(S){S.endsWith("/")&&(S=S.slice(0,-1)),h(S)}}})}}let tC;function e0e(){var S,w,C;const[e]=u.useState(()=>new Map),{vfs:t,selectedFiles:n}=oa(),{data:r,reload:o,element:i}=Mo("get_vfs");u.useMemo(()=>t||o(),[t,o]);const s=u.useMemo(()=>function x(P){var _;return!St.isEmpty(P==null?void 0:P.masks)||((_=P==null?void 0:P.children)==null?void 0:_.some(x))}(t),[t]),a="md",c=Yl(a),d=Mo("get_status"),{data:p}=d,h=u.useMemo(()=>{const x=p==null?void 0:p.baseUrl,P=St.sortBy((p==null?void 0:p.urls.https)||(p==null?void 0:p.urls.http),_=>_.includes("[")&&_!==x);return p&&(p.suggestedUrls=P),x&&!P.includes(x)?[x,...P]:P},[p]);function m(){pn.selectedFiles=[]}const g=n.length?n.length===1?u.createElement(Jye,{addToBar:c&&u.createElement(Gn,{icon:Rp,title:"Close",onClick:m}),defaultPerms:r==null?void 0:r.defaultPerms,anyMask:s,statusApi:d,file:n[0]}):u.createElement(u.Fragment,{},u.createElement(Ql,{alignItems:"center"},u.createElement(Mr,{variant:"h6"},n.length+" selected"),u.createElement(hr,{onClick:t0e,startIcon:u.createElement(Zs)},"Remove")),u.createElement(ey,{dense:!0,disablePadding:!0},n.map(x=>u.createElement(CL,{key:x.id},u.createElement(as,{primary:x.name,secondary:x.source}))))):null;if(u.useEffect(()=>{if(c||!g)return;const{close:x}=Ho({title:n.length>1?"Multiple selection":n[0].name,Content:()=>g,onClose:m});return x},[c,n]),u.useEffect(()=>{if(pn.vfs=void 0,!r)return;e.clear();const{root:x}=r;if(!x)return;x.isRoot=!0,_(x),pn.vfs=x;const P=tC||pn.selectedFiles.map(k=>k.id);tC=void 0,pn.selectedFiles=rd(P.map(k=>e.get(k)));function _(k,I="/",R=void 0){if(k.parent=R,k.id=k.isRoot?"/":vu(I,encodeURIComponent(k.name),k.type==="folder"?"/":""),e.set(k.id,k),!!k.children)for(const L of k.children)_(L,k.id,k)}},[r,e]),i)return e.clear(),i;const v=!((w=(S=r==null?void 0:r.root)==null?void 0:S.children)!=null&&w.length)&&!((C=r==null?void 0:r.root)!=null&&C.source)?{severity:"warning",children:"Add something to your shared files — click Add"}:h&&{severity:"info",children:["Your shared files can be browsed from ",kie(" or ",h.slice(0,3).map(x=>u.createElement(Ro,{href:x},x)))]};return u.createElement(Oi,{container:!0,rowSpacing:1,maxWidth:"80em",columnSpacing:2},v&&u.createElement(Oi,{item:!0,mb:2,xs:12},u.createElement(jo,v)),u.createElement(Oi,{item:!0,[a]:6,lg:5},u.createElement(Mr,{variant:"h6",mb:1},"Virtual File System"),u.createElement(Ave),t&&u.createElement(n0e,{id2node:e})),c&&g&&u.createElement(Oi,{item:!0,[a]:6,lg:7,maxWidth:"100%"},u.createElement(Dx,{},u.createElement(Bx,{},g))))}function ec(e){tC=e,pn.vfs=void 0}function t0e(){return mt(this,null,function*(){const e=pn.selectedFiles;if(e.length&&(yield qs(`Delete ${e.length} item(s)?`)))try{const t=e.map(o=>o.id);St.pull(t,"/");const{errors:n}=yield Et("del_vfs",{uris:t}),r=t.filter((o,i)=>n[i]);if(r.length)return un("Following elements couldn't be deleted: "+r.join(", "),"error");ec()}catch(t){yield un(t)}})}const WN=H4,GN=U4;function n0e({id2node:e}){const{vfs:t,selectedFiles:n}=oa(),[r,o]=u.useState(n.map(m=>m.id)),[i,s]=u.useState(Array.from(e.keys())),a=u.useRef(),c=u.useRef();if(!t)return null;const d="vfs";return u.createElement(uA,{ref:c,expanded:i,selected:r,multiSelect:!0,id:d,sx:{overflowX:"auto",maxWidth:c.current&&`calc(100vw - ${16+c.current.offsetLeft}px)`,"& ul":{borderLeft:"1px dashed #444",marginLeft:"15px"}},onNodeSelect(m,g){o(g),pn.selectedFiles=rd(g.map(y=>e.get(y)))}},h(t));function p(m){return m!==void 0&&m!==!0}function h(m){var C,x;let{id:g,name:y,isRoot:v}=m;if(!g)debugger;const S=m.type==="folder";return u.createElement(Tw,{ref(P){P==null||P.addEventListener("focusin",_=>_.stopImmediatePropagation())},label:u.createElement(je,{draggable:!v,onDragStart(){a.current=g},onDragOver(P){if(!S)return;const _=a.current;_!=null&&_.startsWith(g)&&!_.slice(g.length+1).includes("/")||P.preventDefault()},onDrop(){return mt(this,null,function*(){const P=a.current;P&&(yield qs(`Moving ${P} under ${g}`))&&Et("move_vfs",{from:P,parent:g}).then(()=>{ec([g+P.slice(1+P.lastIndexOf("/",P.length-2))])},un)})},sx:{display:"flex",gap:".5em",lineHeight:"2em",alignItems:"center"}},u.createElement(je,{display:"flex",flex:0},v?Zr(V4,"home, or root if you like"):S?Zr(WN,"Folder"):Zr(GN,"File"),u.createElement(je,{sx:{flex:0,ml:"2px",my:"2px","&>*":{fontSize:"87%",opacity:.6,mt:"-2px"},display:"grid",gridAutoFlow:"column",gridTemplateRows:"auto auto"}},m.can_delete!==void 0&&Zr(Zs,"Delete permission"),m.can_upload!==void 0&&Zr(Op,"Upload permission"),!v&&!m.source&&Zr(K4,"Virtual (no source)"),p(m.can_see)&&Zr(W4,"Restrictions on who can see"),p(m.can_read)&&Zr(BS,"Restrictions on who can download"),m.default&&Zr(G4,"Act as website"),m.masks&&Zr(j4,"Masks"),m.size===-1&&Zr(q4,"Source not found"))),v?"Home":(()=>{var I;const P=(I=m.parent)==null?void 0:I.source,{source:_}=m,k=P&&(_!=null&&_.startsWith(P))?"."+_.slice(P.length):_;return!k||!(_!=null&&_.endsWith(y))||k.length>45?u.createElement(je,{lineHeight:"1.2em"},y):u.createElement("span",{},u.createElement("span",{style:{opacity:.4}},k.slice(0,-y.length)),k.slice(-y.length))})()),key:y,collapseIcon:u.createElement(z4,{onClick(P){s(i.filter(_=>_!==g)),P.preventDefault(),P.stopPropagation()}}),expandIcon:u.createElement(B4,{onClick(P){s([...i,g]),P.preventDefault(),P.stopPropagation()}}),nodeId:g},v&&!((C=m.children)!=null&&C.length)?u.createElement(Tw,{nodeId:"?",label:u.createElement("i",{},"nothing here")}):(x=m.children)==null?void 0:x.map(h))}}var uM=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function r0e(e,t){return!!(e===t||uM(e)&&uM(t))}function o0e(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!r0e(e[n],t[n]))return!1;return!0}function lb(e,t){t===void 0&&(t=o0e);var n,r=[],o,i=!1;function s(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];return i&&n===this&&t(a,r)||(o=e.apply(this,a),i=!0,n=this,r=a),o}return s}var i0e=typeof performance=="object"&&typeof performance.now=="function",dM=i0e?function(){return performance.now()}:function(){return Date.now()};function fM(e){cancelAnimationFrame(e.id)}function s0e(e,t){var n=dM();function r(){dM()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var ab=-1;function pM(e){if(e===void 0&&(e=!1),ab===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),ab=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return ab}var Nc=null;function hM(e){if(e===void 0&&(e=!1),Nc===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Nc="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Nc="negative":Nc="positive-ascending"),document.body.removeChild(t),Nc}return Nc}var l0e=150,a0e=function(t,n){return t};function c0e(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,a=e.getStopIndexForStartIndex,c=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,p=e.validateProps;return t=function(h){Mx(m,h);function m(y){var v;return v=h.call(this,y)||this,v._instanceProps=c(v.props,yw(v)),v._outerRef=void 0,v._resetIsScrollingTimeoutId=null,v.state={instance:yw(v),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof v.props.initialScrollOffset=="number"?v.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},v._callOnItemsRendered=void 0,v._callOnItemsRendered=lb(function(S,w,C,x){return v.props.onItemsRendered({overscanStartIndex:S,overscanStopIndex:w,visibleStartIndex:C,visibleStopIndex:x})}),v._callOnScroll=void 0,v._callOnScroll=lb(function(S,w,C){return v.props.onScroll({scrollDirection:S,scrollOffset:w,scrollUpdateWasRequested:C})}),v._getItemStyle=void 0,v._getItemStyle=function(S){var w=v.props,C=w.direction,x=w.itemSize,P=w.layout,_=v._getItemStyleCache(d&&x,d&&P,d&&C),k;if(_.hasOwnProperty(S))k=_[S];else{var I=n(v.props,S,v._instanceProps),R=o(v.props,S,v._instanceProps),L=C==="horizontal"||P==="horizontal",N=C==="rtl",O=L?I:0;_[S]=k={position:"absolute",left:N?void 0:O,right:N?O:void 0,top:L?0:I,height:L?"100%":R,width:L?R:"100%"}}return k},v._getItemStyleCache=void 0,v._getItemStyleCache=lb(function(S,w,C){return{}}),v._onScrollHorizontal=function(S){var w=S.currentTarget,C=w.clientWidth,x=w.scrollLeft,P=w.scrollWidth;v.setState(function(_){if(_.scrollOffset===x)return null;var k=v.props.direction,I=x;if(k==="rtl")switch(hM()){case"negative":I=-x;break;case"positive-descending":I=P-C-x;break}return I=Math.max(0,Math.min(I,P-C)),{isScrolling:!0,scrollDirection:_.scrollOffset<x?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},v._resetIsScrollingDebounced)},v._onScrollVertical=function(S){var w=S.currentTarget,C=w.clientHeight,x=w.scrollHeight,P=w.scrollTop;v.setState(function(_){if(_.scrollOffset===P)return null;var k=Math.max(0,Math.min(P,x-C));return{isScrolling:!0,scrollDirection:_.scrollOffset<k?"forward":"backward",scrollOffset:k,scrollUpdateWasRequested:!1}},v._resetIsScrollingDebounced)},v._outerRefSetter=function(S){var w=v.props.outerRef;v._outerRef=S,typeof w=="function"?w(S):w!=null&&typeof w=="object"&&w.hasOwnProperty("current")&&(w.current=S)},v._resetIsScrollingDebounced=function(){v._resetIsScrollingTimeoutId!==null&&fM(v._resetIsScrollingTimeoutId),v._resetIsScrollingTimeoutId=s0e(v._resetIsScrolling,l0e)},v._resetIsScrolling=function(){v._resetIsScrollingTimeoutId=null,v.setState({isScrolling:!1},function(){v._getItemStyleCache(-1,null)})},v}m.getDerivedStateFromProps=function(v,S){return u0e(v,S),p(v),null};var g=m.prototype;return g.scrollTo=function(v){v=Math.max(0,v),this.setState(function(S){return S.scrollOffset===v?null:{scrollDirection:S.scrollOffset<v?"forward":"backward",scrollOffset:v,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},g.scrollToItem=function(v,S){S===void 0&&(S="auto");var w=this.props,C=w.itemCount,x=w.layout,P=this.state.scrollOffset;v=Math.max(0,Math.min(v,C-1));var _=0;if(this._outerRef){var k=this._outerRef;x==="vertical"?_=k.scrollWidth>k.clientWidth?pM():0:_=k.scrollHeight>k.clientHeight?pM():0}this.scrollTo(i(this.props,v,S,P,this._instanceProps,_))},g.componentDidMount=function(){var v=this.props,S=v.direction,w=v.initialScrollOffset,C=v.layout;if(typeof w=="number"&&this._outerRef!=null){var x=this._outerRef;S==="horizontal"||C==="horizontal"?x.scrollLeft=w:x.scrollTop=w}this._callPropsCallbacks()},g.componentDidUpdate=function(){var v=this.props,S=v.direction,w=v.layout,C=this.state,x=C.scrollOffset,P=C.scrollUpdateWasRequested;if(P&&this._outerRef!=null){var _=this._outerRef;if(S==="horizontal"||w==="horizontal")if(S==="rtl")switch(hM()){case"negative":_.scrollLeft=-x;break;case"positive-ascending":_.scrollLeft=x;break;default:var k=_.clientWidth,I=_.scrollWidth;_.scrollLeft=I-k-x;break}else _.scrollLeft=x;else _.scrollTop=x}this._callPropsCallbacks()},g.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&fM(this._resetIsScrollingTimeoutId)},g.render=function(){var v=this.props,S=v.children,w=v.className,C=v.direction,x=v.height,P=v.innerRef,_=v.innerElementType,k=v.innerTagName,I=v.itemCount,R=v.itemData,L=v.itemKey,N=L===void 0?a0e:L,O=v.layout,D=v.outerElementType,B=v.outerTagName,M=v.style,F=v.useIsScrolling,z=v.width,V=this.state.isScrolling,A=C==="horizontal"||O==="horizontal",H=A?this._onScrollHorizontal:this._onScrollVertical,W=this._getRangeToRender(),K=W[0],Y=W[1],ie=[];if(I>0)for(var re=K;re<=Y;re++)ie.push(u.createElement(S,{data:R,key:N(re,R),index:re,isScrolling:F?V:void 0,style:this._getItemStyle(re)}));var de=r(this.props,this._instanceProps);return u.createElement(D||B||"div",{className:w,onScroll:H,ref:this._outerRefSetter,style:E({position:"relative",height:x,width:z,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:C},M)},u.createElement(_||k||"div",{children:ie,ref:P,style:{height:A?"100%":de,pointerEvents:V?"none":void 0,width:A?de:"100%"}}))},g._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var v=this.props.itemCount;if(v>0){var S=this._getRangeToRender(),w=S[0],C=S[1],x=S[2],P=S[3];this._callOnItemsRendered(w,C,x,P)}}if(typeof this.props.onScroll=="function"){var _=this.state,k=_.scrollDirection,I=_.scrollOffset,R=_.scrollUpdateWasRequested;this._callOnScroll(k,I,R)}},g._getRangeToRender=function(){var v=this.props,S=v.itemCount,w=v.overscanCount,C=this.state,x=C.isScrolling,P=C.scrollDirection,_=C.scrollOffset;if(S===0)return[0,0,0,0];var k=s(this.props,_,this._instanceProps),I=a(this.props,k,_,this._instanceProps),R=!x||P==="backward"?Math.max(1,w):1,L=!x||P==="forward"?Math.max(1,w):1;return[Math.max(0,k-R),Math.max(0,Math.min(S-1,I+L)),k,I]},m}(u.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var u0e=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},d0e=c0e({getItemOffset:function(t,n){var r=t.itemSize;return n*r},getItemSize:function(t,n){var r=t.itemSize;return r},getEstimatedTotalSize:function(t){var n=t.itemCount,r=t.itemSize;return r*n},getOffsetForIndexAndAlignment:function(t,n,r,o,i,s){var a=t.direction,c=t.height,d=t.itemCount,p=t.itemSize,h=t.layout,m=t.width,g=a==="horizontal"||h==="horizontal",y=g?m:c,v=Math.max(0,d*p-y),S=Math.min(v,n*p),w=Math.max(0,n*p-y+p+s);switch(r==="smart"&&(o>=w-y&&o<=S+y?r="auto":r="center"),r){case"start":return S;case"end":return w;case"center":{var C=Math.round(w+(S-w)/2);return C<Math.ceil(y/2)?0:C>v+Math.floor(y/2)?v:C}case"auto":default:return o>=w&&o<=S?o:o<w?w:S}},getStartIndexForOffset:function(t,n){var r=t.itemCount,o=t.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/o)))},getStopIndexForStartIndex:function(t,n,r){var o=t.direction,i=t.height,s=t.itemCount,a=t.itemSize,c=t.layout,d=t.width,p=o==="horizontal"||c==="horizontal",h=n*a,m=p?d:i,g=Math.ceil((m+r-h)/a);return Math.max(0,Math.min(s-1,n+g-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}});function KN({onSelect:e,multiple:t=!0,files:n=!0,folders:r=!0,fileMask:o,from:i=""}){const[s,a]=u.useState(i),[c,d]=u.useState(!1),p=u.useRef(!1);u.useEffect(()=>{Et("resolve_path",{path:i,closestFolder:!0}).then(D=>{typeof D.path=="string"&&(a(D.path),p.current=D.path[1]===":")}).finally(()=>d(!0))},[i]);const{list:h,error:m,connecting:g}=sc(c&&"ls",{path:s,files:n,fileMask:o});u.useEffect(()=>{v([]),w("")},[s]);const[y,v]=u.useState([]),[S,w]=u.useState(""),C=u.useMemo(()=>St.debounce(D=>w(D)),[]),x=u.useMemo(()=>{const D=new RegExp(St.escapeRegExp(S),"i");return B=>D.test(B)},[S]),[P,_]=u.useState(0),k=u.useMemo(()=>h.filter(D=>x(D.n)),[h,x]),I=p.current?"":"/",R=p.current?"\\":"/",L=use(R,s),N=s.length<2;return u.createElement(u.Fragment,{},u.createElement(je,{display:"flex",gap:1},u.createElement(hr,{title:"root",disabled:N,onClick(){a(I)}},u.createElement(D4)),u.createElement(hr,{disabled:N,title:"parent folder",onClick(){const D=/[\\/]$/.test(s)?s.slice(0,-1):s,B=ile(D)?I:D.slice(0,D.lastIndexOf(R)||1);a(B)}},u.createElement(gE)),u.createElement(ys,{label:"Current path",value:s,InputLabelProps:{shrink:!0},onChange(D){return mt(this,null,function*(){if(!D)return a(I);const B=yield Et("resolve_path",{path:D});a(B.path)})}})),m?u.createElement(jo,{severity:"error"},gA(m)):u.createElement(u.Fragment,{},u.createElement(je,{ref(D){if(!D)return;const B=(D==null?void 0:D.clientHeight)-1;B-P>1&&_(B)},sx:{flex:1,display:"flex",flexDirection:"column"}},h.length?u.createElement(d0e,{width:"100%",height:P,itemSize:46,itemCount:k.length,overscanCount:5,children({index:D,style:B}){const M=k[D],F=M.k==="d";return u.createElement(Ur,{style:$t(Ee({},B),{padding:0}),key:M.n,onClick(){F?a(L+M.n):e([L+M.n])}},t&&u.createElement(nL,{checked:y.includes(M.n),disabled:!r&&F,onClick(z){const V=M.n,A=y.filter(H=>H!==V);v(A.length<y.length?A:[...y,V]),z.stopPropagation()}}),u.createElement(Bs,{},u.createElement(M.k?WN:GN)),u.createElement(as,{sx:{whiteSpace:"pre-wrap",wordBreak:"break-all"}},M.n),!F&&M.s!==void 0&&u.createElement(Mr,{variant:"body2",color:"text.secondary",ml:4,mr:1},ql(M.s)))}}):u.createElement(py,{flex:1,mt:"4em"},g?mA():"No elements in this folder")),u.createElement(je,{display:"flex",gap:1},(t||r||!n)&&u.createElement(hr,{variant:"contained",disabled:!s||!r&&!y.length&&n,sx:{minWidth:"max-content"},onClick(){e(y.length?y.map(D=>L+D):[s])}},n&&(y.length||!r)?`Select (${y.length})`:"Select this folder"),u.createElement($p,{value:S,label:`Filter results (${k.length}${k.length<h.length?"/"+h.length:""})`,onChange(D){C(D.target.value)},sx:{flex:1}}))))}function _f(c){var d=c,{value:e,onChange:t,files:n=!0,folders:r=!1,fileMask:o,defaultPath:i,title:s}=d,a=nn(d,["value","onChange","files","folders","fileMask","defaultPath","title"]);const p=Yl("md");return u.createElement(ys,$t(Ee({},a),{value:e,onChange:t,InputProps:{endAdornment:u.createElement(qa,{position:"end"},u.createElement(Gn,{icon:N4,title:"Browse files...",edge:"end",onClick(){const{close:h}=Ho({title:s!=null?s:n?"Pick a file":"Pick a folder",dialogProps:{fullScreen:!p,sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){return u.createElement(KN,{multiple:!1,folders:r,files:n,fileMask:o,from:e||i,onSelect(g){return mt(this,null,function*(){var S;let y=g==null?void 0:g[0];if(!y)return;const v=(S=yield Et("get_cwd"))==null?void 0:S.path;y.startsWith(v)&&(y=y.slice(v.length+1)||"."),t(y,{was:e,event:"picker"}),h()})}})}})}}))}}))}var qE={},f0e=lt;Object.defineProperty(qE,"__esModule",{value:!0});var zm=qE.default=void 0,p0e=f0e(at()),h0e=st(),m0e=(0,p0e.default)((0,h0e.jsx)("path",{d:"M22 13v3c0 1.1-.9 2-2 2h-3l1 1v2H6v-2l1-1H4c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h8v2H4v11h16v-3h2zm-7 2-5-5h4V3h2v7h4l-5 5z"}),"BrowserUpdated");zm=qE.default=m0e;var YE={},g0e=lt;Object.defineProperty(YE,"__esModule",{value:!0});var qN=YE.default=void 0,v0e=g0e(at()),y0e=st(),b0e=(0,v0e.default)((0,y0e.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");qN=YE.default=b0e;var QE={},w0e=lt;Object.defineProperty(QE,"__esModule",{value:!0});var YN=QE.default=void 0,C0e=w0e(at()),x0e=st(),S0e=(0,C0e.default)((0,x0e.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"Launch");YN=QE.default=S0e;var XE={},E0e=lt;Object.defineProperty(XE,"__esModule",{value:!0});var QN=XE.default=void 0,P0e=E0e(at()),I0e=st(),k0e=(0,P0e.default)((0,I0e.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"OpenInNew");QN=XE.default=k0e;function _0e(){var P,_,k;const e=" — ",{username:t}=oa(),{data:n,reload:r,element:o}=Mo("get_status"),{data:i}=Mo("get_vfs"),[s]=oy(t&&"get_account"),{data:a,reload:c}=Mo("get_config",{only:["https_port","cert","private_key","proxies","update_to_beta"]}),{list:d}=sc("get_plugins"),[p,h]=u.useState();if(o||!n)return o;const{http:m,https:g}=n,y=!(m!=null&&m.listening)&&(g!=null&&g.listening)?"s":"",v=y?g:(m==null?void 0:m.listening)&&m,S=v&&`http${y}://`+window.location.hostname+(v.port===(y?443:80)?"":":"+v.port),w=St.pick(n,["http","https"]),C=yS(w,R=>R.busy?[`port ${R.port} already used by ${R.busy}${e}choose a `,fm("different port"),` or stop ${R.busy}`]:R.error),x=C&&rd(Object.entries(C).map(([R,L])=>L&&[Ti(`Protocol <u>${R}</u> cannot work: `),L,(JE(L)||ZE(L))&&[e,u.createElement(Ro,{sx:{cursor:"pointer"},onClick(){eP().then(c).then(r)}},"make one")," or ",e,fm("provide adequate files")]]));return u.createElement(je,{display:"flex",gap:2,flexDirection:"column",alignItems:"flex-start",height:"100%"},t&&Jr("","Welcome "+t),x.length?np(x.map(R=>Jr("error",np(R)))):Jr("success","Server is working"),i?!((_=(P=i.root)==null?void 0:P.children)!=null&&_.length)&&!((k=i.root)!=null&&k.source)?Jr("warning","You have no files shared",e,R0e("add some")):Jr("",Ti("This is Admin-panel, where you manage your server. Access your files on "),u.createElement(Ro,{target:"frontend",href:"../.."},"Front-end",u.createElement(YN,{sx:{verticalAlign:"sub",ml:".2em"}}))):u.createElement(yL),!S&&Jr("warning","Frontend unreachable: ",St.map(C,(R,L)=>L+" "+(R?"is in error":"is off")).join(", "),!x.length&&[e,fm("switch http or https on")]),d.find(R=>R.badApi)&&Jr("warning","Some plugins may be incompatible"),!(s!=null&&s.adminActualAccess)&&Jr("",Ti("On <u>localhost</u> you don't need to login"),e,"to access from another computer ",u.createElement(IS,{to:"accounts"},Ti("create an account with *admin* permission"))),nC(a,n)&&Jr("warning",nC(a,n),e,fm("set the number of proxies"),e,"unless you are sure and you can ",u.createElement(hr,{size:"small",onClick(){return mt(this,null,function*(){(yield qs("Go on only if you know what you are doing"))&&(yield Et("set_config",{values:{ignore_proxies:!0}}))&&c()})}},"ignore this warning"),e,Ya("Proxy-warning","Explanation")),((a==null?void 0:a.proxies)>0||(n==null?void 0:n.proxyDetected))&&Jr("",Ya("Reverse-proxy","Read our guide on proxies")),n.frpDetected&&Jr("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",{},Ti("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)`))),Jr("",u.createElement(Ro,{target:"support",href:vS+"discussions"},"Get support")),n.updatePossible==="local"?u.createElement(yu,{icon:zm,onClick:()=>mM()},"Update from local file"):p?Mw(St.find(p,"isNewer"),R=>!p.length||!n.updatePossible&&!R?Jr("","No update available"):R&&!n.updatePossible?Jr("",`Version ${R.name} available`):u.createElement(Ql,{vert:!0},p.map(L=>u.createElement(Ql,{key:L.name,alignItems:"flex-start",flexWrap:"wrap"},u.createElement(Dx,{},u.createElement(Bx,{},u.createElement(yu,$t(Ee({icon:zm},!L.isNewer&&{color:"warning",variant:"outlined"}),{onClick:()=>mM(L.tag_name)}),vu("Install ",L.name,L.isNewer?"":" (older)")),u.createElement(je,{mt:1},$0e(L.body)))))))):u.createElement(yu,{variant:"outlined",icon:zm,onClick:()=>Et("check_update").then(R=>h(R.options),un)},"Check for updates"))}function $0e(e){return Ti(e,{onText:t,linkTarget:"_blank"});function t(n){return X4(n,new RegExp("(?<=^|\\W)#(\\d+)\\b","g"),r=>u.createElement(Ro,{href:vS+"issues/"+r[1],target:"_blank"},u.createElement(QN,{sx:{verticalAlign:"bottom"}})))}}function mM(e){return mt(this,null,function*(){if(!(yield qs("Update may take less than a minute, depending on the speed of your server")))return;Wr("Downloading"),yield Et("update",{tag:e}),Wr("Restarting");const t=Date.now();let n;for(;yield Et("NONE").then(()=>0,r=>!r.code);)!n&&Date.now()-t>1e4&&(n=un("This is taking too long, please check your server","warning")),yield ase(500);n==null||n.close(),yA(pn,"loginRequired",()=>pn.loginRequired=!1),yield un("Procedure complete","success"),window.location.reload()})}function Jr(e,...t){return u.createElement(je,{fontSize:"x-large",color:n=>{var r;return e&&((r=n.palette[e])==null?void 0:r.main)}},u.createElement({success:qN,info:tp,"":tp,warning:Mp,error:ry}[e],{sx:{mb:"-3px",mr:1,color:e?void 0:"primary.main"}}),...t)}function R0e(e="File System page"){return u.createElement(IS,{to:"fs"},e)}function fm(e="Options page"){return u.createElement(IS,{to:"options"},e)}function nC(e,t){return e&&!e.proxies&&(t==null?void 0:t.proxyDetected)&&"A proxy was detected but none is configured"}let Hl,rC;const XN=pS({changes:{}});hS(pn,e=>{e.some(t=>t[1][0]==="config")&&JN()});const Ug={log:"Access",error_log:"Access error",console:"Console"},gM=ys;function M0e(){var g;const{data:e,reload:t,element:n}=Mo("get_config",{omit:["vfs"]}),r=oa(),{changes:o}=mS(XN),i=Mo(e&&"get_status"),s=i.data,a=rC=i.reload;u.useEffect(()=>void a(),[e]),u.useEffect(()=>()=>rC=void 0,[]);const c=(g=oy("get_admins")[0])==null?void 0:g.list;if(n)return n;if(i.error)return i.element;const d=Hl!==e?pn.config=Hl=e:r.config,p={comp:Zi,min:1,placeholder:"no limit",md:3},h=d.https_port>=0;return u.createElement(Tp,{sx:{maxWidth:"60em"},values:d,set(y,v){pn.config[v]=y},stickyBar:!0,onError:un,save:{onClick:m,sx:fy(Object.keys(o).length>0)},barSx:{gap:2},addToBar:[u.createElement(hr,{onClick(){t(),a()},startIcon:u.createElement(ny)},"Reload")],defaults(){return{sm:6}},fields:[{k:"port",comp:vM,md:3,label:"HTTP port",status:(s==null?void 0:s.http)||!0,suggestedPort:80},{k:"https_port",comp:vM,md:3,label:"HTTPS port",status:(s==null?void 0:s.https)||!0,suggestedPort:443,onChange(y){return y>=0&&!h&&!d.cert&&O0e(),y}},$t(Ee({k:"max_kbps"},p),{label:"Limit output KB/s",helperText:"Doesn't apply to localhost"}),$t(Ee({k:"max_kbps_per_ip"},p),{label:"Limit output KB/s per-ip"}),h&&d.port>=0&&{k:"force_https",comp:Co,sm:12,md:4,label:"Force HTTPS",helperText:"Not applied to localhost"},h&&{k:"cert",comp:_f,md:4,label:"HTTPS certificate file",helperText:Ya("HTTPS#certificate","What is this?"),error:Mw(s==null?void 0:s.https.error,y=>JE(y)&&[y," - ",u.createElement(Ro,{key:"fix",sx:{cursor:"pointer"},onClick:eP},"make one")])},h&&Ee({k:"private_key",comp:_f,md:4,label:"HTTPS private key file"},Mw(s==null?void 0:s.https.error,y=>ZE(y)?{error:!0,helperText:y}:null)),{k:"open_browser_at_start",comp:Co,label:"Open Admin-panel at start",md:4,helperText:"Browser is automatically launched with HFS"},{k:"localhost_admin",comp:Co,label:"Unprotected admin on localhost",md:4,getError:y=>!y&&(c==null?void 0:c.length)===0&&"First create at least one admin account",helperText:"Access Admin-panel without entering credentials"},{k:"file_menu_on_link",comp:ms,label:"Access file menu",sm:12,md:4,options:{"by clicking on file name":!0,"by dedicated button":!1}},{k:"title",helperText:"You can see this in the tab of your browser"},{k:"favicon",comp:_f,placeholder:"None",fileMask:"*.png|*.ico|*.jpg|*.jpeg|*.gif|*.svg",helperText:"The icon associated to your website"},{k:"log",label:Ug.log,md:3,helperText:"Requests are logged here"},{k:"error_log",label:Ug.error_log,md:3,placeholder:"errors go to main log",helperText:"If you want errors in a different log"},{k:"log_rotation",comp:ms,md:3,options:[{value:"",label:"disabled"},"daily","weekly","monthly"],helperText:"To keep log-files smaller"},{k:"dont_log_net",comp:gM,label:"Don't log address",md:3,placeholder:"no exception",helperText:u.createElement(jm)},{k:"log_gui",comp:Co,label:"Log interface loading"},{k:"log_api",comp:Co,label:"Log API requests"},{k:"proxies",comp:Zi,min:0,max:9,sm:6,label:"How many HTTP proxies between this server and users?",error:nC(d,s),helperText:"Wrong number will prevent detection of users' IP address"},{k:"allowed_referer",placeholder:"any",label:"Links from other websites",comp:T0e},{k:"dont_overwrite_uploading",comp:Co,label:"Don't overwrite uploading",helperText:"Files will be numbered to avoid overwriting"},{k:"delete_unfinished_uploads_after",comp:Zi,md:3,min:0,unit:"seconds",placeholder:"Never",helperText:"Leave empty to never delete"},{k:"min_available_mb",comp:Zi,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:Co,helperText:"Keeps you logged in while the page is left open and the computer is on"},{k:"session_duration",comp:Zi,sm:3,min:5,unit:"seconds",required:!0},{k:"zip_calculate_size_for_seconds",comp:Zi,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:Co,helperText:"Include betas in automatic updates"},{k:"admin_net",comp:gM,label:"Admin-panel accessible from",placeholder:"any address",helperText:u.createElement(u.Fragment,{},"IP address of browser machine. ",u.createElement(jm))},{k:"mime",comp:bE,label:!1,reorder:!0,prepend:!0,fields:[{k:"k",label:"File mask",$width:1,$column:{renderCell:({value:y,id:v})=>u.createElement("code",{},y,y==="*"&&v<Object.keys(d.mime).length-1&&Zr(Mp,Ti("Mime with `*` should be the last, because first matching row applies"),{color:"warning.main",ml:1}))}},{k:"v",label:"Mime type",$width:2}],toField:y=>Object.entries(y||{}).map(([v,S])=>({k:v,v:S})),fromField:y=>Object.fromEntries(y.map(v=>[v.k,v.v]))},{k:"block",label:"Blocked IPs",multiline:!0,minRows:3,helperText:u.createElement(u.Fragment,{},"Enter an IP address for each line. ",u.createElement(jm)),fromField:y=>y.split(`
|
|
483
|
-
`).map(v=>v.trim()).filter(Boolean).map(v=>({ip:v})),toField:y=>Array.isArray(y)?y.map(v=>v==null?void 0:v.ip).filter(Boolean).join(`
|
|
484
|
-
`):""}]});function m(){return mt(this,null,function*(){var R,L;if(St.isEmpty(o))return Wr("Nothing to save");const y=window.location,v=["port","https_port"];if(v.every(N=>o[N]!==void 0))return un("You cannot change both http and https port at once. Please, do one, save, and then do the other.","warning");const S=[(R=s==null?void 0:s.http)==null?void 0:R.listening,(L=s==null?void 0:s.https)==null?void 0:L.listening],w=location.protocol==="https:";w&&(v.reverse(),S.reverse());const C=o[v[0]],x=d[v[1]],P=x>0&&S[1],_=w?"http":"https";if(C<0&&!P)return un("You cannot switch off this port unless you have a working fixed port for "+_,"warning");if(C===0&&!P)return un("You cannot randomize this port unless you have a working fixed port for "+_,"warning");if(C>0&&!(yield qs("You are changing the port and you may be disconnected")))return;const k="cert"in o||"private_key"in o;if(w&&k&&!(yield qs("You may disrupt https service, kicking you out")))return;if(yield Et("set_config",{values:o}),C!==void 0)return yield un("You are being redirected but in some cases this may fail. Hold on tight!","warning"),window.location.href=C<=0?(w?"http:":"https:")+"//"+y.hostname+":"+x+y.pathname:y.protocol+"//"+y.hostname+":"+C+y.pathname;const I="port"in o||"https_port"in o;setTimeout(a,I||k?1e3:0),Object.assign(Hl,o),JN(),Wr("Changes applied","success")})}}function JN(){const e={};if(pn.config)for(const[t,n]of Object.entries(pn.config))JSON.stringify(n)!==JSON.stringify(Hl==null?void 0:Hl[t])&&(e[t]=n);XN.changes=e}function JE(e){return/certificate/.test(e)}function ZE(e){return/private key/.test(e)}function vM({label:e,value:t,onChange:n,setApi:r,status:o,suggestedPort:i=1,error:s,helperText:a}){const c=u.useRef(i);t>0&&(c.current=t);const d=Number(t>0?c.current:t)||0;let p=o==null?void 0:o.error;return p&&(JE(p)||ZE(p)?p=void 0:s=!0),u.createElement(je,{},u.createElement(je,{display:"flex"},u.createElement(ms,{sx:{flexGrow:1},label:e,error:s,value:d,options:[{label:"off",value:-1},{label:"random",value:0},{label:"choose",value:c.current}],onChange:n}),t>0&&u.createElement(Zi,{label:"Number",fullWidth:!1,value:t,onChange:n,setApi:r,error:s,min:1,max:65535,helperText:a,sx:{minWidth:"5.5em"}})),o&&u.createElement(_p,{error:s},o===!0?"...":p!=null?p:(o==null?void 0:o.listening)&&"Correctly working on port "+o.port))}function T0e({label:e,value:t,onChange:n,error:r}){const o=!t||t==="-",i="example.com";return u.createElement(je,{display:"flex"},u.createElement(ms,{label:e,value:o?t:i,options:{"allow all":"","forbid all":"-","allow some":i},onChange:n,error:r,sx:o?void 0:{maxWidth:"11em"}}),!o&&u.createElement(ys,{label:"Domain to allow",value:t,placeholder:"example.com",onChange:n,error:r,helperText:u.createElement(jm)}))}function jm(){return Ya("Wildcards","Wildcards supported")}function O0e(){Ho({Content:()=>u.createElement(je,{},u.createElement(je,{display:"flex",gap:1},u.createElement(tp),"You are enabling HTTPs. It needs a valid certificate + private key to work."),u.createElement(je,{mt:4,display:"flex",gap:1,justifyContent:"space-around"},u.createElement(hr,{variant:"contained",onClick(){Bi(),eP().then()}},"Help me!"),u.createElement(hr,{onClick:Bi},"I will handle the matter myself")))})}function eP(){return mt(this,null,function*(){if(!window.crypto.subtle)return un("Retry this procedure on localhost","warning");const{close:e}=Ho({title:"Get a certificate",Content:()=>u.createElement(Ql,{flexDirection:"column"},u.createElement("p",{},"HTTPS needs a certificate to work."),"We suggest you to ",u.createElement(Ro,{target:"cert",href:"https://letsencrypt.org/",onClick:e},u.createElement(hr,{size:"small",color:"success"},"get a free but proper certificate")),"or, if you are in a hurry",u.createElement(hr,{size:"small",color:"warning",onClick(){return mt(this,null,function*(){try{const n=yield Et("save_pem",yield F0e({}));yield Et("set_config",{values:n}),Hl&&Object.assign(Hl,n),setTimeout(rC,1e3),Object.assign(pn.config,n),yield un("Certificate saved","success")}finally{e()}})}},"make a basic certificate"),Ya("HTTPS#certificate",u.createElement(Ql,{},u.createElement(Mp,{color:"warning"}),"but BEWARE it won't be perfect")))})})}function F0e(e){return mt(this,null,function*(){const{pki:t}=window.forge,n=t.rsa.generateKeyPair(2048),r=t.createCertificate();r.publicKey=n.publicKey,r.serialNumber="01",r.validity.notBefore=new Date,r.validity.notAfter=new Date,r.validity.notAfter.setFullYear(r.validity.notBefore.getFullYear()+1);const o=Object.entries(e).map(i=>({name:i[0],value:i[1]}));return r.setSubject(o),r.setIssuer(o),r.sign(n.privateKey),{cert:t.certificateToPem(r),private_key:t.privateKeyToPem(n.privateKey)}})}var tP={},L0e=lt;Object.defineProperty(tP,"__esModule",{value:!0});var nP=tP.default=void 0,A0e=L0e(at()),N0e=st(),D0e=(0,A0e.default)((0,N0e.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"}),"Group");nP=tP.default=D0e;var rP={},B0e=lt;Object.defineProperty(rP,"__esModule",{value:!0});var ZN=rP.default=void 0,z0e=B0e(at()),j0e=st(),H0e=(0,z0e.default)((0,j0e.jsx)("path",{d:"M17 10.43V2H7v8.43c0 .35.18.68.49.86l4.18 2.51-.99 2.34-3.41.29 2.59 2.24L9.07 22 12 20.23 14.93 22l-.78-3.33 2.59-2.24-3.41-.29-.99-2.34 4.18-2.51c.3-.18.48-.5.48-.86zm-4 1.8-1 .6-1-.6V3h2v9.23z"}),"MilitaryTech");ZN=rP.default=H0e;var oP={},V0e=lt;Object.defineProperty(oP,"__esModule",{value:!0});var eD=oP.default=void 0,U0e=V0e(at()),W0e=st(),G0e=(0,U0e.default)((0,W0e.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");eD=oP.default=G0e;var iP={},K0e=lt;Object.defineProperty(iP,"__esModule",{value:!0});var tD=iP.default=void 0,q0e=K0e(at()),Y0e=st(),Q0e=(0,q0e.default)((0,Y0e.jsx)("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"PersonAdd");tD=iP.default=Q0e;function X0e({account:e,done:t,groups:n,addToBar:r,reload:o}){const[i,s]=u.useState(e),[a,c]=u.useState([]);u.useEffect(()=>{var g,y;s(e),c(n.filter(v=>v!==e.username)),mse()||(y=(g=h.current)==null?void 0:g.querySelector("input"))==null||y.focus()},[JSON.stringify(e)]);const d=!e.username,p=!i.hasPassword,h=u.useRef();return u.createElement(Tp,{formRef:h,values:i,set(g,y){s(v=>$t(Ee({},v),{[y]:g}))},barSx:Ee({gap:2,width:"100%"},ES()),stickyBar:!0,addToBar:[!d&&u.createElement(Gn,{icon:Zs,title:"Delete",confirm:"Delete?",onClick:()=>Et("del_account",{username:e.username}).then(()=>o())}),r,u.createElement(je,{flex:1}),nD(i,{fontSize:"large",sx:{p:1}})],fields:[{k:"username",label:p?"Group name":void 0,autoComplete:"off",required:!0,xl:p?12:4,getError:g=>g!==e.username&&Et("get_account",{username:g}).then(y=>(y==null?void 0:y.username)===e.username?"usernames are case-insensitive":"already used",()=>!1)},!p&&{k:"password",md:6,xl:4,type:"password",autoComplete:"new-password",required:d,label:d?"Password":"Change password"},!p&&{k:"password2",md:6,xl:4,type:"password",autoComplete:"new-password",label:"Repeat password",getError:(g,{values:y})=>(g||"")!==(y.password||"")&&"Enter same password"},{k:"ignore_limits",comp:Co,xl:6,helperText:i.ignore_limits?"Speed limits don't apply to this account":"Speed limits apply to this account"},Ee({k:"admin",comp:Co,xl:6,fromField:g=>g||null,label:"Permission to access Admin-panel",helperText:"To access THIS interface you are using right now"},!e.admin&&e.adminActualAccess&&{value:!0,helperText:"This permission is inherited"}),p&&u.createElement(jo,{severity:"info"},'To add users to this group, select the user and then click "Inherit"'),{k:"belongs",comp:SS,label:"Inherit from groups",options:a,helperText:"Specify groups to inherit permissions from"+(p?". A group can inherit from another group":"")+(a.length?"":". Now disabled because there are no groups to select, create one first.")},{k:"redirect",helperText:"If you want this account to be redirected to a specific folder/address at login time"}],onError:un,save:{sx:fy(!PS(i,e)),onClick(){return mt(this,null,function*(){const P=i,{password:g="",password2:y,adminActualAccess:v,hasPassword:S}=P,w=nn(P,["password","password2","adminActualAccess","hasPassword"]),{username:C}=i;if(d){const _=yield Et("add_account",w);if(g)try{yield oC(C,g)}catch(k){throw Et("del_account",{username:C}).then(),k}t(_==null?void 0:_.username),Wr("Account created","success");return}const x=yield Et("set_account",{username:e.username,changes:w});g&&(yield oC(C,g)),setTimeout(()=>Wr("Account modified","success"),1),t(x==null?void 0:x.username)})}}})}function oC(e,t){return mt(this,null,function*(){const n=new Ta.SRPRoutines(new Ta.SRPParameters),r=yield Ta.createVerifierAndSalt(n,e,t);return Et("change_srp_others",{username:e,salt:String(r.s),verifier:String(r.v)}).catch(o=>{if(o.code!==406)throw o;return Et("change_password_others",{username:e,newPassword:t})})})}const cb={fieldSeparator:",",lineSeparator:`
|
|
485
|
-
`,quote:'"'},pm={field:0,fieldOffset:0,line:0,lineOffset:0,quoted:!1,appendCell:!1,appendField:!1,appendRow:!1};class yM extends Error{constructor(t,n){super(`Invalid CSV at ${t}:${n}`)}}class J0e{constructor(t=cb){Ki(this,"_rows",[]);Ki(this,"_row",[]);Ki(this,"_cell","");Ki(this,"_options",cb);Ki(this,"_state",Ee({},pm));Ki(this,"_index",0);Ki(this,"_current","");Ki(this,"_previous","");Ki(this,"_quoteState",Ee({},pm));this._options=Object.assign({},cb,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 yM(this._quoteState.line,this._quoteState.lineOffset);return this.makeImmutable(),this._rows}get rows(){return this._rows}get json(){if(this.rows.length>0){const t=this.rows[0].filter(n=>typeof n=="string");return Object.freeze(this.rows.filter((n,r)=>n&&r>0).map(n=>{const r={};return t.forEach((o,i)=>{r[o]=n[i]}),Object.freeze(r)}))}return Object.freeze([])}handleNext(){this.handleQuote()||this.handleFieldSeparator()||this.handleLineSeparator(),this.processState()}handleQuote(){return this._current===this._options.quote?(this._quoteState=Ee({},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 yM(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=Ee({},pm),this._index=0,this._current="",this._previous="",this._quoteState=Ee({},pm)}}function Z0e(e){return mt(this,null,function*(){nA(t=>mt(this,null,function*(){const n=t==null?void 0:t[0];if(!n)return;const r=yield rA(n);if(!r)return;const i=new J0e().parse(r.trim()),s={comp:Zi,min:1,max:9,xs:6,typing:!0},a={skipFirstLines:0,usernameColumn:1,passwordColumn:2,groupColumn:3,redirectColumn:4,overwriteExistingAccounts:!1},c=yield rp({title:"Import accounts from CSV",dialogProps:{maxWidth:"sm"},values:a,form:h=>{const m=i[h.skipFirstLines||0],g=p(m,Ee(Ee({},a),h));return{save:{startIcon:u.createElement(Op),children:"Go"},fields:[u.createElement(je,{p:1},"Total lines:",i.length),{k:"skipFirstLines",comp:Zi,min:0,max:i.length-1,typing:!0,md:6,helperText:u.createElement(u.Fragment,{},"First line: ",u.createElement("code",{},m.join(", ")))},{k:"overwriteExistingAccounts",comp:Co,md:6},$t(Ee({k:"usernameColumn"},s),{helperText:u.createElement(u.Fragment,{},"First username: ",g.u)}),$t(Ee({k:"passwordColumn"},s),{helperText:u.createElement(u.Fragment,{},"First password: ",g.p)}),$t(Ee({k:"groupColumn"},s),{helperText:u.createElement(u.Fragment,{},"First group: ",g.g)}),$t(Ee({k:"redirectColumn"},s),{helperText:u.createElement(u.Fragment,{},"First redirect: ",g.r)})]}}});if(!c)return;const{close:d}=Ho({title:"Importing...",Content(){const[h,m]=u.useState(0),[g,y]=u.useState();return u.useEffect(()=>{let v=!1;return setTimeout(()=>mt(this,null,function*(){var P;if(v)return;let S=0,w=0,C=c.skipFirstLines;const x=i.length-C;try{let _=0;for(const k of i){if(v)return;if(C){C--;continue}const I=p(k,c);y(I),m(_++/x),yield Et("add_account",{username:I.u,belongs:(P=I.g)==null?void 0:P.split(","),redirect:I.r,overwrite:c.overwriteExistingAccounts}).then(()=>{if(I.p)return oC(I.u,I.p)},R=>{if(R.code===409)return w++;S++})}}finally{d();const _=x-S-w,k="Results: "+[vu("",S," failed"),vu("",_," succeeded"),vu("",w," skipped because already present")].filter(Boolean).join(", ");un(k,!_&&S?"error":S||w?"warning":"success"),e==null||e()}})),()=>{v=!0}},[]),u.createElement(je,{display:"flex",gap:2,alignItems:"center"},u.createElement(vA,{icon:nP,progress:h}),g==null?void 0:g.u)}});function p(h,m){return{u:h[m.usernameColumn-1],p:h[m.passwordColumn-1],g:h[m.groupColumn-1],r:h[m.redirectColumn-1]}}}),{multiple:!1,accept:".csv"})})}function e1e(){const{username:e}=oa(),{data:t,reload:n,element:r}=Mo("get_accounts"),[o,i]=u.useState([]),s=Array.isArray(o);u.useEffect(()=>{Array.isArray(t==null?void 0:t.list)&&s&&i(o.filter(y=>t.list.find(v=>(v==null?void 0:v.username)===y)))},[t]);const a=t==null?void 0:t.list,c=s&&St.find(a,{username:o[0]}),p=Yl("md"),h=!(o.length>0)||!a?null:s&&o.length>1?u.createElement(u.Fragment,{},u.createElement(Ql,{alignItems:"center"},u.createElement(Mr,{variant:"h6"},o.length+" selected"),u.createElement(hr,{onClick:g,startIcon:u.createElement(Zs)},"Remove")),u.createElement(ey,{},o.map(y=>u.createElement(CL,{key:y},u.createElement(as,{},y))))):u.createElement(X0e,{account:c||{username:"",hasPassword:o==="new-user"},groups:a.filter(y=>!y.hasPassword).map(y=>y.username),addToBar:p&&u.createElement(Gn,{icon:Rp,title:"Close",onClick:m}),reload:n,done(y){i([y]),n()}});return u.useEffect(()=>{if(p||!h||!o.length)return;const{close:y}=Ho({title:St.isString(o)?St.startCase(o):o.length>1?"Multiple selection":c?(c.hasPassword?"User: ":"Group: ")+c.username:"?",Content:()=>h,onClose:m});return y},[p,o,c]),r||u.createElement(Oi,{container:!0,maxWidth:"80em"},u.createElement(Oi,{item:!0,xs:12},u.createElement(je,{display:"flex",flexWrap:"wrap",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},u.createElement(Q4,{variant:"contained",startIcon:u.createElement(tD),items:[{children:"user",onClick:()=>i("new-user")},{children:"group",onClick:()=>i("new-group")},{children:"from CSV",onClick:()=>Z0e(n)}]},"Add"),kS(n),(a==null?void 0:a.length)>0&&u.createElement(Mr,{p:1},`${a.length} account(s)`))),u.createElement(Oi,{item:!0,md:5},!(a!=null&&a.length)&&u.createElement(jo,{severity:"info"},Ti`To access administration <u>remotely</u> you will need to create a user account with admin permission`),u.createElement(uA,{multiSelect:!0,sx:{pr:4,pb:2,minWidth:"15em"},selected:s?o:[],onNodeSelect(y,v){i(v)}},a==null?void 0:a.map(y=>{var v,S;return u.createElement(Tw,{key:y.username,nodeId:y.username,label:u.createElement(je,{sx:{display:"flex",flexWrap:"wrap",padding:".2em 0",gap:".5em",alignItems:"center"}},nD(y),y.adminActualAccess&&Zr(ZN,"Can login into Admin"),y.username,!!((v=y.belongs)!=null&&v.length)&&u.createElement(je,{sx:{color:"text.secondary",fontSize:"small"}},"(",(S=y.belongs)==null?void 0:S.join(", "),")"))})}))),p&&h&&u.createElement(Oi,{item:!0,md:7},u.createElement(Dx,{},u.createElement(Bx,{},h))));function m(){i([])}function g(){return mt(this,null,function*(){if(o.length>St.pull(o,e).length&&(yield un("Won't delete current account","warning")),!!o.length&&(yield qs(`Delete ${o.length} item(s)?`)))try{const y=[];for(const v of o)(yield Et("del_account",{username:v}).then(()=>1,()=>0))||y.push(v);if(n(),y.length)return un("Following elements couldn't be deleted: "+y.join(", "),"error")}catch(y){yield un(y)}})}}function nD(e,t={}){return u.createElement(e.hasPassword?eD:nP,t)}var sP={},t1e=lt;Object.defineProperty(sP,"__esModule",{value:!0});var rD=sP.default=void 0,n1e=t1e(at()),r1e=st(),o1e=(0,n1e.default)((0,r1e.jsx)("path",{d:"M13 3h-2v10h2V3zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"}),"PowerSettingsNew");rD=sP.default=o1e;function i1e(){const{element:e}=Mo("get_config",{only:[]}),{username:t}=oa();return e||u.createElement(je,{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:2},t?u.createElement(u.Fragment,{},"You are logged in as: "+t,u.createElement(yu,{icon:Yx,size:"large",variant:"contained",onClick:()=>Et("logout").catch(r=>r.code!==401&&un(r))},"I want to logout")):u.createElement(jo,{severity:"info"},"You are not logged in, because authentication is not required on localhost"),u.createElement(yu,{icon:rD,size:"large",variant:"contained",color:"warning",confirm:"Stopping the server, this interface won't respond anymore",onClick(){return mt(this,null,function*(){yield Et("quit"),yield un("Good-bye","success"),location.reload()})}},"Quit HFS"))}function s1e(){const{list:e,error:t,connecting:n,reload:r}=sc("list_langs"),o=u.useMemo(()=>["en",...St.uniq(e.map(a=>a.code))],[e]),i=Yl("md");return t||u.createElement(u.Fragment,{},i&&u.createElement(jo,{severity:"info"},"Translation is limited to Front-end, it doesn't apply to Admin-panel"),u.createElement(je,{mt:1,maxWidth:"40em",flex:1,display:"flex",flexDirection:"column"},u.createElement(je,{mb:1,display:"flex"},u.createElement(hr,{variant:"contained",startIcon:u.createElement(Op),onClick:s},"Add"),u.createElement(je,{flex:1}),u.createElement(l1e,{langs:o})),u.createElement(Bp,{loading:n,rows:e,hideFooter:!0,sx:{flex:1},columns:[{field:"code",width:110,valueFormatter:({value:a})=>a==null?void 0:a.toUpperCase()},{field:"version",width:120,hideUnder:"sm"},{field:"hfs_version",headerName:"HFS version",width:110},{field:"author",flex:1,hideUnder:"sm"}],actions:({row:a})=>[u.createElement(Gn,{icon:Zs,title:a.embedded?"Cannot delete (embedded)":"Delete",confirm:"Delete?",disabled:a.embedded,onClick(){return mt(this,null,function*(){yield Et("del_lang",St.pick(a,"code")),r(),Wr("Deleted")})}})]})));function s(){nA(a=>mt(this,null,function*(){if(!a)return;const c={};for(const d of a)c[d.name]=yield rA(d);try{yield Et("add_langs",{langs:c}),r(),Wr("Loaded")}catch(d){yield un(d)}}),{accept:".json"})}}function l1e({langs:e}){const t="force_lang",{data:n,reload:r,loading:o}=Mo("get_config",{only:[t]}),[i,s]=u.useState();u.useEffect(()=>s(o?i:n[t]),[o]);const[a,c]=u.useState();return u.createElement(ms,{fullWidth:!1,disabled:o||typeof a=="string",value:a!=null?a:i,onChange(p){return mt(this,null,function*(){c(p);try{yield Et("set_config",{values:{[t]:p}}),yield r()}finally{c(void 0)}})},options:[{label:"Respect browser language",value:""},...e.map(p=>({value:p,label:"Force language: "+p}))]})}function a1e(){const[e,t]=u.useState(0),n=lle(Ug);return u.createElement(u.Fragment,{},u.createElement(TL,{value:e,onChange(r,o){t(o)}},n.map(r=>u.createElement(RL,{label:Ug[r],key:r}))),u.createElement(c1e,{key:e,file:n[e]}))}function c1e({file:e}){const{list:t,error:n,connecting:r}=sc("get_log",{file:e});return n||u.createElement(Bp,{loading:r,rows:t,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}},columns:e==="console"?[{field:"ts",headerName:"Timestamp",type:"dateTime",width:90,valueGetter:({value:o})=>new Date(o),renderCell:({value:o})=>u.createElement(je,{},o.toLocaleDateString(),u.createElement("br"),o.toLocaleTimeString())},{field:"k",headerName:"Level",hideUnder:"sm"},{field:"msg",headerName:"Message",flex:1,mergeRender:{other:"k",override:{valueFormatter:({value:o})=>o!=="log"&&o}}}]:[{field:"ip",headerName:"Address",flex:.6,minWidth:100,maxWidth:230,mergeRender:{other:"user"}},{field:"user",headerName:"Username",flex:.4,maxWidth:200,hideUnder:"lg"},{field:"ts",headerName:"Timestamp",type:"dateTime",width:90,valueGetter:({value:o})=>new Date(o),renderCell:({value:o})=>u.createElement(je,{},o.toLocaleDateString(),u.createElement("br"),o.toLocaleTimeString())},{field:"method",headerName:"Method",width:80,hideUnder:"lg"},{field:"status",headerName:"Code",type:"number",width:70,hideUnder:"lg"},{field:"length",headerName:"Size",type:"number",hideUnder:"md",valueFormatter:({value:o})=>ql(o)},{field:"uri",headerName:"URI",flex:2,minWidth:100,mergeRender:{other:"method",fontSize:"small"},valueFormatter:({value:o})=>{if(o=decodeURIComponent(o),!o.startsWith(Pg))return o;const i=Pg.length,s=o.indexOf("?",i),a=o.slice(i,s>0?s:1/0),c=s<0?"":Array.from(new URLSearchParams(o.slice(s))).map(d=>{var p;return`${d[0]}=${(p=yse(d[1]))!=null?p:d[1]}`}).join(" ; ");return`API ${a} ${c}`}}]})}var lP={},u1e=lt;Object.defineProperty(lP,"__esModule",{value:!0});var iC=lP.default=void 0,d1e=u1e(at()),f1e=st(),p1e=(0,d1e.default)((0,f1e.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4 14H8V8h8v8z"}),"StopCircle");iC=lP.default=p1e;var aP={},h1e=lt;Object.defineProperty(aP,"__esModule",{value:!0});var oD=aP.default=void 0,m1e=h1e(at()),g1e=st(),v1e=(0,m1e.default)((0,g1e.jsx)("path",{d:"M16 18v2H8v-2h8zM11 7.99V16h2V7.99h3L12 4 8 7.99h3z"}),"Upgrade");oD=aP.default=v1e;function bM({updates:e}){const{list:t,updateEntry:n,error:r,initializing:o}=sc(e?"get_plugin_updates":"get_plugins");return r?lD(r):u.createElement(Bp,{rows:t.length?t:[],initializing:o,disableColumnSelector:!0,disableColumnMenu:!0,hideFooter:!0,noRows:e&&'No updates available. Only plugins available on "search online" are checked.',columns:[{field:"id",headerName:"name",flex:.3,minWidth:150,renderCell:iD,mergeRender:{other:"description",fontSize:"x-small"}},{field:"version",width:70,hideUnder:"sm"},{field:"description",flex:1,hideUnder:"sm"}],actions:({row:i,id:s})=>e?[u.createElement(aD,{id:s,updated:i.updated,then:()=>n({id:s},{updated:!0})})]:[u.createElement(Gn,i.started?{icon:iC,title:u.createElement(je,{},`Stop ${s}`,u.createElement("br"),"Started "+new Date(i.started).toLocaleString()),size:"small",color:"success",onClick(){return mt(this,null,function*(){yield Et("stop_plugin",{id:s}),Wr("Plugin stopped",u.createElement(iC,{color:"warning"}))})}}:{icon:hy,title:`Start ${s}`,size:"small",onClick:()=>cD(s)}),u.createElement(Gn,{icon:eS,title:"Options",size:"small",disabled:!i.started&&"Start plugin to access options"||!i.config&&"No options available for this plugin",progress:!1,onClick(){return mt(this,null,function*(){const p=yield Et("get_plugin",{id:s}),h=yield rp({title:`${s} options`,form:{before:u.createElement(je,{mx:2,mb:3},i.description),fields:sD(i.config)},values:p.config,dialogProps:St.merge({sx:{m:"auto"}},i.configDialog)});!h||St.isEqual(p.config,h)||(yield Et("set_plugin",{id:s,config:h}),Wr("Configuration saved"))})}}),u.createElement(Gn,{icon:Zs,title:"Uninstall",size:"small",confirm:"Remove?",onClick(){return mt(this,null,function*(){yield Et("uninstall_plugin",{id:s}),Wr("Plugin uninstalled")})}})]})}function iD({row:e,value:t}){const{repo:n}=e,r=n==null?void 0:n.split("/");return u.createElement(u.Fragment,{},o(e.badApi,!0),o(e.error),...n?[u.createElement(Ro,{href:"https://github.com/"+n,target:"plugin"},r[1])," by ",r[0]]:[t]);function o(i,s=!1){return i&&u.createElement(nd,{title:i,children:u.createElement(ry,{fontSize:"small",color:s?"warning":"error",sx:{ml:-.5,mr:.5}})})}}function sD(e){return Object.entries(e).map(([t,n])=>{if(!St.isPlainObject(n))return n;let d=n,{type:r,defaultValue:o,fields:i,frontend:s}=d,a=nn(d,["type","defaultValue","fields","frontend"]);const c=y1e[r];return c===bE&&(i=sD(i)),o!==void 0&&r==="boolean"&&(a.placeholder=`Default value is ${JSON.stringify(o)}`),Ee({k:t,comp:c,fields:i},a)})}const y1e={string:ys,number:Zi,boolean:Co,select:ms,multiselect:SS,array:bE,real_path:_f};function lD(e){return u.createElement(jo,{severity:"error"},ale(e,{github_quota:"Request denied. You may have reached the limit, retry later.",ENOTFOUND:"Couldn't reach github.com"}))}function aD({id:e,updated:t,then:n}){return u.createElement(Gn,{icon:oD,title:t?"Already updated":"Update",disabled:t,onClick(){return mt(this,null,function*(){yield Et("update_plugin",{id:e},{timeout:!1}),n==null||n(e),Wr("Plugin updated")})}})}function cD(e){return mt(this,null,function*(){yield Et("start_plugin",{id:e}),Wr("Plugin started",u.createElement(hy,{color:"success"}))})}var cP={},b1e=lt;Object.defineProperty(cP,"__esModule",{value:!0});var uD=cP.default=void 0,w1e=b1e(at()),C1e=st(),x1e=(0,w1e.default)((0,C1e.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");uD=cP.default=x1e;function S1e(){const[e,t]=u.useState(""),n=dS(e,1e3),{list:r,error:o,initializing:i,updateList:s}=sc("search_online_plugins",{text:n}),a=oa();return o?lD(o):u.createElement(u.Fragment,{},u.createElement(ys,{value:e,onChange:t,start:u.createElement(uD),typing:!0,label:"Search text"}),u.createElement(Bp,{rows:r.length?r:[],noRows:"No compatible plugins have been found",initializing:i,columnVisibilityModel:a.onlinePluginsColumns,onColumnVisibilityModelChange:c=>Object.assign(pn.onlinePluginsColumns,c),columns:[{field:"id",headerName:"name",flex:1,renderCell:iD,mergeRender:{other:"description",fontSize:"x-small"}},{field:"version",width:70},{field:"pushed_at",headerName:"last update",valueGetter:({value:c})=>new Date(c).toLocaleDateString()},{field:"license",width:80},{field:"description",flex:3,hideUnder:"sm"},{field:"stargazers_count",width:50,headerName:"stars",align:"center",hideUnder:"sm"}],actions:({row:c,id:d})=>[c.update?u.createElement(aD,{id:d,then(){s(h=>St.find(h,{id:d}).update=!1)}}):u.createElement(Gn,{icon:US,title:"Install",progress:c.downloading,disabled:c.installed&&"Already installed",tooltipProps:{placement:"bottom-end"},confirm:"WARNING - Proceed only if you trust this author and this plugin",onClick(){return mt(this,null,function*(){const h=c.branch||c.default_branch;try{const m=yield Et("download_plugin",{id:d,branch:h},{timeout:!1});yield cD(m.id)}catch(m){if(m.code!==424)throw m;const g=u.createElement(u.Fragment,{},"This plugin has some dependencies unmet:",m.data.map(y=>u.createElement("li",{},y.repo+": "+y.error)));return un(g,"error")}})}})]}))}const dD={Installed:bM,"Search online|Search":S1e,"Check updates|Updates":()=>u.createElement(bM,{updates:!0})},E1e=Object.keys(dD),P1e=Object.values(dD);function I1e(){const[e,t]=u.useState(0),n=!Yl("sm");return u.createElement(u.Fragment,{},u.createElement(TL,{value:e,onChange(r,o){t(o)}},E1e.map(r=>u.createElement(RL,{key:r,label:r.split("|").slice(n?-1:0)[0]}))),u.createElement(P1e[e]))}var fD={},k1e=Sn&&Sn.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),dr=Sn&&Sn.__assign||function(){return dr=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},dr.apply(this,arguments)},_1e=Sn&&Sn.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),$1e=Sn&&Sn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),R1e=Sn&&Sn.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&_1e(t,e,n);return $1e(t,e),t},M1e=Sn&&Sn.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};Object.defineProperty(fD,"__esModule",{value:!0});var Xd=R1e(u),T1e=13,O1e=9,F1e=8,L1e=89,hm=90,A1e=77,wM=57,CM=219,xM=222,SM=192,N1e=27,EM=100,D1e=3e3,B1e=typeof window!="undefined"&&"navigator"in window&&/Win/i.test(navigator.platform),ub=typeof window!="undefined"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),Hm="npm__react-simple-code-editor__textarea",z1e=`
|
|
486
|
-
/**
|
|
487
|
-
* Reset the text fill color so that placeholder is visible
|
|
488
|
-
*/
|
|
489
|
-
.`.concat(Hm,`:empty {
|
|
490
|
-
-webkit-text-fill-color: inherit !important;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
/**
|
|
494
|
-
* Hack to apply on some CSS on IE10 and IE11
|
|
495
|
-
*/
|
|
496
|
-
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
|
497
|
-
/**
|
|
498
|
-
* IE doesn't support '-webkit-text-fill-color'
|
|
499
|
-
* So we use 'color: transparent' to make the text transparent on IE
|
|
500
|
-
* Unlike other browsers, it doesn't affect caret color in IE
|
|
501
|
-
*/
|
|
502
|
-
.`).concat(Hm,` {
|
|
503
|
-
color: transparent !important;
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
.`).concat(Hm,`::selection {
|
|
507
|
-
background-color: #accef7 !important;
|
|
508
|
-
color: transparent !important;
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
`),j1e=function(e){k1e(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={capture:!0},n._recordCurrentState=function(){var r=n._input;if(r){var o=r.value,i=r.selectionStart,s=r.selectionEnd;n._recordChange({value:o,selectionStart:i,selectionEnd:s})}},n._getLines=function(r,o){return r.substring(0,o).split(`
|
|
512
|
-
`)},n._recordChange=function(r,o){var i,s,a;o===void 0&&(o=!1);var c=n._history,d=c.stack,p=c.offset;if(d.length&&p>-1){n._history.stack=d.slice(0,p+1);var h=n._history.stack.length;if(h>EM){var m=h-EM;n._history.stack=d.slice(m,h),n._history.offset=Math.max(n._history.offset-m,0)}}var g=Date.now();if(o){var y=n._history.stack[n._history.offset];if(y&&g-y.timestamp<D1e){var v=/[^a-z0-9]([a-z0-9]+)$/i,S=(i=n._getLines(y.value,y.selectionStart).pop())===null||i===void 0?void 0:i.match(v),w=(s=n._getLines(r.value,r.selectionStart).pop())===null||s===void 0?void 0:s.match(v);if(S!=null&&S[1]&&(!((a=w==null?void 0:w[1])===null||a===void 0)&&a.startsWith(S[1]))){n._history.stack[n._history.offset]=dr(dr({},r),{timestamp:g});return}}}n._history.stack.push(dr(dr({},r),{timestamp:g})),n._history.offset++},n._updateInput=function(r){var o=n._input;o&&(o.value=r.value,o.selectionStart=r.selectionStart,o.selectionEnd=r.selectionEnd,n.props.onValueChange(r.value))},n._applyEdits=function(r){var o=n._input,i=n._history.stack[n._history.offset];i&&o&&(n._history.stack[n._history.offset]=dr(dr({},i),{selectionStart:o.selectionStart,selectionEnd:o.selectionEnd})),n._recordChange(r),n._updateInput(r)},n._undoEdit=function(){var r=n._history,o=r.stack,i=r.offset,s=o[i-1];s&&(n._updateInput(s),n._history.offset=Math.max(i-1,0))},n._redoEdit=function(){var r=n._history,o=r.stack,i=r.offset,s=o[i+1];s&&(n._updateInput(s),n._history.offset=Math.min(i+1,o.length-1))},n._handleKeyDown=function(r){var o=n.props,i=o.tabSize,s=o.insertSpaces,a=o.ignoreTabKey,c=o.onKeyDown;if(!(c&&(c(r),r.defaultPrevented))){r.keyCode===N1e&&r.currentTarget.blur();var d=r.currentTarget,p=d.value,h=d.selectionStart,m=d.selectionEnd,g=(s?" ":" ").repeat(i);if(r.keyCode===O1e&&!a&&n.state.capture)if(r.preventDefault(),r.shiftKey){var y=n._getLines(p,h),v=y.length-1,S=n._getLines(p,m).length-1,w=p.split(`
|
|
513
|
-
`).map(function(D,B){return B>=v&&B<=S&&D.startsWith(g)?D.substring(g.length):D}).join(`
|
|
514
|
-
`);if(p!==w){var C=y[v];n._applyEdits({value:w,selectionStart:C!=null&&C.startsWith(g)?h-g.length:h,selectionEnd:m-(p.length-w.length)})}}else if(h!==m){var y=n._getLines(p,h),x=y.length-1,P=n._getLines(p,m).length-1,C=y[x];n._applyEdits({value:p.split(`
|
|
515
|
-
`).map(function(M,F){return F>=x&&F<=P?g+M:M}).join(`
|
|
516
|
-
`),selectionStart:C&&/\S/.test(C)?h+g.length:h,selectionEnd:m+g.length*(P-x+1)})}else{var _=h+g.length;n._applyEdits({value:p.substring(0,h)+g+p.substring(m),selectionStart:_,selectionEnd:_})}else if(r.keyCode===F1e){var k=h!==m,I=p.substring(0,h);if(I.endsWith(g)&&!k){r.preventDefault();var _=h-g.length;n._applyEdits({value:p.substring(0,h-g.length)+p.substring(m),selectionStart:_,selectionEnd:_})}}else if(r.keyCode===T1e){if(h===m){var R=n._getLines(p,h).pop(),L=R==null?void 0:R.match(/^\s+/);if(L!=null&&L[0]){r.preventDefault();var N=`
|
|
517
|
-
`+L[0],_=h+N.length;n._applyEdits({value:p.substring(0,h)+N+p.substring(m),selectionStart:_,selectionEnd:_})}}}else if(r.keyCode===wM||r.keyCode===CM||r.keyCode===xM||r.keyCode===SM){var O=void 0;r.keyCode===wM&&r.shiftKey?O=["(",")"]:r.keyCode===CM?r.shiftKey?O=["{","}"]:O=["[","]"]:r.keyCode===xM?r.shiftKey?O=['"','"']:O=["'","'"]:r.keyCode===SM&&!r.shiftKey&&(O=["`","`"]),h!==m&&O&&(r.preventDefault(),n._applyEdits({value:p.substring(0,h)+O[0]+p.substring(h,m)+O[1]+p.substring(m),selectionStart:h,selectionEnd:m+2}))}else(ub?r.metaKey&&r.keyCode===hm:r.ctrlKey&&r.keyCode===hm)&&!r.shiftKey&&!r.altKey?(r.preventDefault(),n._undoEdit()):(ub?r.metaKey&&r.keyCode===hm&&r.shiftKey:B1e?r.ctrlKey&&r.keyCode===L1e:r.ctrlKey&&r.keyCode===hm&&r.shiftKey)&&!r.altKey?(r.preventDefault(),n._redoEdit()):r.keyCode===A1e&&r.ctrlKey&&(!ub||r.shiftKey)&&(r.preventDefault(),n.setState(function(D){return{capture:!D.capture}}))}},n._handleChange=function(r){var o=r.currentTarget,i=o.value,s=o.selectionStart,a=o.selectionEnd;n._recordChange({value:i,selectionStart:s,selectionEnd:a},!0),n.props.onValueChange(i)},n._history={stack:[],offset:-1},n._input=null,n}return t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(n){this._history=n.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var n=this,r=this.props,o=r.value,i=r.style,s=r.padding,a=r.highlight,c=r.textareaId,d=r.textareaClassName,p=r.autoFocus,h=r.disabled,m=r.form,g=r.maxLength,y=r.minLength,v=r.name,S=r.placeholder,w=r.readOnly,C=r.required,x=r.onClick,P=r.onFocus,_=r.onBlur,k=r.onKeyUp;r.onKeyDown,r.onValueChange,r.tabSize,r.insertSpaces,r.ignoreTabKey;var I=r.preClassName,R=M1e(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"]),L={paddingTop:typeof s=="object"?s.top:s,paddingRight:typeof s=="object"?s.right:s,paddingBottom:typeof s=="object"?s.bottom:s,paddingLeft:typeof s=="object"?s.left:s},N=a(o);return Xd.createElement("div",dr({},R,{style:dr(dr({},Jd.container),i)}),Xd.createElement("pre",dr({className:I,"aria-hidden":"true",style:dr(dr(dr({},Jd.editor),Jd.highlight),L)},typeof N=="string"?{dangerouslySetInnerHTML:{__html:N+"<br />"}}:{children:N})),Xd.createElement("textarea",{ref:function(O){return n._input=O},style:dr(dr(dr({},Jd.editor),Jd.textarea),L),className:Hm+(d?" ".concat(d):""),id:c,value:o,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:x,onKeyUp:k,onFocus:P,onBlur:_,disabled:h,form:m,maxLength:g,minLength:y,name:v,placeholder:S,readOnly:w,required:C,autoFocus:p,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),Xd.createElement("style",{dangerouslySetInnerHTML:{__html:z1e}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(Xd.Component),H1e=fD.default=j1e,Jd={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}};function V1e(){const{data:e,reload:t}=Mo("get_custom_html"),[n,r]=u.useState(""),[o,i]=u.useState({}),[s,a]=u.useState({});u.useEffect(()=>e&&a(e==null?void 0:e.sections),[e]),u.useEffect(()=>i(s),[s]);const c=u.useMemo(()=>{const h=Object.keys(o);return h.includes(n)||r((h==null?void 0:h[0])||""),h.map(m=>{var g;return{value:m,label:St.startCase(m)+((g=o[m])!=null&&g.trim()?" *":"")}})},[dS(o,500)]),d=u.useMemo(()=>!St.isEqualWith(s,o,(h,m)=>!h&&!m||void 0),[s,o]);return u.createElement(u.Fragment,{},u.createElement(jo,{severity:"info"},Ti("Add HTML code to some parts of the Front-end. It's saved to file `custom.html`, that you can edit directly with your editor of choice. "),Ya("customization","More help")),u.createElement(je,{display:"flex",alignItems:"center",gap:1,mb:1},u.createElement(ms,{label:"Section",value:n,options:c,onChange:r}),kS(t),u.createElement(Gn,{icon:dy,title:`Save
|
|
518
|
-
(ctrl+s)`,sx:fy(d),onClick:p})),u.createElement(H1e,{value:(o==null?void 0:o[n])||"",onValueChange:h=>i(m=>$t(Ee({},m),{[n]:h})),highlight:U1e,onKeyDown:h=>{ule(h)==="s"&&(p().then(),h.preventDefault())},padding:10,tabSize:4,insertSpaces:!0,ignoreTabKey:!1,style:{fontFamily:"ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace",fontSize:"1em",flex:1,background:"#8881"}}));function p(){return Et("set_custom_html",{sections:o}).then(()=>a(o))}}function U1e(e){return e.replace(/[\u0000-\u002F\u003A-\u0040\u005B-\u0060\u007B-\u00FF]/g,t=>"&#"+("000"+t.charCodeAt(0)).slice(-4)+";")}const sC=[{path:"",icon:BL,label:"Home",title:"Admin panel",comp:_0e},{path:"fs",icon:FL,label:"Shared files",comp:e0e},{path:"accounts",icon:NL,comp:e1e},{path:"options",icon:eS,comp:M0e},{path:"monitoring",icon:DL,comp:fge},{path:"logs",icon:AL,comp:a1e},{path:"language",icon:zL,comp:s1e},{path:"plugins",icon:LL,comp:I1e},{path:"html",icon:jL,label:"Custom HTML",comp:V1e},{path:"logout",icon:Yx,comp:i1e}];let db;function PM({onSelect:e}){var n;const[t]=oy(!db&&"get_status");return db||(db=(n=t==null?void 0:t.version)==null?void 0:n.replace("-"," ")),u.createElement(je,{display:"flex",flexDirection:"column",bgcolor:"primary.main",minHeight:"100%"},u.createElement(ey,{sx:{pr:1,color:"primary.contrastText",height:"100vh",boxSizing:"border-box",overflowY:"auto",position:"sticky",top:0,display:"flex",flexDirection:"column","&>a":{flex:"0"}}},u.createElement(je,{display:"flex",px:2,py:1,gap:2,alignItems:"flex-end"},u.createElement(Mr,{variant:"h3"},"HFS"),u.createElement(je,{pb:1,fontSize:"small"},db)),sC.map(r=>u.createElement(Uee,{key:r.path,to:r.path,component:XV,onClick:e,style:({isActive:o})=>o?{textDecoration:"underline"}:{},children:void 0},r.icon&&u.createElement(Bs,{sx:{color:"primary.contrastText",minWidth:48}},u.createElement(r.icon)),u.createElement(as,{sx:{whiteSpace:"nowrap"},primary:pD(r)}))),u.createElement(je,{sx:{flex:1,opacity:.7,background:"url(hfs-logo.svg) no-repeat bottom",backgroundSize:"contain",margin:2}})))}function pD(e){var t;return e&&((t=e.label)!=null?t:St.capitalize(e.path))}function W1e({children:e}){const{loginRequired:t}=oa();return t===403?u.createElement(py,{},u.createElement(jo,{severity:"error"},"Admin-panel only for localhost"),u.createElement(je,{mt:2,fontSize:"small"},"because no admin account was configured")):t?u.createElement(G1e):u.createElement(u.Fragment,{},e)}function G1e(){var s;const[e,t]=u.useState({username:"",password:""}),[n,r]=u.useState(""),o=u.useRef(),i=(s=o.current)==null?void 0:s.querySelector('input[value=""]');return u.useEffect(()=>{var c;return(c=i==null?void 0:i.focus)==null?void 0:c.call(i)},[i]),u.createElement(py,{},u.createElement(Tp,{formRef:o,values:e,set(c,d){t(p=>$t(Ee({},p),{[d]:c}))},fields:[{k:"username",autoComplete:"username",autoFocus:!0,required:!0},{k:"password",type:"password",autoComplete:"current-password",required:!0}],addToBar:[n&&u.createElement(jo,{severity:"error",sx:{flex:1}},n)],saveOnEnter:!0,save:{children:"Enter",startIcon:null,onClick(){return mt(this,null,function*(){try{r(""),yield K1e(e.username,e.password)}catch(c){r(String(c))}})}}}))}function K1e(e,t){return mt(this,null,function*(){const n=yield ise(e,t,Et).catch(r=>{throw(r==null?void 0:r.code)===401?"Wrong username or password":r==="trust"?"Login aborted: server identity cannot be trusted":(r==null?void 0:r.name)==="AbortError"?"Server didn't respond":(r==null?void 0:r.message)||"Unknown error"});if(!n.adminUrl)throw"This account has no Admin access";pn.loginRequired=!1,hD(n)})}const hD=vse(pn);hD(wS().session);var uP={},q1e=lt;Object.defineProperty(uP,"__esModule",{value:!0});var mD=uP.default=void 0,Y1e=q1e(at()),Q1e=st(),X1e=(0,Y1e.default)((0,Q1e.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");mD=uP.default=X1e;function J1e(){return u.createElement(TG,{theme:rle()},u.createElement(Z1e,{},u.createElement(W1e,{},u.createElement(qV,{},u.createElement(ebe)))))}function Z1e(e){return u.createElement(je,Ee({sx:{bgcolor:"background.default",color:"text.primary",display:"flex",flexDirection:"column",minHeight:"100%",flex:1}},e))}function ebe(){const e=Ju().pathname.slice(1),t=sC.find(s=>s.path===e),n=t&&(t.title||pD(t)),[r,o]=u.useState(!1),i=Yl("lg");return u.createElement(u.Fragment,{},!i&&u.createElement(tbe,{title:n,openMenu:()=>o(!0)}),!i&&u.createElement(XJ,{anchor:"left",open:r,onClose(){o(!1)}},u.createElement(PM,{onSelect:()=>o(!1)})),u.createElement(je,{display:"flex",flex:1},i&&u.createElement(PM),u.createElement(je,{component:"main",sx:{background:"url(cup.svg) no-repeat right fixed",backgroundSize:"contain",px:{xs:1,sm:2,md:3},pb:"1em",position:"relative",display:"flex",flexDirection:"column",width:"100%"}},n&&i&&u.createElement(Mr,{variant:"h2",mb:2},n),u.createElement(VV,{},sC.map((s,a)=>u.createElement(KO,{key:a,path:s.path,element:u.createElement(s.comp)})))),u.createElement(Yie)))}function tbe({title:e,openMenu:t}){return u.createElement(QY,{position:"sticky",sx:{mb:2}},u.createElement(ML,{},u.createElement(li,{size:"large",edge:"start",color:"inherit",sx:{mr:2},"aria-label":"menu",onClick:t},u.createElement(mD)),e))}BO(document.getElementById("root")).render(u.createElement(u.StrictMode,{},u.createElement(J1e)));export{Sn as c,mp as g};
|